3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DX Referrals extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-cyrus-sasl with Cyrus SASL support (auto)"
38 --with-fetch with fetch URL support (auto)"
40 --with-kerberos with Kerberos support (auto)"
42 --with-readline with readline support (auto)"
44 --with-threads use threads (auto)"
46 --with-tls with TLS/SSL support (auto)"
48 --with-yielding-select with implicitly yielding select (auto)"
50 LDAPD (X.500-to-LDAP Gateway) Options:"
52 --enable-ldapd enable building ldapd (no)"
54 SLAPD (Standalone LDAP Daemon) Options:"
56 --enable-slapd enable building slapd (yes)"
58 --enable-cleartext enable cleartext passwords (yes)"
60 --enable-crypt enable crypt(3) passwords (auto)"
62 --enable-modules enable dynamic module support (no)"
64 --enable-multimaster enable multimaster replication (no)"
66 --enable-phonetic enable phonetic/soundex (no)"
68 --enable-quipu build quipu migration tools (no)"
70 --enable-rlookups enable reverse lookups (auto)"
72 --enable-aci enable per-object ACIs (no)"
74 --enable-discreteaci enable discrete rights in ACIs (no)"
76 --enable-wrappers enable tcp wrapper support (no)"
78 --enable-bdb2 enable bdb2 backend (no)"
80 --with-bdb2-module module type (static)"
82 --enable-ldap enable ldap backend (no)"
84 --with-ldap-module module type (static)"
86 --enable-ldbm enable ldbm backend (yes)"
88 --with-ldbm-api use LDBM API (auto)"
90 --with-ldbm-module module type (static)"
92 --with-ldbm-type use LDBM type (auto)"
94 --enable-passwd enable passwd backend (no)"
96 --with-passwd-module module type (static)"
98 --enable-perl enable perl backend (no)"
100 --with-perl-module module type (static)"
102 --enable-shell enable shell backend (no)"
104 --with-shell-module module type (static)"
106 --enable-tcl enable tcl backend (no)"
108 --with-tcl-module module type (static)"
110 SLURPD (Replication Daemon) Options:"
112 --enable-slurpd enable building slurpd (auto)"
114 Library Generation & Linking Options"
116 --enable-static[=PKGS] build static libraries [default=yes]"
118 --enable-shared[=PKGS] build shared libraries [default=yes]"
120 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
122 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
124 --disable-libtool-lock avoid locking (might break parallel builds)"
126 # Initialize some variables set by options.
127 # The variables have the same names as the options, with
128 # dashes changed to underlines.
130 cache_file=./config.cache
139 program_transform_name=s,x,x,
147 bindir='${exec_prefix}/bin'
148 sbindir='${exec_prefix}/sbin'
149 libexecdir='${exec_prefix}/libexec'
150 datadir='${prefix}/share'
151 sysconfdir='${prefix}/etc'
152 sharedstatedir='${prefix}/com'
153 localstatedir='${prefix}/var'
154 libdir='${exec_prefix}/lib'
155 includedir='${prefix}/include'
156 oldincludedir='/usr/include'
157 infodir='${prefix}/info'
158 mandir='${prefix}/man'
160 # Initialize some other variables.
163 SHELL=${CONFIG_SHELL-/bin/sh}
164 # Maximum number of lines to put in a shell here document.
171 # If the previous option needs an argument, assign it.
172 if test -n "$ac_prev"; then
173 eval "$ac_prev=\$ac_option"
179 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
183 # Accept the important Cygnus configure options, so we can diagnose typos.
187 -bindir | --bindir | --bindi | --bind | --bin | --bi)
189 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
190 bindir="$ac_optarg" ;;
192 -build | --build | --buil | --bui | --bu)
194 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
195 build="$ac_optarg" ;;
197 -cache-file | --cache-file | --cache-fil | --cache-fi \
198 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
199 ac_prev=cache_file ;;
200 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
201 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
202 cache_file="$ac_optarg" ;;
204 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
206 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
208 datadir="$ac_optarg" ;;
210 -disable-* | --disable-*)
211 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
212 # Reject names that are not valid shell variable names.
213 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
214 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
216 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
217 eval "enable_${ac_feature}=no" ;;
219 -enable-* | --enable-*)
220 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
221 # Reject names that are not valid shell variable names.
222 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
223 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
225 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
230 eval "enable_${ac_feature}='$ac_optarg'" ;;
232 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
233 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
234 | --exec | --exe | --ex)
235 ac_prev=exec_prefix ;;
236 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
237 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
238 | --exec=* | --exe=* | --ex=*)
239 exec_prefix="$ac_optarg" ;;
241 -gas | --gas | --ga | --g)
242 # Obsolete; use --with-gas.
245 -help | --help | --hel | --he)
246 # Omit some internal or obsolete options to make the list less imposing.
247 # This message is too long to be a string in the A/UX 3.1 sh.
249 Usage: configure [options] [host]
250 Options: [defaults in brackets after descriptions]
252 --cache-file=FILE cache test results in FILE
253 --help print this message
254 --no-create do not create output files
255 --quiet, --silent do not print \`checking...' messages
256 --version print the version of autoconf that created configure
257 Directory and file names:
258 --prefix=PREFIX install architecture-independent files in PREFIX
260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
262 --bindir=DIR user executables in DIR [EPREFIX/bin]
263 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
264 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
265 --datadir=DIR read-only architecture-independent data in DIR
267 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
268 --sharedstatedir=DIR modifiable architecture-independent data in DIR
270 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
271 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
272 --includedir=DIR C header files in DIR [PREFIX/include]
273 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
274 --infodir=DIR info documentation in DIR [PREFIX/info]
275 --mandir=DIR man documentation in DIR [PREFIX/man]
276 --srcdir=DIR find the sources in DIR [configure dir or ..]
277 --program-prefix=PREFIX prepend PREFIX to installed program names
278 --program-suffix=SUFFIX append SUFFIX to installed program names
279 --program-transform-name=PROGRAM
280 run sed PROGRAM on installed program names
284 --build=BUILD configure for building on BUILD [BUILD=HOST]
285 --host=HOST configure for HOST [guessed]
286 --target=TARGET configure for TARGET [TARGET=HOST]
287 Features and packages:
288 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
289 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
290 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
291 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
292 --x-includes=DIR X include files are in DIR
293 --x-libraries=DIR X library files are in DIR
295 if test -n "$ac_help"; then
296 echo "--enable and --with options recognized:$ac_help"
300 -host | --host | --hos | --ho)
302 -host=* | --host=* | --hos=* | --ho=*)
305 -includedir | --includedir | --includedi | --included | --include \
306 | --includ | --inclu | --incl | --inc)
307 ac_prev=includedir ;;
308 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
309 | --includ=* | --inclu=* | --incl=* | --inc=*)
310 includedir="$ac_optarg" ;;
312 -infodir | --infodir | --infodi | --infod | --info | --inf)
314 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
315 infodir="$ac_optarg" ;;
317 -libdir | --libdir | --libdi | --libd)
319 -libdir=* | --libdir=* | --libdi=* | --libd=*)
320 libdir="$ac_optarg" ;;
322 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
323 | --libexe | --libex | --libe)
324 ac_prev=libexecdir ;;
325 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
326 | --libexe=* | --libex=* | --libe=*)
327 libexecdir="$ac_optarg" ;;
329 -localstatedir | --localstatedir | --localstatedi | --localstated \
330 | --localstate | --localstat | --localsta | --localst \
331 | --locals | --local | --loca | --loc | --lo)
332 ac_prev=localstatedir ;;
333 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
334 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
335 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
336 localstatedir="$ac_optarg" ;;
338 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
340 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
341 mandir="$ac_optarg" ;;
344 # Obsolete; use --without-fp.
347 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
351 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
352 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
355 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
356 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
357 | --oldin | --oldi | --old | --ol | --o)
358 ac_prev=oldincludedir ;;
359 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
360 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
361 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
362 oldincludedir="$ac_optarg" ;;
364 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
366 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
367 prefix="$ac_optarg" ;;
369 -program-prefix | --program-prefix | --program-prefi | --program-pref \
370 | --program-pre | --program-pr | --program-p)
371 ac_prev=program_prefix ;;
372 -program-prefix=* | --program-prefix=* | --program-prefi=* \
373 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
374 program_prefix="$ac_optarg" ;;
376 -program-suffix | --program-suffix | --program-suffi | --program-suff \
377 | --program-suf | --program-su | --program-s)
378 ac_prev=program_suffix ;;
379 -program-suffix=* | --program-suffix=* | --program-suffi=* \
380 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
381 program_suffix="$ac_optarg" ;;
383 -program-transform-name | --program-transform-name \
384 | --program-transform-nam | --program-transform-na \
385 | --program-transform-n | --program-transform- \
386 | --program-transform | --program-transfor \
387 | --program-transfo | --program-transf \
388 | --program-trans | --program-tran \
389 | --progr-tra | --program-tr | --program-t)
390 ac_prev=program_transform_name ;;
391 -program-transform-name=* | --program-transform-name=* \
392 | --program-transform-nam=* | --program-transform-na=* \
393 | --program-transform-n=* | --program-transform-=* \
394 | --program-transform=* | --program-transfor=* \
395 | --program-transfo=* | --program-transf=* \
396 | --program-trans=* | --program-tran=* \
397 | --progr-tra=* | --program-tr=* | --program-t=*)
398 program_transform_name="$ac_optarg" ;;
400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
401 | -silent | --silent | --silen | --sile | --sil)
404 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
406 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
408 sbindir="$ac_optarg" ;;
410 -sharedstatedir | --sharedstatedir | --sharedstatedi \
411 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
412 | --sharedst | --shareds | --shared | --share | --shar \
414 ac_prev=sharedstatedir ;;
415 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
416 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
417 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
419 sharedstatedir="$ac_optarg" ;;
421 -site | --site | --sit)
423 -site=* | --site=* | --sit=*)
426 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
428 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
429 srcdir="$ac_optarg" ;;
431 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
432 | --syscon | --sysco | --sysc | --sys | --sy)
433 ac_prev=sysconfdir ;;
434 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
435 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
436 sysconfdir="$ac_optarg" ;;
438 -target | --target | --targe | --targ | --tar | --ta | --t)
440 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
441 target="$ac_optarg" ;;
443 -v | -verbose | --verbose | --verbos | --verbo | --verb)
446 -version | --version | --versio | --versi | --vers)
447 echo "configure generated by autoconf version 2.13.1"
451 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
452 # Reject names that are not valid shell variable names.
453 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
454 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
456 ac_package=`echo $ac_package| sed 's/-/_/g'`
461 eval "with_${ac_package}='$ac_optarg'" ;;
463 -without-* | --without-*)
464 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
465 # Reject names that are not valid shell variable names.
466 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
467 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
469 ac_package=`echo $ac_package| sed 's/-/_/g'`
470 eval "with_${ac_package}=no" ;;
473 # Obsolete; use --with-x.
476 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
477 | --x-incl | --x-inc | --x-in | --x-i)
478 ac_prev=x_includes ;;
479 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
480 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
481 x_includes="$ac_optarg" ;;
483 -x-libraries | --x-libraries | --x-librarie | --x-librari \
484 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
485 ac_prev=x_libraries ;;
486 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
487 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
488 x_libraries="$ac_optarg" ;;
490 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
494 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
495 echo "configure: warning: $ac_option: invalid host type" 1>&2
497 if test "x$nonopt" != xNONE; then
498 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
506 if test -n "$ac_prev"; then
507 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
510 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
512 # File descriptor usage:
515 # 2 errors and warnings
516 # 3 some systems may open it to /dev/tty
517 # 4 used on the Kubota Titan
518 # 6 checking for... messages and results
519 # 5 compiler messages saved in config.log
520 if test "$silent" = yes; then
528 This file contains any messages produced by compilers while
529 running configure, to aid debugging if configure makes a mistake.
532 # Strip out --no-create and --no-recursion so they do not pile up.
533 # Also quote any args containing shell metacharacters.
538 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
539 | --no-cr | --no-c) ;;
540 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
541 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
542 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
543 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
544 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
549 # Only set these to C if already set. These must not be set unconditionally
550 # because not all systems understand e.g. LANG=C (notably SCO).
551 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
552 # Non-C LC_CTYPE values break the ctype check.
553 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
554 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
555 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
556 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
558 # confdefs.h avoids OS command line length limits that DEFS can exceed.
559 rm -rf conftest* confdefs.h
560 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
563 # A filename unique to this package, relative to the directory that
564 # configure is in, which we can look for to find out if srcdir is correct.
565 ac_unique_file=build/version
567 # Find the source files, if location was not specified.
568 if test -z "$srcdir"; then
569 ac_srcdir_defaulted=yes
570 # Try the directory containing this script, then its parent.
572 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
573 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
575 if test ! -r $srcdir/$ac_unique_file; then
579 ac_srcdir_defaulted=no
581 if test ! -r $srcdir/$ac_unique_file; then
582 if test "$ac_srcdir_defaulted" = yes; then
583 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
585 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
588 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
590 # Prefer explicitly selected file to automatically selected ones.
591 if test -z "$CONFIG_SITE"; then
592 if test "x$prefix" != xNONE; then
593 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
595 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
598 for ac_site_file in $CONFIG_SITE; do
599 if test -r "$ac_site_file"; then
600 echo "loading site script $ac_site_file"
607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
608 ac_cpp='$CPP $CPPFLAGS'
609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
611 cross_compiling=$ac_cv_prog_cc_cross
615 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
616 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
617 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
624 ac_n= ac_c='\c' ac_t=
628 for ac_dir in build $srcdir/build; do
629 if test -f $ac_dir/install-sh; then
631 ac_install_sh="$ac_aux_dir/install-sh -c"
633 elif test -f $ac_dir/install.sh; then
635 ac_install_sh="$ac_aux_dir/install.sh -c"
639 if test -z "$ac_aux_dir"; then
640 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
642 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
643 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
644 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
645 OPENLDAP_ID="$OpenLDAP$"
647 OL_VERSION=`cat $ac_aux_dir/version`
648 if test -z "$OL_VERSION"; then
649 { echo "configure: error: could not determine version" 1>&2; exit 1; }
653 echo $ac_n "checking host system type""... $ac_c" 1>&6
654 echo "configure:655: checking host system type" >&5
655 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
657 # Make sure we can run config.sub.
658 if $ac_config_sub sun4 >/dev/null 2>&1; then :
659 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
662 ac_cv_host_alias=$host
663 case "$ac_cv_host_alias" in
667 if ac_cv_host_alias=`$ac_config_guess`; then :
668 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
670 *) ac_cv_host_alias=$nonopt ;;
674 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
675 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
676 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
677 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
679 echo $ac_n "(cached) $ac_c" 1>&6
682 echo "$ac_t""$ac_cv_host" 1>&6
685 host_alias=$ac_cv_host_alias
686 host_cpu=$ac_cv_host_cpu
687 host_vendor=$ac_cv_host_vendor
688 host_os=$ac_cv_host_os
694 echo $ac_n "checking target system type""... $ac_c" 1>&6
695 echo "configure:696: checking target system type" >&5
696 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
698 # Make sure we can run config.sub.
699 if $ac_config_sub sun4 >/dev/null 2>&1; then :
700 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
703 ac_cv_target_alias=$target
704 case "$ac_cv_target_alias" in
708 ac_cv_target_alias=$host_alias ;;
710 *) ac_cv_target_alias=$nonopt ;;
714 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
715 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
716 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
717 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
719 echo $ac_n "(cached) $ac_c" 1>&6
722 echo "$ac_t""$ac_cv_target" 1>&6
725 target_alias=$ac_cv_target_alias
726 target_cpu=$ac_cv_target_cpu
727 target_vendor=$ac_cv_target_vendor
728 target_os=$ac_cv_target_os
734 echo $ac_n "checking build system type""... $ac_c" 1>&6
735 echo "configure:736: checking build system type" >&5
736 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
738 # Make sure we can run config.sub.
739 if $ac_config_sub sun4 >/dev/null 2>&1; then :
740 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
743 ac_cv_build_alias=$build
744 case "$ac_cv_build_alias" in
748 ac_cv_build_alias=$host_alias ;;
750 *) ac_cv_build_alias=$nonopt ;;
754 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
755 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
756 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
757 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
759 echo $ac_n "(cached) $ac_c" 1>&6
762 echo "$ac_t""$ac_cv_build" 1>&6
765 build_alias=$ac_cv_build_alias
766 build_cpu=$ac_cv_build_cpu
767 build_vendor=$ac_cv_build_vendor
768 build_os=$ac_cv_build_os
774 # Do some error checking and defaulting for the host and target type.
776 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
779 # 1. You are not allowed to specify --host, --target, and nonopt at the
781 # 2. Host defaults to nonopt.
782 # 3. If nonopt is not specified, then host defaults to the current host,
783 # as determined by config.guess.
784 # 4. Target and build default to nonopt.
785 # 5. If nonopt is not specified, then target and build default to host.
787 # The aliases save the names the user supplied, while $host etc.
788 # will get canonicalized.
789 case $host---$target---$nonopt in
790 NONE---*---* | *---NONE---* | *---*---NONE) ;;
791 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
794 test "$host_alias" != "$target_alias" &&
795 test "$program_prefix$program_suffix$program_transform_name" = \
797 program_prefix=${target_alias}-
800 # Find a good install program. We prefer a C program (faster),
801 # so one script is as good as another. But avoid the broken or
802 # incompatible versions:
803 # SysV /etc/install, /usr/sbin/install
804 # SunOS /usr/etc/install
807 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
808 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
809 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
810 # ./install, which can be erroneously created by make from ./install.sh.
811 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
812 echo "configure:813: checking for a BSD compatible install" >&5
813 if test -z "$INSTALL"; then
814 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
818 for ac_dir in $PATH; do
819 # Account for people who put trailing slashes in PATH elements.
821 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
823 # OSF1 and SCO ODT 3.0 have their own names for install.
824 # Don't use installbsd from OSF since it installs stuff as root
826 for ac_prog in ginstall scoinst install; do
827 if test -f $ac_dir/$ac_prog; then
828 if test $ac_prog = install &&
829 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
830 # AIX install. It has an incompatible calling convention.
832 elif test $ac_prog = install &&
833 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
834 # program-specific install script used by HP pwplus--don't use.
837 ac_cv_path_install="$ac_dir/$ac_prog -c"
848 if test "${ac_cv_path_install+set}" = set; then
849 INSTALL="$ac_cv_path_install"
851 # As a last resort, use the slow shell script. We don't cache a
852 # path for INSTALL within a source directory, because that will
853 # break other packages using the cache if that directory is
854 # removed, or if the path is relative.
855 INSTALL="$ac_install_sh"
858 echo "$ac_t""$INSTALL" 1>&6
860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
861 # It thinks the first close brace ends the variable substitution.
862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
864 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
866 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
868 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
869 echo "configure:870: checking whether build environment is sane" >&5
872 echo timestamp > conftestfile
873 # Do `set' in a subshell so we don't clobber the current shell's
874 # arguments. Must try -L first in case configure is actually a
875 # symlink; some systems play weird games with the mod time of symlinks
876 # (eg FreeBSD returns the mod time of the symlink's containing
879 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
880 if test "$*" = "X"; then
882 set X `ls -t $srcdir/configure conftestfile`
884 if test "$*" != "X $srcdir/configure conftestfile" \
885 && test "$*" != "X conftestfile $srcdir/configure"; then
887 # If neither matched, then we have a broken ls. This can happen
888 # if, for instance, CONFIG_SHELL is bash and it inherits a
889 # broken ls alias from the environment. This has actually
890 # happened. Such a system could not be considered "sane".
891 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
892 alias in your environment" 1>&2; exit 1; }
895 test "$2" = conftestfile
901 { echo "configure: error: newly created file is older than distributed files!
902 Check your system clock" 1>&2; exit 1; }
905 echo "$ac_t""yes" 1>&6
906 if test "$program_transform_name" = s,x,x,; then
907 program_transform_name=
909 # Double any \ or $. echo might interpret backslashes.
910 cat <<\EOF_SED > conftestsed
911 s,\\,\\\\,g; s,\$,$$,g
913 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
916 test "$program_prefix" != NONE &&
917 program_transform_name="s,^,${program_prefix},;$program_transform_name"
918 # Use a double $ so make ignores it.
919 test "$program_suffix" != NONE &&
920 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
922 # sed with no file args requires a program.
923 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
925 for ac_prog in mawk gawk nawk awk
927 # Extract the first word of "$ac_prog", so it can be a program name with args.
928 set dummy $ac_prog; ac_word=$2
929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
930 echo "configure:931: checking for $ac_word" >&5
931 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 if test -n "$AWK"; then
935 ac_cv_prog_AWK="$AWK" # Let the user override the test.
937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
939 for ac_dir in $ac_dummy; do
940 test -z "$ac_dir" && ac_dir=.
941 if test -f $ac_dir/$ac_word; then
942 ac_cv_prog_AWK="$ac_prog"
949 AWK="$ac_cv_prog_AWK"
950 if test -n "$AWK"; then
951 echo "$ac_t""$AWK" 1>&6
953 echo "$ac_t""no" 1>&6
956 test -n "$AWK" && break
959 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
960 echo "configure:961: checking whether ${MAKE-make} sets \${MAKE}" >&5
961 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
962 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 cat > conftestmake <<\EOF
967 @echo 'ac_maketemp="${MAKE}"'
969 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
970 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
971 if test -n "$ac_maketemp"; then
972 eval ac_cv_prog_make_${ac_make}_set=yes
974 eval ac_cv_prog_make_${ac_make}_set=no
978 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
979 echo "$ac_t""yes" 1>&6
982 echo "$ac_t""no" 1>&6
983 SET_MAKE="MAKE=${MAKE-make}"
992 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
993 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
998 missing_dir=`cd $ac_aux_dir && pwd`
999 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1000 echo "configure:1001: checking for working aclocal" >&5
1001 # Run test in a subshell; some versions of sh will print an error if
1002 # an executable is not found, even if stderr is redirected.
1003 # Redirect stdin to placate older versions of autoconf. Sigh.
1004 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1006 echo "$ac_t""found" 1>&6
1008 ACLOCAL="$missing_dir/missing aclocal"
1009 echo "$ac_t""missing" 1>&6
1012 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1013 echo "configure:1014: checking for working autoconf" >&5
1014 # Run test in a subshell; some versions of sh will print an error if
1015 # an executable is not found, even if stderr is redirected.
1016 # Redirect stdin to placate older versions of autoconf. Sigh.
1017 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1019 echo "$ac_t""found" 1>&6
1021 AUTOCONF="$missing_dir/missing autoconf"
1022 echo "$ac_t""missing" 1>&6
1025 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1026 echo "configure:1027: checking for working automake" >&5
1027 # Run test in a subshell; some versions of sh will print an error if
1028 # an executable is not found, even if stderr is redirected.
1029 # Redirect stdin to placate older versions of autoconf. Sigh.
1030 if (automake --version) < /dev/null > /dev/null 2>&1; then
1032 echo "$ac_t""found" 1>&6
1034 AUTOMAKE="$missing_dir/missing automake"
1035 echo "$ac_t""missing" 1>&6
1038 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1039 echo "configure:1040: checking for working autoheader" >&5
1040 # Run test in a subshell; some versions of sh will print an error if
1041 # an executable is not found, even if stderr is redirected.
1042 # Redirect stdin to placate older versions of autoconf. Sigh.
1043 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1044 AUTOHEADER=autoheader
1045 echo "$ac_t""found" 1>&6
1047 AUTOHEADER="$missing_dir/missing autoheader"
1048 echo "$ac_t""missing" 1>&6
1051 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1052 echo "configure:1053: checking for working makeinfo" >&5
1053 # Run test in a subshell; some versions of sh will print an error if
1054 # an executable is not found, even if stderr is redirected.
1055 # Redirect stdin to placate older versions of autoconf. Sigh.
1056 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1058 echo "$ac_t""found" 1>&6
1060 MAKEINFO="$missing_dir/missing makeinfo"
1061 echo "$ac_t""missing" 1>&6
1064 install_sh="$missing_dir/install-sh"
1065 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1067 for ac_prog in gnutar gtar tar
1069 # Extract the first word of "$ac_prog", so it can be a program name with args.
1070 set dummy $ac_prog; ac_word=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 if test -n "$AMTAR"; then
1077 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1081 for ac_dir in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir=.
1083 if test -f $ac_dir/$ac_word; then
1084 ac_cv_prog_AMTAR="$ac_prog"
1091 AMTAR="$ac_cv_prog_AMTAR"
1092 if test -n "$AMTAR"; then
1093 echo "$ac_t""$AMTAR" 1>&6
1095 echo "$ac_t""no" 1>&6
1098 test -n "$AMTAR" && break
1103 if test -n "$AMTAR"; then
1104 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1111 cat >> confdefs.h <<EOF
1112 #define OPENLDAP_PACKAGE "$PACKAGE"
1115 cat >> confdefs.h <<EOF
1116 #define OPENLDAP_VERSION "$VERSION"
1122 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1123 echo "configure:1124: checking configure arguments" >&5
1128 ldap_subdir="/openldap"
1130 # Check whether --with-subdir or --without-subdir was given.
1131 if test "${with_subdir+set}" = set; then
1132 withval="$with_subdir"
1139 ldap_subdir="$withval"
1142 ldap_subdir="/$withval"
1149 # OpenLDAP --enable-debug
1150 # Check whether --enable-debug or --disable-debug was given.
1151 if test "${enable_debug+set}" = set; then
1152 enableval="$enable_debug"
1155 for ol_val in auto yes no ; do
1156 if test "$enableval" = "$ol_val" ; then
1160 if test "$ol_arg" = "invalid" ; then
1161 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1163 ol_enable_debug="$ol_arg"
1166 ol_enable_debug="yes"
1168 # end --enable-debug
1169 # OpenLDAP --enable-syslog
1170 # Check whether --enable-syslog or --disable-syslog was given.
1171 if test "${enable_syslog+set}" = set; then
1172 enableval="$enable_syslog"
1175 for ol_val in auto yes no ; do
1176 if test "$enableval" = "$ol_val" ; then
1180 if test "$ol_arg" = "invalid" ; then
1181 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1183 ol_enable_syslog="$ol_arg"
1186 ol_enable_syslog="auto"
1188 # end --enable-syslog
1189 # OpenLDAP --enable-proctitle
1190 # Check whether --enable-proctitle or --disable-proctitle was given.
1191 if test "${enable_proctitle+set}" = set; then
1192 enableval="$enable_proctitle"
1195 for ol_val in auto yes no ; do
1196 if test "$enableval" = "$ol_val" ; then
1200 if test "$ol_arg" = "invalid" ; then
1201 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1203 ol_enable_proctitle="$ol_arg"
1206 ol_enable_proctitle="yes"
1208 # end --enable-proctitle
1209 # OpenLDAP --enable-cache
1210 # Check whether --enable-cache or --disable-cache was given.
1211 if test "${enable_cache+set}" = set; then
1212 enableval="$enable_cache"
1215 for ol_val in auto yes no ; do
1216 if test "$enableval" = "$ol_val" ; then
1220 if test "$ol_arg" = "invalid" ; then
1221 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1223 ol_enable_cache="$ol_arg"
1226 ol_enable_cache="yes"
1228 # end --enable-cache
1229 # OpenLDAP --enable-dns
1230 # Check whether --enable-dns or --disable-dns was given.
1231 if test "${enable_dns+set}" = set; then
1232 enableval="$enable_dns"
1235 for ol_val in auto yes no ; do
1236 if test "$enableval" = "$ol_val" ; then
1240 if test "$ol_arg" = "invalid" ; then
1241 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1243 ol_enable_dns="$ol_arg"
1249 # OpenLDAP --enable-referrals
1250 # Check whether --enable-referrals or --disable-referrals was given.
1251 if test "${enable_referrals+set}" = set; then
1252 enableval="$enable_referrals"
1255 for ol_val in auto yes no ; do
1256 if test "$enableval" = "$ol_val" ; then
1260 if test "$ol_arg" = "invalid" ; then
1261 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1263 ol_enable_referrals="$ol_arg"
1266 ol_enable_referrals="yes"
1268 # end --enable-referrals
1269 # OpenLDAP --enable-cldap
1270 # Check whether --enable-cldap or --disable-cldap was given.
1271 if test "${enable_cldap+set}" = set; then
1272 enableval="$enable_cldap"
1275 for ol_val in auto yes no ; do
1276 if test "$enableval" = "$ol_val" ; then
1280 if test "$ol_arg" = "invalid" ; then
1281 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1283 ol_enable_cldap="$ol_arg"
1286 ol_enable_cldap="no"
1288 # end --enable-cldap
1289 # OpenLDAP --enable-x_compile
1290 # Check whether --enable-x_compile or --disable-x_compile was given.
1291 if test "${enable_x_compile+set}" = set; then
1292 enableval="$enable_x_compile"
1295 for ol_val in yes no ; do
1296 if test "$enableval" = "$ol_val" ; then
1300 if test "$ol_arg" = "invalid" ; then
1301 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1303 ol_enable_x_compile="$ol_arg"
1306 ol_enable_x_compile="no"
1308 # end --enable-x_compile
1310 # OpenLDAP --enable-dmalloc
1311 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1312 if test "${enable_dmalloc+set}" = set; then
1313 enableval="$enable_dmalloc"
1316 for ol_val in auto yes no ; do
1317 if test "$enableval" = "$ol_val" ; then
1321 if test "$ol_arg" = "invalid" ; then
1322 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1324 ol_enable_dmalloc="$ol_arg"
1327 ol_enable_dmalloc="no"
1329 # end --enable-dmalloc
1331 # OpenLDAP --with-cyrus_sasl
1332 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1333 if test "${with_cyrus_sasl+set}" = set; then
1334 withval="$with_cyrus_sasl"
1337 for ol_val in auto yes no ; do
1338 if test "$withval" = "$ol_val" ; then
1342 if test "$ol_arg" = "invalid" ; then
1343 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1345 ol_with_cyrus_sasl="$ol_arg"
1348 ol_with_cyrus_sasl="auto"
1350 # end --with-cyrus_sasl
1352 # OpenLDAP --with-fetch
1353 # Check whether --with-fetch or --without-fetch was given.
1354 if test "${with_fetch+set}" = set; then
1355 withval="$with_fetch"
1358 for ol_val in auto yes no ; do
1359 if test "$withval" = "$ol_val" ; then
1363 if test "$ol_arg" = "invalid" ; then
1364 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1366 ol_with_fetch="$ol_arg"
1369 ol_with_fetch="auto"
1373 # OpenLDAP --with-kerberos
1374 # Check whether --with-kerberos or --without-kerberos was given.
1375 if test "${with_kerberos+set}" = set; then
1376 withval="$with_kerberos"
1379 for ol_val in auto k5 k4 afs yes no ; do
1380 if test "$withval" = "$ol_val" ; then
1384 if test "$ol_arg" = "invalid" ; then
1385 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1387 ol_with_kerberos="$ol_arg"
1390 ol_with_kerberos="auto"
1392 # end --with-kerberos
1394 # OpenLDAP --with-readline
1395 # Check whether --with-readline or --without-readline was given.
1396 if test "${with_readline+set}" = set; then
1397 withval="$with_readline"
1400 for ol_val in auto yes no ; do
1401 if test "$withval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1408 ol_with_readline="$ol_arg"
1411 ol_with_readline="auto"
1413 # end --with-readline
1415 # OpenLDAP --with-threads
1416 # Check whether --with-threads or --without-threads was given.
1417 if test "${with_threads+set}" = set; then
1418 withval="$with_threads"
1421 for ol_val in auto posix mach pth lwp yes no manual ; do
1422 if test "$withval" = "$ol_val" ; then
1426 if test "$ol_arg" = "invalid" ; then
1427 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1429 ol_with_threads="$ol_arg"
1432 ol_with_threads="auto"
1434 # end --with-threads
1436 # OpenLDAP --with-tls
1437 # Check whether --with-tls or --without-tls was given.
1438 if test "${with_tls+set}" = set; then
1442 for ol_val in auto ssleay openssl yes no ; do
1443 if test "$withval" = "$ol_val" ; then
1447 if test "$ol_arg" = "invalid" ; then
1448 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1450 ol_with_tls="$ol_arg"
1457 # OpenLDAP --with-yielding_select
1458 # Check whether --with-yielding_select or --without-yielding_select was given.
1459 if test "${with_yielding_select+set}" = set; then
1460 withval="$with_yielding_select"
1463 for ol_val in auto yes no manual ; do
1464 if test "$withval" = "$ol_val" ; then
1468 if test "$ol_arg" = "invalid" ; then
1469 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1471 ol_with_yielding_select="$ol_arg"
1474 ol_with_yielding_select="auto"
1476 # end --with-yielding_select
1480 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1481 if test "${with_xxldapdoptions+set}" = set; then
1482 withval="$with_xxldapdoptions"
1486 # OpenLDAP --enable-ldapd
1487 # Check whether --enable-ldapd or --disable-ldapd was given.
1488 if test "${enable_ldapd+set}" = set; then
1489 enableval="$enable_ldapd"
1492 for ol_val in auto yes no ; do
1493 if test "$enableval" = "$ol_val" ; then
1497 if test "$ol_arg" = "invalid" ; then
1498 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1500 ol_enable_ldapd="$ol_arg"
1503 ol_enable_ldapd="no"
1505 # end --enable-ldapd
1507 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1508 if test "${with_xxslapdoptions+set}" = set; then
1509 withval="$with_xxslapdoptions"
1513 # OpenLDAP --enable-slapd
1514 # Check whether --enable-slapd or --disable-slapd was given.
1515 if test "${enable_slapd+set}" = set; then
1516 enableval="$enable_slapd"
1519 for ol_val in auto yes no ; do
1520 if test "$enableval" = "$ol_val" ; then
1524 if test "$ol_arg" = "invalid" ; then
1525 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1527 ol_enable_slapd="$ol_arg"
1530 ol_enable_slapd="yes"
1532 # end --enable-slapd
1533 # OpenLDAP --enable-cleartext
1534 # Check whether --enable-cleartext or --disable-cleartext was given.
1535 if test "${enable_cleartext+set}" = set; then
1536 enableval="$enable_cleartext"
1539 for ol_val in auto yes no ; do
1540 if test "$enableval" = "$ol_val" ; then
1544 if test "$ol_arg" = "invalid" ; then
1545 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1547 ol_enable_cleartext="$ol_arg"
1550 ol_enable_cleartext="yes"
1552 # end --enable-cleartext
1553 # OpenLDAP --enable-crypt
1554 # Check whether --enable-crypt or --disable-crypt was given.
1555 if test "${enable_crypt+set}" = set; then
1556 enableval="$enable_crypt"
1559 for ol_val in auto yes no ; do
1560 if test "$enableval" = "$ol_val" ; then
1564 if test "$ol_arg" = "invalid" ; then
1565 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1567 ol_enable_crypt="$ol_arg"
1570 ol_enable_crypt="auto"
1572 # end --enable-crypt
1573 # OpenLDAP --enable-modules
1574 # Check whether --enable-modules or --disable-modules was given.
1575 if test "${enable_modules+set}" = set; then
1576 enableval="$enable_modules"
1579 for ol_val in auto yes no ; do
1580 if test "$enableval" = "$ol_val" ; then
1584 if test "$ol_arg" = "invalid" ; then
1585 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1587 ol_enable_modules="$ol_arg"
1590 ol_enable_modules="no"
1592 # end --enable-modules
1593 # OpenLDAP --enable-multimaster
1594 # Check whether --enable-multimaster or --disable-multimaster was given.
1595 if test "${enable_multimaster+set}" = set; then
1596 enableval="$enable_multimaster"
1599 for ol_val in auto yes no ; do
1600 if test "$enableval" = "$ol_val" ; then
1604 if test "$ol_arg" = "invalid" ; then
1605 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1607 ol_enable_multimaster="$ol_arg"
1610 ol_enable_multimaster="no"
1612 # end --enable-multimaster
1613 # OpenLDAP --enable-phonetic
1614 # Check whether --enable-phonetic or --disable-phonetic was given.
1615 if test "${enable_phonetic+set}" = set; then
1616 enableval="$enable_phonetic"
1619 for ol_val in auto yes no ; do
1620 if test "$enableval" = "$ol_val" ; then
1624 if test "$ol_arg" = "invalid" ; then
1625 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1627 ol_enable_phonetic="$ol_arg"
1630 ol_enable_phonetic="no"
1632 # end --enable-phonetic
1633 # OpenLDAP --enable-quipu
1634 # Check whether --enable-quipu or --disable-quipu was given.
1635 if test "${enable_quipu+set}" = set; then
1636 enableval="$enable_quipu"
1639 for ol_val in auto yes no ; do
1640 if test "$enableval" = "$ol_val" ; then
1644 if test "$ol_arg" = "invalid" ; then
1645 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1647 ol_enable_quipu="$ol_arg"
1650 ol_enable_quipu="no"
1652 # end --enable-quipu
1653 # OpenLDAP --enable-rlookups
1654 # Check whether --enable-rlookups or --disable-rlookups was given.
1655 if test "${enable_rlookups+set}" = set; then
1656 enableval="$enable_rlookups"
1659 for ol_val in auto yes no ; do
1660 if test "$enableval" = "$ol_val" ; then
1664 if test "$ol_arg" = "invalid" ; then
1665 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1667 ol_enable_rlookups="$ol_arg"
1670 ol_enable_rlookups="auto"
1672 # end --enable-rlookups
1673 # OpenLDAP --enable-aci
1674 # Check whether --enable-aci or --disable-aci was given.
1675 if test "${enable_aci+set}" = set; then
1676 enableval="$enable_aci"
1679 for ol_val in auto yes no ; do
1680 if test "$enableval" = "$ol_val" ; then
1684 if test "$ol_arg" = "invalid" ; then
1685 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1687 ol_enable_aci="$ol_arg"
1693 # OpenLDAP --enable-discreteaci
1694 # Check whether --enable-discreteaci or --disable-discreteaci was given.
1695 if test "${enable_discreteaci+set}" = set; then
1696 enableval="$enable_discreteaci"
1699 for ol_val in auto yes no ; do
1700 if test "$enableval" = "$ol_val" ; then
1704 if test "$ol_arg" = "invalid" ; then
1705 { echo "configure: error: bad value $enableval for --enable-discreteaci" 1>&2; exit 1; }
1707 ol_enable_discreteaci="$ol_arg"
1710 ol_enable_discreteaci="no"
1712 # end --enable-discreteaci
1713 # OpenLDAP --enable-wrappers
1714 # Check whether --enable-wrappers or --disable-wrappers was given.
1715 if test "${enable_wrappers+set}" = set; then
1716 enableval="$enable_wrappers"
1719 for ol_val in auto yes no ; do
1720 if test "$enableval" = "$ol_val" ; then
1724 if test "$ol_arg" = "invalid" ; then
1725 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1727 ol_enable_wrappers="$ol_arg"
1730 ol_enable_wrappers="no"
1732 # end --enable-wrappers
1734 # OpenLDAP --enable-bdb2
1735 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1736 if test "${enable_bdb2+set}" = set; then
1737 enableval="$enable_bdb2"
1740 for ol_val in auto yes no ; do
1741 if test "$enableval" = "$ol_val" ; then
1745 if test "$ol_arg" = "invalid" ; then
1746 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1748 ol_enable_bdb2="$ol_arg"
1754 # OpenLDAP --with-bdb2_module
1755 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1756 if test "${with_bdb2_module+set}" = set; then
1757 withval="$with_bdb2_module"
1760 for ol_val in static dynamic ; do
1761 if test "$withval" = "$ol_val" ; then
1765 if test "$ol_arg" = "invalid" ; then
1766 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1768 ol_with_bdb2_module="$ol_arg"
1771 ol_with_bdb2_module="static"
1773 # end --with-bdb2_module
1775 # OpenLDAP --enable-ldap
1776 # Check whether --enable-ldap or --disable-ldap was given.
1777 if test "${enable_ldap+set}" = set; then
1778 enableval="$enable_ldap"
1781 for ol_val in auto yes no ; do
1782 if test "$enableval" = "$ol_val" ; then
1786 if test "$ol_arg" = "invalid" ; then
1787 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1789 ol_enable_ldap="$ol_arg"
1795 # OpenLDAP --with-ldap_module
1796 # Check whether --with-ldap_module or --without-ldap_module was given.
1797 if test "${with_ldap_module+set}" = set; then
1798 withval="$with_ldap_module"
1801 for ol_val in static dynamic ; do
1802 if test "$withval" = "$ol_val" ; then
1806 if test "$ol_arg" = "invalid" ; then
1807 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1809 ol_with_ldap_module="$ol_arg"
1812 ol_with_ldap_module="static"
1814 # end --with-ldap_module
1816 # OpenLDAP --enable-ldbm
1817 # Check whether --enable-ldbm or --disable-ldbm was given.
1818 if test "${enable_ldbm+set}" = set; then
1819 enableval="$enable_ldbm"
1822 for ol_val in auto yes no ; do
1823 if test "$enableval" = "$ol_val" ; then
1827 if test "$ol_arg" = "invalid" ; then
1828 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1830 ol_enable_ldbm="$ol_arg"
1833 ol_enable_ldbm="yes"
1836 # OpenLDAP --with-ldbm_api
1837 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1838 if test "${with_ldbm_api+set}" = set; then
1839 withval="$with_ldbm_api"
1842 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1843 if test "$withval" = "$ol_val" ; then
1847 if test "$ol_arg" = "invalid" ; then
1848 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1850 ol_with_ldbm_api="$ol_arg"
1853 ol_with_ldbm_api="auto"
1855 # end --with-ldbm_api
1857 # OpenLDAP --with-ldbm_module
1858 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1859 if test "${with_ldbm_module+set}" = set; then
1860 withval="$with_ldbm_module"
1863 for ol_val in static dynamic ; do
1864 if test "$withval" = "$ol_val" ; then
1868 if test "$ol_arg" = "invalid" ; then
1869 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1871 ol_with_ldbm_module="$ol_arg"
1874 ol_with_ldbm_module="static"
1876 # end --with-ldbm_module
1878 # OpenLDAP --with-ldbm_type
1879 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1880 if test "${with_ldbm_type+set}" = set; then
1881 withval="$with_ldbm_type"
1884 for ol_val in auto btree hash ; do
1885 if test "$withval" = "$ol_val" ; then
1889 if test "$ol_arg" = "invalid" ; then
1890 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1892 ol_with_ldbm_type="$ol_arg"
1895 ol_with_ldbm_type="auto"
1897 # end --with-ldbm_type
1900 # OpenLDAP --enable-passwd
1901 # Check whether --enable-passwd or --disable-passwd was given.
1902 if test "${enable_passwd+set}" = set; then
1903 enableval="$enable_passwd"
1906 for ol_val in auto yes no ; do
1907 if test "$enableval" = "$ol_val" ; then
1911 if test "$ol_arg" = "invalid" ; then
1912 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1914 ol_enable_passwd="$ol_arg"
1917 ol_enable_passwd="no"
1919 # end --enable-passwd
1920 # OpenLDAP --with-passwd_module
1921 # Check whether --with-passwd_module or --without-passwd_module was given.
1922 if test "${with_passwd_module+set}" = set; then
1923 withval="$with_passwd_module"
1926 for ol_val in static dynamic ; do
1927 if test "$withval" = "$ol_val" ; then
1931 if test "$ol_arg" = "invalid" ; then
1932 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1934 ol_with_passwd_module="$ol_arg"
1937 ol_with_passwd_module="static"
1939 # end --with-passwd_module
1941 # OpenLDAP --enable-perl
1942 # Check whether --enable-perl or --disable-perl was given.
1943 if test "${enable_perl+set}" = set; then
1944 enableval="$enable_perl"
1947 for ol_val in auto yes no ; do
1948 if test "$enableval" = "$ol_val" ; then
1952 if test "$ol_arg" = "invalid" ; then
1953 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1955 ol_enable_perl="$ol_arg"
1961 # OpenLDAP --with-perl_module
1962 # Check whether --with-perl_module or --without-perl_module was given.
1963 if test "${with_perl_module+set}" = set; then
1964 withval="$with_perl_module"
1967 for ol_val in static dynamic ; do
1968 if test "$withval" = "$ol_val" ; then
1972 if test "$ol_arg" = "invalid" ; then
1973 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1975 ol_with_perl_module="$ol_arg"
1978 ol_with_perl_module="static"
1980 # end --with-perl_module
1982 # OpenLDAP --enable-shell
1983 # Check whether --enable-shell or --disable-shell was given.
1984 if test "${enable_shell+set}" = set; then
1985 enableval="$enable_shell"
1988 for ol_val in auto yes no ; do
1989 if test "$enableval" = "$ol_val" ; then
1993 if test "$ol_arg" = "invalid" ; then
1994 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1996 ol_enable_shell="$ol_arg"
1999 ol_enable_shell="no"
2001 # end --enable-shell
2002 # OpenLDAP --with-shell_module
2003 # Check whether --with-shell_module or --without-shell_module was given.
2004 if test "${with_shell_module+set}" = set; then
2005 withval="$with_shell_module"
2008 for ol_val in static dynamic ; do
2009 if test "$withval" = "$ol_val" ; then
2013 if test "$ol_arg" = "invalid" ; then
2014 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2016 ol_with_shell_module="$ol_arg"
2019 ol_with_shell_module="static"
2021 # end --with-shell_module
2023 # OpenLDAP --enable-tcl
2024 # Check whether --enable-tcl or --disable-tcl was given.
2025 if test "${enable_tcl+set}" = set; then
2026 enableval="$enable_tcl"
2029 for ol_val in auto yes no ; do
2030 if test "$enableval" = "$ol_val" ; then
2034 if test "$ol_arg" = "invalid" ; then
2035 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2037 ol_enable_tcl="$ol_arg"
2043 # OpenLDAP --with-tcl_module
2044 # Check whether --with-tcl_module or --without-tcl_module was given.
2045 if test "${with_tcl_module+set}" = set; then
2046 withval="$with_tcl_module"
2049 for ol_val in static dynamic ; do
2050 if test "$withval" = "$ol_val" ; then
2054 if test "$ol_arg" = "invalid" ; then
2055 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2057 ol_with_tcl_module="$ol_arg"
2060 ol_with_tcl_module="static"
2062 # end --with-tcl_module
2065 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2066 if test "${with_xxslurpdoptions+set}" = set; then
2067 withval="$with_xxslurpdoptions"
2071 # OpenLDAP --enable-slurpd
2072 # Check whether --enable-slurpd or --disable-slurpd was given.
2073 if test "${enable_slurpd+set}" = set; then
2074 enableval="$enable_slurpd"
2077 for ol_val in auto yes no ; do
2078 if test "$enableval" = "$ol_val" ; then
2082 if test "$ol_arg" = "invalid" ; then
2083 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2085 ol_enable_slurpd="$ol_arg"
2088 ol_enable_slurpd="auto"
2090 # end --enable-slurpd
2092 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2093 if test "${with_xxliboptions+set}" = set; then
2094 withval="$with_xxliboptions"
2098 # Check whether --enable-static or --disable-static was given.
2099 if test "${enable_static+set}" = set; then
2100 enableval="$enable_static"
2101 p=${PACKAGE-default}
2102 case "$enableval" in
2103 yes) enable_static=yes ;;
2104 no) enable_static=no ;;
2107 # Look at the argument we got. We use all the common list separators.
2108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2109 for pkg in $enableval; do
2110 if test "X$pkg" = "X$p"; then
2121 # Check whether --enable-shared or --disable-shared was given.
2122 if test "${enable_shared+set}" = set; then
2123 enableval="$enable_shared"
2124 p=${PACKAGE-default}
2125 case "$enableval" in
2126 yes) enable_shared=yes ;;
2127 no) enable_shared=no ;;
2130 # Look at the argument we got. We use all the common list separators.
2131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2132 for pkg in $enableval; do
2133 if test "X$pkg" = "X$p"; then
2146 if test $ol_enable_dns = yes ; then
2147 if test $ol_enable_referrals = no ; then
2148 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2150 if test $ol_enable_referrals = auto ; then
2151 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2152 ol_enable_referrals=yes
2156 if test $ol_enable_slapd = no ; then
2157 if test $ol_enable_bdb2 = yes ; then
2158 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2160 if test $ol_enable_ldap = yes ; then
2161 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2163 if test $ol_enable_ldbm = yes ; then
2164 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2166 if test $ol_enable_passwd = yes ; then
2167 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2169 if test $ol_enable_perl = yes ; then
2170 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2172 if test $ol_enable_shell = yes ; then
2173 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2175 if test $ol_enable_tcl = yes ; then
2176 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2178 if test $ol_enable_modules = yes ; then
2179 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2181 if test $ol_enable_multimaster = yes ; then
2182 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2184 if test $ol_enable_wrappers = yes ; then
2185 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2187 if test $ol_enable_phonetic = yes ; then
2188 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2190 if test $ol_enable_quipu = yes ; then
2191 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2193 if test $ol_enable_rlookups = yes ; then
2194 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2196 if test $ol_enable_aci = yes ; then
2197 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2199 if test $ol_enable_discreteaci = yes ; then
2200 echo "configure: warning: slapd disabled, ignoring --enable-discreteaci argument" 1>&2
2202 if test $ol_with_ldbm_api != auto ; then
2203 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2205 if test $ol_with_ldbm_type != auto ; then
2206 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2208 if test $ol_with_bdb2_module != static ; then
2209 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2211 if test $ol_with_ldap_module != static ; then
2212 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2214 if test $ol_with_ldbm_module != static ; then
2215 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2217 if test $ol_with_passwd_module != static ; then
2218 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2220 if test $ol_with_perl_module != static ; then
2221 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2223 if test $ol_with_shell_module != static ; then
2224 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2226 if test $ol_with_tcl_module != static ; then
2227 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2229 if test $ol_enable_slurpd = yes ; then
2230 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2233 # force settings to no
2242 ol_enable_modules=no
2243 ol_enable_multimaster=no
2244 ol_enable_phonetic=no
2246 ol_enable_rlookups=no
2248 ol_enable_discreteaci=no
2249 ol_enable_wrappers=no
2252 ol_with_ldbm_type=no
2254 ol_with_bdb2_module=static
2255 ol_with_ldap_module=static
2256 ol_with_ldbm_module=static
2257 ol_with_passwd_module=static
2258 ol_with_perl_module=static
2259 ol_with_shell_module=static
2260 ol_with_tcl_module=static
2264 elif test $ol_enable_ldbm = no ; then
2266 if test $ol_with_ldbm_api != auto ; then
2267 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2270 if test $ol_with_ldbm_type != auto ; then
2271 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2274 if test $ol_with_ldbm_module != static ; then
2275 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2278 if test $ol_enable_bdb2 = yes ; then
2279 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2282 if test $ol_enable_modules != yes -a \
2283 $ol_enable_ldap = no -a \
2284 $ol_enable_passwd = no -a \
2285 $ol_enable_perl = no -a \
2286 $ol_enable_shell = no -a \
2287 $ol_enable_tcl = no ; then
2288 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2292 ol_with_ldbm_type=no
2293 ol_with_ldbm_module=static
2295 elif test $ol_enable_bdb2 = yes ; then
2297 if test $ol_with_ldbm_api != auto -a \
2298 $ol_with_ldbm_api != db2 ; then
2299 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2302 ol_with_ldbm_api=db2
2306 if test $ol_enable_bdb2 != no ; then
2307 if test $ol_with_ldbm_api != auto -a \
2308 $ol_with_ldbm_api != db2 ; then
2309 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2314 if test $ol_with_ldbm_api = gdbm -a \
2315 $ol_with_ldbm_type = btree ; then
2316 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2318 if test $ol_with_ldbm_api = mdbm -a \
2319 $ol_with_ldbm_type = btree ; then
2320 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2322 if test $ol_with_ldbm_api = ndbm -a \
2323 $ol_with_ldbm_type = btree ; then
2324 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2328 if test $ol_enable_slurpd = yes ; then
2329 if test $ol_with_threads = no ; then
2330 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2334 echo "$ac_t""done" 1>&6
2361 BUILD_BDB2_DYNAMIC=static
2362 BUILD_LDAP_DYNAMIC=static
2363 BUILD_LDBM_DYNAMIC=static
2364 BUILD_PASSWD_DYNAMIC=static
2365 BUILD_PERL_DYNAMIC=static
2366 BUILD_SHELL_DYNAMIC=static
2367 BUILD_TCL_DYNAMIC=static
2369 SLAPD_MODULES_LDFLAGS=
2370 SLAPD_MODULES_CPPFLAGS=
2374 SLAPD_PERL_CPPFLAGS=
2385 cat >> confdefs.h <<\EOF
2386 #define HAVE_MKVERSION 1
2394 *-*-aix*) if test -z "$CC" ; then
2395 case "$ol_with_threads" in
2396 auto | yes | posix) ol_aix_threads=yes ;;
2402 if test $ol_aix_threads = yes ; then
2403 if test -z "${CC}" ; then
2404 for ac_prog in cc_r xlc_r cc
2406 # Extract the first word of "$ac_prog", so it can be a program name with args.
2407 set dummy $ac_prog; ac_word=$2
2408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2409 echo "configure:2410: checking for $ac_word" >&5
2410 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2418 for ac_dir in $ac_dummy; do
2419 test -z "$ac_dir" && ac_dir=.
2420 if test -f $ac_dir/$ac_word; then
2421 ac_cv_prog_CC="$ac_prog"
2429 if test -n "$CC"; then
2430 echo "$ac_t""$CC" 1>&6
2432 echo "$ac_t""no" 1>&6
2435 test -n "$CC" && break
2439 if test "$CC" = cc ; then
2440 if test $ol_with_threads != auto ; then
2441 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2443 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2449 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2450 ol_with_threads=posix
2451 ol_cv_pthread_create=yes
2455 if test -z "${CC}"; then
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_word" >&5
2462 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2470 for ac_dir in $ac_dummy; do
2471 test -z "$ac_dir" && ac_dir=.
2472 if test -f $ac_dir/$ac_word; then
2473 ac_cv_prog_CC="$ac_prog"
2481 if test -n "$CC"; then
2482 echo "$ac_t""$CC" 1>&6
2484 echo "$ac_t""no" 1>&6
2487 test -n "$CC" && break
2494 # Check whether --enable-fast-install or --disable-fast-install was given.
2495 if test "${enable_fast_install+set}" = set; then
2496 enableval="$enable_fast_install"
2497 p=${PACKAGE-default}
2498 case "$enableval" in
2499 yes) enable_fast_install=yes ;;
2500 no) enable_fast_install=no ;;
2502 enable_fast_install=no
2503 # Look at the argument we got. We use all the common list separators.
2504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2505 for pkg in $enableval; do
2506 if test "X$pkg" = "X$p"; then
2507 enable_fast_install=yes
2514 enable_fast_install=yes
2517 # Extract the first word of "ranlib", so it can be a program name with args.
2518 set dummy ranlib; ac_word=$2
2519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2520 echo "configure:2521: checking for $ac_word" >&5
2521 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 if test -n "$RANLIB"; then
2525 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2529 for ac_dir in $ac_dummy; do
2530 test -z "$ac_dir" && ac_dir=.
2531 if test -f $ac_dir/$ac_word; then
2532 ac_cv_prog_RANLIB="ranlib"
2537 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2540 RANLIB="$ac_cv_prog_RANLIB"
2541 if test -n "$RANLIB"; then
2542 echo "$ac_t""$RANLIB" 1>&6
2544 echo "$ac_t""no" 1>&6
2547 # Extract the first word of "gcc", so it can be a program name with args.
2548 set dummy gcc; ac_word=$2
2549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_word" >&5
2551 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2559 for ac_dir in $ac_dummy; do
2560 test -z "$ac_dir" && ac_dir=.
2561 if test -f $ac_dir/$ac_word; then
2570 if test -n "$CC"; then
2571 echo "$ac_t""$CC" 1>&6
2573 echo "$ac_t""no" 1>&6
2576 if test -z "$CC"; then
2577 # Extract the first word of "cc", so it can be a program name with args.
2578 set dummy cc; ac_word=$2
2579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_word" >&5
2581 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2590 for ac_dir in $ac_dummy; do
2591 test -z "$ac_dir" && ac_dir=.
2592 if test -f $ac_dir/$ac_word; then
2593 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2594 ac_prog_rejected=yes
2602 if test $ac_prog_rejected = yes; then
2603 # We found a bogon in the path, so make sure we never use it.
2604 set dummy $ac_cv_prog_CC
2606 if test $# -gt 0; then
2607 # We chose a different compiler from the bogus one.
2608 # However, it has the same basename, so the bogon will be chosen
2609 # first if we set CC to just the basename; use the full file name.
2611 set dummy "$ac_dir/$ac_word" "$@"
2619 if test -n "$CC"; then
2620 echo "$ac_t""$CC" 1>&6
2622 echo "$ac_t""no" 1>&6
2625 if test -z "$CC"; then
2626 case "`uname -s`" in
2627 *win32* | *WIN32* | *CYGWIN*)
2628 # Extract the first word of "cl", so it can be a program name with args.
2629 set dummy cl; ac_word=$2
2630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2631 echo "configure:2632: checking for $ac_word" >&5
2632 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2640 for ac_dir in $ac_dummy; do
2641 test -z "$ac_dir" && ac_dir=.
2642 if test -f $ac_dir/$ac_word; then
2651 if test -n "$CC"; then
2652 echo "$ac_t""$CC" 1>&6
2654 echo "$ac_t""no" 1>&6
2659 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2662 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2663 echo "configure:2664: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2667 ac_cpp='$CPP $CPPFLAGS'
2668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2670 cross_compiling=$ac_cv_prog_cc_cross
2672 cat > conftest.$ac_ext << EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2679 if { (eval echo configure:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2680 ac_cv_prog_cc_works=yes
2681 # If we can't run a trivial program, we are probably using a cross compiler.
2682 if (./conftest; exit) 2>/dev/null; then
2683 ac_cv_prog_cc_cross=no
2685 ac_cv_prog_cc_cross=yes
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2690 ac_cv_prog_cc_works=no
2694 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2697 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2698 cross_compiling=$ac_cv_prog_cc_cross
2700 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2701 if test $ac_cv_prog_cc_works = no; then
2702 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2705 echo "configure:2706: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2706 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2707 cross_compiling=$ac_cv_prog_cc_cross
2709 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2710 echo "configure:2711: checking whether we are using GNU C" >&5
2711 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 cat > conftest.c <<EOF
2719 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2726 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2728 if test $ac_cv_prog_gcc = yes; then
2734 ac_test_CFLAGS="${CFLAGS+set}"
2735 ac_save_CFLAGS="$CFLAGS"
2737 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2738 echo "configure:2739: checking whether ${CC-cc} accepts -g" >&5
2739 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2740 echo $ac_n "(cached) $ac_c" 1>&6
2742 echo 'void f(){}' > conftest.c
2743 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2752 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2753 if test "$ac_test_CFLAGS" = set; then
2754 CFLAGS="$ac_save_CFLAGS"
2755 elif test $ac_cv_prog_cc_g = yes; then
2756 if test "$GCC" = yes; then
2762 if test "$GCC" = yes; then
2769 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2770 if test "${with_gnu_ld+set}" = set; then
2771 withval="$with_gnu_ld"
2772 test "$withval" = no || with_gnu_ld=yes
2778 if test "$ac_cv_prog_gcc" = yes; then
2779 # Check if gcc -print-prog-name=ld gives a path.
2780 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2781 echo "configure:2782: checking for ld used by GCC" >&5
2782 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2784 # Accept absolute paths.
2785 [\\/]* | [A-Za-z]:[\\/]*)
2786 re_direlt='/[^/][^/]*/\.\./'
2787 # Canonicalize the path of ld
2788 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2789 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2790 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2792 test -z "$LD" && LD="$ac_prog"
2795 # If it fails, then pretend we aren't using GCC.
2799 # If it is relative, then search for the first ld in PATH.
2803 elif test "$with_gnu_ld" = yes; then
2804 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2805 echo "configure:2806: checking for GNU ld" >&5
2807 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2808 echo "configure:2809: checking for non-GNU ld" >&5
2810 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 if test -z "$LD"; then
2814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2815 for ac_dir in $PATH; do
2816 test -z "$ac_dir" && ac_dir=.
2817 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2818 ac_cv_path_LD="$ac_dir/$ac_prog"
2819 # Check to see if the program is GNU ld. I'd rather use --version,
2820 # but apparently some GNU ld's only accept -v.
2821 # Break only if it was the GNU/non-GNU ld that we prefer.
2822 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2823 test "$with_gnu_ld" != no && break
2825 test "$with_gnu_ld" != yes && break
2831 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2836 if test -n "$LD"; then
2837 echo "$ac_t""$LD" 1>&6
2839 echo "$ac_t""no" 1>&6
2841 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2843 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2844 echo "configure:2845: checking if the linker ($LD) is GNU ld" >&5
2845 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2849 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2850 ac_cv_prog_gnu_ld=yes
2852 ac_cv_prog_gnu_ld=no
2856 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2859 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2860 echo "configure:2861: checking for BSD-compatible nm" >&5
2861 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2864 if test -n "$NM"; then
2865 # Let the user override the test.
2868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2869 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2870 test -z "$ac_dir" && ac_dir=.
2871 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2872 # Check to see if the nm accepts a BSD-compat flag.
2873 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2874 # nm: unknown option "B" ignored
2875 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2876 ac_cv_path_NM="$ac_dir/nm -B"
2878 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2879 ac_cv_path_NM="$ac_dir/nm -p"
2882 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2883 continue # so that we can try to find one that supports BSD flags
2888 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2893 echo "$ac_t""$NM" 1>&6
2896 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2897 echo "configure:2898: checking whether ln -s works" >&5
2898 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2902 if ln -s X conftestdata 2>/dev/null
2905 ac_cv_prog_LN_S="ln -s"
2910 LN_S="$ac_cv_prog_LN_S"
2911 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2912 echo "$ac_t""yes" 1>&6
2914 echo "$ac_t""no" 1>&6
2918 # Check for any special flags to pass to ltconfig.
2919 libtool_flags="--cache-file=$cache_file"
2920 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2921 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2922 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2923 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2924 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2925 libtool_flags="$libtool_flags --enable-dlopen"
2927 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2928 if test "${enable_libtool_lock+set}" = set; then
2929 enableval="$enable_libtool_lock"
2933 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2934 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2936 # Some flags need to be propagated to the compiler or linker for good
2940 # Find out which ABI we are using.
2941 echo '#line 2942 "configure"' > conftest.$ac_ext
2942 if { (eval echo configure:2943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2943 case "`/usr/bin/file conftest.o`" in
2959 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2960 SAVE_CFLAGS="$CFLAGS"
2961 CFLAGS="$CFLAGS -belf"
2962 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2963 echo "configure:2964: checking whether the C compiler needs -belf" >&5
2964 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2975 if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2977 lt_cv_cc_needs_belf=yes
2979 echo "configure: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2982 lt_cv_cc_needs_belf=no
2987 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2988 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2989 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2990 CFLAGS="$SAVE_CFLAGS"
2998 # Save cache, so that ltconfig can load it
3001 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3002 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3003 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3004 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3005 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3006 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3007 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3008 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3010 # Reload cache, that may have been modified by ltconfig
3013 # This can be used to rebuild libtool when needed
3014 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3016 # Always use our own libtool.
3017 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3019 # Redirect the config.log output again, so that the ltconfig log is not
3020 # clobbered by the next message.
3021 exec 5>>./config.log
3024 for ac_prog in mawk gawk nawk awk
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3029 echo "configure:3030: checking for $ac_word" >&5
3030 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 if test -n "$AWK"; then
3034 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3038 for ac_dir in $ac_dummy; do
3039 test -z "$ac_dir" && ac_dir=.
3040 if test -f $ac_dir/$ac_word; then
3041 ac_cv_prog_AWK="$ac_prog"
3048 AWK="$ac_cv_prog_AWK"
3049 if test -n "$AWK"; then
3050 echo "$ac_t""$AWK" 1>&6
3052 echo "$ac_t""no" 1>&6
3055 test -n "$AWK" && break
3058 # test for ln hardlink support
3059 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3060 echo "configure:3061: checking whether ln works" >&5
3061 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3062 echo $ac_n "(cached) $ac_c" 1>&6
3064 rm -f conftest.src conftest.dst
3065 echo "conftest" > conftest.src
3066 if ln conftest.src conftest.dst 2>/dev/null
3068 ol_cv_prog_LN_H="ln"
3070 ol_cv_prog_LN_H="cp"
3072 rm -f conftest.src conftest.dst
3075 LN_H="$ol_cv_prog_LN_H"
3076 if test "$ol_cv_prog_LN_H" = "ln"; then
3077 echo "$ac_t""yes" 1>&6
3079 echo "$ac_t""no" 1>&6
3082 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3083 echo "configure:3084: checking whether ln -s works" >&5
3084 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3088 if ln -s X conftestdata 2>/dev/null
3091 ac_cv_prog_LN_S="ln -s"
3096 LN_S="$ac_cv_prog_LN_S"
3097 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3098 echo "$ac_t""yes" 1>&6
3100 echo "$ac_t""no" 1>&6
3104 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3108 # Extract the first word of "sendmail", so it can be a program name with args.
3109 set dummy sendmail; ac_word=$2
3110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3111 echo "configure:3112: checking for $ac_word" >&5
3112 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3117 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3120 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3124 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3125 for ac_dir in $ac_dummy; do
3126 test -z "$ac_dir" && ac_dir=.
3127 if test -f $ac_dir/$ac_word; then
3128 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3133 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3137 SENDMAIL="$ac_cv_path_SENDMAIL"
3138 if test -n "$SENDMAIL"; then
3139 echo "$ac_t""$SENDMAIL" 1>&6
3141 echo "$ac_t""no" 1>&6
3144 # Extract the first word of "vi", so it can be a program name with args.
3145 set dummy vi; ac_word=$2
3146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3147 echo "configure:3148: checking for $ac_word" >&5
3148 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3153 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3156 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3160 ac_dummy="$PATH:/usr/ucb"
3161 for ac_dir in $ac_dummy; do
3162 test -z "$ac_dir" && ac_dir=.
3163 if test -f $ac_dir/$ac_word; then
3164 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3169 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3173 EDITOR="$ac_cv_path_EDITOR"
3174 if test -n "$EDITOR"; then
3175 echo "$ac_t""$EDITOR" 1>&6
3177 echo "$ac_t""no" 1>&6
3180 # Extract the first word of "finger", so it can be a program name with args.
3181 set dummy finger; ac_word=$2
3182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3183 echo "configure:3184: checking for $ac_word" >&5
3184 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3189 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3192 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3196 ac_dummy="$PATH:/usr/ucb"
3197 for ac_dir in $ac_dummy; do
3198 test -z "$ac_dir" && ac_dir=.
3199 if test -f $ac_dir/$ac_word; then
3200 ac_cv_path_FINGER="$ac_dir/$ac_word"
3205 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3209 FINGER="$ac_cv_path_FINGER"
3210 if test -n "$FINGER"; then
3211 echo "$ac_t""$FINGER" 1>&6
3213 echo "$ac_t""no" 1>&6
3218 if test $ol_enable_perl != no ; then
3219 # Extract the first word of "perl", so it can be a program name with args.
3220 set dummy perl; ac_word=$2
3221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_word" >&5
3223 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3228 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3231 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3236 for ac_dir in $ac_dummy; do
3237 test -z "$ac_dir" && ac_dir=.
3238 if test -f $ac_dir/$ac_word; then
3239 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3244 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3248 PERLBIN="$ac_cv_path_PERLBIN"
3249 if test -n "$PERLBIN"; then
3250 echo "$ac_t""$PERLBIN" 1>&6
3252 echo "$ac_t""no" 1>&6
3256 if test "no$PERLBIN" = "no" ; then
3257 if test $ol_enable_perl = yes ; then
3258 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3262 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3263 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3269 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3270 echo "configure:3271: checking how to run the C preprocessor" >&5
3271 # On Suns, sometimes $CPP names a directory.
3272 if test -n "$CPP" && test -d "$CPP"; then
3275 if test -z "$CPP"; then
3276 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3279 # This must be in double quotes, not single quotes, because CPP may get
3280 # substituted into the Makefile and "${CC-cc}" will confuse make.
3282 # On the NeXT, cc -E runs the code through the compiler's parser,
3283 # not just through cpp.
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3291 { (eval echo configure:3292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3293 if test -z "$ac_err"; then
3297 echo "configure: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3300 CPP="${CC-cc} -E -traditional-cpp"
3301 cat > conftest.$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3308 { (eval echo configure:3309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3310 if test -z "$ac_err"; then
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3317 CPP="${CC-cc} -nologo -E"
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3325 { (eval echo configure:3326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3327 if test -z "$ac_err"; then
3331 echo "configure: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3341 ac_cv_prog_CPP="$CPP"
3343 CPP="$ac_cv_prog_CPP"
3345 ac_cv_prog_CPP="$CPP"
3347 echo "$ac_t""$CPP" 1>&6
3350 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3351 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3353 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3354 echo "configure: warning: programs compiled here do run here..." 1>&2
3355 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3357 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3358 echo "configure: warning: programs compiled here do not run here..." 1>&2
3359 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3362 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3363 echo "configure:3364: checking for AIX" >&5
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3373 egrep "yes" >/dev/null 2>&1; then
3375 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3376 #define _ALL_SOURCE 1
3381 echo "$ac_t""no" 1>&6
3386 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3387 echo "configure:3388: checking for POSIXized ISC" >&5
3388 if test -d /etc/conf/kconfig.d &&
3389 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3391 echo "$ac_t""yes" 1>&6
3392 ISC=yes # If later tests want to check for ISC.
3393 cat >> confdefs.h <<\EOF
3394 #define _POSIX_SOURCE 1
3397 if test "$GCC" = yes; then
3403 echo "$ac_t""no" 1>&6
3407 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3408 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3409 echo "configure:3410: checking for minix/config.h" >&5
3410 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 #include <minix/config.h>
3418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3419 { (eval echo configure:3420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3421 if test -z "$ac_err"; then
3423 eval "ac_cv_header_$ac_safe=yes"
3426 echo "configure: failed program was:" >&5
3427 cat conftest.$ac_ext >&5
3429 eval "ac_cv_header_$ac_safe=no"
3433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3437 echo "$ac_t""no" 1>&6
3441 if test "$MINIX" = yes; then
3442 cat >> confdefs.h <<\EOF
3443 #define _POSIX_SOURCE 1
3446 cat >> confdefs.h <<\EOF
3447 #define _POSIX_1_SOURCE 2
3450 cat >> confdefs.h <<\EOF
3457 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3458 echo "configure:3459: checking for Cygwin environment" >&5
3459 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3469 #define __CYGWIN__ __CYGWIN32__
3474 if { (eval echo configure:3475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3486 echo "$ac_t""$ac_cv_cygwin" 1>&6
3488 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3489 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3490 echo "configure:3491: checking for mingw32 environment" >&5
3491 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3494 cat > conftest.$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3502 if { (eval echo configure:3503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506 echo "configure: failed program was:" >&5
3507 cat conftest.$ac_ext >&5
3514 echo "$ac_t""$ac_cv_mingw32" 1>&6
3516 test "$ac_cv_mingw32" = yes && MINGW32=yes
3517 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3518 echo "configure:3519: checking for EMX OS/2 environment" >&5
3519 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3530 if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3542 echo "$ac_t""$ac_cv_emxos2" 1>&6
3544 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3548 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3549 echo "configure:3550: checking for executable suffix" >&5
3550 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3557 echo 'int main () { return 0; }' > conftest.$ac_ext
3559 if { (eval echo configure:3560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3560 for file in conftest.*; do
3562 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3563 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3567 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3570 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3575 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3576 echo "$ac_t""${ac_cv_exeext}" 1>&6
3579 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3580 echo "configure:3581: checking for object suffix" >&5
3581 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3585 echo 'int i = 1;' > conftest.$ac_ext
3586 if { (eval echo configure:3587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587 for ac_file in conftest.*; do
3590 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3594 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3599 echo "$ac_t""$ac_cv_objext" 1>&6
3600 OBJEXT=$ac_cv_objext
3601 ac_objext=$ac_cv_objext
3604 cat >> confdefs.h <<EOF
3605 #define EXEEXT "${EXEEXT}"
3609 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3610 echo "configure:3611: checking for be_app in -lbe" >&5
3611 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3612 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3615 ac_save_LIBS="$LIBS"
3616 LIBS="-lbe -lroot -lnet $LIBS"
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 /* Override any gcc2 internal prototype to avoid an error. */
3621 /* We use char because int might match the return type of a gcc2
3622 builtin and then its argument prototype would still apply. */
3629 if { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3631 eval "ac_cv_lib_$ac_lib_var=yes"
3633 echo "configure: failed program was:" >&5
3634 cat conftest.$ac_ext >&5
3636 eval "ac_cv_lib_$ac_lib_var=no"
3639 LIBS="$ac_save_LIBS"
3642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3643 echo "$ac_t""yes" 1>&6
3644 LIBS="$LIBS -lbe -lroot -lnet"
3646 echo "$ac_t""no" 1>&6
3654 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3655 echo "configure:3656: checking for ${CC-cc} option to accept ANSI C" >&5
3656 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 am_cv_prog_cc_stdc=no
3661 # Don't try gcc -ansi; that turns off useful extensions and
3662 # breaks some systems' header files.
3663 # AIX -qlanglvl=ansi
3664 # Ultrix and OSF/1 -std1
3665 # HP-UX 10.20 and later -Ae
3666 # HP-UX older versions -Aa -D_HPUX_SOURCE
3667 # SVR4 -Xc -D__EXTENSIONS__
3668 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3670 CC="$ac_save_CC $ac_arg"
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3676 #include <sys/types.h>
3677 #include <sys/stat.h>
3678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3679 struct buf { int x; };
3680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3681 static char *e (p, i)
3687 static char *f (char * (*g) (char **, int), char **p, ...)
3692 s = g (p, va_arg (v,int));
3696 int test (int i, double x);
3697 struct s1 {int (*f) (int a);};
3698 struct s2 {int (*f) (double a);};
3699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3705 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3709 if { (eval echo configure:3710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3711 am_cv_prog_cc_stdc="$ac_arg"; break
3713 echo "configure: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
3722 if test -z "$am_cv_prog_cc_stdc"; then
3723 echo "$ac_t""none needed" 1>&6
3725 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3727 case "x$am_cv_prog_cc_stdc" in
3729 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3732 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3733 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3736 # test for make depend flag
3739 if test -z "${MKDEP}"; then
3741 if test -z "${MKDEP_FLAGS}"; then
3742 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3743 echo "configure:3744: checking for ${OL_MKDEP} depend flag" >&5
3744 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3749 for flag in "-M" "-xM"; do
3750 cat > conftest.c <<EOF
3753 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3754 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3756 if test ! -f conftest."${ac_object}" ; then
3758 OL_MKDEP_FLAGS="$flag"
3767 echo "$ac_t""$ol_cv_mkdep" 1>&6
3770 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3775 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3780 if test "${ol_cv_mkdep}" = no ; then
3781 # this will soon become an error
3782 echo "configure: warning: do not know how to generate dependencies" 1>&2
3786 if test $ol_enable_modules != no ; then
3787 for ac_hdr in ltdl.h
3789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3791 echo "configure:3792: checking for $ac_hdr" >&5
3792 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3801 { (eval echo configure:3802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3803 if test -z "$ac_err"; then
3805 eval "ac_cv_header_$ac_safe=yes"
3808 echo "configure: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3811 eval "ac_cv_header_$ac_safe=no"
3815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3816 echo "$ac_t""yes" 1>&6
3817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3818 cat >> confdefs.h <<EOF
3819 #define $ac_tr_hdr 1
3823 echo "$ac_t""no" 1>&6
3828 if test $ac_cv_header_ltdl_h = no ; then
3829 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3833 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3834 echo "configure:3835: checking for lt_dlinit in -lltdl" >&5
3835 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3836 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3839 ac_save_LIBS="$LIBS"
3841 cat > conftest.$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3844 /* Override any gcc2 internal prototype to avoid an error. */
3845 /* We use char because int might match the return type of a gcc2
3846 builtin and then its argument prototype would still apply. */
3853 if { (eval echo configure:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3855 eval "ac_cv_lib_$ac_lib_var=yes"
3857 echo "configure: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3860 eval "ac_cv_lib_$ac_lib_var=no"
3863 LIBS="$ac_save_LIBS"
3866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3867 echo "$ac_t""yes" 1>&6
3868 ac_tr_lib=HAVE_LIB`echo ltdl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3869 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3870 cat >> confdefs.h <<EOF
3871 #define $ac_tr_lib 1
3877 echo "$ac_t""no" 1>&6
3880 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
3881 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
3885 ol_with_bdb2_module=static
3886 ol_with_ldap_module=static
3887 ol_with_ldbm_module=static
3888 ol_with_passwd_module=static
3889 ol_with_perl_module=static
3890 ol_with_shell_module=static
3891 ol_with_tcl_module=static
3895 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3896 echo "configure:3897: checking for EBCDIC" >&5
3897 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3906 #include <__ASCII__/generate_error.h>
3910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3911 { (eval echo configure:3912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3913 if test -z "$ac_err"; then
3915 ol_cv_cpp_ebcdic=yes
3918 echo "configure: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3926 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3927 if test $ol_cv_cpp_ebcdic = yes ; then
3928 cat >> confdefs.h <<\EOF
3929 #define HAVE_EBCDIC 1
3934 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3935 echo "configure:3936: checking for ANSI C header files" >&5
3936 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3939 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3948 { (eval echo configure:3949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3950 if test -z "$ac_err"; then
3952 ol_cv_header_stdc=yes
3955 echo "configure: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3958 ol_cv_header_stdc=no
3962 if test $ol_cv_header_stdc = yes; then
3963 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3970 egrep "memchr" >/dev/null 2>&1; then
3974 ol_cv_header_stdc=no
3980 if test $ol_cv_header_stdc = yes; then
3981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3982 cat > conftest.$ac_ext <<EOF
3983 #line 3984 "configure"
3984 #include "confdefs.h"
3987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3988 egrep "free" >/dev/null 2>&1; then
3992 ol_cv_header_stdc=no
3998 if test $ol_cv_header_stdc = yes; then
3999 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4000 if test "$cross_compiling" = yes; then
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4008 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4009 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4011 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4012 || ('j' <= (c) && (c) <= 'r') \
4013 || ('s' <= (c) && (c) <= 'z'))
4014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4016 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4017 int main () { int i; for (i = 0; i < 256; i++)
4018 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4022 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4029 ol_cv_header_stdc=no
4037 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4038 if test $ol_cv_header_stdc = yes; then
4039 cat >> confdefs.h <<\EOF
4040 #define STDC_HEADERS 1
4044 ac_cv_header_stdc=disable
4047 if test $ol_cv_header_stdc != yes; then
4048 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4052 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4055 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4056 echo "configure:4057: checking for $ac_hdr that defines DIR" >&5
4057 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 #include <sys/types.h>
4069 if { (eval echo configure:4070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4071 eval "ac_cv_header_dirent_$ac_safe=yes"
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4076 eval "ac_cv_header_dirent_$ac_safe=no"
4080 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4081 echo "$ac_t""yes" 1>&6
4082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4083 cat >> confdefs.h <<EOF
4084 #define $ac_tr_hdr 1
4086 ac_header_dirent=$ac_hdr; break
4088 echo "$ac_t""no" 1>&6
4091 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4092 if test $ac_header_dirent = dirent.h; then
4093 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4094 echo "configure:4095: checking for opendir in -ldir" >&5
4095 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4096 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 ac_save_LIBS="$LIBS"
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 /* Override any gcc2 internal prototype to avoid an error. */
4105 /* We use char because int might match the return type of a gcc2
4106 builtin and then its argument prototype would still apply. */
4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4115 eval "ac_cv_lib_$ac_lib_var=yes"
4117 echo "configure: failed program was:" >&5
4118 cat conftest.$ac_ext >&5
4120 eval "ac_cv_lib_$ac_lib_var=no"
4123 LIBS="$ac_save_LIBS"
4126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4127 echo "$ac_t""yes" 1>&6
4130 echo "$ac_t""no" 1>&6
4134 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4135 echo "configure:4136: checking for opendir in -lx" >&5
4136 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4137 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 ac_save_LIBS="$LIBS"
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4156 eval "ac_cv_lib_$ac_lib_var=yes"
4158 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4161 eval "ac_cv_lib_$ac_lib_var=no"
4164 LIBS="$ac_save_LIBS"
4167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4168 echo "$ac_t""yes" 1>&6
4171 echo "$ac_t""no" 1>&6
4176 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4177 echo "configure:4178: checking for sys/wait.h that is POSIX.1 compatible" >&5
4178 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 #include <sys/types.h>
4185 #include <sys/wait.h>
4187 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4190 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4195 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4198 if { (eval echo configure:4199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4200 ac_cv_header_sys_wait_h=yes
4202 echo "configure: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4205 ac_cv_header_sys_wait_h=no
4210 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4211 if test $ac_cv_header_sys_wait_h = yes; then
4212 cat >> confdefs.h <<\EOF
4213 #define HAVE_SYS_WAIT_H 1
4218 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4219 echo "configure:4220: checking POSIX termios" >&5
4220 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4226 #include <sys/types.h>
4228 #include <termios.h>
4230 /* SunOS 4.0.3 has termios.h but not the library calls. */
4234 if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4236 am_cv_sys_posix_termios=yes
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4241 am_cv_sys_posix_termios=no
4246 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4249 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4250 echo "configure:4251: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4251 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4254 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4256 gwinsz_in_termios_h=no
4257 if test $am_cv_sys_posix_termios = yes; then
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 #include <sys/types.h>
4262 # include <termios.h>
4268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4269 egrep "yes" >/dev/null 2>&1; then
4271 gwinsz_in_termios_h=yes
4277 if test $gwinsz_in_termios_h = no; then
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 #include <sys/types.h>
4282 # include <sys/ioctl.h>
4288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4289 egrep "yes" >/dev/null 2>&1; then
4291 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4299 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4300 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4301 cat >> confdefs.h <<\EOF
4302 #define GWINSZ_IN_SYS_IOCTL 1
4307 if test $am_cv_sys_posix_termios = yes ; then
4308 cat >> confdefs.h <<\EOF
4309 #define HAVE_POSIX_TERMIOS 1
4355 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4356 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4357 echo "configure:4358: checking for $ac_hdr" >&5
4358 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4361 cat > conftest.$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4367 { (eval echo configure:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4369 if test -z "$ac_err"; then
4371 eval "ac_cv_header_$ac_safe=yes"
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4377 eval "ac_cv_header_$ac_safe=no"
4381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4382 echo "$ac_t""yes" 1>&6
4383 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4384 cat >> confdefs.h <<EOF
4385 #define $ac_tr_hdr 1
4389 echo "$ac_t""no" 1>&6
4396 echo $ac_n "checking for socket""... $ac_c" 1>&6
4397 echo "configure:4398: checking for socket" >&5
4398 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4404 /* System header to define __stub macros and hopefully few prototypes,
4405 which can conflict with char socket(); below. */
4407 /* Override any gcc2 internal prototype to avoid an error. */
4408 /* We use char because int might match the return type of a gcc2
4409 builtin and then its argument prototype would still apply. */
4415 /* The GNU C library defines this for functions which it implements
4416 to always fail with ENOSYS. Some functions are actually named
4417 something starting with __ and the normal name is an alias. */
4418 #if defined (__stub_socket) || defined (__stub___socket)
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4428 eval "ac_cv_func_socket=yes"
4430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4433 eval "ac_cv_func_socket=no"
4438 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4439 echo "$ac_t""yes" 1>&6
4442 echo "$ac_t""no" 1>&6
4444 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4445 echo "configure:4446: checking for main in -lsocket" >&5
4446 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4447 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 ac_save_LIBS="$LIBS"
4451 LIBS="-lsocket $LIBS"
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4460 if { (eval echo configure:4461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4462 eval "ac_cv_lib_$ac_lib_var=yes"
4464 echo "configure: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4467 eval "ac_cv_lib_$ac_lib_var=no"
4470 LIBS="$ac_save_LIBS"
4473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4474 echo "$ac_t""yes" 1>&6
4475 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4477 cat >> confdefs.h <<EOF
4478 #define $ac_tr_lib 1
4481 LIBS="-lsocket $LIBS"
4484 echo "$ac_t""no" 1>&6
4487 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4488 echo "configure:4489: checking for main in -lnet" >&5
4489 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4490 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 ac_save_LIBS="$LIBS"
4495 cat > conftest.$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4505 eval "ac_cv_lib_$ac_lib_var=yes"
4507 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4510 eval "ac_cv_lib_$ac_lib_var=no"
4513 LIBS="$ac_save_LIBS"
4516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4517 echo "$ac_t""yes" 1>&6
4518 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4519 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4520 cat >> confdefs.h <<EOF
4521 #define $ac_tr_lib 1
4527 echo "$ac_t""no" 1>&6
4530 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4531 echo "configure:4532: checking for socket in -lnet" >&5
4532 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
4533 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 ac_save_LIBS="$LIBS"
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552 eval "ac_cv_lib_$ac_lib_var=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4557 eval "ac_cv_lib_$ac_lib_var=no"
4560 LIBS="$ac_save_LIBS"
4563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4566 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4567 cat >> confdefs.h <<EOF
4568 #define $ac_tr_lib 1
4574 echo "$ac_t""no" 1>&6
4577 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4578 echo "configure:4579: checking for main in -lnsl_s" >&5
4579 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4580 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 ac_save_LIBS="$LIBS"
4584 LIBS="-lnsl_s $LIBS"
4585 cat > conftest.$ac_ext <<EOF
4586 #line 4587 "configure"
4587 #include "confdefs.h"
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4595 eval "ac_cv_lib_$ac_lib_var=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4600 eval "ac_cv_lib_$ac_lib_var=no"
4603 LIBS="$ac_save_LIBS"
4606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4607 echo "$ac_t""yes" 1>&6
4608 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4609 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4610 cat >> confdefs.h <<EOF
4611 #define $ac_tr_lib 1
4614 LIBS="-lnsl_s $LIBS"
4617 echo "$ac_t""no" 1>&6
4620 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4621 echo "configure:4622: checking for main in -lnsl" >&5
4622 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4623 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 ac_save_LIBS="$LIBS"
4628 cat > conftest.$ac_ext <<EOF
4629 #line 4630 "configure"
4630 #include "confdefs.h"
4636 if { (eval echo configure:4637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4638 eval "ac_cv_lib_$ac_lib_var=yes"
4640 echo "configure: failed program was:" >&5
4641 cat conftest.$ac_ext >&5
4643 eval "ac_cv_lib_$ac_lib_var=no"
4646 LIBS="$ac_save_LIBS"
4649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4652 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4653 cat >> confdefs.h <<EOF
4654 #define $ac_tr_lib 1
4660 echo "$ac_t""no" 1>&6
4663 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4664 echo "configure:4665: checking for socket in -linet" >&5
4665 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4666 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 ac_save_LIBS="$LIBS"
4671 cat > conftest.$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4674 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4683 if { (eval echo configure:4684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4685 eval "ac_cv_lib_$ac_lib_var=yes"
4687 echo "configure: failed program was:" >&5
4688 cat conftest.$ac_ext >&5
4690 eval "ac_cv_lib_$ac_lib_var=no"
4693 LIBS="$ac_save_LIBS"
4696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4697 echo "$ac_t""yes" 1>&6
4698 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4699 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4700 cat >> confdefs.h <<EOF
4701 #define $ac_tr_lib 1
4707 echo "$ac_t""no" 1>&6
4710 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4711 echo "configure:4712: checking for main in -lgen" >&5
4712 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4713 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 ac_save_LIBS="$LIBS"
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4726 if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4728 eval "ac_cv_lib_$ac_lib_var=yes"
4730 echo "configure: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4733 eval "ac_cv_lib_$ac_lib_var=no"
4736 LIBS="$ac_save_LIBS"
4739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4742 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4743 cat >> confdefs.h <<EOF
4744 #define $ac_tr_lib 1
4750 echo "$ac_t""no" 1>&6
4757 echo $ac_n "checking for select""... $ac_c" 1>&6
4758 echo "configure:4759: checking for select" >&5
4759 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 /* System header to define __stub macros and hopefully few prototypes,
4766 which can conflict with char select(); below. */
4768 /* Override any gcc2 internal prototype to avoid an error. */
4769 /* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */
4776 /* The GNU C library defines this for functions which it implements
4777 to always fail with ENOSYS. Some functions are actually named
4778 something starting with __ and the normal name is an alias. */
4779 #if defined (__stub_select) || defined (__stub___select)
4787 if { (eval echo configure:4788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4789 eval "ac_cv_func_select=yes"
4791 echo "configure: failed program was:" >&5
4792 cat conftest.$ac_ext >&5
4794 eval "ac_cv_func_select=no"
4799 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4800 echo "$ac_t""yes" 1>&6
4803 echo "$ac_t""no" 1>&6
4804 { echo "configure: error: select() required." 1>&2; exit 1; }
4808 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4809 echo "configure:4810: checking types of arguments for select()" >&5
4810 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4813 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4819 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4820 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4821 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4825 #ifdef HAVE_SYS_TYPES_H
4826 #include <sys/types.h>
4828 #ifdef HAVE_SYS_TIME_H
4829 #include <sys/time.h>
4831 #ifdef HAVE_SYS_SELECT_H
4832 #include <sys/select.h>
4834 #ifdef HAVE_SYS_SOCKET_H
4835 #include <sys/socket.h>
4837 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);
4842 if { (eval echo configure:4843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4844 ac_not_found=no ; break 3
4846 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4861 if test "$ac_not_found" = yes; then
4862 ac_cv_func_select_arg1=int
4863 ac_cv_func_select_arg234='int *'
4864 ac_cv_func_select_arg5='struct timeval *'
4866 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4867 cat >> confdefs.h <<EOF
4868 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4871 cat >> confdefs.h <<EOF
4872 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4875 cat >> confdefs.h <<EOF
4876 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4882 for ac_hdr in regex.h
4884 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4885 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4886 echo "configure:4887: checking for $ac_hdr" >&5
4887 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4896 { (eval echo configure:4897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4898 if test -z "$ac_err"; then
4900 eval "ac_cv_header_$ac_safe=yes"
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4906 eval "ac_cv_header_$ac_safe=no"
4910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4912 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4913 cat >> confdefs.h <<EOF
4914 #define $ac_tr_hdr 1
4918 echo "$ac_t""no" 1>&6
4922 if test "$ac_cv_header_regex_h" != yes ; then
4923 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4925 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4926 echo "configure:4927: checking for regfree" >&5
4927 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4933 /* System header to define __stub macros and hopefully few prototypes,
4934 which can conflict with char regfree(); below. */
4936 /* Override any gcc2 internal prototype to avoid an error. */
4937 /* We use char because int might match the return type of a gcc2
4938 builtin and then its argument prototype would still apply. */
4944 /* The GNU C library defines this for functions which it implements
4945 to always fail with ENOSYS. Some functions are actually named
4946 something starting with __ and the normal name is an alias. */
4947 #if defined (__stub_regfree) || defined (__stub___regfree)
4955 if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4957 eval "ac_cv_func_regfree=yes"
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4962 eval "ac_cv_func_regfree=no"
4967 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4968 echo "$ac_t""yes" 1>&6
4971 echo "$ac_t""no" 1>&6
4972 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4977 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4978 echo "configure:4979: checking for compatible POSIX regex" >&5
4979 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
4980 echo $ac_n "(cached) $ac_c" 1>&6
4983 if test "$cross_compiling" = yes; then
4984 ol_cv_c_posix_regex=cross
4986 cat > conftest.$ac_ext <<EOF
4987 #line 4988 "configure"
4988 #include "confdefs.h"
4990 #include <sys/types.h>
4992 static char *pattern, *string;
5000 if(regcomp(&re, pattern, 0)) {
5004 string = "ALL MATCH";
5006 rc = regexec(&re, string, 0, (void*)0, 0);
5013 if { (eval echo configure:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5015 ol_cv_c_posix_regex=yes
5017 echo "configure: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5020 ol_cv_c_posix_regex=no
5027 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5029 if test "$ol_cv_c_posix_regex" = no ; then
5030 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5033 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5034 echo "configure:5035: checking for sigset in -lV3" >&5
5035 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5036 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5039 ac_save_LIBS="$LIBS"
5041 cat > conftest.$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5044 /* Override any gcc2 internal prototype to avoid an error. */
5045 /* We use char because int might match the return type of a gcc2
5046 builtin and then its argument prototype would still apply. */
5053 if { (eval echo configure:5054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5055 eval "ac_cv_lib_$ac_lib_var=yes"
5057 echo "configure: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5060 eval "ac_cv_lib_$ac_lib_var=no"
5063 LIBS="$ac_save_LIBS"
5066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5067 echo "$ac_t""yes" 1>&6
5068 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5069 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5070 cat >> confdefs.h <<EOF
5071 #define $ac_tr_lib 1
5077 echo "$ac_t""no" 1>&6
5081 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5082 echo "configure:5083: checking for res_search" >&5
5083 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5086 cat > conftest.$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5089 /* System header to define __stub macros and hopefully few prototypes,
5090 which can conflict with char res_search(); below. */
5092 /* Override any gcc2 internal prototype to avoid an error. */
5093 /* We use char because int might match the return type of a gcc2
5094 builtin and then its argument prototype would still apply. */
5100 /* The GNU C library defines this for functions which it implements
5101 to always fail with ENOSYS. Some functions are actually named
5102 something starting with __ and the normal name is an alias. */
5103 #if defined (__stub_res_search) || defined (__stub___res_search)
5111 if { (eval echo configure:5112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5113 eval "ac_cv_func_res_search=yes"
5115 echo "configure: failed program was:" >&5
5116 cat conftest.$ac_ext >&5
5118 eval "ac_cv_func_res_search=no"
5123 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5124 echo "$ac_t""yes" 1>&6
5127 echo "$ac_t""no" 1>&6
5130 if test $ac_cv_func_res_search = no ; then
5131 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5132 echo "configure:5133: checking for res_search in -lbind" >&5
5133 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5134 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5137 ac_save_LIBS="$LIBS"
5139 cat > conftest.$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5142 /* Override any gcc2 internal prototype to avoid an error. */
5143 /* We use char because int might match the return type of a gcc2
5144 builtin and then its argument prototype would still apply. */
5151 if { (eval echo configure:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5153 eval "ac_cv_lib_$ac_lib_var=yes"
5155 echo "configure: failed program was:" >&5
5156 cat conftest.$ac_ext >&5
5158 eval "ac_cv_lib_$ac_lib_var=no"
5161 LIBS="$ac_save_LIBS"
5164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5166 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5168 cat >> confdefs.h <<EOF
5169 #define $ac_tr_lib 1
5175 echo "$ac_t""no" 1>&6
5178 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5181 if test $ac_cv_func_res_search = no ; then
5182 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5183 echo "configure:5184: checking for __res_search in -lbind" >&5
5184 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5185 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6
5188 ac_save_LIBS="$LIBS"
5190 cat > conftest.$ac_ext <<EOF
5191 #line 5192 "configure"
5192 #include "confdefs.h"
5193 /* Override any gcc2 internal prototype to avoid an error. */
5194 /* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
5196 char __res_search();
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 bind | 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
5229 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5232 if test $ac_cv_func_res_search = no ; then
5233 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5234 echo "configure:5235: checking for res_search in -lresolv" >&5
5235 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5236 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5237 echo $ac_n "(cached) $ac_c" 1>&6
5239 ac_save_LIBS="$LIBS"
5240 LIBS="-lresolv $LIBS"
5241 cat > conftest.$ac_ext <<EOF
5242 #line 5243 "configure"
5243 #include "confdefs.h"
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. */
5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5255 eval "ac_cv_lib_$ac_lib_var=yes"
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5260 eval "ac_cv_lib_$ac_lib_var=no"
5263 LIBS="$ac_save_LIBS"
5266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5267 echo "$ac_t""yes" 1>&6
5268 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5269 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5270 cat >> confdefs.h <<EOF
5271 #define $ac_tr_lib 1
5274 LIBS="-lresolv $LIBS"
5277 echo "$ac_t""no" 1>&6
5280 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5283 if test "$ac_cv_func_res_search" = yes ; then
5284 cat >> confdefs.h <<\EOF
5285 #define HAVE_RES_SEARCH 1
5288 elif test $ol_enable_dns = yes ; then
5289 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5290 elif test $ol_enable_dns != no ; then
5291 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5297 if test $ol_enable_ldapd != no ; then
5298 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5300 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5301 echo "configure:5302: checking for main in -lxtpp" >&5
5302 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5303 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5304 echo $ac_n "(cached) $ac_c" 1>&6
5306 ac_save_LIBS="$LIBS"
5307 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5308 cat > conftest.$ac_ext <<EOF
5309 #line 5310 "configure"
5310 #include "confdefs.h"
5316 if { (eval echo configure:5317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5318 eval "ac_cv_lib_$ac_lib_var=yes"
5320 echo "configure: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5323 eval "ac_cv_lib_$ac_lib_var=no"
5326 LIBS="$ac_save_LIBS"
5329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5330 echo "$ac_t""yes" 1>&6
5333 cat >> confdefs.h <<\EOF
5337 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5340 echo "$ac_t""no" 1>&6
5344 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5345 echo "configure:5346: checking for main in -ldsap" >&5
5346 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5347 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5348 echo $ac_n "(cached) $ac_c" 1>&6
5350 ac_save_LIBS="$LIBS"
5351 LIBS="-ldsap -lisode $LIBS"
5352 cat > conftest.$ac_ext <<EOF
5353 #line 5354 "configure"
5354 #include "confdefs.h"
5360 if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362 eval "ac_cv_lib_$ac_lib_var=yes"
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 eval "ac_cv_lib_$ac_lib_var=no"
5370 LIBS="$ac_save_LIBS"
5373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5374 echo "$ac_t""yes" 1>&6
5377 cat >> confdefs.h <<\EOF
5381 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5384 echo "$ac_t""no" 1>&6
5388 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5389 echo "configure:5390: checking for main in -lisode" >&5
5390 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5391 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5394 ac_save_LIBS="$LIBS"
5395 LIBS="-lisode $LIBS"
5396 cat > conftest.$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5404 if { (eval echo configure:5405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5406 eval "ac_cv_lib_$ac_lib_var=yes"
5408 echo "configure: failed program was:" >&5
5409 cat conftest.$ac_ext >&5
5411 eval "ac_cv_lib_$ac_lib_var=no"
5414 LIBS="$ac_save_LIBS"
5417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5418 echo "$ac_t""yes" 1>&6
5421 cat >> confdefs.h <<\EOF
5422 #define HAVE_ISODE 1
5425 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5428 echo "$ac_t""no" 1>&6
5434 if test $ol_link_isode != no; then
5435 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5436 echo "configure:5437: checking for main in -lpp" >&5
5437 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5438 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5439 echo $ac_n "(cached) $ac_c" 1>&6
5441 ac_save_LIBS="$LIBS"
5443 cat > conftest.$ac_ext <<EOF
5444 #line 5445 "configure"
5445 #include "confdefs.h"
5451 if { (eval echo configure:5452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5453 eval "ac_cv_lib_$ac_lib_var=yes"
5455 echo "configure: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5458 eval "ac_cv_lib_$ac_lib_var=no"
5461 LIBS="$ac_save_LIBS"
5464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5465 echo "$ac_t""yes" 1>&6
5467 cat >> confdefs.h <<\EOF
5471 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5474 echo "$ac_t""no" 1>&6
5479 # Extract the first word of "pepsy", so it can be a program name with args.
5480 set dummy pepsy; ac_word=$2
5481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5482 echo "configure:5483: checking for $ac_word" >&5
5483 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5488 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5491 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5496 for ac_dir in $ac_dummy; do
5497 test -z "$ac_dir" && ac_dir=.
5498 if test -f $ac_dir/$ac_word; then
5499 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5507 PEPSY="$ac_cv_path_PEPSY"
5508 if test -n "$PEPSY"; then
5509 echo "$ac_t""$PEPSY" 1>&6
5511 echo "$ac_t""no" 1>&6
5516 if test $ol_enable_quipu != no ; then
5517 for ac_hdr in quipu/commonarg.h
5519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5521 echo "configure:5522: checking for $ac_hdr" >&5
5522 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5525 cat > conftest.$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5531 { (eval echo configure:5532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5533 if test -z "$ac_err"; then
5535 eval "ac_cv_header_$ac_safe=yes"
5538 echo "configure: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5541 eval "ac_cv_header_$ac_safe=no"
5545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5546 echo "$ac_t""yes" 1>&6
5547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5548 cat >> confdefs.h <<EOF
5549 #define $ac_tr_hdr 1
5553 echo "$ac_t""no" 1>&6
5558 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5560 elif test $ol_enable_quipu = auto ; then
5561 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5563 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5569 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5570 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5574 echo "configure:5575: checking for $ac_hdr" >&5
5575 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5576 echo $ac_n "(cached) $ac_c" 1>&6
5578 cat > conftest.$ac_ext <<EOF
5579 #line 5580 "configure"
5580 #include "confdefs.h"
5583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5584 { (eval echo configure:5585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5586 if test -z "$ac_err"; then
5588 eval "ac_cv_header_$ac_safe=yes"
5591 echo "configure: failed program was:" >&5
5592 cat conftest.$ac_ext >&5
5594 eval "ac_cv_header_$ac_safe=no"
5598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5599 echo "$ac_t""yes" 1>&6
5600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5601 cat >> confdefs.h <<EOF
5602 #define $ac_tr_hdr 1
5606 echo "$ac_t""no" 1>&6
5611 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5612 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5613 echo "configure:5614: checking for main in -lkrb4" >&5
5614 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5615 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5616 echo $ac_n "(cached) $ac_c" 1>&6
5618 ac_save_LIBS="$LIBS"
5619 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5620 cat > conftest.$ac_ext <<EOF
5621 #line 5622 "configure"
5622 #include "confdefs.h"
5628 if { (eval echo configure:5629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5630 eval "ac_cv_lib_$ac_lib_var=yes"
5632 echo "configure: failed program was:" >&5
5633 cat conftest.$ac_ext >&5
5635 eval "ac_cv_lib_$ac_lib_var=no"
5638 LIBS="$ac_save_LIBS"
5641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5642 echo "$ac_t""yes" 1>&6
5645 echo "$ac_t""no" 1>&6
5650 if test $have_k5 = yes ; then
5651 ol_with_kerberos=found
5652 ol_link_kerberos=yes
5654 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5656 LIBS="$KRB_LIBS $LIBS"
5658 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5659 echo "configure:5660: checking for des_debug in Kerberos libraries" >&5
5660 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5661 echo $ac_n "(cached) $ac_c" 1>&6
5665 LIBS="$KRB_LIBS $LIBS"
5666 cat > conftest.$ac_ext <<EOF
5667 #line 5668 "configure"
5668 #include "confdefs.h"
5670 #include <kerberosIV/krb.h>
5671 #include <kerberosIV/des.h>
5672 extern int des_debug;
5680 if { (eval echo configure:5681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5682 ol_cv_var_des_debug=yes
5684 echo "configure: failed program was:" >&5
5685 cat conftest.$ac_ext >&5
5687 ol_cv_var_des_debug=no
5694 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5696 if test $ol_cv_var_des_debug = yes ; then
5697 cat >> confdefs.h <<\EOF
5698 #define HAVE_DES_DEBUG 1
5708 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5709 for ac_hdr in krb.h des.h
5711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5713 echo "configure:5714: checking for $ac_hdr" >&5
5714 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5715 echo $ac_n "(cached) $ac_c" 1>&6
5717 cat > conftest.$ac_ext <<EOF
5718 #line 5719 "configure"
5719 #include "confdefs.h"
5722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5723 { (eval echo configure:5724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5725 if test -z "$ac_err"; then
5727 eval "ac_cv_header_$ac_safe=yes"
5730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5733 eval "ac_cv_header_$ac_safe=no"
5737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5738 echo "$ac_t""yes" 1>&6
5739 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5740 cat >> confdefs.h <<EOF
5741 #define $ac_tr_hdr 1
5745 echo "$ac_t""no" 1>&6
5750 if test $ac_cv_header_krb_h = yes ; then
5751 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5752 echo "configure:5753: checking for main in -lkrb" >&5
5753 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
5754 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5757 ac_save_LIBS="$LIBS"
5758 LIBS="-lkrb -ldes $LIBS"
5759 cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5767 if { (eval echo configure:5768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5769 eval "ac_cv_lib_$ac_lib_var=yes"
5771 echo "configure: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5774 eval "ac_cv_lib_$ac_lib_var=no"
5777 LIBS="$ac_save_LIBS"
5780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5781 echo "$ac_t""yes" 1>&6
5784 echo "$ac_t""no" 1>&6
5789 if test $have_k4 = yes ; then
5790 ol_with_kerberos=found
5791 ol_link_kerberos=yes
5793 KRB_LIBS="-lkrb -ldes"
5798 if test $ol_link_kerberos = yes ; then
5799 cat >> confdefs.h <<\EOF
5800 #define HAVE_KERBEROS 1
5806 if test $ol_with_tls != no ; then
5808 for ac_hdr in openssl/ssl.h ssl.h
5810 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5812 echo "configure:5813: checking for $ac_hdr" >&5
5813 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5816 cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5822 { (eval echo configure:5823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5824 if test -z "$ac_err"; then
5826 eval "ac_cv_header_$ac_safe=yes"
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5832 eval "ac_cv_header_$ac_safe=no"
5836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5837 echo "$ac_t""yes" 1>&6
5838 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5839 cat >> confdefs.h <<EOF
5840 #define $ac_tr_hdr 1
5844 echo "$ac_t""no" 1>&6
5849 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5850 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5851 echo "configure:5852: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5852 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
5853 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5856 ac_save_LIBS="$LIBS"
5857 LIBS="-lssl -lcrypto $LIBS"
5858 cat > conftest.$ac_ext <<EOF
5859 #line 5860 "configure"
5860 #include "confdefs.h"
5861 /* Override any gcc2 internal prototype to avoid an error. */
5862 /* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5864 char SSLeay_add_ssl_algorithms();
5867 SSLeay_add_ssl_algorithms()
5870 if { (eval echo configure:5871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5872 eval "ac_cv_lib_$ac_lib_var=yes"
5874 echo "configure: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5877 eval "ac_cv_lib_$ac_lib_var=no"
5880 LIBS="$ac_save_LIBS"
5883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5884 echo "$ac_t""yes" 1>&6
5888 echo "$ac_t""no" 1>&6
5893 if test $have_ssleay = no ; then
5894 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5895 echo "configure:5896: checking for SSL_library_init in -lssl" >&5
5896 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
5897 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5898 echo $ac_n "(cached) $ac_c" 1>&6
5900 ac_save_LIBS="$LIBS"
5901 LIBS="-lssl -lcrypto $LIBS"
5902 cat > conftest.$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5905 /* Override any gcc2 internal prototype to avoid an error. */
5906 /* We use char because int might match the return type of a gcc2
5907 builtin and then its argument prototype would still apply. */
5908 char SSL_library_init();
5914 if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5916 eval "ac_cv_lib_$ac_lib_var=yes"
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5921 eval "ac_cv_lib_$ac_lib_var=no"
5924 LIBS="$ac_save_LIBS"
5927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5928 echo "$ac_t""yes" 1>&6
5932 echo "$ac_t""no" 1>&6
5938 if test $have_ssleay = no ; then
5939 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5940 echo "configure:5941: checking for ssl3_accept in -lssl" >&5
5941 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
5942 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5945 ac_save_LIBS="$LIBS"
5946 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5947 cat > conftest.$ac_ext <<EOF
5948 #line 5949 "configure"
5949 #include "confdefs.h"
5950 /* Override any gcc2 internal prototype to avoid an error. */
5951 /* We use char because int might match the return type of a gcc2
5952 builtin and then its argument prototype would still apply. */
5959 if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5961 eval "ac_cv_lib_$ac_lib_var=yes"
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5966 eval "ac_cv_lib_$ac_lib_var=no"
5969 LIBS="$ac_save_LIBS"
5972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5973 echo "$ac_t""yes" 1>&6
5977 echo "$ac_t""no" 1>&6
5983 if test $have_ssleay = yes ; then
5987 cat >> confdefs.h <<\EOF
5988 #define HAVE_SSLEAY 1
5992 if test $need_rsaref = yes; then
5993 cat >> confdefs.h <<\EOF
5994 #define HAVE_RSAREF 1
5998 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6000 TLS_LIBS="-lssl -lcrypto"
6006 if test $ol_link_tls = yes ; then
6007 cat >> confdefs.h <<\EOF
6015 gethostbyname_r gethostbyaddr_r \
6018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6019 echo "configure:6020: checking for $ac_func" >&5
6020 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6021 echo $ac_n "(cached) $ac_c" 1>&6
6023 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure"
6025 #include "confdefs.h"
6026 /* System header to define __stub macros and hopefully few prototypes,
6027 which can conflict with char $ac_func(); below. */
6029 /* Override any gcc2 internal prototype to avoid an error. */
6030 /* We use char because int might match the return type of a gcc2
6031 builtin and then its argument prototype would still apply. */
6037 /* The GNU C library defines this for functions which it implements
6038 to always fail with ENOSYS. Some functions are actually named
6039 something starting with __ and the normal name is an alias. */
6040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6048 if { (eval echo configure:6049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6050 eval "ac_cv_func_$ac_func=yes"
6052 echo "configure: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6055 eval "ac_cv_func_$ac_func=no"
6060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6061 echo "$ac_t""yes" 1>&6
6062 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6063 cat >> confdefs.h <<EOF
6064 #define $ac_tr_func 1
6068 echo "$ac_t""no" 1>&6
6073 if test "$ac_cv_func_ctime_r" = no ; then
6074 ol_cv_func_ctime_r_nargs=0
6076 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6077 echo "configure:6078: checking number of arguments of ctime_r" >&5
6078 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6079 echo $ac_n "(cached) $ac_c" 1>&6
6081 cat > conftest.$ac_ext <<EOF
6082 #line 6083 "configure"
6083 #include "confdefs.h"
6086 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6089 if { (eval echo configure:6090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6091 ol_cv_func_ctime_r_nargs=3
6093 echo "configure: failed program was:" >&5
6094 cat conftest.$ac_ext >&5
6096 cat > conftest.$ac_ext <<EOF
6097 #line 6098 "configure"
6098 #include "confdefs.h"
6101 time_t ti; char *buffer; ctime_r(&ti,buffer);
6104 if { (eval echo configure:6105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6106 ol_cv_func_ctime_r_nargs=2
6108 echo "configure: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6111 ol_cv_func_ctime_r_nargs=0
6118 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6119 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6120 cat >> confdefs.h <<EOF
6121 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6128 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6129 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6130 echo "configure:6131: checking number of arguments of gethostbyname_r" >&5
6131 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 #include <sys/types.h>
6138 #include <sys/socket.h>
6139 #include <netinet/in.h>
6141 #define BUFSIZE (sizeof(struct hostent)+10)
6143 struct hostent hent; char buffer[BUFSIZE];
6144 int bufsize=BUFSIZE;int h_errno;
6145 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6146 buffer, bufsize, &h_errno);
6149 if { (eval echo configure:6150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6151 ol_cv_func_gethostbyname_r_nargs=5
6153 echo "configure: failed program was:" >&5
6154 cat conftest.$ac_ext >&5
6156 cat > conftest.$ac_ext <<EOF
6157 #line 6158 "configure"
6158 #include "confdefs.h"
6159 #include <sys/types.h>
6160 #include <sys/socket.h>
6161 #include <netinet/in.h>
6163 #define BUFSIZE (sizeof(struct hostent)+10)
6165 struct hostent hent;struct hostent *rhent;
6166 char buffer[BUFSIZE];
6167 int bufsize=BUFSIZE;int h_errno;
6168 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6172 if { (eval echo configure:6173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6174 ol_cv_func_gethostbyname_r_nargs=6
6176 echo "configure: failed program was:" >&5
6177 cat conftest.$ac_ext >&5
6179 ol_cv_func_gethostbyname_r_nargs=0
6186 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6187 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6188 cat >> confdefs.h <<EOF
6189 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6195 ol_cv_func_gethostbyname_r_nargs=0
6198 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6199 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6200 echo "configure:6201: checking number of arguments of gethostbyaddr_r" >&5
6201 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6202 echo $ac_n "(cached) $ac_c" 1>&6
6204 cat > conftest.$ac_ext <<EOF
6205 #line 6206 "configure"
6206 #include "confdefs.h"
6207 #include <sys/types.h>
6208 #include <sys/socket.h>
6209 #include <netinet/in.h>
6211 #define BUFSIZE (sizeof(struct hostent)+10)
6213 struct hostent hent; char buffer[BUFSIZE];
6215 size_t alen=sizeof(struct in_addr);
6216 int bufsize=BUFSIZE;int h_errno;
6217 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6218 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6221 if { (eval echo configure:6222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6223 ol_cv_func_gethostbyaddr_r_nargs=7
6225 echo "configure: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6228 cat > conftest.$ac_ext <<EOF
6229 #line 6230 "configure"
6230 #include "confdefs.h"
6231 #include <sys/types.h>
6232 #include <sys/socket.h>
6233 #include <netinet/in.h>
6235 #define BUFSIZE (sizeof(struct hostent)+10)
6237 struct hostent hent;
6238 struct hostent *rhent; char buffer[BUFSIZE];
6240 size_t alen=sizeof(struct in_addr);
6241 int bufsize=BUFSIZE;int h_errno;
6242 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6243 alen, AF_INET, &hent, buffer, bufsize,
6247 if { (eval echo configure:6248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6249 ol_cv_func_gethostbyaddr_r_nargs=8
6251 echo "configure: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6254 ol_cv_func_gethostbyaddr_r_nargs=0
6261 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6262 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6263 cat >> confdefs.h <<EOF
6264 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6270 ol_cv_func_gethostbyaddr_r_nargs=0
6273 if test "$ac_cv_func_ctime_r" = yes \
6274 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6275 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6276 -a "$ac_cv_func_gethostbyname_r" = yes \
6277 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6278 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6279 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6280 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6281 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6284 cat >> confdefs.h <<\EOF
6285 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6291 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6292 -o $ol_with_threads = posix ; then
6294 for ac_hdr in pthread.h
6296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6298 echo "configure:6299: checking for $ac_hdr" >&5
6299 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6302 cat > conftest.$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6308 { (eval echo configure:6309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6310 if test -z "$ac_err"; then
6312 eval "ac_cv_header_$ac_safe=yes"
6315 echo "configure: failed program was:" >&5
6316 cat conftest.$ac_ext >&5
6318 eval "ac_cv_header_$ac_safe=no"
6322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6323 echo "$ac_t""yes" 1>&6
6324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6325 cat >> confdefs.h <<EOF
6326 #define $ac_tr_hdr 1
6330 echo "$ac_t""no" 1>&6
6335 if test $ac_cv_header_pthread_h = yes ; then
6336 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6337 echo "configure:6338: checking POSIX thread version" >&5
6338 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6339 echo $ac_n "(cached) $ac_c" 1>&6
6342 cat > conftest.$ac_ext <<EOF
6343 #line 6344 "configure"
6344 #include "confdefs.h"
6346 # include <pthread.h>
6347 /* this check could be improved */
6348 # ifdef PTHREAD_ONCE_INIT
6349 pthread_version_final
6353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6354 egrep "pthread_version_final" >/dev/null 2>&1; then
6356 ol_pthread_final=yes
6364 cat > conftest.$ac_ext <<EOF
6365 #line 6366 "configure"
6366 #include "confdefs.h"
6368 # include <pthread.h>
6369 /* this check could be improved */
6370 # ifdef pthread_once_init
6371 pthread_version_draft4
6375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6376 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6378 ol_pthread_draft4=yes
6381 ol_pthread_draft4=no
6386 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6387 ol_cv_pthread_version=final
6388 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6389 ol_cv_pthread_version=draft4
6391 ol_cv_pthread_version=unknown
6396 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6399 if test $ol_cv_pthread_version = final ; then
6400 cat >> confdefs.h <<\EOF
6401 #define HAVE_PTHREADS_FINAL 1
6404 elif test $ol_cv_pthread_version = draft4 ; then
6405 cat >> confdefs.h <<\EOF
6406 #define HAVE_PTHREADS_D4 1
6410 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6413 # consider threads found
6414 ol_with_threads=found
6417 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6418 echo "configure:6419: checking for LinuxThreads pthread.h" >&5
6419 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6420 echo $ac_n "(cached) $ac_c" 1>&6
6422 cat > conftest.$ac_ext <<EOF
6423 #line 6424 "configure"
6424 #include "confdefs.h"
6425 #include <pthread.h>
6427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6428 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6430 ol_cv_header_linux_threads=yes
6433 ol_cv_header_linux_threads=no
6440 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6441 if test $ol_cv_header_linux_threads = yes; then
6442 cat >> confdefs.h <<\EOF
6443 #define HAVE_LINUX_THREADS 1
6449 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6450 echo "configure:6451: checking for GNU Pth pthread.h" >&5
6451 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6452 echo $ac_n "(cached) $ac_c" 1>&6
6454 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure"
6456 #include "confdefs.h"
6457 #include <pthread.h>
6458 #ifdef _POSIX_THREAD_IS_GNU_PTH
6463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6464 egrep "__gnu_pth__" >/dev/null 2>&1; then
6466 ol_cv_header_gnu_pth_pthread_h=yes
6469 ol_cv_header_gnu_pth_pthread_h=no
6476 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6479 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6480 for ac_hdr in sched.h
6482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6484 echo "configure:6485: checking for $ac_hdr" >&5
6485 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6486 echo $ac_n "(cached) $ac_c" 1>&6
6488 cat > conftest.$ac_ext <<EOF
6489 #line 6490 "configure"
6490 #include "confdefs.h"
6493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6494 { (eval echo configure:6495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6496 if test -z "$ac_err"; then
6498 eval "ac_cv_header_$ac_safe=yes"
6501 echo "configure: failed program was:" >&5
6502 cat conftest.$ac_ext >&5
6504 eval "ac_cv_header_$ac_safe=no"
6508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6509 echo "$ac_t""yes" 1>&6
6510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6511 cat >> confdefs.h <<EOF
6512 #define $ac_tr_hdr 1
6516 echo "$ac_t""no" 1>&6
6523 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6524 echo "configure:6525: checking for pthread_create in default libraries" >&5
6525 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6526 echo $ac_n "(cached) $ac_c" 1>&6
6529 if test "$cross_compiling" = yes; then
6530 cat > conftest.$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6533 /* pthread test headers */
6534 #include <pthread.h>
6536 #define NULL (void*)0
6539 static void *task(p)
6542 return (void *) (p == NULL);
6547 /* pthread test function */
6551 /* make sure pthread_create() isn't just a stub */
6552 #if HAVE_PTHREADS_D4
6553 status = pthread_create(&t, pthread_attr_default, task, NULL);
6555 status = pthread_create(&t, NULL, task, NULL);
6558 if( status ) exit( status );
6560 /* make sure pthread_detach() isn't just a stub */
6561 #if HAVE_PTHREADS_D4
6562 status = pthread_detach( &t );
6564 status = pthread_detach( t );
6567 #ifdef HAVE_LINUX_THREADS
6568 pthread_kill_other_threads_np();
6575 if { (eval echo configure:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6577 ol_cv_pthread_create=yes
6579 echo "configure: failed program was:" >&5
6580 cat conftest.$ac_ext >&5
6582 ol_cv_pthread_create=no
6586 cat > conftest.$ac_ext <<EOF
6587 #line 6588 "configure"
6588 #include "confdefs.h"
6589 /* pthread test headers */
6590 #include <pthread.h>
6592 #define NULL (void*)0
6595 static void *task(p)
6598 return (void *) (p == NULL);
6602 int main(argc, argv)
6607 /* pthread test function */
6611 /* make sure pthread_create() isn't just a stub */
6612 #if HAVE_PTHREADS_D4
6613 status = pthread_create(&t, pthread_attr_default, task, NULL);
6615 status = pthread_create(&t, NULL, task, NULL);
6618 if( status ) exit( status );
6620 /* make sure pthread_detach() isn't just a stub */
6621 #if HAVE_PTHREADS_D4
6622 status = pthread_detach( &t );
6624 status = pthread_detach( t );
6627 #ifdef HAVE_LINUX_THREADS
6628 pthread_kill_other_threads_np();
6636 if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6638 ol_cv_pthread_create=yes
6640 echo "configure: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6643 ol_cv_pthread_create=no
6650 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6652 if test $ol_cv_pthread_create != no ; then
6653 ol_link_threads=posix
6657 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6658 if test "$ol_link_threads" = no ; then
6660 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6661 echo "configure:6662: checking for pthread link with -kthread" >&5
6662 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
6663 echo $ac_n "(cached) $ac_c" 1>&6
6668 LIBS="-kthread $LIBS"
6670 if test "$cross_compiling" = yes; then
6671 cat > conftest.$ac_ext <<EOF
6672 #line 6673 "configure"
6673 #include "confdefs.h"
6674 /* pthread test headers */
6675 #include <pthread.h>
6677 #define NULL (void*)0
6680 static void *task(p)
6683 return (void *) (p == NULL);
6688 /* pthread test function */
6692 /* make sure pthread_create() isn't just a stub */
6693 #if HAVE_PTHREADS_D4
6694 status = pthread_create(&t, pthread_attr_default, task, NULL);
6696 status = pthread_create(&t, NULL, task, NULL);
6699 if( status ) exit( status );
6701 /* make sure pthread_detach() isn't just a stub */
6702 #if HAVE_PTHREADS_D4
6703 status = pthread_detach( &t );
6705 status = pthread_detach( t );
6708 #ifdef HAVE_LINUX_THREADS
6709 pthread_kill_other_threads_np();
6716 if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6718 ol_cv_pthread_kthread=yes
6720 echo "configure: failed program was:" >&5
6721 cat conftest.$ac_ext >&5
6723 ol_cv_pthread_kthread=no
6727 cat > conftest.$ac_ext <<EOF
6728 #line 6729 "configure"
6729 #include "confdefs.h"
6730 /* pthread test headers */
6731 #include <pthread.h>
6733 #define NULL (void*)0
6736 static void *task(p)
6739 return (void *) (p == NULL);
6743 int main(argc, argv)
6748 /* pthread test function */
6752 /* make sure pthread_create() isn't just a stub */
6753 #if HAVE_PTHREADS_D4
6754 status = pthread_create(&t, pthread_attr_default, task, NULL);
6756 status = pthread_create(&t, NULL, task, NULL);
6759 if( status ) exit( status );
6761 /* make sure pthread_detach() isn't just a stub */
6762 #if HAVE_PTHREADS_D4
6763 status = pthread_detach( &t );
6765 status = pthread_detach( t );
6768 #ifdef HAVE_LINUX_THREADS
6769 pthread_kill_other_threads_np();
6777 if { (eval echo configure:6778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6779 ol_cv_pthread_kthread=yes
6781 echo "configure: failed program was:" >&5
6782 cat conftest.$ac_ext >&5
6784 ol_cv_pthread_kthread=no
6795 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6797 if test $ol_cv_pthread_kthread = yes ; then
6798 ol_link_pthreads="-kthread"
6799 ol_link_threads=posix
6803 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6804 if test "$ol_link_threads" = no ; then
6806 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6807 echo "configure:6808: checking for pthread link with -pthread" >&5
6808 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
6809 echo $ac_n "(cached) $ac_c" 1>&6
6814 LIBS="-pthread $LIBS"
6816 if test "$cross_compiling" = yes; then
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 /* pthread test headers */
6821 #include <pthread.h>
6823 #define NULL (void*)0
6826 static void *task(p)
6829 return (void *) (p == NULL);
6834 /* pthread test function */
6838 /* make sure pthread_create() isn't just a stub */
6839 #if HAVE_PTHREADS_D4
6840 status = pthread_create(&t, pthread_attr_default, task, NULL);
6842 status = pthread_create(&t, NULL, task, NULL);
6845 if( status ) exit( status );
6847 /* make sure pthread_detach() isn't just a stub */
6848 #if HAVE_PTHREADS_D4
6849 status = pthread_detach( &t );
6851 status = pthread_detach( t );
6854 #ifdef HAVE_LINUX_THREADS
6855 pthread_kill_other_threads_np();
6862 if { (eval echo configure:6863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6864 ol_cv_pthread_pthread=yes
6866 echo "configure: failed program was:" >&5
6867 cat conftest.$ac_ext >&5
6869 ol_cv_pthread_pthread=no
6873 cat > conftest.$ac_ext <<EOF
6874 #line 6875 "configure"
6875 #include "confdefs.h"
6876 /* pthread test headers */
6877 #include <pthread.h>
6879 #define NULL (void*)0
6882 static void *task(p)
6885 return (void *) (p == NULL);
6889 int main(argc, argv)
6894 /* pthread test function */
6898 /* make sure pthread_create() isn't just a stub */
6899 #if HAVE_PTHREADS_D4
6900 status = pthread_create(&t, pthread_attr_default, task, NULL);
6902 status = pthread_create(&t, NULL, task, NULL);
6905 if( status ) exit( status );
6907 /* make sure pthread_detach() isn't just a stub */
6908 #if HAVE_PTHREADS_D4
6909 status = pthread_detach( &t );
6911 status = pthread_detach( t );
6914 #ifdef HAVE_LINUX_THREADS
6915 pthread_kill_other_threads_np();
6923 if { (eval echo configure:6924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6925 ol_cv_pthread_pthread=yes
6927 echo "configure: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6930 ol_cv_pthread_pthread=no
6941 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
6943 if test $ol_cv_pthread_pthread = yes ; then
6944 ol_link_pthreads="-pthread"
6945 ol_link_threads=posix
6949 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
6950 if test "$ol_link_threads" = no ; then
6952 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
6953 echo "configure:6954: checking for pthread link with -pthreads" >&5
6954 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
6955 echo $ac_n "(cached) $ac_c" 1>&6
6960 LIBS="-pthreads $LIBS"
6962 if test "$cross_compiling" = yes; then
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6966 /* pthread test headers */
6967 #include <pthread.h>
6969 #define NULL (void*)0
6972 static void *task(p)
6975 return (void *) (p == NULL);
6980 /* pthread test function */
6984 /* make sure pthread_create() isn't just a stub */
6985 #if HAVE_PTHREADS_D4
6986 status = pthread_create(&t, pthread_attr_default, task, NULL);
6988 status = pthread_create(&t, NULL, task, NULL);
6991 if( status ) exit( status );
6993 /* make sure pthread_detach() isn't just a stub */
6994 #if HAVE_PTHREADS_D4
6995 status = pthread_detach( &t );
6997 status = pthread_detach( t );
7000 #ifdef HAVE_LINUX_THREADS
7001 pthread_kill_other_threads_np();
7008 if { (eval echo configure:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7010 ol_cv_pthread_pthreads=yes
7012 echo "configure: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7015 ol_cv_pthread_pthreads=no
7019 cat > conftest.$ac_ext <<EOF
7020 #line 7021 "configure"
7021 #include "confdefs.h"
7022 /* pthread test headers */
7023 #include <pthread.h>
7025 #define NULL (void*)0
7028 static void *task(p)
7031 return (void *) (p == NULL);
7035 int main(argc, argv)
7040 /* pthread test function */
7044 /* make sure pthread_create() isn't just a stub */
7045 #if HAVE_PTHREADS_D4
7046 status = pthread_create(&t, pthread_attr_default, task, NULL);
7048 status = pthread_create(&t, NULL, task, NULL);
7051 if( status ) exit( status );
7053 /* make sure pthread_detach() isn't just a stub */
7054 #if HAVE_PTHREADS_D4
7055 status = pthread_detach( &t );
7057 status = pthread_detach( t );
7060 #ifdef HAVE_LINUX_THREADS
7061 pthread_kill_other_threads_np();
7069 if { (eval echo configure:7070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7071 ol_cv_pthread_pthreads=yes
7073 echo "configure: failed program was:" >&5
7074 cat conftest.$ac_ext >&5
7076 ol_cv_pthread_pthreads=no
7087 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7089 if test $ol_cv_pthread_pthreads = yes ; then
7090 ol_link_pthreads="-pthreads"
7091 ol_link_threads=posix
7095 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7096 if test "$ol_link_threads" = no ; then
7098 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7099 echo "configure:7100: checking for pthread link with -mthreads" >&5
7100 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7101 echo $ac_n "(cached) $ac_c" 1>&6
7106 LIBS="-mthreads $LIBS"
7108 if test "$cross_compiling" = yes; then
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7112 /* pthread test headers */
7113 #include <pthread.h>
7115 #define NULL (void*)0
7118 static void *task(p)
7121 return (void *) (p == NULL);
7126 /* pthread test function */
7130 /* make sure pthread_create() isn't just a stub */
7131 #if HAVE_PTHREADS_D4
7132 status = pthread_create(&t, pthread_attr_default, task, NULL);
7134 status = pthread_create(&t, NULL, task, NULL);
7137 if( status ) exit( status );
7139 /* make sure pthread_detach() isn't just a stub */
7140 #if HAVE_PTHREADS_D4
7141 status = pthread_detach( &t );
7143 status = pthread_detach( t );
7146 #ifdef HAVE_LINUX_THREADS
7147 pthread_kill_other_threads_np();
7154 if { (eval echo configure:7155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7156 ol_cv_pthread_mthreads=yes
7158 echo "configure: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7161 ol_cv_pthread_mthreads=no
7165 cat > conftest.$ac_ext <<EOF
7166 #line 7167 "configure"
7167 #include "confdefs.h"
7168 /* pthread test headers */
7169 #include <pthread.h>
7171 #define NULL (void*)0
7174 static void *task(p)
7177 return (void *) (p == NULL);
7181 int main(argc, argv)
7186 /* pthread test function */
7190 /* make sure pthread_create() isn't just a stub */
7191 #if HAVE_PTHREADS_D4
7192 status = pthread_create(&t, pthread_attr_default, task, NULL);
7194 status = pthread_create(&t, NULL, task, NULL);
7197 if( status ) exit( status );
7199 /* make sure pthread_detach() isn't just a stub */
7200 #if HAVE_PTHREADS_D4
7201 status = pthread_detach( &t );
7203 status = pthread_detach( t );
7206 #ifdef HAVE_LINUX_THREADS
7207 pthread_kill_other_threads_np();
7215 if { (eval echo configure:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7217 ol_cv_pthread_mthreads=yes
7219 echo "configure: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7222 ol_cv_pthread_mthreads=no
7233 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7235 if test $ol_cv_pthread_mthreads = yes ; then
7236 ol_link_pthreads="-mthreads"
7237 ol_link_threads=posix
7241 # Pthread try link: -thread (ol_cv_pthread_thread)
7242 if test "$ol_link_threads" = no ; then
7244 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7245 echo "configure:7246: checking for pthread link with -thread" >&5
7246 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7247 echo $ac_n "(cached) $ac_c" 1>&6
7252 LIBS="-thread $LIBS"
7254 if test "$cross_compiling" = yes; then
7255 cat > conftest.$ac_ext <<EOF
7256 #line 7257 "configure"
7257 #include "confdefs.h"
7258 /* pthread test headers */
7259 #include <pthread.h>
7261 #define NULL (void*)0
7264 static void *task(p)
7267 return (void *) (p == NULL);
7272 /* pthread test function */
7276 /* make sure pthread_create() isn't just a stub */
7277 #if HAVE_PTHREADS_D4
7278 status = pthread_create(&t, pthread_attr_default, task, NULL);
7280 status = pthread_create(&t, NULL, task, NULL);
7283 if( status ) exit( status );
7285 /* make sure pthread_detach() isn't just a stub */
7286 #if HAVE_PTHREADS_D4
7287 status = pthread_detach( &t );
7289 status = pthread_detach( t );
7292 #ifdef HAVE_LINUX_THREADS
7293 pthread_kill_other_threads_np();
7300 if { (eval echo configure:7301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7302 ol_cv_pthread_thread=yes
7304 echo "configure: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7307 ol_cv_pthread_thread=no
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7314 /* pthread test headers */
7315 #include <pthread.h>
7317 #define NULL (void*)0
7320 static void *task(p)
7323 return (void *) (p == NULL);
7327 int main(argc, argv)
7332 /* pthread test function */
7336 /* make sure pthread_create() isn't just a stub */
7337 #if HAVE_PTHREADS_D4
7338 status = pthread_create(&t, pthread_attr_default, task, NULL);
7340 status = pthread_create(&t, NULL, task, NULL);
7343 if( status ) exit( status );
7345 /* make sure pthread_detach() isn't just a stub */
7346 #if HAVE_PTHREADS_D4
7347 status = pthread_detach( &t );
7349 status = pthread_detach( t );
7352 #ifdef HAVE_LINUX_THREADS
7353 pthread_kill_other_threads_np();
7361 if { (eval echo configure:7362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7363 ol_cv_pthread_thread=yes
7365 echo "configure: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7368 ol_cv_pthread_thread=no
7379 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
7381 if test $ol_cv_pthread_thread = yes ; then
7382 ol_link_pthreads="-thread"
7383 ol_link_threads=posix
7388 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
7389 if test "$ol_link_threads" = no ; then
7390 # try -lpthread -lmach -lexc -lc_r
7391 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
7392 echo "configure:7393: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
7393 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
7394 echo $ac_n "(cached) $ac_c" 1>&6
7399 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
7401 if test "$cross_compiling" = yes; then
7402 cat > conftest.$ac_ext <<EOF
7403 #line 7404 "configure"
7404 #include "confdefs.h"
7405 /* pthread test headers */
7406 #include <pthread.h>
7408 #define NULL (void*)0
7411 static void *task(p)
7414 return (void *) (p == NULL);
7419 /* pthread test function */
7423 /* make sure pthread_create() isn't just a stub */
7424 #if HAVE_PTHREADS_D4
7425 status = pthread_create(&t, pthread_attr_default, task, NULL);
7427 status = pthread_create(&t, NULL, task, NULL);
7430 if( status ) exit( status );
7432 /* make sure pthread_detach() isn't just a stub */
7433 #if HAVE_PTHREADS_D4
7434 status = pthread_detach( &t );
7436 status = pthread_detach( t );
7439 #ifdef HAVE_LINUX_THREADS
7440 pthread_kill_other_threads_np();
7447 if { (eval echo configure:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7449 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7451 echo "configure: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7454 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7458 cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure"
7460 #include "confdefs.h"
7461 /* pthread test headers */
7462 #include <pthread.h>
7464 #define NULL (void*)0
7467 static void *task(p)
7470 return (void *) (p == NULL);
7474 int main(argc, argv)
7479 /* pthread test function */
7483 /* make sure pthread_create() isn't just a stub */
7484 #if HAVE_PTHREADS_D4
7485 status = pthread_create(&t, pthread_attr_default, task, NULL);
7487 status = pthread_create(&t, NULL, task, NULL);
7490 if( status ) exit( status );
7492 /* make sure pthread_detach() isn't just a stub */
7493 #if HAVE_PTHREADS_D4
7494 status = pthread_detach( &t );
7496 status = pthread_detach( t );
7499 #ifdef HAVE_LINUX_THREADS
7500 pthread_kill_other_threads_np();
7508 if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7510 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7512 echo "configure: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7515 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7526 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
7528 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
7529 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
7530 ol_link_threads=posix
7534 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
7535 if test "$ol_link_threads" = no ; then
7536 # try -lpthread -lmach -lexc
7537 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
7538 echo "configure:7539: checking for pthread link with -lpthread -lmach -lexc" >&5
7539 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
7540 echo $ac_n "(cached) $ac_c" 1>&6
7545 LIBS="-lpthread -lmach -lexc $LIBS"
7547 if test "$cross_compiling" = yes; then
7548 cat > conftest.$ac_ext <<EOF
7549 #line 7550 "configure"
7550 #include "confdefs.h"
7551 /* pthread test headers */
7552 #include <pthread.h>
7554 #define NULL (void*)0
7557 static void *task(p)
7560 return (void *) (p == NULL);
7565 /* pthread test function */
7569 /* make sure pthread_create() isn't just a stub */
7570 #if HAVE_PTHREADS_D4
7571 status = pthread_create(&t, pthread_attr_default, task, NULL);
7573 status = pthread_create(&t, NULL, task, NULL);
7576 if( status ) exit( status );
7578 /* make sure pthread_detach() isn't just a stub */
7579 #if HAVE_PTHREADS_D4
7580 status = pthread_detach( &t );
7582 status = pthread_detach( t );
7585 #ifdef HAVE_LINUX_THREADS
7586 pthread_kill_other_threads_np();
7593 if { (eval echo configure:7594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7595 ol_cv_pthread_lpthread_lmach_lexc=yes
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7600 ol_cv_pthread_lpthread_lmach_lexc=no
7604 cat > conftest.$ac_ext <<EOF
7605 #line 7606 "configure"
7606 #include "confdefs.h"
7607 /* pthread test headers */
7608 #include <pthread.h>
7610 #define NULL (void*)0
7613 static void *task(p)
7616 return (void *) (p == NULL);
7620 int main(argc, argv)
7625 /* pthread test function */
7629 /* make sure pthread_create() isn't just a stub */
7630 #if HAVE_PTHREADS_D4
7631 status = pthread_create(&t, pthread_attr_default, task, NULL);
7633 status = pthread_create(&t, NULL, task, NULL);
7636 if( status ) exit( status );
7638 /* make sure pthread_detach() isn't just a stub */
7639 #if HAVE_PTHREADS_D4
7640 status = pthread_detach( &t );
7642 status = pthread_detach( t );
7645 #ifdef HAVE_LINUX_THREADS
7646 pthread_kill_other_threads_np();
7654 if { (eval echo configure:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7656 ol_cv_pthread_lpthread_lmach_lexc=yes
7658 echo "configure: failed program was:" >&5
7659 cat conftest.$ac_ext >&5
7661 ol_cv_pthread_lpthread_lmach_lexc=no
7672 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
7674 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
7675 ol_link_pthreads="-lpthread -lmach -lexc"
7676 ol_link_threads=posix
7681 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
7682 if test "$ol_link_threads" = no ; then
7683 # try -lpthread -Wl,-woff,85
7684 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
7685 echo "configure:7686: checking for pthread link with -lpthread -Wl,-woff,85" >&5
7686 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
7687 echo $ac_n "(cached) $ac_c" 1>&6
7692 LIBS="-lpthread -Wl,-woff,85 $LIBS"
7694 if test "$cross_compiling" = yes; then
7695 cat > conftest.$ac_ext <<EOF
7696 #line 7697 "configure"
7697 #include "confdefs.h"
7698 /* pthread test headers */
7699 #include <pthread.h>
7701 #define NULL (void*)0
7704 static void *task(p)
7707 return (void *) (p == NULL);
7712 /* pthread test function */
7716 /* make sure pthread_create() isn't just a stub */
7717 #if HAVE_PTHREADS_D4
7718 status = pthread_create(&t, pthread_attr_default, task, NULL);
7720 status = pthread_create(&t, NULL, task, NULL);
7723 if( status ) exit( status );
7725 /* make sure pthread_detach() isn't just a stub */
7726 #if HAVE_PTHREADS_D4
7727 status = pthread_detach( &t );
7729 status = pthread_detach( t );
7732 #ifdef HAVE_LINUX_THREADS
7733 pthread_kill_other_threads_np();
7740 if { (eval echo configure:7741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7742 ol_cv_pthread_lib_lpthread_woff=yes
7744 echo "configure: failed program was:" >&5
7745 cat conftest.$ac_ext >&5
7747 ol_cv_pthread_lib_lpthread_woff=no
7751 cat > conftest.$ac_ext <<EOF
7752 #line 7753 "configure"
7753 #include "confdefs.h"
7754 /* pthread test headers */
7755 #include <pthread.h>
7757 #define NULL (void*)0
7760 static void *task(p)
7763 return (void *) (p == NULL);
7767 int main(argc, argv)
7772 /* pthread test function */
7776 /* make sure pthread_create() isn't just a stub */
7777 #if HAVE_PTHREADS_D4
7778 status = pthread_create(&t, pthread_attr_default, task, NULL);
7780 status = pthread_create(&t, NULL, task, NULL);
7783 if( status ) exit( status );
7785 /* make sure pthread_detach() isn't just a stub */
7786 #if HAVE_PTHREADS_D4
7787 status = pthread_detach( &t );
7789 status = pthread_detach( t );
7792 #ifdef HAVE_LINUX_THREADS
7793 pthread_kill_other_threads_np();
7801 if { (eval echo configure:7802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7803 ol_cv_pthread_lib_lpthread_woff=yes
7805 echo "configure: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7808 ol_cv_pthread_lib_lpthread_woff=no
7819 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
7821 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
7822 ol_link_pthreads="-lpthread -Wl,-woff,85"
7823 ol_link_threads=posix
7828 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
7829 if test "$ol_link_threads" = no ; then
7831 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
7832 echo "configure:7833: checking for pthread link with -lpthread" >&5
7833 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7839 LIBS="-lpthread $LIBS"
7841 if test "$cross_compiling" = yes; then
7842 cat > conftest.$ac_ext <<EOF
7843 #line 7844 "configure"
7844 #include "confdefs.h"
7845 /* pthread test headers */
7846 #include <pthread.h>
7848 #define NULL (void*)0
7851 static void *task(p)
7854 return (void *) (p == NULL);
7859 /* pthread test function */
7863 /* make sure pthread_create() isn't just a stub */
7864 #if HAVE_PTHREADS_D4
7865 status = pthread_create(&t, pthread_attr_default, task, NULL);
7867 status = pthread_create(&t, NULL, task, NULL);
7870 if( status ) exit( status );
7872 /* make sure pthread_detach() isn't just a stub */
7873 #if HAVE_PTHREADS_D4
7874 status = pthread_detach( &t );
7876 status = pthread_detach( t );
7879 #ifdef HAVE_LINUX_THREADS
7880 pthread_kill_other_threads_np();
7887 if { (eval echo configure:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7889 ol_cv_pthread_lpthread=yes
7891 echo "configure: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7894 ol_cv_pthread_lpthread=no
7898 cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure"
7900 #include "confdefs.h"
7901 /* pthread test headers */
7902 #include <pthread.h>
7904 #define NULL (void*)0
7907 static void *task(p)
7910 return (void *) (p == NULL);
7914 int main(argc, argv)
7919 /* pthread test function */
7923 /* make sure pthread_create() isn't just a stub */
7924 #if HAVE_PTHREADS_D4
7925 status = pthread_create(&t, pthread_attr_default, task, NULL);
7927 status = pthread_create(&t, NULL, task, NULL);
7930 if( status ) exit( status );
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();
7948 if { (eval echo configure:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7950 ol_cv_pthread_lpthread=yes
7952 echo "configure: failed program was:" >&5
7953 cat conftest.$ac_ext >&5
7955 ol_cv_pthread_lpthread=no
7966 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
7968 if test $ol_cv_pthread_lpthread = yes ; then
7969 ol_link_pthreads="-lpthread"
7970 ol_link_threads=posix
7974 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
7975 if test "$ol_link_threads" = no ; then
7977 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
7978 echo "configure:7979: checking for pthread link with -lc_r" >&5
7979 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
7980 echo $ac_n "(cached) $ac_c" 1>&6
7987 if test "$cross_compiling" = yes; then
7988 cat > conftest.$ac_ext <<EOF
7989 #line 7990 "configure"
7990 #include "confdefs.h"
7991 /* pthread test headers */
7992 #include <pthread.h>
7994 #define NULL (void*)0
7997 static void *task(p)
8000 return (void *) (p == NULL);
8005 /* pthread test function */
8009 /* make sure pthread_create() isn't just a stub */
8010 #if HAVE_PTHREADS_D4
8011 status = pthread_create(&t, pthread_attr_default, task, NULL);
8013 status = pthread_create(&t, NULL, task, NULL);
8016 if( status ) exit( status );
8018 /* make sure pthread_detach() isn't just a stub */
8019 #if HAVE_PTHREADS_D4
8020 status = pthread_detach( &t );
8022 status = pthread_detach( t );
8025 #ifdef HAVE_LINUX_THREADS
8026 pthread_kill_other_threads_np();
8033 if { (eval echo configure:8034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8035 ol_cv_pthread_lc_r=yes
8037 echo "configure: failed program was:" >&5
8038 cat conftest.$ac_ext >&5
8040 ol_cv_pthread_lc_r=no
8044 cat > conftest.$ac_ext <<EOF
8045 #line 8046 "configure"
8046 #include "confdefs.h"
8047 /* pthread test headers */
8048 #include <pthread.h>
8050 #define NULL (void*)0
8053 static void *task(p)
8056 return (void *) (p == NULL);
8060 int main(argc, argv)
8065 /* pthread test function */
8069 /* make sure pthread_create() isn't just a stub */
8070 #if HAVE_PTHREADS_D4
8071 status = pthread_create(&t, pthread_attr_default, task, NULL);
8073 status = pthread_create(&t, NULL, task, NULL);
8076 if( status ) exit( status );
8078 /* make sure pthread_detach() isn't just a stub */
8079 #if HAVE_PTHREADS_D4
8080 status = pthread_detach( &t );
8082 status = pthread_detach( t );
8085 #ifdef HAVE_LINUX_THREADS
8086 pthread_kill_other_threads_np();
8094 if { (eval echo configure:8095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8096 ol_cv_pthread_lc_r=yes
8098 echo "configure: failed program was:" >&5
8099 cat conftest.$ac_ext >&5
8101 ol_cv_pthread_lc_r=no
8112 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8114 if test $ol_cv_pthread_lc_r = yes ; then
8115 ol_link_pthreads="-lc_r"
8116 ol_link_threads=posix
8121 # Pthread try link: -threads (ol_cv_pthread_threads)
8122 if test "$ol_link_threads" = no ; then
8124 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8125 echo "configure:8126: checking for pthread link with -threads" >&5
8126 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8127 echo $ac_n "(cached) $ac_c" 1>&6
8132 LIBS="-threads $LIBS"
8134 if test "$cross_compiling" = yes; then
8135 cat > conftest.$ac_ext <<EOF
8136 #line 8137 "configure"
8137 #include "confdefs.h"
8138 /* pthread test headers */
8139 #include <pthread.h>
8141 #define NULL (void*)0
8144 static void *task(p)
8147 return (void *) (p == NULL);
8152 /* pthread test function */
8156 /* make sure pthread_create() isn't just a stub */
8157 #if HAVE_PTHREADS_D4
8158 status = pthread_create(&t, pthread_attr_default, task, NULL);
8160 status = pthread_create(&t, NULL, task, NULL);
8163 if( status ) exit( status );
8165 /* make sure pthread_detach() isn't just a stub */
8166 #if HAVE_PTHREADS_D4
8167 status = pthread_detach( &t );
8169 status = pthread_detach( t );
8172 #ifdef HAVE_LINUX_THREADS
8173 pthread_kill_other_threads_np();
8180 if { (eval echo configure:8181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8182 ol_cv_pthread_threads=yes
8184 echo "configure: failed program was:" >&5
8185 cat conftest.$ac_ext >&5
8187 ol_cv_pthread_threads=no
8191 cat > conftest.$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8194 /* pthread test headers */
8195 #include <pthread.h>
8197 #define NULL (void*)0
8200 static void *task(p)
8203 return (void *) (p == NULL);
8207 int main(argc, argv)
8212 /* pthread test function */
8216 /* make sure pthread_create() isn't just a stub */
8217 #if HAVE_PTHREADS_D4
8218 status = pthread_create(&t, pthread_attr_default, task, NULL);
8220 status = pthread_create(&t, NULL, task, NULL);
8223 if( status ) exit( status );
8225 /* make sure pthread_detach() isn't just a stub */
8226 #if HAVE_PTHREADS_D4
8227 status = pthread_detach( &t );
8229 status = pthread_detach( t );
8232 #ifdef HAVE_LINUX_THREADS
8233 pthread_kill_other_threads_np();
8241 if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8243 ol_cv_pthread_threads=yes
8245 echo "configure: failed program was:" >&5
8246 cat conftest.$ac_ext >&5
8248 ol_cv_pthread_threads=no
8259 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
8261 if test $ol_cv_pthread_threads = yes ; then
8262 ol_link_pthreads="-threads"
8263 ol_link_threads=posix
8268 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
8269 if test "$ol_link_threads" = no ; then
8270 # try -lpthreads -lmach -lexc -lc_r
8271 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
8272 echo "configure:8273: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
8273 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
8274 echo $ac_n "(cached) $ac_c" 1>&6
8279 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
8281 if test "$cross_compiling" = yes; then
8282 cat > conftest.$ac_ext <<EOF
8283 #line 8284 "configure"
8284 #include "confdefs.h"
8285 /* pthread test headers */
8286 #include <pthread.h>
8288 #define NULL (void*)0
8291 static void *task(p)
8294 return (void *) (p == NULL);
8299 /* pthread test function */
8303 /* make sure pthread_create() isn't just a stub */
8304 #if HAVE_PTHREADS_D4
8305 status = pthread_create(&t, pthread_attr_default, task, NULL);
8307 status = pthread_create(&t, NULL, task, NULL);
8310 if( status ) exit( status );
8312 /* make sure pthread_detach() isn't just a stub */
8313 #if HAVE_PTHREADS_D4
8314 status = pthread_detach( &t );
8316 status = pthread_detach( t );
8319 #ifdef HAVE_LINUX_THREADS
8320 pthread_kill_other_threads_np();
8327 if { (eval echo configure:8328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8329 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8331 echo "configure: failed program was:" >&5
8332 cat conftest.$ac_ext >&5
8334 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8338 cat > conftest.$ac_ext <<EOF
8339 #line 8340 "configure"
8340 #include "confdefs.h"
8341 /* pthread test headers */
8342 #include <pthread.h>
8344 #define NULL (void*)0
8347 static void *task(p)
8350 return (void *) (p == NULL);
8354 int main(argc, argv)
8359 /* pthread test function */
8363 /* make sure pthread_create() isn't just a stub */
8364 #if HAVE_PTHREADS_D4
8365 status = pthread_create(&t, pthread_attr_default, task, NULL);
8367 status = pthread_create(&t, NULL, task, NULL);
8370 if( status ) exit( status );
8372 /* make sure pthread_detach() isn't just a stub */
8373 #if HAVE_PTHREADS_D4
8374 status = pthread_detach( &t );
8376 status = pthread_detach( t );
8379 #ifdef HAVE_LINUX_THREADS
8380 pthread_kill_other_threads_np();
8388 if { (eval echo configure:8389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8390 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8392 echo "configure: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8395 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8406 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
8408 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
8409 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
8410 ol_link_threads=posix
8414 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
8415 if test "$ol_link_threads" = no ; then
8416 # try -lpthreads -lmach -lexc
8417 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
8418 echo "configure:8419: checking for pthread link with -lpthreads -lmach -lexc" >&5
8419 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
8420 echo $ac_n "(cached) $ac_c" 1>&6
8425 LIBS="-lpthreads -lmach -lexc $LIBS"
8427 if test "$cross_compiling" = yes; then
8428 cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8431 /* pthread test headers */
8432 #include <pthread.h>
8434 #define NULL (void*)0
8437 static void *task(p)
8440 return (void *) (p == NULL);
8445 /* pthread test function */
8449 /* make sure pthread_create() isn't just a stub */
8450 #if HAVE_PTHREADS_D4
8451 status = pthread_create(&t, pthread_attr_default, task, NULL);
8453 status = pthread_create(&t, NULL, task, NULL);
8456 if( status ) exit( status );
8458 /* make sure pthread_detach() isn't just a stub */
8459 #if HAVE_PTHREADS_D4
8460 status = pthread_detach( &t );
8462 status = pthread_detach( t );
8465 #ifdef HAVE_LINUX_THREADS
8466 pthread_kill_other_threads_np();
8473 if { (eval echo configure:8474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8475 ol_cv_pthread_lpthreads_lmach_lexc=yes
8477 echo "configure: failed program was:" >&5
8478 cat conftest.$ac_ext >&5
8480 ol_cv_pthread_lpthreads_lmach_lexc=no
8484 cat > conftest.$ac_ext <<EOF
8485 #line 8486 "configure"
8486 #include "confdefs.h"
8487 /* pthread test headers */
8488 #include <pthread.h>
8490 #define NULL (void*)0
8493 static void *task(p)
8496 return (void *) (p == NULL);
8500 int main(argc, argv)
8505 /* pthread test function */
8509 /* make sure pthread_create() isn't just a stub */
8510 #if HAVE_PTHREADS_D4
8511 status = pthread_create(&t, pthread_attr_default, task, NULL);
8513 status = pthread_create(&t, NULL, task, NULL);
8516 if( status ) exit( status );
8518 /* make sure pthread_detach() isn't just a stub */
8519 #if HAVE_PTHREADS_D4
8520 status = pthread_detach( &t );
8522 status = pthread_detach( t );
8525 #ifdef HAVE_LINUX_THREADS
8526 pthread_kill_other_threads_np();
8534 if { (eval echo configure:8535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8536 ol_cv_pthread_lpthreads_lmach_lexc=yes
8538 echo "configure: failed program was:" >&5
8539 cat conftest.$ac_ext >&5
8541 ol_cv_pthread_lpthreads_lmach_lexc=no
8552 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
8554 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
8555 ol_link_pthreads="-lpthreads -lmach -lexc"
8556 ol_link_threads=posix
8560 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
8561 if test "$ol_link_threads" = no ; then
8562 # try -lpthreads -lexc
8563 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
8564 echo "configure:8565: checking for pthread link with -lpthreads -lexc" >&5
8565 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
8566 echo $ac_n "(cached) $ac_c" 1>&6
8571 LIBS="-lpthreads -lexc $LIBS"
8573 if test "$cross_compiling" = yes; then
8574 cat > conftest.$ac_ext <<EOF
8575 #line 8576 "configure"
8576 #include "confdefs.h"
8577 /* pthread test headers */
8578 #include <pthread.h>
8580 #define NULL (void*)0
8583 static void *task(p)
8586 return (void *) (p == NULL);
8591 /* pthread test function */
8595 /* make sure pthread_create() isn't just a stub */
8596 #if HAVE_PTHREADS_D4
8597 status = pthread_create(&t, pthread_attr_default, task, NULL);
8599 status = pthread_create(&t, NULL, task, NULL);
8602 if( status ) exit( status );
8604 /* make sure pthread_detach() isn't just a stub */
8605 #if HAVE_PTHREADS_D4
8606 status = pthread_detach( &t );
8608 status = pthread_detach( t );
8611 #ifdef HAVE_LINUX_THREADS
8612 pthread_kill_other_threads_np();
8619 if { (eval echo configure:8620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8621 ol_cv_pthread_lpthreads_lexc=yes
8623 echo "configure: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8626 ol_cv_pthread_lpthreads_lexc=no
8630 cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure"
8632 #include "confdefs.h"
8633 /* pthread test headers */
8634 #include <pthread.h>
8636 #define NULL (void*)0
8639 static void *task(p)
8642 return (void *) (p == NULL);
8646 int main(argc, argv)
8651 /* pthread test function */
8655 /* make sure pthread_create() isn't just a stub */
8656 #if HAVE_PTHREADS_D4
8657 status = pthread_create(&t, pthread_attr_default, task, NULL);
8659 status = pthread_create(&t, NULL, task, NULL);
8662 if( status ) exit( status );
8664 /* make sure pthread_detach() isn't just a stub */
8665 #if HAVE_PTHREADS_D4
8666 status = pthread_detach( &t );
8668 status = pthread_detach( t );
8671 #ifdef HAVE_LINUX_THREADS
8672 pthread_kill_other_threads_np();
8680 if { (eval echo configure:8681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8682 ol_cv_pthread_lpthreads_lexc=yes
8684 echo "configure: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8687 ol_cv_pthread_lpthreads_lexc=no
8698 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
8700 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
8701 ol_link_pthreads="-lpthreads -lexc"
8702 ol_link_threads=posix
8707 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
8708 if test "$ol_link_threads" = no ; then
8710 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
8711 echo "configure:8712: checking for pthread link with -lpthreads" >&5
8712 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
8713 echo $ac_n "(cached) $ac_c" 1>&6
8718 LIBS="-lpthreads $LIBS"
8720 if test "$cross_compiling" = yes; then
8721 cat > conftest.$ac_ext <<EOF
8722 #line 8723 "configure"
8723 #include "confdefs.h"
8724 /* pthread test headers */
8725 #include <pthread.h>
8727 #define NULL (void*)0
8730 static void *task(p)
8733 return (void *) (p == NULL);
8738 /* pthread test function */
8742 /* make sure pthread_create() isn't just a stub */
8743 #if HAVE_PTHREADS_D4
8744 status = pthread_create(&t, pthread_attr_default, task, NULL);
8746 status = pthread_create(&t, NULL, task, NULL);
8749 if( status ) exit( status );
8751 /* make sure pthread_detach() isn't just a stub */
8752 #if HAVE_PTHREADS_D4
8753 status = pthread_detach( &t );
8755 status = pthread_detach( t );
8758 #ifdef HAVE_LINUX_THREADS
8759 pthread_kill_other_threads_np();
8766 if { (eval echo configure:8767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8768 ol_cv_pthread_lib_lpthreads=yes
8770 echo "configure: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8773 ol_cv_pthread_lib_lpthreads=no
8777 cat > conftest.$ac_ext <<EOF
8778 #line 8779 "configure"
8779 #include "confdefs.h"
8780 /* pthread test headers */
8781 #include <pthread.h>
8783 #define NULL (void*)0
8786 static void *task(p)
8789 return (void *) (p == NULL);
8793 int main(argc, argv)
8798 /* pthread test function */
8802 /* make sure pthread_create() isn't just a stub */
8803 #if HAVE_PTHREADS_D4
8804 status = pthread_create(&t, pthread_attr_default, task, NULL);
8806 status = pthread_create(&t, NULL, task, NULL);
8809 if( status ) exit( status );
8811 /* make sure pthread_detach() isn't just a stub */
8812 #if HAVE_PTHREADS_D4
8813 status = pthread_detach( &t );
8815 status = pthread_detach( t );
8818 #ifdef HAVE_LINUX_THREADS
8819 pthread_kill_other_threads_np();
8827 if { (eval echo configure:8828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8829 ol_cv_pthread_lib_lpthreads=yes
8831 echo "configure: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8834 ol_cv_pthread_lib_lpthreads=no
8845 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
8847 if test $ol_cv_pthread_lib_lpthreads = yes ; then
8848 ol_link_pthreads="-lpthreads"
8849 ol_link_threads=posix
8854 if test $ol_link_threads != no ; then
8855 cat >> confdefs.h <<\EOF
8856 #define HAVE_PTHREADS 1
8860 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
8862 save_CPPFLAGS="$CPPFLAGS"
8864 LIBS="$LTHREAD_LIBS $LIBS"
8866 for ac_func in sched_yield pthread_yield
8868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8869 echo "configure:8870: checking for $ac_func" >&5
8870 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8871 echo $ac_n "(cached) $ac_c" 1>&6
8873 cat > conftest.$ac_ext <<EOF
8874 #line 8875 "configure"
8875 #include "confdefs.h"
8876 /* System header to define __stub macros and hopefully few prototypes,
8877 which can conflict with char $ac_func(); below. */
8879 /* Override any gcc2 internal prototype to avoid an error. */
8880 /* We use char because int might match the return type of a gcc2
8881 builtin and then its argument prototype would still apply. */
8887 /* The GNU C library defines this for functions which it implements
8888 to always fail with ENOSYS. Some functions are actually named
8889 something starting with __ and the normal name is an alias. */
8890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8898 if { (eval echo configure:8899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8900 eval "ac_cv_func_$ac_func=yes"
8902 echo "configure: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8905 eval "ac_cv_func_$ac_func=no"
8910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8911 echo "$ac_t""yes" 1>&6
8912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8913 cat >> confdefs.h <<EOF
8914 #define $ac_tr_func 1
8918 echo "$ac_t""no" 1>&6
8923 if test $ac_cv_func_sched_yield = no -a \
8924 $ac_cv_func_pthread_yield = no ; then
8925 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
8926 echo "configure:8927: checking for sched_yield in -lrt" >&5
8927 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
8928 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8929 echo $ac_n "(cached) $ac_c" 1>&6
8931 ac_save_LIBS="$LIBS"
8933 cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8936 /* Override any gcc2 internal prototype to avoid an error. */
8937 /* We use char because int might match the return type of a gcc2
8938 builtin and then its argument prototype would still apply. */
8945 if { (eval echo configure:8946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8947 eval "ac_cv_lib_$ac_lib_var=yes"
8949 echo "configure: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8952 eval "ac_cv_lib_$ac_lib_var=no"
8955 LIBS="$ac_save_LIBS"
8958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8959 echo "$ac_t""yes" 1>&6
8960 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
8961 cat >> confdefs.h <<\EOF
8962 #define HAVE_SCHED_YIELD 1
8965 ac_cv_func_sched_yield=yes
8967 echo "$ac_t""no" 1>&6
8968 ac_cv_func_sched_yield=no
8972 if test $ac_cv_func_sched_yield = no -a \
8973 $ac_cv_func_pthread_yield = no ; then
8974 for ac_func in thr_yield
8976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8977 echo "configure:8978: checking for $ac_func" >&5
8978 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8979 echo $ac_n "(cached) $ac_c" 1>&6
8981 cat > conftest.$ac_ext <<EOF
8982 #line 8983 "configure"
8983 #include "confdefs.h"
8984 /* System header to define __stub macros and hopefully few prototypes,
8985 which can conflict with char $ac_func(); below. */
8987 /* Override any gcc2 internal prototype to avoid an error. */
8988 /* We use char because int might match the return type of a gcc2
8989 builtin and then its argument prototype would still apply. */
8995 /* The GNU C library defines this for functions which it implements
8996 to always fail with ENOSYS. Some functions are actually named
8997 something starting with __ and the normal name is an alias. */
8998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9006 if { (eval echo configure:9007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9008 eval "ac_cv_func_$ac_func=yes"
9010 echo "configure: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9013 eval "ac_cv_func_$ac_func=no"
9018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9019 echo "$ac_t""yes" 1>&6
9020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9021 cat >> confdefs.h <<EOF
9022 #define $ac_tr_func 1
9026 echo "$ac_t""no" 1>&6
9031 if test $ac_cv_func_sched_yield = no -a \
9032 $ac_cv_func_pthread_yield = no -a \
9033 "$ac_cv_func_thr_yield" = no ; then
9034 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9037 for ac_func in pthread_kill
9039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9040 echo "configure:9041: checking for $ac_func" >&5
9041 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9042 echo $ac_n "(cached) $ac_c" 1>&6
9044 cat > conftest.$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9047 /* System header to define __stub macros and hopefully few prototypes,
9048 which can conflict with char $ac_func(); below. */
9050 /* Override any gcc2 internal prototype to avoid an error. */
9051 /* We use char because int might match the return type of a gcc2
9052 builtin and then its argument prototype would still apply. */
9058 /* The GNU C library defines this for functions which it implements
9059 to always fail with ENOSYS. Some functions are actually named
9060 something starting with __ and the normal name is an alias. */
9061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9069 if { (eval echo configure:9070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9071 eval "ac_cv_func_$ac_func=yes"
9073 echo "configure: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9076 eval "ac_cv_func_$ac_func=no"
9081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9082 echo "$ac_t""yes" 1>&6
9083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9084 cat >> confdefs.h <<EOF
9085 #define $ac_tr_func 1
9089 echo "$ac_t""no" 1>&6
9094 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9095 echo "configure:9096: checking for pthread_detach with <pthread.h>" >&5
9096 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9097 echo $ac_n "(cached) $ac_c" 1>&6
9100 cat > conftest.$ac_ext <<EOF
9101 #line 9102 "configure"
9102 #include "confdefs.h"
9104 #include <pthread.h>
9106 #define NULL (void*)0
9110 pthread_detach(NULL);
9113 if { (eval echo configure:9114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9115 ol_cv_func_pthread_detach=yes
9117 echo "configure: failed program was:" >&5
9118 cat conftest.$ac_ext >&5
9120 ol_cv_func_pthread_detach=no
9126 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9128 if test $ol_cv_func_pthread_detach = no ; then
9129 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9132 cat >> confdefs.h <<\EOF
9133 #define HAVE_PTHREAD_DETACH 1
9138 pthread_setconcurrency \
9139 pthread_getconcurrency \
9140 thr_setconcurrency \
9141 thr_getconcurrency \
9144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9145 echo "configure:9146: checking for $ac_func" >&5
9146 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9147 echo $ac_n "(cached) $ac_c" 1>&6
9149 cat > conftest.$ac_ext <<EOF
9150 #line 9151 "configure"
9151 #include "confdefs.h"
9152 /* System header to define __stub macros and hopefully few prototypes,
9153 which can conflict with char $ac_func(); below. */
9155 /* Override any gcc2 internal prototype to avoid an error. */
9156 /* We use char because int might match the return type of a gcc2
9157 builtin and then its argument prototype would still apply. */
9163 /* The GNU C library defines this for functions which it implements
9164 to always fail with ENOSYS. Some functions are actually named
9165 something starting with __ and the normal name is an alias. */
9166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9174 if { (eval echo configure:9175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9176 eval "ac_cv_func_$ac_func=yes"
9178 echo "configure: failed program was:" >&5
9179 cat conftest.$ac_ext >&5
9181 eval "ac_cv_func_$ac_func=no"
9186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9187 echo "$ac_t""yes" 1>&6
9188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9189 cat >> confdefs.h <<EOF
9190 #define $ac_tr_func 1
9194 echo "$ac_t""no" 1>&6
9200 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
9201 echo "configure:9202: checking for pthread_kill_other_threads_np" >&5
9202 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9205 cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9208 /* System header to define __stub macros and hopefully few prototypes,
9209 which can conflict with char pthread_kill_other_threads_np(); below. */
9211 /* Override any gcc2 internal prototype to avoid an error. */
9212 /* We use char because int might match the return type of a gcc2
9213 builtin and then its argument prototype would still apply. */
9214 char pthread_kill_other_threads_np();
9219 /* The GNU C library defines this for functions which it implements
9220 to always fail with ENOSYS. Some functions are actually named
9221 something starting with __ and the normal name is an alias. */
9222 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
9225 f = pthread_kill_other_threads_np;
9230 if { (eval echo configure:9231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9232 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
9234 echo "configure: failed program was:" >&5
9235 cat conftest.$ac_ext >&5
9237 eval "ac_cv_func_pthread_kill_other_threads_np=no"
9242 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
9243 echo "$ac_t""yes" 1>&6
9246 echo "$ac_t""no" 1>&6
9249 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
9250 echo "configure:9251: checking for LinuxThreads implementation" >&5
9251 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
9252 echo $ac_n "(cached) $ac_c" 1>&6
9254 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
9257 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
9262 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
9263 echo "configure:9264: checking for LinuxThreads consistency" >&5
9264 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
9265 echo $ac_n "(cached) $ac_c" 1>&6
9268 if test $ol_cv_header_linux_threads = yes -a \
9269 $ol_cv_sys_linux_threads = yes; then
9270 ol_cv_linux_threads=yes
9271 elif test $ol_cv_header_linux_threads = no -a \
9272 $ol_cv_sys_linux_threads = no; then
9273 ol_cv_linux_threads=no
9275 ol_cv_linux_threads=error
9280 echo "$ac_t""$ol_cv_linux_threads" 1>&6
9283 if test $ol_cv_linux_threads = error; then
9284 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
9287 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
9288 echo "configure:9289: checking if pthread_create() works" >&5
9289 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
9290 echo $ac_n "(cached) $ac_c" 1>&6
9293 if test "$cross_compiling" = yes; then
9294 ol_cv_pthread_create_works=yes
9296 cat > conftest.$ac_ext <<EOF
9297 #line 9298 "configure"
9298 #include "confdefs.h"
9299 /* pthread test headers */
9300 #include <pthread.h>
9302 #define NULL (void*)0
9305 static void *task(p)
9308 return (void *) (p == NULL);
9312 int main(argc, argv)
9317 /* pthread test function */
9321 /* make sure pthread_create() isn't just a stub */
9322 #if HAVE_PTHREADS_D4
9323 status = pthread_create(&t, pthread_attr_default, task, NULL);
9325 status = pthread_create(&t, NULL, task, NULL);
9328 if( status ) exit( status );
9330 /* make sure pthread_detach() isn't just a stub */
9331 #if HAVE_PTHREADS_D4
9332 status = pthread_detach( &t );
9334 status = pthread_detach( t );
9337 #ifdef HAVE_LINUX_THREADS
9338 pthread_kill_other_threads_np();
9346 if { (eval echo configure:9347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9348 ol_cv_pthread_create_works=yes
9350 echo "configure: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9353 ol_cv_pthread_create_works=no
9360 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
9362 if test $ol_cv_pthread_create_works = no ; then
9363 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
9366 if test $ol_with_yielding_select = auto ; then
9367 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
9368 echo "configure:9369: checking if select yields when using pthreads" >&5
9369 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9373 if test "$cross_compiling" = yes; then
9374 ol_cv_pthread_select_yields=cross
9376 cat > conftest.$ac_ext <<EOF
9377 #line 9378 "configure"
9378 #include "confdefs.h"
9380 #include <sys/types.h>
9381 #include <sys/time.h>
9383 #include <pthread.h>
9385 #define NULL (void*) 0
9388 static int fildes[2];
9390 static void *task(p)
9402 FD_SET(fildes[0], &rfds);
9404 /* we're not interested in any fds */
9405 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
9412 exit(0); /* if we exit here, the select blocked the whole process */
9415 int main(argc, argv)
9421 /* create a pipe to select */
9422 if(pipe(&fildes[0])) {
9427 #ifdef HAVE_PTHREAD_SETCONCURRENCY
9428 (void) pthread_setconcurrency(2);
9430 #ifdef HAVE_THR_SETCONCURRENCY
9431 /* Set Solaris LWP concurrency to 2 */
9432 thr_setconcurrency(2);
9436 #if HAVE_PTHREADS_D4
9437 pthread_create(&t, pthread_attr_default, task, NULL);
9439 pthread_create(&t, NULL, task, NULL);
9442 #if HAVE_SCHED_YIELD
9443 sched_yield(); /* make sure task runs first */
9445 #ifdef HAVE_PTHREAD_YIELD
9446 pthread_yield(); /* make sure task runs first */
9453 if { (eval echo configure:9454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9455 ol_cv_pthread_select_yields=no
9457 echo "configure: failed program was:" >&5
9458 cat conftest.$ac_ext >&5
9460 ol_cv_pthread_select_yields=yes
9467 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
9469 if test $ol_cv_pthread_select_yields = cross ; then
9470 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
9473 if test $ol_cv_pthread_select_yields = yes ; then
9474 ol_with_yielding_select=yes
9478 CPPFLAGS="$save_CPPFLAGS"
9481 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
9485 if test $ol_with_threads = posix ; then
9486 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
9490 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9491 -o $ol_with_threads = mach ; then
9493 for ac_hdr in mach/cthreads.h
9495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9497 echo "configure:9498: checking for $ac_hdr" >&5
9498 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9499 echo $ac_n "(cached) $ac_c" 1>&6
9501 cat > conftest.$ac_ext <<EOF
9502 #line 9503 "configure"
9503 #include "confdefs.h"
9506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9507 { (eval echo configure:9508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9509 if test -z "$ac_err"; then
9511 eval "ac_cv_header_$ac_safe=yes"
9514 echo "configure: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9517 eval "ac_cv_header_$ac_safe=no"
9521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9522 echo "$ac_t""yes" 1>&6
9523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9524 cat >> confdefs.h <<EOF
9525 #define $ac_tr_hdr 1
9529 echo "$ac_t""no" 1>&6
9533 if test $ac_cv_header_mach_cthreads_h = yes ; then
9534 ol_with_threads=found
9536 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
9537 echo "configure:9538: checking for cthread_fork" >&5
9538 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
9539 echo $ac_n "(cached) $ac_c" 1>&6
9541 cat > conftest.$ac_ext <<EOF
9542 #line 9543 "configure"
9543 #include "confdefs.h"
9544 /* System header to define __stub macros and hopefully few prototypes,
9545 which can conflict with char cthread_fork(); below. */
9547 /* Override any gcc2 internal prototype to avoid an error. */
9548 /* We use char because int might match the return type of a gcc2
9549 builtin and then its argument prototype would still apply. */
9550 char cthread_fork();
9555 /* The GNU C library defines this for functions which it implements
9556 to always fail with ENOSYS. Some functions are actually named
9557 something starting with __ and the normal name is an alias. */
9558 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
9566 if { (eval echo configure:9567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9568 eval "ac_cv_func_cthread_fork=yes"
9570 echo "configure: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9573 eval "ac_cv_func_cthread_fork=no"
9578 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
9579 echo "$ac_t""yes" 1>&6
9582 echo "$ac_t""no" 1>&6
9586 if test $ol_link_threads = no ; then
9587 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
9588 echo "configure:9589: checking for cthread_fork with -all_load" >&5
9589 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
9590 echo $ac_n "(cached) $ac_c" 1>&6
9594 LIBS="-all_load $LIBS"
9595 cat > conftest.$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9598 #include <mach/cthreads.h>
9601 cthread_fork((void *)0, (void *)0);
9605 if { (eval echo configure:9606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9607 ol_cv_cthread_all_load=yes
9609 echo "configure: failed program was:" >&5
9610 cat conftest.$ac_ext >&5
9612 ol_cv_cthread_all_load=no
9619 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
9621 if test $ol_cv_cthread_all_load = yes ; then
9622 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
9623 ol_link_threads=mach
9627 if test $ol_link_threads != no ; then
9628 : check for cthread specific functionality here
9629 cat >> confdefs.h <<\EOF
9630 #define HAVE_MACH_CTHREADS 1
9634 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
9638 if test $ol_with_threads = mach ; then
9639 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
9643 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9644 -o $ol_with_threads = pth ; then
9648 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9649 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9650 echo "configure:9651: checking for $ac_hdr" >&5
9651 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9652 echo $ac_n "(cached) $ac_c" 1>&6
9654 cat > conftest.$ac_ext <<EOF
9655 #line 9656 "configure"
9656 #include "confdefs.h"
9659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9660 { (eval echo configure:9661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9662 if test -z "$ac_err"; then
9664 eval "ac_cv_header_$ac_safe=yes"
9667 echo "configure: failed program was:" >&5
9668 cat conftest.$ac_ext >&5
9670 eval "ac_cv_header_$ac_safe=no"
9674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9675 echo "$ac_t""yes" 1>&6
9676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9677 cat >> confdefs.h <<EOF
9678 #define $ac_tr_hdr 1
9682 echo "$ac_t""no" 1>&6
9687 if test $ac_cv_header_pth_h = yes ; then
9688 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
9689 echo "configure:9690: checking for pth_version in -lpth" >&5
9690 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
9691 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9692 echo $ac_n "(cached) $ac_c" 1>&6
9694 ac_save_LIBS="$LIBS"
9696 cat > conftest.$ac_ext <<EOF
9697 #line 9698 "configure"
9698 #include "confdefs.h"
9699 /* Override any gcc2 internal prototype to avoid an error. */
9700 /* We use char because int might match the return type of a gcc2
9701 builtin and then its argument prototype would still apply. */
9708 if { (eval echo configure:9709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9710 eval "ac_cv_lib_$ac_lib_var=yes"
9712 echo "configure: failed program was:" >&5
9713 cat conftest.$ac_ext >&5
9715 eval "ac_cv_lib_$ac_lib_var=no"
9718 LIBS="$ac_save_LIBS"
9721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9722 echo "$ac_t""yes" 1>&6
9725 echo "$ac_t""no" 1>&6
9730 if test $have_pth = yes ; then
9731 cat >> confdefs.h <<\EOF
9732 #define HAVE_GNU_PTH 1
9735 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
9738 if test $ol_with_yielding_select = auto ; then
9739 ol_with_yielding_select=yes
9745 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9746 -o $ol_with_threads = lwp ; then
9748 for ac_hdr in thread.h synch.h
9750 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9752 echo "configure:9753: checking for $ac_hdr" >&5
9753 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9754 echo $ac_n "(cached) $ac_c" 1>&6
9756 cat > conftest.$ac_ext <<EOF
9757 #line 9758 "configure"
9758 #include "confdefs.h"
9761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9762 { (eval echo configure:9763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9764 if test -z "$ac_err"; then
9766 eval "ac_cv_header_$ac_safe=yes"
9769 echo "configure: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9772 eval "ac_cv_header_$ac_safe=no"
9776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9777 echo "$ac_t""yes" 1>&6
9778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9779 cat >> confdefs.h <<EOF
9780 #define $ac_tr_hdr 1
9784 echo "$ac_t""no" 1>&6
9788 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
9789 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
9790 echo "configure:9791: checking for thr_create in -lthread" >&5
9791 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
9792 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9793 echo $ac_n "(cached) $ac_c" 1>&6
9795 ac_save_LIBS="$LIBS"
9796 LIBS="-lthread $LIBS"
9797 cat > conftest.$ac_ext <<EOF
9798 #line 9799 "configure"
9799 #include "confdefs.h"
9800 /* Override any gcc2 internal prototype to avoid an error. */
9801 /* We use char because int might match the return type of a gcc2
9802 builtin and then its argument prototype would still apply. */
9809 if { (eval echo configure:9810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9811 eval "ac_cv_lib_$ac_lib_var=yes"
9813 echo "configure: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9816 eval "ac_cv_lib_$ac_lib_var=no"
9819 LIBS="$ac_save_LIBS"
9822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9823 echo "$ac_t""yes" 1>&6
9826 echo "$ac_t""no" 1>&6
9831 if test $have_thr = yes ; then
9832 cat >> confdefs.h <<\EOF
9836 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
9839 if test $ol_with_yielding_select = auto ; then
9840 ol_with_yielding_select=yes
9844 thr_setconcurrency \
9845 thr_getconcurrency \
9848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9849 echo "configure:9850: checking for $ac_func" >&5
9850 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9851 echo $ac_n "(cached) $ac_c" 1>&6
9853 cat > conftest.$ac_ext <<EOF
9854 #line 9855 "configure"
9855 #include "confdefs.h"
9856 /* System header to define __stub macros and hopefully few prototypes,
9857 which can conflict with char $ac_func(); below. */
9859 /* Override any gcc2 internal prototype to avoid an error. */
9860 /* We use char because int might match the return type of a gcc2
9861 builtin and then its argument prototype would still apply. */
9867 /* The GNU C library defines this for functions which it implements
9868 to always fail with ENOSYS. Some functions are actually named
9869 something starting with __ and the normal name is an alias. */
9870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9878 if { (eval echo configure:9879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9880 eval "ac_cv_func_$ac_func=yes"
9882 echo "configure: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9885 eval "ac_cv_func_$ac_func=no"
9890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9891 echo "$ac_t""yes" 1>&6
9892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9893 cat >> confdefs.h <<EOF
9894 #define $ac_tr_func 1
9898 echo "$ac_t""no" 1>&6
9905 for ac_hdr in lwp/lwp.h
9907 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9908 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9909 echo "configure:9910: checking for $ac_hdr" >&5
9910 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9911 echo $ac_n "(cached) $ac_c" 1>&6
9913 cat > conftest.$ac_ext <<EOF
9914 #line 9915 "configure"
9915 #include "confdefs.h"
9918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9919 { (eval echo configure:9920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9921 if test -z "$ac_err"; then
9923 eval "ac_cv_header_$ac_safe=yes"
9926 echo "configure: failed program was:" >&5
9927 cat conftest.$ac_ext >&5
9929 eval "ac_cv_header_$ac_safe=no"
9933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9934 echo "$ac_t""yes" 1>&6
9935 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9936 cat >> confdefs.h <<EOF
9937 #define $ac_tr_hdr 1
9941 echo "$ac_t""no" 1>&6
9945 if test $ac_cv_header_lwp_lwp_h = yes ; then
9946 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
9947 echo "configure:9948: checking for lwp_create in -llwp" >&5
9948 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
9949 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9950 echo $ac_n "(cached) $ac_c" 1>&6
9952 ac_save_LIBS="$LIBS"
9954 cat > conftest.$ac_ext <<EOF
9955 #line 9956 "configure"
9956 #include "confdefs.h"
9957 /* Override any gcc2 internal prototype to avoid an error. */
9958 /* We use char because int might match the return type of a gcc2
9959 builtin and then its argument prototype would still apply. */
9966 if { (eval echo configure:9967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9968 eval "ac_cv_lib_$ac_lib_var=yes"
9970 echo "configure: failed program was:" >&5
9971 cat conftest.$ac_ext >&5
9973 eval "ac_cv_lib_$ac_lib_var=no"
9976 LIBS="$ac_save_LIBS"
9979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9980 echo "$ac_t""yes" 1>&6
9983 echo "$ac_t""no" 1>&6
9988 if test $have_lwp = yes ; then
9989 cat >> confdefs.h <<\EOF
9993 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
9996 if test $ol_with_yielding_select = auto ; then
9997 ol_with_yielding_select=no
10003 if test $ol_with_yielding_select = yes ; then
10004 cat >> confdefs.h <<\EOF
10005 #define HAVE_YIELDING_SELECT 1
10010 if test $ol_with_threads = manual ; then
10011 ol_link_threads=yes
10013 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10015 for ac_hdr in pthread.h sched.h
10017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10019 echo "configure:10020: checking for $ac_hdr" >&5
10020 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10021 echo $ac_n "(cached) $ac_c" 1>&6
10023 cat > conftest.$ac_ext <<EOF
10024 #line 10025 "configure"
10025 #include "confdefs.h"
10028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10029 { (eval echo configure:10030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10031 if test -z "$ac_err"; then
10033 eval "ac_cv_header_$ac_safe=yes"
10036 echo "configure: failed program was:" >&5
10037 cat conftest.$ac_ext >&5
10039 eval "ac_cv_header_$ac_safe=no"
10043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10044 echo "$ac_t""yes" 1>&6
10045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10046 cat >> confdefs.h <<EOF
10047 #define $ac_tr_hdr 1
10051 echo "$ac_t""no" 1>&6
10055 for ac_func in sched_yield pthread_yield
10057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10058 echo "configure:10059: checking for $ac_func" >&5
10059 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10060 echo $ac_n "(cached) $ac_c" 1>&6
10062 cat > conftest.$ac_ext <<EOF
10063 #line 10064 "configure"
10064 #include "confdefs.h"
10065 /* System header to define __stub macros and hopefully few prototypes,
10066 which can conflict with char $ac_func(); below. */
10067 #include <assert.h>
10068 /* Override any gcc2 internal prototype to avoid an error. */
10069 /* We use char because int might match the return type of a gcc2
10070 builtin and then its argument prototype would still apply. */
10076 /* The GNU C library defines this for functions which it implements
10077 to always fail with ENOSYS. Some functions are actually named
10078 something starting with __ and the normal name is an alias. */
10079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10087 if { (eval echo configure:10088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10089 eval "ac_cv_func_$ac_func=yes"
10091 echo "configure: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10094 eval "ac_cv_func_$ac_func=no"
10099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10100 echo "$ac_t""yes" 1>&6
10101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10102 cat >> confdefs.h <<EOF
10103 #define $ac_tr_func 1
10107 echo "$ac_t""no" 1>&6
10112 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10113 echo "configure:10114: checking for LinuxThreads pthread.h" >&5
10114 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
10115 echo $ac_n "(cached) $ac_c" 1>&6
10117 cat > conftest.$ac_ext <<EOF
10118 #line 10119 "configure"
10119 #include "confdefs.h"
10120 #include <pthread.h>
10122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10123 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10125 ol_cv_header_linux_threads=yes
10128 ol_cv_header_linux_threads=no
10135 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10136 if test $ol_cv_header_linux_threads = yes; then
10137 cat >> confdefs.h <<\EOF
10138 #define HAVE_LINUX_THREADS 1
10144 for ac_hdr in mach/cthreads.h
10146 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10147 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10148 echo "configure:10149: checking for $ac_hdr" >&5
10149 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10150 echo $ac_n "(cached) $ac_c" 1>&6
10152 cat > conftest.$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10158 { (eval echo configure:10159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10160 if test -z "$ac_err"; then
10162 eval "ac_cv_header_$ac_safe=yes"
10165 echo "configure: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10168 eval "ac_cv_header_$ac_safe=no"
10172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10173 echo "$ac_t""yes" 1>&6
10174 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10175 cat >> confdefs.h <<EOF
10176 #define $ac_tr_hdr 1
10180 echo "$ac_t""no" 1>&6
10184 for ac_hdr in lwp/lwp.h
10186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10188 echo "configure:10189: checking for $ac_hdr" >&5
10189 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10190 echo $ac_n "(cached) $ac_c" 1>&6
10192 cat > conftest.$ac_ext <<EOF
10193 #line 10194 "configure"
10194 #include "confdefs.h"
10197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10198 { (eval echo configure:10199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10200 if test -z "$ac_err"; then
10202 eval "ac_cv_header_$ac_safe=yes"
10205 echo "configure: failed program was:" >&5
10206 cat conftest.$ac_ext >&5
10208 eval "ac_cv_header_$ac_safe=no"
10212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10213 echo "$ac_t""yes" 1>&6
10214 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10215 cat >> confdefs.h <<EOF
10216 #define $ac_tr_hdr 1
10220 echo "$ac_t""no" 1>&6
10224 for ac_hdr in thread.h synch.h
10226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10228 echo "configure:10229: checking for $ac_hdr" >&5
10229 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10230 echo $ac_n "(cached) $ac_c" 1>&6
10232 cat > conftest.$ac_ext <<EOF
10233 #line 10234 "configure"
10234 #include "confdefs.h"
10237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10238 { (eval echo configure:10239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10240 if test -z "$ac_err"; then
10242 eval "ac_cv_header_$ac_safe=yes"
10245 echo "configure: failed program was:" >&5
10246 cat conftest.$ac_ext >&5
10248 eval "ac_cv_header_$ac_safe=no"
10252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10253 echo "$ac_t""yes" 1>&6
10254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10255 cat >> confdefs.h <<EOF
10256 #define $ac_tr_hdr 1
10260 echo "$ac_t""no" 1>&6
10266 if test $ol_link_threads != no ; then
10267 cat >> confdefs.h <<\EOF
10268 #define REENTRANT 1
10271 cat >> confdefs.h <<\EOF
10272 #define _REENTRANT 1
10275 cat >> confdefs.h <<\EOF
10276 #define THREAD_SAFE 1
10279 cat >> confdefs.h <<\EOF
10280 #define _THREAD_SAFE 1
10283 cat >> confdefs.h <<\EOF
10284 #define THREADSAFE 1
10287 cat >> confdefs.h <<\EOF
10288 #define _THREADSAFE 1
10291 cat >> confdefs.h <<\EOF
10292 #define _SGI_MP_SOURCE 1
10296 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
10297 echo "configure:10298: checking for thread specific errno" >&5
10298 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
10299 echo $ac_n "(cached) $ac_c" 1>&6
10302 cat > conftest.$ac_ext <<EOF
10303 #line 10304 "configure"
10304 #include "confdefs.h"
10310 if { (eval echo configure:10311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10312 ol_cv_errno_thread_specific=yes
10314 echo "configure: failed program was:" >&5
10315 cat conftest.$ac_ext >&5
10317 ol_cv_errno_thread_specific=no
10323 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
10325 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
10326 echo "configure:10327: checking for thread specific h_errno" >&5
10327 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
10328 echo $ac_n "(cached) $ac_c" 1>&6
10331 cat > conftest.$ac_ext <<EOF
10332 #line 10333 "configure"
10333 #include "confdefs.h"
10339 if { (eval echo configure:10340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10341 ol_cv_h_errno_thread_specific=yes
10343 echo "configure: failed program was:" >&5
10344 cat conftest.$ac_ext >&5
10346 ol_cv_h_errno_thread_specific=no
10352 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
10354 if test $ol_cv_errno_thread_specific != yes \
10355 -o $ol_cv_h_errno_thread_specific != yes ; then
10356 LIBS="$LTHREAD_LIBS $LIBS"
10362 if test $ol_link_threads = no ; then
10363 if test $ol_with_threads = yes ; then
10364 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
10367 if test $ol_with_threads = auto ; then
10368 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
10372 cat >> confdefs.h <<\EOF
10373 #define NO_THREADS 1
10379 if test $ol_link_threads != no ; then
10380 cat >> confdefs.h <<\EOF
10381 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
10388 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
10389 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
10390 echo "configure:10391: checking for DB2 library" >&5
10391 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
10392 echo $ac_n "(cached) $ac_c" 1>&6
10395 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
10396 echo "configure:10397: checking for db_open in -ldb" >&5
10397 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
10398 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10399 echo $ac_n "(cached) $ac_c" 1>&6
10401 ac_save_LIBS="$LIBS"
10403 cat > conftest.$ac_ext <<EOF
10404 #line 10405 "configure"
10405 #include "confdefs.h"
10406 /* Override any gcc2 internal prototype to avoid an error. */
10407 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */
10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10417 eval "ac_cv_lib_$ac_lib_var=yes"
10419 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10422 eval "ac_cv_lib_$ac_lib_var=no"
10425 LIBS="$ac_save_LIBS"
10428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10429 echo "$ac_t""yes" 1>&6
10432 echo "$ac_t""no" 1>&6
10440 echo "$ac_t""$ol_cv_lib_db2" 1>&6
10444 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10445 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10446 echo "configure:10447: checking for $ac_hdr" >&5
10447 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10448 echo $ac_n "(cached) $ac_c" 1>&6
10450 cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10456 { (eval echo configure:10457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10458 if test -z "$ac_err"; then
10460 eval "ac_cv_header_$ac_safe=yes"
10463 echo "configure: failed program was:" >&5
10464 cat conftest.$ac_ext >&5
10466 eval "ac_cv_header_$ac_safe=no"
10470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10471 echo "$ac_t""yes" 1>&6
10472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10473 cat >> confdefs.h <<EOF
10474 #define $ac_tr_hdr 1
10478 echo "$ac_t""no" 1>&6
10482 if test $ac_cv_header_db_h = yes ; then
10483 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
10484 echo "configure:10485: checking if db.h is DB2" >&5
10485 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
10486 echo $ac_n "(cached) $ac_c" 1>&6
10489 cat > conftest.$ac_ext <<EOF
10490 #line 10491 "configure"
10491 #include "confdefs.h"
10494 /* this check could be improved */
10495 # ifdef DB_VERSION_MAJOR
10496 # if DB_VERSION_MAJOR == 2
10502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10503 egrep "__db_version_2" >/dev/null 2>&1; then
10505 ol_cv_header_db2=yes
10508 ol_cv_header_db2=no
10514 echo "$ac_t""$ol_cv_header_db2" 1>&6
10516 ol_cv_header_db2=no
10521 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
10522 echo "configure:10523: checking for Berkeley DB2" >&5
10523 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
10524 echo $ac_n "(cached) $ac_c" 1>&6
10527 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
10528 ol_cv_berkeley_db2=no
10530 ol_cv_berkeley_db2=yes
10535 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
10536 if test $ol_cv_berkeley_db2 = yes ; then
10537 cat >> confdefs.h <<\EOF
10538 #define HAVE_BERKELEY_DB2 1
10544 if test $ol_cv_berkeley_db2 = yes ; then
10546 ol_with_ldbm_api=db2
10548 if test $ol_with_ldbm_type = hash ; then
10549 cat >> confdefs.h <<\EOF
10550 #define LDBM_USE_DBHASH 1
10554 cat >> confdefs.h <<\EOF
10555 #define LDBM_USE_DBBTREE 1
10560 if test $ol_cv_lib_db2 != yes ; then
10561 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
10567 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
10571 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
10572 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
10573 echo "configure:10574: checking for Berkeley DB library" >&5
10574 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
10575 echo $ac_n "(cached) $ac_c" 1>&6
10578 for ac_hdr in db1/db.h
10580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10582 echo "configure:10583: checking for $ac_hdr" >&5
10583 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
10586 cat > conftest.$ac_ext <<EOF
10587 #line 10588 "configure"
10588 #include "confdefs.h"
10591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10592 { (eval echo configure:10593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10594 if test -z "$ac_err"; then
10596 eval "ac_cv_header_$ac_safe=yes"
10599 echo "configure: failed program was:" >&5
10600 cat conftest.$ac_ext >&5
10602 eval "ac_cv_header_$ac_safe=no"
10606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10607 echo "$ac_t""yes" 1>&6
10608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10609 cat >> confdefs.h <<EOF
10610 #define $ac_tr_hdr 1
10614 echo "$ac_t""no" 1>&6
10619 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
10620 echo "configure:10621: checking for dbopen" >&5
10621 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
10622 echo $ac_n "(cached) $ac_c" 1>&6
10624 cat > conftest.$ac_ext <<EOF
10625 #line 10626 "configure"
10626 #include "confdefs.h"
10627 /* System header to define __stub macros and hopefully few prototypes,
10628 which can conflict with char dbopen(); below. */
10629 #include <assert.h>
10630 /* Override any gcc2 internal prototype to avoid an error. */
10631 /* We use char because int might match the return type of a gcc2
10632 builtin and then its argument prototype would still apply. */
10638 /* The GNU C library defines this for functions which it implements
10639 to always fail with ENOSYS. Some functions are actually named
10640 something starting with __ and the normal name is an alias. */
10641 #if defined (__stub_dbopen) || defined (__stub___dbopen)
10649 if { (eval echo configure:10650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10651 eval "ac_cv_func_dbopen=yes"
10653 echo "configure: failed program was:" >&5
10654 cat conftest.$ac_ext >&5
10656 eval "ac_cv_func_dbopen=no"
10661 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
10662 echo "$ac_t""yes" 1>&6
10665 echo "$ac_t""no" 1>&6
10667 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
10668 echo "configure:10669: checking for dbopen in -ldb1" >&5
10669 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
10670 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10671 echo $ac_n "(cached) $ac_c" 1>&6
10673 ac_save_LIBS="$LIBS"
10675 cat > conftest.$ac_ext <<EOF
10676 #line 10677 "configure"
10677 #include "confdefs.h"
10678 /* Override any gcc2 internal prototype to avoid an error. */
10679 /* We use char because int might match the return type of a gcc2
10680 builtin and then its argument prototype would still apply. */
10687 if { (eval echo configure:10688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10689 eval "ac_cv_lib_$ac_lib_var=yes"
10691 echo "configure: failed program was:" >&5
10692 cat conftest.$ac_ext >&5
10694 eval "ac_cv_lib_$ac_lib_var=no"
10697 LIBS="$ac_save_LIBS"
10700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10701 echo "$ac_t""yes" 1>&6
10704 echo "$ac_t""no" 1>&6
10706 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
10707 echo "configure:10708: checking for dbopen in -ldb" >&5
10708 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
10709 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10710 echo $ac_n "(cached) $ac_c" 1>&6
10712 ac_save_LIBS="$LIBS"
10714 cat > conftest.$ac_ext <<EOF
10715 #line 10716 "configure"
10716 #include "confdefs.h"
10717 /* Override any gcc2 internal prototype to avoid an error. */
10718 /* We use char because int might match the return type of a gcc2
10719 builtin and then its argument prototype would still apply. */
10726 if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10728 eval "ac_cv_lib_$ac_lib_var=yes"
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10733 eval "ac_cv_lib_$ac_lib_var=no"
10736 LIBS="$ac_save_LIBS"
10739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10740 echo "$ac_t""yes" 1>&6
10743 echo "$ac_t""no" 1>&6
10757 echo "$ac_t""$ol_cv_lib_db" 1>&6
10760 for ac_hdr in db_185.h
10762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10764 echo "configure:10765: checking for $ac_hdr" >&5
10765 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10766 echo $ac_n "(cached) $ac_c" 1>&6
10768 cat > conftest.$ac_ext <<EOF
10769 #line 10770 "configure"
10770 #include "confdefs.h"
10773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10774 { (eval echo configure:10775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10776 if test -z "$ac_err"; then
10778 eval "ac_cv_header_$ac_safe=yes"
10781 echo "configure: failed program was:" >&5
10782 cat conftest.$ac_ext >&5
10784 eval "ac_cv_header_$ac_safe=no"
10788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10789 echo "$ac_t""yes" 1>&6
10790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10791 cat >> confdefs.h <<EOF
10792 #define $ac_tr_hdr 1
10796 echo "$ac_t""no" 1>&6
10800 if test "$ol_cv_header_db2" = yes ; then
10802 ol_cv_header_db=$ac_cv_header_db_185_h
10804 ol_cv_header_db=$ac_cv_header_db_h
10809 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
10810 echo "configure:10811: checking for Berkeley DB" >&5
10811 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
10812 echo $ac_n "(cached) $ac_c" 1>&6
10815 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
10816 ol_cv_berkeley_db=no
10818 ol_cv_berkeley_db=yes
10823 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
10824 if test $ol_cv_berkeley_db = yes ; then
10825 cat >> confdefs.h <<\EOF
10826 #define HAVE_BERKELEY_DB 1
10832 if test $ol_cv_berkeley_db = yes ; then
10834 ol_with_ldbm_api=db
10836 if test $ol_with_ldbm_type = hash ; then
10837 cat >> confdefs.h <<\EOF
10838 #define LDBM_USE_DBHASH 1
10842 cat >> confdefs.h <<\EOF
10843 #define LDBM_USE_DBBTREE 1
10848 if test $ol_cv_lib_db != yes ; then
10849 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
10854 if test $ol_with_ldbm_api = manual ; then
10857 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
10859 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
10861 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10862 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10863 echo "configure:10864: checking for $ac_hdr" >&5
10864 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10865 echo $ac_n "(cached) $ac_c" 1>&6
10867 cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10873 { (eval echo configure:10874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10875 if test -z "$ac_err"; then
10877 eval "ac_cv_header_$ac_safe=yes"
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10883 eval "ac_cv_header_$ac_safe=no"
10887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10888 echo "$ac_t""yes" 1>&6
10889 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10890 cat >> confdefs.h <<EOF
10891 #define $ac_tr_hdr 1
10895 echo "$ac_t""no" 1>&6
10901 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
10902 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
10903 ol_with_ldbm_api=none
10906 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
10907 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
10908 echo "configure:10909: checking for MDBM library" >&5
10909 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
10910 echo $ac_n "(cached) $ac_c" 1>&6
10913 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
10914 echo "configure:10915: checking for mdbm_set_chain" >&5
10915 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
10916 echo $ac_n "(cached) $ac_c" 1>&6
10918 cat > conftest.$ac_ext <<EOF
10919 #line 10920 "configure"
10920 #include "confdefs.h"
10921 /* System header to define __stub macros and hopefully few prototypes,
10922 which can conflict with char mdbm_set_chain(); below. */
10923 #include <assert.h>
10924 /* Override any gcc2 internal prototype to avoid an error. */
10925 /* We use char because int might match the return type of a gcc2
10926 builtin and then its argument prototype would still apply. */
10927 char mdbm_set_chain();
10932 /* The GNU C library defines this for functions which it implements
10933 to always fail with ENOSYS. Some functions are actually named
10934 something starting with __ and the normal name is an alias. */
10935 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
10938 f = mdbm_set_chain;
10943 if { (eval echo configure:10944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10945 eval "ac_cv_func_mdbm_set_chain=yes"
10947 echo "configure: failed program was:" >&5
10948 cat conftest.$ac_ext >&5
10950 eval "ac_cv_func_mdbm_set_chain=no"
10955 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
10956 echo "$ac_t""yes" 1>&6
10959 echo "$ac_t""no" 1>&6
10961 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
10962 echo "configure:10963: checking for mdbm_set_chain in -lmdbm" >&5
10963 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
10964 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10965 echo $ac_n "(cached) $ac_c" 1>&6
10967 ac_save_LIBS="$LIBS"
10968 LIBS="-lmdbm $LIBS"
10969 cat > conftest.$ac_ext <<EOF
10970 #line 10971 "configure"
10971 #include "confdefs.h"
10972 /* Override any gcc2 internal prototype to avoid an error. */
10973 /* We use char because int might match the return type of a gcc2
10974 builtin and then its argument prototype would still apply. */
10975 char mdbm_set_chain();
10981 if { (eval echo configure:10982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10983 eval "ac_cv_lib_$ac_lib_var=yes"
10985 echo "configure: failed program was:" >&5
10986 cat conftest.$ac_ext >&5
10988 eval "ac_cv_lib_$ac_lib_var=no"
10991 LIBS="$ac_save_LIBS"
10994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10995 echo "$ac_t""yes" 1>&6
10996 ol_cv_lib_mdbm=-lmdbm
10998 echo "$ac_t""no" 1>&6
11009 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
11012 for ac_hdr in mdbm.h
11014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11016 echo "configure:11017: checking for $ac_hdr" >&5
11017 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11018 echo $ac_n "(cached) $ac_c" 1>&6
11020 cat > conftest.$ac_ext <<EOF
11021 #line 11022 "configure"
11022 #include "confdefs.h"
11025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11026 { (eval echo configure:11027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11028 if test -z "$ac_err"; then
11030 eval "ac_cv_header_$ac_safe=yes"
11033 echo "configure: failed program was:" >&5
11034 cat conftest.$ac_ext >&5
11036 eval "ac_cv_header_$ac_safe=no"
11040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11041 echo "$ac_t""yes" 1>&6
11042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11043 cat >> confdefs.h <<EOF
11044 #define $ac_tr_hdr 1
11048 echo "$ac_t""no" 1>&6
11052 echo $ac_n "checking for db""... $ac_c" 1>&6
11053 echo "configure:11054: checking for db" >&5
11054 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
11055 echo $ac_n "(cached) $ac_c" 1>&6
11058 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
11066 echo "$ac_t""$ol_cv_mdbm" 1>&6
11067 if test $ol_cv_mdbm = yes ; then
11068 cat >> confdefs.h <<\EOF
11069 #define HAVE_MDBM 1
11075 if test $ol_cv_mdbm = yes ; then
11077 ol_with_ldbm_api=mdbm
11078 if test $ol_cv_lib_mdbm != yes ; then
11079 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
11084 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
11085 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
11086 echo "configure:11087: checking for GDBM library" >&5
11087 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11091 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
11092 echo "configure:11093: checking for gdbm_open" >&5
11093 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
11094 echo $ac_n "(cached) $ac_c" 1>&6
11096 cat > conftest.$ac_ext <<EOF
11097 #line 11098 "configure"
11098 #include "confdefs.h"
11099 /* System header to define __stub macros and hopefully few prototypes,
11100 which can conflict with char gdbm_open(); below. */
11101 #include <assert.h>
11102 /* Override any gcc2 internal prototype to avoid an error. */
11103 /* We use char because int might match the return type of a gcc2
11104 builtin and then its argument prototype would still apply. */
11110 /* The GNU C library defines this for functions which it implements
11111 to always fail with ENOSYS. Some functions are actually named
11112 something starting with __ and the normal name is an alias. */
11113 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
11121 if { (eval echo configure:11122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11123 eval "ac_cv_func_gdbm_open=yes"
11125 echo "configure: failed program was:" >&5
11126 cat conftest.$ac_ext >&5
11128 eval "ac_cv_func_gdbm_open=no"
11133 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
11134 echo "$ac_t""yes" 1>&6
11137 echo "$ac_t""no" 1>&6
11139 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
11140 echo "configure:11141: checking for gdbm_open in -lgdbm" >&5
11141 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
11142 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11143 echo $ac_n "(cached) $ac_c" 1>&6
11145 ac_save_LIBS="$LIBS"
11146 LIBS="-lgdbm $LIBS"
11147 cat > conftest.$ac_ext <<EOF
11148 #line 11149 "configure"
11149 #include "confdefs.h"
11150 /* Override any gcc2 internal prototype to avoid an error. */
11151 /* We use char because int might match the return type of a gcc2
11152 builtin and then its argument prototype would still apply. */
11159 if { (eval echo configure:11160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11161 eval "ac_cv_lib_$ac_lib_var=yes"
11163 echo "configure: failed program was:" >&5
11164 cat conftest.$ac_ext >&5
11166 eval "ac_cv_lib_$ac_lib_var=no"
11169 LIBS="$ac_save_LIBS"
11172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11173 echo "$ac_t""yes" 1>&6
11174 ol_cv_lib_gdbm=-lgdbm
11176 echo "$ac_t""no" 1>&6
11187 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
11190 for ac_hdr in gdbm.h
11192 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11193 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11194 echo "configure:11195: checking for $ac_hdr" >&5
11195 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11196 echo $ac_n "(cached) $ac_c" 1>&6
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11204 { (eval echo configure:11205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11206 if test -z "$ac_err"; then
11208 eval "ac_cv_header_$ac_safe=yes"
11211 echo "configure: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11214 eval "ac_cv_header_$ac_safe=no"
11218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11219 echo "$ac_t""yes" 1>&6
11220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11221 cat >> confdefs.h <<EOF
11222 #define $ac_tr_hdr 1
11226 echo "$ac_t""no" 1>&6
11230 echo $ac_n "checking for db""... $ac_c" 1>&6
11231 echo "configure:11232: checking for db" >&5
11232 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
11233 echo $ac_n "(cached) $ac_c" 1>&6
11236 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
11244 echo "$ac_t""$ol_cv_gdbm" 1>&6
11245 if test $ol_cv_gdbm = yes ; then
11246 cat >> confdefs.h <<\EOF
11247 #define HAVE_GDBM 1
11253 if test $ol_cv_gdbm = yes ; then
11255 ol_with_ldbm_api=gdbm
11257 if test $ol_cv_lib_gdbm != yes ; then
11258 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
11263 if test $ol_with_ldbm_api = auto ; then
11264 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
11265 elif test $ol_with_ldbm_api = ndbm ; then
11266 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
11267 echo "configure:11268: checking for NDBM library" >&5
11268 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
11269 echo $ac_n "(cached) $ac_c" 1>&6
11272 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11273 echo "configure:11274: checking for dbm_open" >&5
11274 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
11275 echo $ac_n "(cached) $ac_c" 1>&6
11277 cat > conftest.$ac_ext <<EOF
11278 #line 11279 "configure"
11279 #include "confdefs.h"
11280 /* System header to define __stub macros and hopefully few prototypes,
11281 which can conflict with char dbm_open(); below. */
11282 #include <assert.h>
11283 /* Override any gcc2 internal prototype to avoid an error. */
11284 /* We use char because int might match the return type of a gcc2
11285 builtin and then its argument prototype would still apply. */
11291 /* The GNU C library defines this for functions which it implements
11292 to always fail with ENOSYS. Some functions are actually named
11293 something starting with __ and the normal name is an alias. */
11294 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11302 if { (eval echo configure:11303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11304 eval "ac_cv_func_dbm_open=yes"
11306 echo "configure: failed program was:" >&5
11307 cat conftest.$ac_ext >&5
11309 eval "ac_cv_func_dbm_open=no"
11314 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11315 echo "$ac_t""yes" 1>&6
11318 echo "$ac_t""no" 1>&6
11320 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
11321 echo "configure:11322: checking for dbm_open in -lndbm" >&5
11322 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11323 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11324 echo $ac_n "(cached) $ac_c" 1>&6
11326 ac_save_LIBS="$LIBS"
11327 LIBS="-lndbm $LIBS"
11328 cat > conftest.$ac_ext <<EOF
11329 #line 11330 "configure"
11330 #include "confdefs.h"
11331 /* Override any gcc2 internal prototype to avoid an error. */
11332 /* We use char because int might match the return type of a gcc2
11333 builtin and then its argument prototype would still apply. */
11340 if { (eval echo configure:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11342 eval "ac_cv_lib_$ac_lib_var=yes"
11344 echo "configure: failed program was:" >&5
11345 cat conftest.$ac_ext >&5
11347 eval "ac_cv_lib_$ac_lib_var=no"
11350 LIBS="$ac_save_LIBS"
11353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11354 echo "$ac_t""yes" 1>&6
11355 ol_cv_lib_ndbm=-lndbm
11357 echo "$ac_t""no" 1>&6
11359 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11360 echo "configure:11361: checking for dbm_open in -ldbm" >&5
11361 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11362 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11363 echo $ac_n "(cached) $ac_c" 1>&6
11365 ac_save_LIBS="$LIBS"
11367 cat > conftest.$ac_ext <<EOF
11368 #line 11369 "configure"
11369 #include "confdefs.h"
11370 /* Override any gcc2 internal prototype to avoid an error. */
11371 /* We use char because int might match the return type of a gcc2
11372 builtin and then its argument prototype would still apply. */
11379 if { (eval echo configure:11380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11381 eval "ac_cv_lib_$ac_lib_var=yes"
11383 echo "configure: failed program was:" >&5
11384 cat conftest.$ac_ext >&5
11386 eval "ac_cv_lib_$ac_lib_var=no"
11389 LIBS="$ac_save_LIBS"
11392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11393 echo "$ac_t""yes" 1>&6
11394 ol_cv_lib_ndbm=-ldbm
11396 echo "$ac_t""no" 1>&6
11409 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
11412 for ac_hdr in ndbm.h
11414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11416 echo "configure:11417: checking for $ac_hdr" >&5
11417 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11418 echo $ac_n "(cached) $ac_c" 1>&6
11420 cat > conftest.$ac_ext <<EOF
11421 #line 11422 "configure"
11422 #include "confdefs.h"
11425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11426 { (eval echo configure:11427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11428 if test -z "$ac_err"; then
11430 eval "ac_cv_header_$ac_safe=yes"
11433 echo "configure: failed program was:" >&5
11434 cat conftest.$ac_ext >&5
11436 eval "ac_cv_header_$ac_safe=no"
11440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11441 echo "$ac_t""yes" 1>&6
11442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11443 cat >> confdefs.h <<EOF
11444 #define $ac_tr_hdr 1
11448 echo "$ac_t""no" 1>&6
11452 echo $ac_n "checking for db""... $ac_c" 1>&6
11453 echo "configure:11454: checking for db" >&5
11454 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
11455 echo $ac_n "(cached) $ac_c" 1>&6
11458 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
11466 echo "$ac_t""$ol_cv_ndbm" 1>&6
11467 if test $ol_cv_ndbm = yes ; then
11468 cat >> confdefs.h <<\EOF
11469 #define HAVE_NDBM 1
11475 if test $ol_cv_ndbm = yes ; then
11477 ol_with_ldbm_api=ndbm
11479 if test $ol_cv_lib_ndbm != yes ; then
11480 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
11485 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
11486 echo "configure: warning: could not find suitable LDBM backend" 1>&2
11487 if test $ol_enable_ldbm = yes ; then
11488 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
11491 echo "configure: warning: disabling LDBM" 1>&2
11495 if test $ol_enable_wrappers != no ; then
11496 for ac_hdr in tcpd.h
11498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11500 echo "configure:11501: checking for $ac_hdr" >&5
11501 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11502 echo $ac_n "(cached) $ac_c" 1>&6
11504 cat > conftest.$ac_ext <<EOF
11505 #line 11506 "configure"
11506 #include "confdefs.h"
11509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11510 { (eval echo configure:11511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11512 if test -z "$ac_err"; then
11514 eval "ac_cv_header_$ac_safe=yes"
11517 echo "configure: failed program was:" >&5
11518 cat conftest.$ac_ext >&5
11520 eval "ac_cv_header_$ac_safe=no"
11524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11525 echo "$ac_t""yes" 1>&6
11526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11527 cat >> confdefs.h <<EOF
11528 #define $ac_tr_hdr 1
11532 echo "$ac_t""no" 1>&6
11537 if test $ac_cv_header_tcpd_h != yes ; then
11540 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
11541 echo "configure:11542: checking for main in -lwrap" >&5
11542 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
11543 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11544 echo $ac_n "(cached) $ac_c" 1>&6
11546 ac_save_LIBS="$LIBS"
11547 LIBS="-lwrap $LIBS"
11548 cat > conftest.$ac_ext <<EOF
11549 #line 11550 "configure"
11550 #include "confdefs.h"
11556 if { (eval echo configure:11557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11558 eval "ac_cv_lib_$ac_lib_var=yes"
11560 echo "configure: failed program was:" >&5
11561 cat conftest.$ac_ext >&5
11563 eval "ac_cv_lib_$ac_lib_var=no"
11566 LIBS="$ac_save_LIBS"
11569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11570 echo "$ac_t""yes" 1>&6
11573 echo "$ac_t""no" 1>&6
11579 if test $have_wrappers = yes ; then
11580 cat >> confdefs.h <<\EOF
11581 #define HAVE_TCPD 1
11584 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
11586 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
11587 echo "configure:11588: checking for main in -lnsl" >&5
11588 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
11589 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
11592 ac_save_LIBS="$LIBS"
11594 cat > conftest.$ac_ext <<EOF
11595 #line 11596 "configure"
11596 #include "confdefs.h"
11602 if { (eval echo configure:11603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11604 eval "ac_cv_lib_$ac_lib_var=yes"
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11609 eval "ac_cv_lib_$ac_lib_var=no"
11612 LIBS="$ac_save_LIBS"
11615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11616 echo "$ac_t""yes" 1>&6
11617 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11618 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11619 cat >> confdefs.h <<EOF
11620 #define $ac_tr_lib 1
11626 echo "$ac_t""no" 1>&6
11630 echo "configure: warning: could not find -lwrap" 1>&2
11631 if test $ol_enable_wrappers = yes ; then
11632 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
11635 echo "configure: warning: disabling wrappers support" 1>&2
11636 ol_enable_wrappers=no
11640 if test $ol_enable_syslog != no ; then
11641 echo $ac_n "checking for openlog""... $ac_c" 1>&6
11642 echo "configure:11643: checking for openlog" >&5
11643 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
11644 echo $ac_n "(cached) $ac_c" 1>&6
11646 cat > conftest.$ac_ext <<EOF
11647 #line 11648 "configure"
11648 #include "confdefs.h"
11649 /* System header to define __stub macros and hopefully few prototypes,
11650 which can conflict with char openlog(); below. */
11651 #include <assert.h>
11652 /* Override any gcc2 internal prototype to avoid an error. */
11653 /* We use char because int might match the return type of a gcc2
11654 builtin and then its argument prototype would still apply. */
11660 /* The GNU C library defines this for functions which it implements
11661 to always fail with ENOSYS. Some functions are actually named
11662 something starting with __ and the normal name is an alias. */
11663 #if defined (__stub_openlog) || defined (__stub___openlog)
11671 if { (eval echo configure:11672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11673 eval "ac_cv_func_openlog=yes"
11675 echo "configure: failed program was:" >&5
11676 cat conftest.$ac_ext >&5
11678 eval "ac_cv_func_openlog=no"
11683 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
11684 echo "$ac_t""yes" 1>&6
11687 echo "$ac_t""no" 1>&6
11690 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
11691 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
11693 ol_enable_syslog=$ac_cv_func_openlog
11696 if test $ol_enable_dmalloc != no ; then
11697 for ac_hdr in dmalloc.h
11699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11701 echo "configure:11702: checking for $ac_hdr" >&5
11702 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11703 echo $ac_n "(cached) $ac_c" 1>&6
11705 cat > conftest.$ac_ext <<EOF
11706 #line 11707 "configure"
11707 #include "confdefs.h"
11710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11711 { (eval echo configure:11712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11713 if test -z "$ac_err"; then
11715 eval "ac_cv_header_$ac_safe=yes"
11718 echo "configure: failed program was:" >&5
11719 cat conftest.$ac_ext >&5
11721 eval "ac_cv_header_$ac_safe=no"
11725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11726 echo "$ac_t""yes" 1>&6
11727 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11728 cat >> confdefs.h <<EOF
11729 #define $ac_tr_hdr 1
11733 echo "$ac_t""no" 1>&6
11737 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
11738 echo "configure:11739: checking for dmalloc_shutdown in -ldmalloc" >&5
11739 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
11740 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11741 echo $ac_n "(cached) $ac_c" 1>&6
11743 ac_save_LIBS="$LIBS"
11744 LIBS="-ldmalloc $LIBS"
11745 cat > conftest.$ac_ext <<EOF
11746 #line 11747 "configure"
11747 #include "confdefs.h"
11748 /* Override any gcc2 internal prototype to avoid an error. */
11749 /* We use char because int might match the return type of a gcc2
11750 builtin and then its argument prototype would still apply. */
11751 char dmalloc_shutdown();
11757 if { (eval echo configure:11758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11759 eval "ac_cv_lib_$ac_lib_var=yes"
11761 echo "configure: failed program was:" >&5
11762 cat conftest.$ac_ext >&5
11764 eval "ac_cv_lib_$ac_lib_var=no"
11767 LIBS="$ac_save_LIBS"
11770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11771 echo "$ac_t""yes" 1>&6
11772 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11774 cat >> confdefs.h <<EOF
11775 #define $ac_tr_lib 1
11778 LIBS="-ldmalloc $LIBS"
11781 echo "$ac_t""no" 1>&6
11786 if test $ol_enable_tcl != no ; then
11787 for ac_hdr in tcl.h
11789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11791 echo "configure:11792: checking for $ac_hdr" >&5
11792 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11793 echo $ac_n "(cached) $ac_c" 1>&6
11795 cat > conftest.$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11801 { (eval echo configure:11802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11803 if test -z "$ac_err"; then
11805 eval "ac_cv_header_$ac_safe=yes"
11808 echo "configure: failed program was:" >&5
11809 cat conftest.$ac_ext >&5
11811 eval "ac_cv_header_$ac_safe=no"
11815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11816 echo "$ac_t""yes" 1>&6
11817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11818 cat >> confdefs.h <<EOF
11819 #define $ac_tr_hdr 1
11823 echo "$ac_t""no" 1>&6
11828 if test $ac_cv_header_tcl_h != yes ; then
11831 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
11832 echo "configure:11833: checking for main in -ltcl" >&5
11833 ac_lib_var=`echo tcl'_'main | sed 'y%./+-:%__p__%'`
11834 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11835 echo $ac_n "(cached) $ac_c" 1>&6
11837 ac_save_LIBS="$LIBS"
11839 cat > conftest.$ac_ext <<EOF
11840 #line 11841 "configure"
11841 #include "confdefs.h"
11847 if { (eval echo configure:11848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11849 eval "ac_cv_lib_$ac_lib_var=yes"
11851 echo "configure: failed program was:" >&5
11852 cat conftest.$ac_ext >&5
11854 eval "ac_cv_lib_$ac_lib_var=no"
11857 LIBS="$ac_save_LIBS"
11860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11861 echo "$ac_t""yes" 1>&6
11862 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
11864 echo "$ac_t""no" 1>&6
11869 if test $have_tcl != yes; then
11870 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
11871 echo "configure:11872: checking for main in -ltcl7.6" >&5
11872 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-:%__p__%'`
11873 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11874 echo $ac_n "(cached) $ac_c" 1>&6
11876 ac_save_LIBS="$LIBS"
11877 LIBS="-ltcl7.6 $LIBS"
11878 cat > conftest.$ac_ext <<EOF
11879 #line 11880 "configure"
11880 #include "confdefs.h"
11886 if { (eval echo configure:11887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11888 eval "ac_cv_lib_$ac_lib_var=yes"
11890 echo "configure: failed program was:" >&5
11891 cat conftest.$ac_ext >&5
11893 eval "ac_cv_lib_$ac_lib_var=no"
11896 LIBS="$ac_save_LIBS"
11899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11900 echo "$ac_t""yes" 1>&6
11901 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
11903 echo "$ac_t""no" 1>&6
11909 if test $have_tcl != yes; then
11910 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
11911 echo "configure:11912: checking for main in -ltcl8.0" >&5
11912 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-:%__p__%'`
11913 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11914 echo $ac_n "(cached) $ac_c" 1>&6
11916 ac_save_LIBS="$LIBS"
11917 LIBS="-ltcl8.0 $LIBS"
11918 cat > conftest.$ac_ext <<EOF
11919 #line 11920 "configure"
11920 #include "confdefs.h"
11926 if { (eval echo configure:11927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11928 eval "ac_cv_lib_$ac_lib_var=yes"
11930 echo "configure: failed program was:" >&5
11931 cat conftest.$ac_ext >&5
11933 eval "ac_cv_lib_$ac_lib_var=no"
11936 LIBS="$ac_save_LIBS"
11939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11940 echo "$ac_t""yes" 1>&6
11941 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
11943 echo "$ac_t""no" 1>&6
11950 if test $have_tcl != yes ; then
11951 echo "configure: warning: could not find -ltcl" 1>&2
11952 if test $ol_enable_tcl = yes ; then
11953 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
11960 # ud needs termcap (should insert check here)
11962 for ac_hdr in termcap.h ncurses.h
11964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11966 echo "configure:11967: checking for $ac_hdr" >&5
11967 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11968 echo $ac_n "(cached) $ac_c" 1>&6
11970 cat > conftest.$ac_ext <<EOF
11971 #line 11972 "configure"
11972 #include "confdefs.h"
11975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11976 { (eval echo configure:11977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11978 if test -z "$ac_err"; then
11980 eval "ac_cv_header_$ac_safe=yes"
11983 echo "configure: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11986 eval "ac_cv_header_$ac_safe=no"
11990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11991 echo "$ac_t""yes" 1>&6
11992 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11993 cat >> confdefs.h <<EOF
11994 #define $ac_tr_hdr 1
11998 echo "$ac_t""no" 1>&6
12003 if test $ol_link_termcap = no ; then
12004 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
12005 echo "configure:12006: checking for tputs in -ltermcap" >&5
12006 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
12007 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12008 echo $ac_n "(cached) $ac_c" 1>&6
12010 ac_save_LIBS="$LIBS"
12011 LIBS="-ltermcap $LIBS"
12012 cat > conftest.$ac_ext <<EOF
12013 #line 12014 "configure"
12014 #include "confdefs.h"
12015 /* Override any gcc2 internal prototype to avoid an error. */
12016 /* We use char because int might match the return type of a gcc2
12017 builtin and then its argument prototype would still apply. */
12024 if { (eval echo configure:12025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12026 eval "ac_cv_lib_$ac_lib_var=yes"
12028 echo "configure: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12031 eval "ac_cv_lib_$ac_lib_var=no"
12034 LIBS="$ac_save_LIBS"
12037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12038 echo "$ac_t""yes" 1>&6
12041 echo "$ac_t""no" 1>&6
12045 if test $have_termcap = yes ; then
12046 cat >> confdefs.h <<\EOF
12047 #define HAVE_TERMCAP 1
12050 ol_link_termcap=yes
12051 TERMCAP_LIBS=-ltermcap
12055 if test $ol_link_termcap = no ; then
12056 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
12057 echo "configure:12058: checking for initscr in -lncurses" >&5
12058 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
12059 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12060 echo $ac_n "(cached) $ac_c" 1>&6
12062 ac_save_LIBS="$LIBS"
12063 LIBS="-lncurses $LIBS"
12064 cat > conftest.$ac_ext <<EOF
12065 #line 12066 "configure"
12066 #include "confdefs.h"
12067 /* Override any gcc2 internal prototype to avoid an error. */
12068 /* We use char because int might match the return type of a gcc2
12069 builtin and then its argument prototype would still apply. */
12076 if { (eval echo configure:12077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12078 eval "ac_cv_lib_$ac_lib_var=yes"
12080 echo "configure: failed program was:" >&5
12081 cat conftest.$ac_ext >&5
12083 eval "ac_cv_lib_$ac_lib_var=no"
12086 LIBS="$ac_save_LIBS"
12089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12090 echo "$ac_t""yes" 1>&6
12093 echo "$ac_t""no" 1>&6
12097 if test $have_ncurses = yes ; then
12098 cat >> confdefs.h <<\EOF
12099 #define HAVE_NCURSES 1
12102 ol_link_termcap=yes
12103 TERMCAP_LIBS=-lncurses
12107 if test $ol_link_termcap = no ; then
12108 cat >> confdefs.h <<\EOF
12109 #define NO_TERMCAP 1
12116 if test $ol_with_cyrus_sasl != no ; then
12117 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12118 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12119 echo "configure:12120: checking for sasl.h" >&5
12120 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12121 echo $ac_n "(cached) $ac_c" 1>&6
12123 cat > conftest.$ac_ext <<EOF
12124 #line 12125 "configure"
12125 #include "confdefs.h"
12128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12129 { (eval echo configure:12130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12131 if test -z "$ac_err"; then
12133 eval "ac_cv_header_$ac_safe=yes"
12136 echo "configure: failed program was:" >&5
12137 cat conftest.$ac_ext >&5
12139 eval "ac_cv_header_$ac_safe=no"
12143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12144 echo "$ac_t""yes" 1>&6
12147 echo "$ac_t""no" 1>&6
12151 if test $ac_cv_header_sasl_h = yes ; then
12152 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12153 echo "configure:12154: checking for sasl_client_init in -lsasl" >&5
12154 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
12155 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12156 echo $ac_n "(cached) $ac_c" 1>&6
12158 ac_save_LIBS="$LIBS"
12159 LIBS="-lsasl $LIBS"
12160 cat > conftest.$ac_ext <<EOF
12161 #line 12162 "configure"
12162 #include "confdefs.h"
12163 /* Override any gcc2 internal prototype to avoid an error. */
12164 /* We use char because int might match the return type of a gcc2
12165 builtin and then its argument prototype would still apply. */
12166 char sasl_client_init();
12172 if { (eval echo configure:12173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12174 eval "ac_cv_lib_$ac_lib_var=yes"
12176 echo "configure: failed program was:" >&5
12177 cat conftest.$ac_ext >&5
12179 eval "ac_cv_lib_$ac_lib_var=no"
12182 LIBS="$ac_save_LIBS"
12185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12186 echo "$ac_t""yes" 1>&6
12187 have_cyrus_sasl=yes
12189 echo "$ac_t""no" 1>&6
12194 if test $have_cyrus_sasl != no ; then
12196 cat >> confdefs.h <<\EOF
12197 #define HAVE_CYRUS_SASL 1
12204 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
12205 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
12210 if test $ol_with_fetch != no ; then
12212 LIBS="-lfetch -lcom_err $LIBS"
12213 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
12214 echo "configure:12215: checking fetch(3) library" >&5
12215 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
12216 echo $ac_n "(cached) $ac_c" 1>&6
12219 cat > conftest.$ac_ext <<EOF
12220 #line 12221 "configure"
12221 #include "confdefs.h"
12223 #include <sys/param.h>
12227 struct url *u = fetchParseURL("file:///");
12230 if { (eval echo configure:12231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12232 ol_cv_lib_fetch=yes
12234 echo "configure: failed program was:" >&5
12235 cat conftest.$ac_ext >&5
12242 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
12244 if test $ol_cv_lib_fetch != no ; then
12245 ol_link_fetch="-lfetch -lcom_err"
12246 cat >> confdefs.h <<\EOF
12247 #define HAVE_FETCH 1
12253 if test $ol_cv_lib_fetch != no ; then
12254 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
12255 ol_link_fetch=freebsd
12257 elif test $ol_with_fetch != auto ; then
12258 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
12262 ol_link_readline=no
12263 if test $ol_with_readline != no ; then
12264 for ac_hdr in readline/readline.h readline/history.h
12266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12268 echo "configure:12269: checking for $ac_hdr" >&5
12269 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12270 echo $ac_n "(cached) $ac_c" 1>&6
12272 cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure"
12274 #include "confdefs.h"
12277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12278 { (eval echo configure:12279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12280 if test -z "$ac_err"; then
12282 eval "ac_cv_header_$ac_safe=yes"
12285 echo "configure: failed program was:" >&5
12286 cat conftest.$ac_ext >&5
12288 eval "ac_cv_header_$ac_safe=no"
12292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12293 echo "$ac_t""yes" 1>&6
12294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12295 cat >> confdefs.h <<EOF
12296 #define $ac_tr_hdr 1
12300 echo "$ac_t""no" 1>&6
12305 if test $ac_cv_header_readline_readline_h = yes ; then
12307 LIBS="$TERMCAP_LIBS $LIBS"
12308 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
12309 echo "configure:12310: checking for readline in -lreadline" >&5
12310 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
12311 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12312 echo $ac_n "(cached) $ac_c" 1>&6
12314 ac_save_LIBS="$LIBS"
12315 LIBS="-lreadline $LIBS"
12316 cat > conftest.$ac_ext <<EOF
12317 #line 12318 "configure"
12318 #include "confdefs.h"
12319 /* Override any gcc2 internal prototype to avoid an error. */
12320 /* We use char because int might match the return type of a gcc2
12321 builtin and then its argument prototype would still apply. */
12328 if { (eval echo configure:12329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12330 eval "ac_cv_lib_$ac_lib_var=yes"
12332 echo "configure: failed program was:" >&5
12333 cat conftest.$ac_ext >&5
12335 eval "ac_cv_lib_$ac_lib_var=no"
12338 LIBS="$ac_save_LIBS"
12341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12342 echo "$ac_t""yes" 1>&6
12345 echo "$ac_t""no" 1>&6
12351 if test $have_readline = yes ; then
12352 ol_with_readline=found
12353 ol_link_readline=yes
12355 READLINE_LIBS="-lreadline"
12360 if test $ol_link_readline = yes ; then
12361 cat >> confdefs.h <<\EOF
12362 #define HAVE_READLINE 1
12368 # FreeBSD (and others) have crypt(3) in -lcrypt
12369 if test $ol_enable_crypt != no ; then
12370 echo $ac_n "checking for crypt""... $ac_c" 1>&6
12371 echo "configure:12372: checking for crypt" >&5
12372 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
12373 echo $ac_n "(cached) $ac_c" 1>&6
12375 cat > conftest.$ac_ext <<EOF
12376 #line 12377 "configure"
12377 #include "confdefs.h"
12378 /* System header to define __stub macros and hopefully few prototypes,
12379 which can conflict with char crypt(); below. */
12380 #include <assert.h>
12381 /* Override any gcc2 internal prototype to avoid an error. */
12382 /* We use char because int might match the return type of a gcc2
12383 builtin and then its argument prototype would still apply. */
12389 /* The GNU C library defines this for functions which it implements
12390 to always fail with ENOSYS. Some functions are actually named
12391 something starting with __ and the normal name is an alias. */
12392 #if defined (__stub_crypt) || defined (__stub___crypt)
12400 if { (eval echo configure:12401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12402 eval "ac_cv_func_crypt=yes"
12404 echo "configure: failed program was:" >&5
12405 cat conftest.$ac_ext >&5
12407 eval "ac_cv_func_crypt=no"
12412 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
12413 echo "$ac_t""yes" 1>&6
12416 echo "$ac_t""no" 1>&6
12418 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12419 echo "configure:12420: checking for crypt in -lcrypt" >&5
12420 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
12421 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12422 echo $ac_n "(cached) $ac_c" 1>&6
12424 ac_save_LIBS="$LIBS"
12425 LIBS="-lcrypt $LIBS"
12426 cat > conftest.$ac_ext <<EOF
12427 #line 12428 "configure"
12428 #include "confdefs.h"
12429 /* Override any gcc2 internal prototype to avoid an error. */
12430 /* We use char because int might match the return type of a gcc2
12431 builtin and then its argument prototype would still apply. */
12438 if { (eval echo configure:12439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12440 eval "ac_cv_lib_$ac_lib_var=yes"
12442 echo "configure: failed program was:" >&5
12443 cat conftest.$ac_ext >&5
12445 eval "ac_cv_lib_$ac_lib_var=no"
12448 LIBS="$ac_save_LIBS"
12451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12452 echo "$ac_t""yes" 1>&6
12453 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
12456 echo "$ac_t""no" 1>&6
12463 if test $have_crypt = yes ; then
12464 cat >> confdefs.h <<\EOF
12465 #define HAVE_CRYPT 1
12469 echo "configure: warning: could not find crypt" 1>&2
12470 if test $ol_enable_crypt = yes ; then
12471 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
12474 echo "configure: warning: disabling crypt support" 1>&2
12479 # FreeBSD (and others) have setproctitle(3) in -lutil
12480 if test $ol_enable_proctitle != no ; then
12481 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
12482 echo "configure:12483: checking for setproctitle" >&5
12483 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
12484 echo $ac_n "(cached) $ac_c" 1>&6
12486 cat > conftest.$ac_ext <<EOF
12487 #line 12488 "configure"
12488 #include "confdefs.h"
12489 /* System header to define __stub macros and hopefully few prototypes,
12490 which can conflict with char setproctitle(); below. */
12491 #include <assert.h>
12492 /* Override any gcc2 internal prototype to avoid an error. */
12493 /* We use char because int might match the return type of a gcc2
12494 builtin and then its argument prototype would still apply. */
12495 char setproctitle();
12500 /* The GNU C library defines this for functions which it implements
12501 to always fail with ENOSYS. Some functions are actually named
12502 something starting with __ and the normal name is an alias. */
12503 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
12511 if { (eval echo configure:12512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12513 eval "ac_cv_func_setproctitle=yes"
12515 echo "configure: failed program was:" >&5
12516 cat conftest.$ac_ext >&5
12518 eval "ac_cv_func_setproctitle=no"
12523 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
12524 echo "$ac_t""yes" 1>&6
12525 have_setproctitle=yes
12527 echo "$ac_t""no" 1>&6
12529 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
12530 echo "configure:12531: checking for setproctitle in -lutil" >&5
12531 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
12532 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12533 echo $ac_n "(cached) $ac_c" 1>&6
12535 ac_save_LIBS="$LIBS"
12536 LIBS="-lutil $LIBS"
12537 cat > conftest.$ac_ext <<EOF
12538 #line 12539 "configure"
12539 #include "confdefs.h"
12540 /* Override any gcc2 internal prototype to avoid an error. */
12541 /* We use char because int might match the return type of a gcc2
12542 builtin and then its argument prototype would still apply. */
12543 char setproctitle();
12549 if { (eval echo configure:12550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12551 eval "ac_cv_lib_$ac_lib_var=yes"
12553 echo "configure: failed program was:" >&5
12554 cat conftest.$ac_ext >&5
12556 eval "ac_cv_lib_$ac_lib_var=no"
12559 LIBS="$ac_save_LIBS"
12562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12563 echo "$ac_t""yes" 1>&6
12564 have_setproctitle=yes
12565 LUTIL_LIBS="$LUTIL_LIBS -lutil"
12567 echo "$ac_t""no" 1>&6
12568 have_setproctitle=no
12569 LIBOBJS="$LIBOBJS setproctitle.o"
12575 if test $have_setproctitle = yes ; then
12576 cat >> confdefs.h <<\EOF
12577 #define HAVE_SETPROCTITLE 1
12583 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12584 echo "configure:12585: checking for uid_t in sys/types.h" >&5
12585 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
12586 echo $ac_n "(cached) $ac_c" 1>&6
12588 cat > conftest.$ac_ext <<EOF
12589 #line 12590 "configure"
12590 #include "confdefs.h"
12591 #include <sys/types.h>
12593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12594 egrep "uid_t" >/dev/null 2>&1; then
12596 ac_cv_type_uid_t=yes
12599 ac_cv_type_uid_t=no
12605 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12606 if test $ac_cv_type_uid_t = no; then
12607 cat >> confdefs.h <<\EOF
12611 cat >> confdefs.h <<\EOF
12617 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
12618 echo "configure:12619: checking type of array argument to getgroups" >&5
12619 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
12620 echo $ac_n "(cached) $ac_c" 1>&6
12622 if test "$cross_compiling" = yes; then
12623 ac_cv_type_getgroups=cross
12625 cat > conftest.$ac_ext <<EOF
12626 #line 12627 "configure"
12627 #include "confdefs.h"
12629 /* Thanks to Mike Rendell for this test. */
12630 #include <sys/types.h>
12633 #define MAX(x, y) ((x) > (y) ? (x) : (y))
12636 gid_t gidset[NGID];
12638 union { gid_t gval; long lval; } val;
12641 for (i = 0; i < NGID; i++)
12642 gidset[i] = val.gval;
12643 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
12645 /* Exit non-zero if getgroups seems to require an array of ints. This
12646 happens when gid_t is short but getgroups modifies an array of ints. */
12647 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
12651 if { (eval echo configure:12652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12653 ac_cv_type_getgroups=gid_t
12655 echo "configure: failed program was:" >&5
12656 cat conftest.$ac_ext >&5
12658 ac_cv_type_getgroups=int
12663 if test $ac_cv_type_getgroups = cross; then
12664 cat > conftest.$ac_ext <<EOF
12665 #line 12666 "configure"
12666 #include "confdefs.h"
12667 #include <unistd.h>
12669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12670 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
12672 ac_cv_type_getgroups=gid_t
12675 ac_cv_type_getgroups=int
12682 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
12683 cat >> confdefs.h <<EOF
12684 #define GETGROUPS_T $ac_cv_type_getgroups
12687 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12688 echo "configure:12689: checking for ANSI C header files" >&5
12689 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
12690 echo $ac_n "(cached) $ac_c" 1>&6
12692 cat > conftest.$ac_ext <<EOF
12693 #line 12694 "configure"
12694 #include "confdefs.h"
12695 #include <stdlib.h>
12696 #include <stdarg.h>
12697 #include <string.h>
12700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12701 { (eval echo configure:12702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12703 if test -z "$ac_err"; then
12705 ac_cv_header_stdc=yes
12708 echo "configure: failed program was:" >&5
12709 cat conftest.$ac_ext >&5
12711 ac_cv_header_stdc=no
12715 if test $ac_cv_header_stdc = yes; then
12716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12717 cat > conftest.$ac_ext <<EOF
12718 #line 12719 "configure"
12719 #include "confdefs.h"
12720 #include <string.h>
12722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12723 egrep "memchr" >/dev/null 2>&1; then
12727 ac_cv_header_stdc=no
12733 if test $ac_cv_header_stdc = yes; then
12734 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12735 cat > conftest.$ac_ext <<EOF
12736 #line 12737 "configure"
12737 #include "confdefs.h"
12738 #include <stdlib.h>
12740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12741 egrep "free" >/dev/null 2>&1; then
12745 ac_cv_header_stdc=no
12751 if test $ac_cv_header_stdc = yes; then
12752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12753 if test "$cross_compiling" = yes; then
12756 cat > conftest.$ac_ext <<EOF
12757 #line 12758 "configure"
12758 #include "confdefs.h"
12760 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12761 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12762 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12763 int main () { int i; for (i = 0; i < 256; i++)
12764 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12768 if { (eval echo configure:12769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12772 echo "configure: failed program was:" >&5
12773 cat conftest.$ac_ext >&5
12775 ac_cv_header_stdc=no
12783 echo "$ac_t""$ac_cv_header_stdc" 1>&6
12784 if test $ac_cv_header_stdc = yes; then
12785 cat >> confdefs.h <<\EOF
12786 #define STDC_HEADERS 1
12791 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12792 echo "configure:12793: checking for mode_t" >&5
12793 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
12794 echo $ac_n "(cached) $ac_c" 1>&6
12796 cat > conftest.$ac_ext <<EOF
12797 #line 12798 "configure"
12798 #include "confdefs.h"
12799 #include <sys/types.h>
12801 #include <stdlib.h>
12802 #include <stddef.h>
12805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12806 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12808 eval "ac_cv_type_mode_t=yes"
12811 eval "ac_cv_type_mode_t=no"
12816 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
12817 echo "$ac_t""yes" 1>&6
12819 echo "$ac_t""no" 1>&6
12820 cat >> confdefs.h <<EOF
12826 echo $ac_n "checking for off_t""... $ac_c" 1>&6
12827 echo "configure:12828: checking for off_t" >&5
12828 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
12829 echo $ac_n "(cached) $ac_c" 1>&6
12831 cat > conftest.$ac_ext <<EOF
12832 #line 12833 "configure"
12833 #include "confdefs.h"
12834 #include <sys/types.h>
12836 #include <stdlib.h>
12837 #include <stddef.h>
12840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12841 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12843 eval "ac_cv_type_off_t=yes"
12846 eval "ac_cv_type_off_t=no"
12851 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
12852 echo "$ac_t""yes" 1>&6
12854 echo "$ac_t""no" 1>&6
12855 cat >> confdefs.h <<EOF
12861 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12862 echo "configure:12863: checking for pid_t" >&5
12863 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
12864 echo $ac_n "(cached) $ac_c" 1>&6
12866 cat > conftest.$ac_ext <<EOF
12867 #line 12868 "configure"
12868 #include "confdefs.h"
12869 #include <sys/types.h>
12871 #include <stdlib.h>
12872 #include <stddef.h>
12875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12876 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12878 eval "ac_cv_type_pid_t=yes"
12881 eval "ac_cv_type_pid_t=no"
12886 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
12887 echo "$ac_t""yes" 1>&6
12889 echo "$ac_t""no" 1>&6
12890 cat >> confdefs.h <<EOF
12896 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
12897 echo "configure:12898: checking for ptrdiff_t" >&5
12898 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
12899 echo $ac_n "(cached) $ac_c" 1>&6
12901 cat > conftest.$ac_ext <<EOF
12902 #line 12903 "configure"
12903 #include "confdefs.h"
12904 #include <stddef.h>
12909 if { (eval echo configure:12910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12911 am_cv_type_ptrdiff_t=yes
12913 echo "configure: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12916 am_cv_type_ptrdiff_t=no
12921 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
12922 if test $am_cv_type_ptrdiff_t = yes; then
12923 cat >> confdefs.h <<\EOF
12924 #define HAVE_PTRDIFF_T 1
12929 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
12930 echo "configure:12931: checking return type of signal handlers" >&5
12931 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
12932 echo $ac_n "(cached) $ac_c" 1>&6
12934 cat > conftest.$ac_ext <<EOF
12935 #line 12936 "configure"
12936 #include "confdefs.h"
12937 #include <sys/types.h>
12938 #include <signal.h>
12943 extern "C" void (*signal (int, void (*)(int)))(int);
12945 void (*signal ()) ();
12952 if { (eval echo configure:12953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12954 ac_cv_type_signal=void
12956 echo "configure: failed program was:" >&5
12957 cat conftest.$ac_ext >&5
12959 ac_cv_type_signal=int
12964 echo "$ac_t""$ac_cv_type_signal" 1>&6
12965 cat >> confdefs.h <<EOF
12966 #define RETSIGTYPE $ac_cv_type_signal
12970 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
12971 echo "configure:12972: checking for sig_atomic_t" >&5
12972 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
12973 echo $ac_n "(cached) $ac_c" 1>&6
12975 cat > conftest.$ac_ext <<EOF
12976 #line 12977 "configure"
12977 #include "confdefs.h"
12978 #include <signal.h>
12980 sig_atomic_t atomic;
12983 if { (eval echo configure:12984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12985 ol_cv_type_sig_atomic_t=yes
12987 echo "configure: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12990 ol_cv_type_sig_atomic_t=no
12995 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
12996 if test $ol_cv_type_sig_atomic_t = no; then
12997 cat >> confdefs.h <<\EOF
12998 #define sig_atomic_t int
13003 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13004 echo "configure:13005: checking for size_t" >&5
13005 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
13006 echo $ac_n "(cached) $ac_c" 1>&6
13008 cat > conftest.$ac_ext <<EOF
13009 #line 13010 "configure"
13010 #include "confdefs.h"
13011 #include <sys/types.h>
13013 #include <stdlib.h>
13014 #include <stddef.h>
13017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13018 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13020 eval "ac_cv_type_size_t=yes"
13023 eval "ac_cv_type_size_t=no"
13028 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
13029 echo "$ac_t""yes" 1>&6
13031 echo "$ac_t""no" 1>&6
13032 cat >> confdefs.h <<EOF
13033 #define size_t unsigned
13038 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
13039 echo "configure:13040: checking for socklen_t" >&5
13040 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
13041 echo $ac_n "(cached) $ac_c" 1>&6
13043 cat > conftest.$ac_ext <<EOF
13044 #line 13045 "configure"
13045 #include "confdefs.h"
13047 #ifdef HAVE_SYS_TYPES_H
13048 #include <sys/types.h>
13050 #ifdef HAVE_SYS_SOCKET_H
13051 #include <sys/socket.h>
13058 if { (eval echo configure:13059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13060 ol_cv_type_socklen_t=yes
13062 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13065 ol_cv_type_socklen_t=no
13070 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
13071 if test $ol_cv_type_socklen_t = no; then
13072 cat >> confdefs.h <<\EOF
13073 #define socklen_t int
13078 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
13079 echo "configure:13080: checking for member st_blksize in aggregate type struct stat" >&5
13080 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
13081 echo $ac_n "(cached) $ac_c" 1>&6
13083 cat > conftest.$ac_ext <<EOF
13084 #line 13085 "configure"
13085 #include "confdefs.h"
13086 #include <sys/types.h>
13087 #include <sys/stat.h>
13089 struct stat foo; foo.st_blksize;
13092 if { (eval echo configure:13093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13094 ac_cv_c_struct_member_st_blksize=yes
13096 echo "configure: failed program was:" >&5
13097 cat conftest.$ac_ext >&5
13099 ac_cv_c_struct_member_st_blksize=no
13104 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
13105 st_blksize="$ac_cv_c_struct_member_st_blksize"
13106 if test $ac_cv_c_struct_member_st_blksize = yes; then
13107 cat >> confdefs.h <<\EOF
13108 #define HAVE_ST_BLKSIZE 1
13113 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13114 echo "configure:13115: checking whether time.h and sys/time.h may both be included" >&5
13115 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
13116 echo $ac_n "(cached) $ac_c" 1>&6
13118 cat > conftest.$ac_ext <<EOF
13119 #line 13120 "configure"
13120 #include "confdefs.h"
13121 #include <sys/types.h>
13122 #include <sys/time.h>
13128 if { (eval echo configure:13129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13130 ac_cv_header_time=yes
13132 echo "configure: failed program was:" >&5
13133 cat conftest.$ac_ext >&5
13135 ac_cv_header_time=no
13140 echo "$ac_t""$ac_cv_header_time" 1>&6
13141 if test $ac_cv_header_time = yes; then
13142 cat >> confdefs.h <<\EOF
13143 #define TIME_WITH_SYS_TIME 1
13148 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13149 echo "configure:13150: checking whether struct tm is in sys/time.h or time.h" >&5
13150 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
13151 echo $ac_n "(cached) $ac_c" 1>&6
13153 cat > conftest.$ac_ext <<EOF
13154 #line 13155 "configure"
13155 #include "confdefs.h"
13156 #include <sys/types.h>
13159 struct tm *tp; tp->tm_sec;
13162 if { (eval echo configure:13163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13164 ac_cv_struct_tm=time.h
13166 echo "configure: failed program was:" >&5
13167 cat conftest.$ac_ext >&5
13169 ac_cv_struct_tm=sys/time.h
13174 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13175 if test $ac_cv_struct_tm = sys/time.h; then
13176 cat >> confdefs.h <<\EOF
13177 #define TM_IN_SYS_TIME 1
13182 # test for pw_gecos in struct passwd
13183 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
13184 echo "configure:13185: checking struct passwd for pw_gecos" >&5
13185 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
13186 echo $ac_n "(cached) $ac_c" 1>&6
13189 cat > conftest.$ac_ext <<EOF
13190 #line 13191 "configure"
13191 #include "confdefs.h"
13196 pwd.pw_gecos = pwd.pw_name;
13200 if { (eval echo configure:13201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13202 ol_cv_struct_passwd_pw_gecos=yes
13204 echo "configure: failed program was:" >&5
13205 cat conftest.$ac_ext >&5
13207 ol_cv_struct_passwd_pw_gecos=no
13212 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
13213 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
13214 cat >> confdefs.h <<\EOF
13215 #define HAVE_PW_GECOS 1
13220 # test for pw_passwd in struct passwd
13221 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
13222 echo "configure:13223: checking struct passwd for pw_passwd" >&5
13223 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
13224 echo $ac_n "(cached) $ac_c" 1>&6
13227 cat > conftest.$ac_ext <<EOF
13228 #line 13229 "configure"
13229 #include "confdefs.h"
13234 pwd.pw_passwd = pwd.pw_name;
13238 if { (eval echo configure:13239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13240 ol_cv_struct_passwd_pw_passwd=yes
13242 echo "configure: failed program was:" >&5
13243 cat conftest.$ac_ext >&5
13245 ol_cv_struct_passwd_pw_passwd=no
13250 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
13251 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
13252 cat >> confdefs.h <<\EOF
13253 #define HAVE_PW_PASSWD 1
13259 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
13260 echo "configure:13261: checking if toupper() requires islower()" >&5
13261 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
13262 echo $ac_n "(cached) $ac_c" 1>&6
13265 if test "$cross_compiling" = yes; then
13266 ol_cv_c_upper_lower=safe
13268 cat > conftest.$ac_ext <<EOF
13269 #line 13270 "configure"
13270 #include "confdefs.h"
13275 if ('C' == toupper('C'))
13281 if { (eval echo configure:13282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13283 ol_cv_c_upper_lower=no
13285 echo "configure: failed program was:" >&5
13286 cat conftest.$ac_ext >&5
13288 ol_cv_c_upper_lower=yes
13295 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
13296 if test $ol_cv_c_upper_lower != no ; then
13297 cat >> confdefs.h <<\EOF
13298 #define C_UPPER_LOWER 1
13303 echo $ac_n "checking for working const""... $ac_c" 1>&6
13304 echo "configure:13305: checking for working const" >&5
13305 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
13306 echo $ac_n "(cached) $ac_c" 1>&6
13308 cat > conftest.$ac_ext <<EOF
13309 #line 13310 "configure"
13310 #include "confdefs.h"
13314 /* Ultrix mips cc rejects this. */
13315 typedef int charset[2]; const charset x;
13316 /* SunOS 4.1.1 cc rejects this. */
13317 char const *const *ccp;
13319 /* NEC SVR4.0.2 mips cc rejects this. */
13320 struct point {int x, y;};
13321 static struct point const zero = {0,0};
13322 /* AIX XL C 1.02.0.0 rejects this.
13323 It does not let you subtract one const X* pointer from another in an arm
13324 of an if-expression whose if-part is not a constant expression */
13325 const char *g = "string";
13326 ccp = &g + (g ? g-g : 0);
13327 /* HPUX 7.0 cc rejects these. */
13330 ccp = (char const *const *) p;
13331 { /* SCO 3.2v4 cc rejects this. */
13333 char const *s = 0 ? (char *) 0 : (char const *) 0;
13337 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13338 int x[] = {25, 17};
13339 const int *foo = &x[0];
13342 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13343 typedef const int *iptr;
13347 { /* AIX XL C 1.02.0.0 rejects this saying
13348 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13349 struct s { int j; const int *ap[3]; };
13350 struct s *b; b->j = 5;
13352 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13353 const int foo = 10;
13358 if { (eval echo configure:13359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13362 echo "configure: failed program was:" >&5
13363 cat conftest.$ac_ext >&5
13370 echo "$ac_t""$ac_cv_c_const" 1>&6
13371 if test $ac_cv_c_const = no; then
13372 cat >> confdefs.h <<\EOF
13378 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
13379 echo "configure:13380: checking if compiler understands volatile" >&5
13380 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
13381 echo $ac_n "(cached) $ac_c" 1>&6
13383 cat > conftest.$ac_ext <<EOF
13384 #line 13385 "configure"
13385 #include "confdefs.h"
13388 volatile int a; int * volatile b = x ? &y : &z;
13389 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
13393 if { (eval echo configure:13394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13395 ol_cv_c_volatile=yes
13397 echo "configure: failed program was:" >&5
13398 cat conftest.$ac_ext >&5
13400 ol_cv_c_volatile=no
13405 echo "$ac_t""$ol_cv_c_volatile" 1>&6
13406 if test $ol_cv_c_volatile = yes; then
13409 cat >> confdefs.h <<\EOF
13416 if test $cross_compiling = yes ; then
13417 cat >> confdefs.h <<\EOF
13418 #define CROSS_COMPILING 1
13422 cat >> confdefs.h <<\EOF
13423 #define LBER_INT_T long
13426 cat >> confdefs.h <<\EOF
13427 #define LBER_TAG_T long
13430 cat >> confdefs.h <<\EOF
13431 #define LBER_SOCKET_T int
13436 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13437 echo "configure:13438: checking whether byte ordering is bigendian" >&5
13438 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
13439 echo $ac_n "(cached) $ac_c" 1>&6
13441 ac_cv_c_bigendian=unknown
13442 # See if sys/param.h defines the BYTE_ORDER macro.
13443 cat > conftest.$ac_ext <<EOF
13444 #line 13445 "configure"
13445 #include "confdefs.h"
13446 #include <sys/types.h>
13447 #include <sys/param.h>
13450 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13451 bogus endian macros
13455 if { (eval echo configure:13456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13457 # It does; now see whether it defined to BIG_ENDIAN or not.
13458 cat > conftest.$ac_ext <<EOF
13459 #line 13460 "configure"
13460 #include "confdefs.h"
13461 #include <sys/types.h>
13462 #include <sys/param.h>
13465 #if BYTE_ORDER != BIG_ENDIAN
13470 if { (eval echo configure:13471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13472 ac_cv_c_bigendian=yes
13474 echo "configure: failed program was:" >&5
13475 cat conftest.$ac_ext >&5
13477 ac_cv_c_bigendian=no
13481 echo "configure: failed program was:" >&5
13482 cat conftest.$ac_ext >&5
13485 if test $ac_cv_c_bigendian = unknown; then
13486 if test "$cross_compiling" = yes; then
13487 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13489 cat > conftest.$ac_ext <<EOF
13490 #line 13491 "configure"
13491 #include "confdefs.h"
13493 /* Are we little or big endian? From Harbison&Steele. */
13497 char c[sizeof (long)];
13500 exit (u.c[sizeof (long) - 1] == 1);
13503 if { (eval echo configure:13504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13505 ac_cv_c_bigendian=no
13507 echo "configure: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13510 ac_cv_c_bigendian=yes
13518 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13519 if test $ac_cv_c_bigendian = yes; then
13520 cat >> confdefs.h <<\EOF
13521 #define WORDS_BIGENDIAN 1
13526 echo $ac_n "checking size of short""... $ac_c" 1>&6
13527 echo "configure:13528: checking size of short" >&5
13528 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
13529 echo $ac_n "(cached) $ac_c" 1>&6
13531 if test "$cross_compiling" = yes; then
13532 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13534 cat > conftest.$ac_ext <<EOF
13535 #line 13536 "configure"
13536 #include "confdefs.h"
13540 FILE *f=fopen("conftestval", "w");
13542 fprintf(f, "%d\n", sizeof(short));
13546 if { (eval echo configure:13547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13548 ac_cv_sizeof_short=`cat conftestval`
13550 echo "configure: failed program was:" >&5
13551 cat conftest.$ac_ext >&5
13553 ac_cv_sizeof_short=0
13559 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13560 cat >> confdefs.h <<EOF
13561 #define SIZEOF_SHORT $ac_cv_sizeof_short
13565 echo $ac_n "checking size of int""... $ac_c" 1>&6
13566 echo "configure:13567: checking size of int" >&5
13567 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
13568 echo $ac_n "(cached) $ac_c" 1>&6
13570 if test "$cross_compiling" = yes; then
13571 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13573 cat > conftest.$ac_ext <<EOF
13574 #line 13575 "configure"
13575 #include "confdefs.h"
13579 FILE *f=fopen("conftestval", "w");
13581 fprintf(f, "%d\n", sizeof(int));
13585 if { (eval echo configure:13586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13587 ac_cv_sizeof_int=`cat conftestval`
13589 echo "configure: failed program was:" >&5
13590 cat conftest.$ac_ext >&5
13598 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13599 cat >> confdefs.h <<EOF
13600 #define SIZEOF_INT $ac_cv_sizeof_int
13604 echo $ac_n "checking size of long""... $ac_c" 1>&6
13605 echo "configure:13606: checking size of long" >&5
13606 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
13607 echo $ac_n "(cached) $ac_c" 1>&6
13609 if test "$cross_compiling" = yes; then
13610 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13612 cat > conftest.$ac_ext <<EOF
13613 #line 13614 "configure"
13614 #include "confdefs.h"
13618 FILE *f=fopen("conftestval", "w");
13620 fprintf(f, "%d\n", sizeof(long));
13624 if { (eval echo configure:13625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13626 ac_cv_sizeof_long=`cat conftestval`
13628 echo "configure: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13631 ac_cv_sizeof_long=0
13637 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13638 cat >> confdefs.h <<EOF
13639 #define SIZEOF_LONG $ac_cv_sizeof_long
13644 if test "$ac_cv_sizeof_int" -lt 4 ; then
13645 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
13647 cat >> confdefs.h <<\EOF
13648 #define LBER_INT_T long
13651 cat >> confdefs.h <<\EOF
13652 #define LBER_TAG_T long
13655 cat >> confdefs.h <<\EOF
13656 #define LBER_SOCKET_T int
13660 cat >> confdefs.h <<\EOF
13661 #define LBER_INT_T int
13664 cat >> confdefs.h <<\EOF
13665 #define LBER_TAG_T long
13668 cat >> confdefs.h <<\EOF
13669 #define LBER_SOCKET_T int
13675 cat >> confdefs.h <<\EOF
13676 #define LBER_LEN_T long
13680 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
13681 echo "configure:13682: checking for 8-bit clean memcmp" >&5
13682 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
13683 echo $ac_n "(cached) $ac_c" 1>&6
13685 if test "$cross_compiling" = yes; then
13686 ac_cv_func_memcmp_clean=no
13688 cat > conftest.$ac_ext <<EOF
13689 #line 13690 "configure"
13690 #include "confdefs.h"
13694 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
13695 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
13699 if { (eval echo configure:13700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13701 ac_cv_func_memcmp_clean=yes
13703 echo "configure: failed program was:" >&5
13704 cat conftest.$ac_ext >&5
13706 ac_cv_func_memcmp_clean=no
13713 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
13714 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
13716 echo $ac_n "checking for strftime""... $ac_c" 1>&6
13717 echo "configure:13718: checking for strftime" >&5
13718 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
13719 echo $ac_n "(cached) $ac_c" 1>&6
13721 cat > conftest.$ac_ext <<EOF
13722 #line 13723 "configure"
13723 #include "confdefs.h"
13724 /* System header to define __stub macros and hopefully few prototypes,
13725 which can conflict with char strftime(); below. */
13726 #include <assert.h>
13727 /* Override any gcc2 internal prototype to avoid an error. */
13728 /* We use char because int might match the return type of a gcc2
13729 builtin and then its argument prototype would still apply. */
13735 /* The GNU C library defines this for functions which it implements
13736 to always fail with ENOSYS. Some functions are actually named
13737 something starting with __ and the normal name is an alias. */
13738 #if defined (__stub_strftime) || defined (__stub___strftime)
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_func_strftime=yes"
13750 echo "configure: failed program was:" >&5
13751 cat conftest.$ac_ext >&5
13753 eval "ac_cv_func_strftime=no"
13758 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
13759 echo "$ac_t""yes" 1>&6
13760 cat >> confdefs.h <<\EOF
13761 #define HAVE_STRFTIME 1
13765 echo "$ac_t""no" 1>&6
13766 # strftime is in -lintl on SCO UNIX.
13767 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
13768 echo "configure:13769: checking for strftime in -lintl" >&5
13769 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
13770 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13771 echo $ac_n "(cached) $ac_c" 1>&6
13773 ac_save_LIBS="$LIBS"
13774 LIBS="-lintl $LIBS"
13775 cat > conftest.$ac_ext <<EOF
13776 #line 13777 "configure"
13777 #include "confdefs.h"
13778 /* Override any gcc2 internal prototype to avoid an error. */
13779 /* We use char because int might match the return type of a gcc2
13780 builtin and then its argument prototype would still apply. */
13787 if { (eval echo configure:13788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13789 eval "ac_cv_lib_$ac_lib_var=yes"
13791 echo "configure: failed program was:" >&5
13792 cat conftest.$ac_ext >&5
13794 eval "ac_cv_lib_$ac_lib_var=no"
13797 LIBS="$ac_save_LIBS"
13800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13801 echo "$ac_t""yes" 1>&6
13802 cat >> confdefs.h <<\EOF
13803 #define HAVE_STRFTIME 1
13806 LIBS="-lintl $LIBS"
13808 echo "$ac_t""no" 1>&6
13814 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
13815 echo "configure:13816: checking for inet_aton()" >&5
13816 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
13817 echo $ac_n "(cached) $ac_c" 1>&6
13819 cat > conftest.$ac_ext <<EOF
13820 #line 13821 "configure"
13821 #include "confdefs.h"
13823 #ifdef HAVE_SYS_TYPES_H
13824 # include <sys/types.h>
13826 #ifdef HAVE_SYS_SOCKET_H
13827 # include <sys/socket.h>
13828 # ifdef HAVE_SYS_SELECT_H
13829 # include <sys/select.h>
13831 # include <netinet/in.h>
13832 # ifdef HAVE_ARPA_INET_H
13833 # include <arpa/inet.h>
13839 int rc = inet_aton( "255.255.255.255", &in );
13842 if { (eval echo configure:13843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13844 ol_cv_func_inet_aton=yes
13846 echo "configure: failed program was:" >&5
13847 cat conftest.$ac_ext >&5
13849 ol_cv_func_inet_aton=no
13854 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
13855 if test $ol_cv_func_inet_aton != no; then
13856 cat >> confdefs.h <<\EOF
13857 #define HAVE_INET_ATON 1
13863 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13864 echo "configure:13865: checking for vprintf" >&5
13865 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
13866 echo $ac_n "(cached) $ac_c" 1>&6
13868 cat > conftest.$ac_ext <<EOF
13869 #line 13870 "configure"
13870 #include "confdefs.h"
13871 /* System header to define __stub macros and hopefully few prototypes,
13872 which can conflict with char vprintf(); below. */
13873 #include <assert.h>
13874 /* Override any gcc2 internal prototype to avoid an error. */
13875 /* We use char because int might match the return type of a gcc2
13876 builtin and then its argument prototype would still apply. */
13882 /* The GNU C library defines this for functions which it implements
13883 to always fail with ENOSYS. Some functions are actually named
13884 something starting with __ and the normal name is an alias. */
13885 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13893 if { (eval echo configure:13894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13895 eval "ac_cv_func_vprintf=yes"
13897 echo "configure: failed program was:" >&5
13898 cat conftest.$ac_ext >&5
13900 eval "ac_cv_func_vprintf=no"
13905 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13906 echo "$ac_t""yes" 1>&6
13907 cat >> confdefs.h <<\EOF
13908 #define HAVE_VPRINTF 1
13912 echo "$ac_t""no" 1>&6
13915 if test "$ac_cv_func_vprintf" != yes; then
13916 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13917 echo "configure:13918: checking for _doprnt" >&5
13918 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
13919 echo $ac_n "(cached) $ac_c" 1>&6
13921 cat > conftest.$ac_ext <<EOF
13922 #line 13923 "configure"
13923 #include "confdefs.h"
13924 /* System header to define __stub macros and hopefully few prototypes,
13925 which can conflict with char _doprnt(); below. */
13926 #include <assert.h>
13927 /* Override any gcc2 internal prototype to avoid an error. */
13928 /* We use char because int might match the return type of a gcc2
13929 builtin and then its argument prototype would still apply. */
13935 /* The GNU C library defines this for functions which it implements
13936 to always fail with ENOSYS. Some functions are actually named
13937 something starting with __ and the normal name is an alias. */
13938 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13946 if { (eval echo configure:13947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13948 eval "ac_cv_func__doprnt=yes"
13950 echo "configure: failed program was:" >&5
13951 cat conftest.$ac_ext >&5
13953 eval "ac_cv_func__doprnt=no"
13958 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13959 echo "$ac_t""yes" 1>&6
13960 cat >> confdefs.h <<\EOF
13961 #define HAVE_DOPRNT 1
13965 echo "$ac_t""no" 1>&6
13971 if test $ac_cv_func_vprintf = yes ; then
13972 for ac_func in vsnprintf vsprintf
13974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13975 echo "configure:13976: checking for $ac_func" >&5
13976 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
13977 echo $ac_n "(cached) $ac_c" 1>&6
13979 cat > conftest.$ac_ext <<EOF
13980 #line 13981 "configure"
13981 #include "confdefs.h"
13982 /* System header to define __stub macros and hopefully few prototypes,
13983 which can conflict with char $ac_func(); below. */
13984 #include <assert.h>
13985 /* Override any gcc2 internal prototype to avoid an error. */
13986 /* We use char because int might match the return type of a gcc2
13987 builtin and then its argument prototype would still apply. */
13993 /* The GNU C library defines this for functions which it implements
13994 to always fail with ENOSYS. Some functions are actually named
13995 something starting with __ and the normal name is an alias. */
13996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14004 if { (eval echo configure:14005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14006 eval "ac_cv_func_$ac_func=yes"
14008 echo "configure: failed program was:" >&5
14009 cat conftest.$ac_ext >&5
14011 eval "ac_cv_func_$ac_func=no"
14016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14017 echo "$ac_t""yes" 1>&6
14018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14019 cat >> confdefs.h <<EOF
14020 #define $ac_tr_func 1
14024 echo "$ac_t""no" 1>&6
14080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14081 echo "configure:14082: checking for $ac_func" >&5
14082 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14083 echo $ac_n "(cached) $ac_c" 1>&6
14085 cat > conftest.$ac_ext <<EOF
14086 #line 14087 "configure"
14087 #include "confdefs.h"
14088 /* System header to define __stub macros and hopefully few prototypes,
14089 which can conflict with char $ac_func(); below. */
14090 #include <assert.h>
14091 /* Override any gcc2 internal prototype to avoid an error. */
14092 /* We use char because int might match the return type of a gcc2
14093 builtin and then its argument prototype would still apply. */
14099 /* The GNU C library defines this for functions which it implements
14100 to always fail with ENOSYS. Some functions are actually named
14101 something starting with __ and the normal name is an alias. */
14102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14110 if { (eval echo configure:14111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14112 eval "ac_cv_func_$ac_func=yes"
14114 echo "configure: failed program was:" >&5
14115 cat conftest.$ac_ext >&5
14117 eval "ac_cv_func_$ac_func=no"
14122 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14123 echo "$ac_t""yes" 1>&6
14124 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14125 cat >> confdefs.h <<EOF
14126 #define $ac_tr_func 1
14130 echo "$ac_t""no" 1>&6
14135 for ac_func in getopt tempnam
14137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14138 echo "configure:14139: checking for $ac_func" >&5
14139 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14140 echo $ac_n "(cached) $ac_c" 1>&6
14142 cat > conftest.$ac_ext <<EOF
14143 #line 14144 "configure"
14144 #include "confdefs.h"
14145 /* System header to define __stub macros and hopefully few prototypes,
14146 which can conflict with char $ac_func(); below. */
14147 #include <assert.h>
14148 /* Override any gcc2 internal prototype to avoid an error. */
14149 /* We use char because int might match the return type of a gcc2
14150 builtin and then its argument prototype would still apply. */
14156 /* The GNU C library defines this for functions which it implements
14157 to always fail with ENOSYS. Some functions are actually named
14158 something starting with __ and the normal name is an alias. */
14159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14167 if { (eval echo configure:14168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14169 eval "ac_cv_func_$ac_func=yes"
14171 echo "configure: failed program was:" >&5
14172 cat conftest.$ac_ext >&5
14174 eval "ac_cv_func_$ac_func=no"
14179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14180 echo "$ac_t""yes" 1>&6
14181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14182 cat >> confdefs.h <<EOF
14183 #define $ac_tr_func 1
14187 echo "$ac_t""no" 1>&6
14188 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
14194 # Check Configuration
14195 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
14196 echo "configure:14197: checking declaration of sys_errlist" >&5
14197 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
14198 echo $ac_n "(cached) $ac_c" 1>&6
14201 cat > conftest.$ac_ext <<EOF
14202 #line 14203 "configure"
14203 #include "confdefs.h"
14206 #include <sys/types.h>
14209 char *c = (char *) *sys_errlist
14212 if { (eval echo configure:14213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14214 ol_cv_dcl_sys_errlist=yes
14215 ol_cv_have_sys_errlist=yes
14217 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14220 ol_cv_dcl_sys_errlist=no
14225 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
14227 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14228 if test $ol_cv_dcl_sys_errlist = no ; then
14229 cat >> confdefs.h <<\EOF
14230 #define DECL_SYS_ERRLIST 1
14234 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
14235 echo "configure:14236: checking existence of sys_errlist" >&5
14236 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
14237 echo $ac_n "(cached) $ac_c" 1>&6
14240 cat > conftest.$ac_ext <<EOF
14241 #line 14242 "configure"
14242 #include "confdefs.h"
14245 char *c = (char *) *sys_errlist
14248 if { (eval echo configure:14249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14250 ol_cv_have_sys_errlist=yes
14252 echo "configure: failed program was:" >&5
14253 cat conftest.$ac_ext >&5
14255 ol_cv_have_sys_errlist=no
14260 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
14262 if test $ol_cv_have_sys_errlist = yes ; then
14263 cat >> confdefs.h <<\EOF
14264 #define HAVE_SYS_ERRLIST 1
14271 if test "$ol_enable_debug" != no ; then
14272 cat >> confdefs.h <<\EOF
14273 #define LDAP_DEBUG 1
14277 if test "$ol_enable_syslog" = yes ; then
14278 cat >> confdefs.h <<\EOF
14279 #define LDAP_SYSLOG 1
14283 if test "$ol_enable_libui" = yes ; then
14284 cat >> confdefs.h <<\EOF
14285 #define LDAP_LIBUI 1
14289 if test "$ol_enable_cache" = no ; then
14290 cat >> confdefs.h <<\EOF
14291 #define LDAP_NOCACHE 1
14295 if test "$ol_enable_dns" != no ; then
14296 cat >> confdefs.h <<\EOF
14297 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
14301 if test "$ol_enable_proctitle" != no ; then
14302 cat >> confdefs.h <<\EOF
14303 #define LDAP_PROCTITLE 1
14307 if test "$ol_enable_referrals" != no ; then
14308 cat >> confdefs.h <<\EOF
14309 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
14313 if test "$ol_enable_cldap" != no ; then
14314 cat >> confdefs.h <<\EOF
14315 #define LDAP_CONNECTIONLESS 1
14320 if test "$ol_enable_crypt" != no ; then
14321 cat >> confdefs.h <<\EOF
14322 #define SLAPD_CRYPT 1
14326 if test "$ol_enable_cleartext" != no ; then
14327 cat >> confdefs.h <<\EOF
14328 #define SLAPD_CLEARTEXT 1
14332 if test "$ol_enable_multimaster" != no ; then
14333 cat >> confdefs.h <<\EOF
14334 #define SLAPD_MULTIMASTER 1
14338 if test "$ol_enable_phonetic" != no ; then
14339 cat >> confdefs.h <<\EOF
14340 #define SLAPD_PHONETIC 1
14344 if test "$ol_enable_rlookups" != no ; then
14345 cat >> confdefs.h <<\EOF
14346 #define SLAPD_RLOOKUPS 1
14350 if test "$ol_enable_aci" != no ; then
14351 cat >> confdefs.h <<\EOF
14352 #define SLAPD_ACI_ENABLED 1
14356 if test "$ol_enable_discreteaci" != no ; then
14357 cat >> confdefs.h <<\EOF
14358 #define SLAPD_ACI_DISCRETE_RIGHTS 1
14363 if test "$ol_link_modules" != no ; then
14364 cat >> confdefs.h <<\EOF
14365 #define SLAPD_MODULES 1
14369 MODULES_LIBS=-lltdl
14370 SLAPD_MODULES_LDFLAGS="-dlopen self"
14373 if test "$ol_link_bdb2" != no ; then
14374 cat >> confdefs.h <<\EOF
14375 #define SLAPD_BDB2 1
14380 if test "$ol_with_bdb2_module" != static ; then
14381 cat >> confdefs.h <<\EOF
14382 #define SLAPD_BDB2_DYNAMIC 1
14386 BUILD_BDB2_DYNAMIC=shared
14387 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
14391 if test "$ol_enable_ldap" != no ; then
14392 cat >> confdefs.h <<\EOF
14393 #define SLAPD_LDAP 1
14398 if test "$ol_with_ldap_module" != static ; then
14399 cat >> confdefs.h <<\EOF
14400 #define SLAPD_LDAP_DYNAMIC 1
14404 BUILD_LDAP_DYNAMIC=shared
14405 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
14409 if test "$ol_link_ldbm" != no ; then
14410 cat >> confdefs.h <<\EOF
14411 #define SLAPD_LDBM 1
14416 if test "$ol_with_ldbm_module" != static ; then
14417 cat >> confdefs.h <<\EOF
14418 #define SLAPD_LDBM_DYNAMIC 1
14422 BUILD_LDBM_DYNAMIC=shared
14423 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
14427 if test "$ol_enable_passwd" != no ; then
14428 cat >> confdefs.h <<\EOF
14429 #define SLAPD_PASSWD 1
14434 if test "$ol_with_passwd_module" != static ; then
14435 cat >> confdefs.h <<\EOF
14436 #define SLAPD_PASSWD_DYNAMIC 1
14440 BUILD_PASSWD_DYNAMIC=shared
14441 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
14445 if test "$ol_link_perl" != no ; then
14446 cat >> confdefs.h <<\EOF
14447 #define SLAPD_PERL 1
14452 if test "$ol_with_perl_module" != static ; then
14453 cat >> confdefs.h <<\EOF
14454 #define SLAPD_PERL_DYNAMIC 1
14458 BUILD_PERL_DYNAMIC=shared
14459 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
14463 if test "$ol_enable_shell" != no ; then
14464 cat >> confdefs.h <<\EOF
14465 #define SLAPD_SHELL 1
14470 if test "$ol_with_shell_module" != static ; then
14471 cat >> confdefs.h <<\EOF
14472 #define SLAPD_SHELL_DYNAMIC 1
14476 BUILD_SHELL_DYNAMIC=shared
14477 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
14481 if test "$ol_enable_tcl" != no ; then
14482 cat >> confdefs.h <<\EOF
14483 #define SLAPD_TCL 1
14488 if test "$ol_with_tcl_module" != static; then
14489 cat >> confdefs.h <<\EOF
14490 #define SLAPD_TCL_DYNAMIC 1
14494 BUILD_TCL_DYNAMIC=shared
14495 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
14499 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
14500 $BUILD_SLAPD = yes ; then
14504 if test "$ol_link_isode" != no ; then
14554 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14557 # Let make expand exec_prefix.
14558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14560 # Any assignment to VPATH causes Sun make to only execute
14561 # the first set of double-colon rules, so remove it if not needed.
14562 # If there is a colon in the path, we need to keep it.
14563 if test "x$srcdir" = x.; then
14564 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14567 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14569 DEFS=-DHAVE_CONFIG_H
14571 # Without the "./", some shells look in PATH for config.status.
14572 : ${CONFIG_STATUS=./config.status}
14574 echo creating $CONFIG_STATUS
14575 rm -f $CONFIG_STATUS
14576 cat > $CONFIG_STATUS <<EOF
14578 # Generated automatically by configure.
14579 # Run this file to recreate the current configuration.
14580 # This directory was configured as follows,
14581 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14583 # $0 $ac_configure_args
14585 # Compiler output produced by configure, useful for debugging
14586 # configure, is in ./config.log if it exists.
14588 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14591 case "\$ac_option" in
14592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14593 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14594 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14595 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14596 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
14598 -help | --help | --hel | --he | --h)
14599 echo "\$ac_cs_usage"; exit 0 ;;
14600 *) echo "\$ac_cs_usage"; exit 1 ;;
14604 ac_given_srcdir=$srcdir
14605 ac_given_INSTALL="$INSTALL"
14607 trap 'rm -fr `echo "\
14608 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14609 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14610 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14611 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14612 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14613 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14614 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14615 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14616 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14617 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14618 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14619 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14620 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14621 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14622 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14623 include/Makefile:build/top.mk:include/Makefile.in \
14624 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14625 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14626 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14627 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14628 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14629 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14630 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14631 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14632 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14633 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
14634 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14635 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14636 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14637 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14638 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14639 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14640 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14641 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14642 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14643 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14644 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14645 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14646 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14647 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14648 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14649 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14650 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14652 cat >> $CONFIG_STATUS <<EOF
14654 # Protect against being on the right side of a sed subst in config.status.
14655 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14656 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14660 s%@CFLAGS@%$CFLAGS%g
14661 s%@CPPFLAGS@%$CPPFLAGS%g
14662 s%@CXXFLAGS@%$CXXFLAGS%g
14663 s%@FFLAGS@%$FFLAGS%g
14665 s%@LDFLAGS@%$LDFLAGS%g
14667 s%@exec_prefix@%$exec_prefix%g
14668 s%@prefix@%$prefix%g
14669 s%@program_transform_name@%$program_transform_name%g
14670 s%@bindir@%$bindir%g
14671 s%@sbindir@%$sbindir%g
14672 s%@libexecdir@%$libexecdir%g
14673 s%@datadir@%$datadir%g
14674 s%@sysconfdir@%$sysconfdir%g
14675 s%@sharedstatedir@%$sharedstatedir%g
14676 s%@localstatedir@%$localstatedir%g
14677 s%@libdir@%$libdir%g
14678 s%@includedir@%$includedir%g
14679 s%@oldincludedir@%$oldincludedir%g
14680 s%@infodir@%$infodir%g
14681 s%@mandir@%$mandir%g
14683 s%@host_alias@%$host_alias%g
14684 s%@host_cpu@%$host_cpu%g
14685 s%@host_vendor@%$host_vendor%g
14686 s%@host_os@%$host_os%g
14687 s%@target@%$target%g
14688 s%@target_alias@%$target_alias%g
14689 s%@target_cpu@%$target_cpu%g
14690 s%@target_vendor@%$target_vendor%g
14691 s%@target_os@%$target_os%g
14693 s%@build_alias@%$build_alias%g
14694 s%@build_cpu@%$build_cpu%g
14695 s%@build_vendor@%$build_vendor%g
14696 s%@build_os@%$build_os%g
14697 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14698 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14699 s%@INSTALL_DATA@%$INSTALL_DATA%g
14700 s%@PACKAGE@%$PACKAGE%g
14701 s%@VERSION@%$VERSION%g
14702 s%@ACLOCAL@%$ACLOCAL%g
14703 s%@AUTOCONF@%$AUTOCONF%g
14704 s%@AUTOMAKE@%$AUTOMAKE%g
14705 s%@AUTOHEADER@%$AUTOHEADER%g
14706 s%@MAKEINFO@%$MAKEINFO%g
14707 s%@install_sh@%$install_sh%g
14710 s%@AMTARFLAGS@%$AMTARFLAGS%g
14711 s%@SET_MAKE@%$SET_MAKE%g
14712 s%@top_builddir@%$top_builddir%g
14713 s%@ldap_subdir@%$ldap_subdir%g
14715 s%@RANLIB@%$RANLIB%g
14719 s%@LIBTOOL@%$LIBTOOL%g
14721 s%@SENDMAIL@%$SENDMAIL%g
14722 s%@EDITOR@%$EDITOR%g
14723 s%@FINGER@%$FINGER%g
14724 s%@PERLBIN@%$PERLBIN%g
14726 s%@EXEEXT@%$EXEEXT%g
14727 s%@OBJEXT@%$OBJEXT%g
14728 s%@OL_MKDEP@%$OL_MKDEP%g
14729 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
14731 s%@LIBOBJS@%$LIBOBJS%g
14732 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
14733 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
14734 s%@BUILD_BDB2@%$BUILD_BDB2%g
14735 s%@BUILD_LDAP@%$BUILD_LDAP%g
14736 s%@BUILD_LDBM@%$BUILD_LDBM%g
14737 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
14738 s%@BUILD_PERL@%$BUILD_PERL%g
14739 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
14740 s%@BUILD_SHELL@%$BUILD_SHELL%g
14741 s%@BUILD_TCL@%$BUILD_TCL%g
14742 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
14743 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
14744 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
14745 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
14746 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
14747 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
14748 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
14749 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
14750 s%@LDAP_LIBS@%$LDAP_LIBS%g
14751 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
14752 s%@LDIF_LIBS@%$LDIF_LIBS%g
14753 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
14754 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
14755 s%@LDBM_LIBS@%$LDBM_LIBS%g
14756 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
14757 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
14758 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
14759 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
14760 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
14761 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
14762 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
14763 s%@KRB_LIBS@%$KRB_LIBS%g
14764 s%@READLINE_LIBS@%$READLINE_LIBS%g
14765 s%@SASL_LIBS@%$SASL_LIBS%g
14766 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
14767 s%@TLS_LIBS@%$TLS_LIBS%g
14768 s%@MODULES_LIBS@%$MODULES_LIBS%g
14773 cat >> $CONFIG_STATUS <<\EOF
14775 # Split the substitutions into bite-sized pieces for seds with
14776 # small command number limits, like on Digital OSF/1 and HP-UX.
14777 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14778 ac_file=1 # Number of current file.
14779 ac_beg=1 # First line for current file.
14780 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14783 while $ac_more_lines; do
14784 if test $ac_beg -gt 1; then
14785 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14787 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14789 if test ! -s conftest.s$ac_file; then
14790 ac_more_lines=false
14791 rm -f conftest.s$ac_file
14793 if test -z "$ac_sed_cmds"; then
14794 ac_sed_cmds="sed -f conftest.s$ac_file"
14796 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14798 ac_file=`expr $ac_file + 1`
14800 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14803 if test -z "$ac_sed_cmds"; then
14808 cat >> $CONFIG_STATUS <<EOF
14810 CONFIG_FILES=\${CONFIG_FILES-"\
14811 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14812 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14813 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14814 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14815 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14816 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14817 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14818 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14819 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14820 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14821 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14822 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14823 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14824 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14825 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14826 include/Makefile:build/top.mk:include/Makefile.in \
14827 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14828 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14829 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14830 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14831 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14832 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14833 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14834 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14835 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14836 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
14837 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14838 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14839 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14840 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14841 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14842 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14843 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14844 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14845 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14846 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14847 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14848 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14849 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14850 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14851 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14852 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14855 cat >> $CONFIG_STATUS <<\EOF
14856 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14857 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14859 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14860 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14861 *) ac_file_in="${ac_file}.in" ;;
14864 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14866 # Remove last slash and all that follows it. Not all systems have dirname.
14867 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14868 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14869 # The file is in a subdirectory.
14870 test ! -d "$ac_dir" && mkdir "$ac_dir"
14871 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14872 # A "../" for each directory in $ac_dir_suffix.
14873 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14875 ac_dir_suffix= ac_dots=
14878 case "$ac_given_srcdir" in
14880 if test -z "$ac_dots"; then top_srcdir=.
14881 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14882 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14883 *) # Relative path.
14884 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14885 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14888 case "$ac_given_INSTALL" in
14889 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14890 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14893 echo creating "$ac_file"
14895 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14897 *Makefile*) ac_comsub="1i\\
14898 # $configure_input" ;;
14902 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14904 s%@configure_input@%$configure_input%g
14905 s%@srcdir@%$srcdir%g
14906 s%@top_srcdir@%$top_srcdir%g
14907 s%@INSTALL@%$INSTALL%g
14908 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14912 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14913 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14915 # ac_d sets the value in "#define NAME VALUE" lines.
14916 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14917 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14920 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14921 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14922 ac_uB='\([ ]\)%\1#\2define\3'
14925 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14926 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14927 ac_eB='$%\1#\2define\3'
14931 if test "${CONFIG_HEADERS+set}" != set; then
14933 cat >> $CONFIG_STATUS <<EOF
14934 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
14936 cat >> $CONFIG_STATUS <<\EOF
14938 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14939 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14941 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14942 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14943 *) ac_file_in="${ac_file}.in" ;;
14946 echo creating $ac_file
14948 rm -f conftest.frag conftest.in conftest.out
14949 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14950 cat $ac_file_inputs > conftest.in
14954 # Transform confdefs.h into a sed script conftest.vals that substitutes
14955 # the proper values into config.h.in to produce config.h. And first:
14956 # Protect against being on the right side of a sed subst in config.status.
14957 # Protect against being in an unquoted here document in config.status.
14958 rm -f conftest.vals
14959 cat > conftest.hdr <<\EOF
14962 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14966 sed -n -f conftest.hdr confdefs.h > conftest.vals
14969 # This sed command replaces #undef with comments. This is necessary, for
14970 # example, in the case of _POSIX_SOURCE, which is predefined and required
14971 # on some systems where configure will not decide to define it.
14972 cat >> conftest.vals <<\EOF
14973 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14976 # Break up conftest.vals because some shells have a limit on
14977 # the size of here documents, and old seds have small limits too.
14979 rm -f conftest.tail
14982 ac_lines=`grep -c . conftest.vals`
14983 # grep -c gives empty output for an empty file on some AIX systems.
14984 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14985 # Write a limited-size here document to conftest.frag.
14986 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14987 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14989 sed -f conftest.frag conftest.in > conftest.out
14991 mv conftest.out conftest.in
14992 ' >> $CONFIG_STATUS
14993 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14994 rm -f conftest.vals
14995 mv conftest.tail conftest.vals
14997 rm -f conftest.vals
14999 cat >> $CONFIG_STATUS <<\EOF
15000 rm -f conftest.frag conftest.h
15001 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15002 cat conftest.in >> conftest.h
15004 if cmp -s $ac_file conftest.h 2>/dev/null; then
15005 echo "$ac_file is unchanged"
15008 # Remove last slash and all that follows it. Not all systems have dirname.
15009 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15010 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15011 # The file is in a subdirectory.
15012 test ! -d "$ac_dir" && mkdir "$ac_dir"
15015 mv conftest.h $ac_file
15020 cat >> $CONFIG_STATUS <<EOF
15023 cat >> $CONFIG_STATUS <<\EOF
15026 echo Please \"make depend\" to build dependencies
15030 chmod +x $CONFIG_STATUS
15031 rm -fr confdefs* $ac_clean_files
15032 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1