3 # from OpenLDAP: pkg/ldap/configure.in,v 1.304 2000/05/30 18:15:54 kurt Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Copying restrictions apply, see COPYRIGHT file."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging (yes)"
32 --enable-syslog enable syslog support (auto)"
34 --enable-proctitle enable proctitle support (yes)"
36 --enable-cache enable caching (yes)"
38 --enable-dns enable V2 DX Referrals extension (no)"
40 --enable-referrals enable V2 Referrals extension (yes)"
42 --enable-kbind enable V2 Kerberos IV bind (auto)"
44 --enable-cldap enable connectionless ldap (no)"
46 --enable-ldapi enable domain socket (PF_LOCAL) ldap (no)"
48 --enable-x-compile enable cross compiling (no)"
50 --with-cyrus-sasl with Cyrus SASL support (auto)"
52 --with-fetch with fetch URL support (auto)"
54 --with-kerberos with support (auto)"
56 --with-readline with readline support (auto)"
58 --with-threads use threads (auto)"
60 --with-tls with TLS/SSL support (auto)"
62 --with-yielding-select with implicitly yielding select (auto)"
64 LDAPD (X.500-to-LDAP Gateway) Options:"
66 --enable-ldapd enable building ldapd (no)"
68 SLAPD (Standalone LDAP Daemon) Options:"
70 --enable-slapd enable building slapd (yes)"
72 --enable-cleartext enable cleartext passwords (yes)"
74 --enable-crypt enable crypt(3) passwords (auto)"
76 --enable-kpasswd enable kerberos password verification (no)"
78 --enable-spasswd enable (Cyrus) SASL password verification (no)"
80 --enable-modules enable dynamic module support (no)"
82 --enable-multimaster enable multimaster replication (no)"
84 --enable-phonetic enable phonetic/soundex (no)"
86 --enable-quipu build quipu migration tools (no)"
88 --enable-rlookups enable reverse lookups (auto)"
90 --enable-aci enable per-object ACIs (no)"
92 --enable-wrappers enable tcp wrapper support (no)"
94 --enable-dynamic enable linking built binaries with dynamic libs (no)"
96 --enable-bdb2 enable bdb2 backend (no)"
98 --with-bdb2-module module type (static)"
100 --enable-dnssrv enable bdb2 backend (no)"
102 --with-dnssrv-module module type (static)"
104 --enable-ldap enable ldap backend (no)"
106 --with-ldap-module module type (static)"
108 --enable-ldbm enable ldbm backend (yes)"
110 --with-ldbm-api use LDBM API (auto)"
112 --with-ldbm-module module type (static)"
114 --with-ldbm-type use LDBM type (auto)"
116 --enable-passwd enable passwd backend (no)"
118 --with-passwd-module module type (static)"
120 --enable-perl enable perl backend (no)"
122 --with-perl-module module type (static)"
124 --enable-shell enable shell backend (no)"
126 --with-shell-module module type (static)"
128 --enable-sql enable sql backend (no)"
130 --with-sql-module module type (static)"
132 --enable-tcl enable tcl backend (no)"
134 --with-tcl-module module type (static)"
136 SLURPD (Replication Daemon) Options:"
138 --enable-slurpd enable building slurpd (auto)"
140 Library Generation & Linking Options"
142 --enable-static[=PKGS] build static libraries [default=yes]"
144 --enable-shared[=PKGS] build shared libraries [default=yes]"
146 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
148 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
150 --disable-libtool-lock avoid locking (might break parallel builds)"
152 # Initialize some variables set by options.
153 # The variables have the same names as the options, with
154 # dashes changed to underlines.
156 cache_file=./config.cache
165 program_transform_name=s,x,x,
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datadir='${prefix}/share'
177 sysconfdir='${prefix}/etc'
178 sharedstatedir='${prefix}/com'
179 localstatedir='${prefix}/var'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${prefix}/info'
184 mandir='${prefix}/man'
186 # Initialize some other variables.
189 SHELL=${CONFIG_SHELL-/bin/sh}
190 # Maximum number of lines to put in a shell here document.
197 # If the previous option needs an argument, assign it.
198 if test -n "$ac_prev"; then
199 eval "$ac_prev=\$ac_option"
205 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
209 # Accept the important Cygnus configure options, so we can diagnose typos.
213 -bindir | --bindir | --bindi | --bind | --bin | --bi)
215 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 bindir="$ac_optarg" ;;
218 -build | --build | --buil | --bui | --bu)
220 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
221 build="$ac_optarg" ;;
223 -cache-file | --cache-file | --cache-fil | --cache-fi \
224 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
225 ac_prev=cache_file ;;
226 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
227 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
228 cache_file="$ac_optarg" ;;
230 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
232 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
234 datadir="$ac_optarg" ;;
236 -disable-* | --disable-*)
237 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
238 # Reject names that are not valid shell variable names.
239 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
240 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
242 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
243 eval "enable_${ac_feature}=no" ;;
245 -enable-* | --enable-*)
246 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
247 # Reject names that are not valid shell variable names.
248 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
249 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
251 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
256 eval "enable_${ac_feature}='$ac_optarg'" ;;
258 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
259 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
260 | --exec | --exe | --ex)
261 ac_prev=exec_prefix ;;
262 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
263 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
264 | --exec=* | --exe=* | --ex=*)
265 exec_prefix="$ac_optarg" ;;
267 -gas | --gas | --ga | --g)
268 # Obsolete; use --with-gas.
271 -help | --help | --hel | --he)
272 # Omit some internal or obsolete options to make the list less imposing.
273 # This message is too long to be a string in the A/UX 3.1 sh.
275 Usage: configure [options] [host]
276 Options: [defaults in brackets after descriptions]
278 --cache-file=FILE cache test results in FILE
279 --help print this message
280 --no-create do not create output files
281 --quiet, --silent do not print \`checking...' messages
282 --version print the version of autoconf that created configure
283 Directory and file names:
284 --prefix=PREFIX install architecture-independent files in PREFIX
286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
288 --bindir=DIR user executables in DIR [EPREFIX/bin]
289 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
290 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
291 --datadir=DIR read-only architecture-independent data in DIR
293 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
294 --sharedstatedir=DIR modifiable architecture-independent data in DIR
296 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
297 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
298 --includedir=DIR C header files in DIR [PREFIX/include]
299 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
300 --infodir=DIR info documentation in DIR [PREFIX/info]
301 --mandir=DIR man documentation in DIR [PREFIX/man]
302 --srcdir=DIR find the sources in DIR [configure dir or ..]
303 --program-prefix=PREFIX prepend PREFIX to installed program names
304 --program-suffix=SUFFIX append SUFFIX to installed program names
305 --program-transform-name=PROGRAM
306 run sed PROGRAM on installed program names
310 --build=BUILD configure for building on BUILD [BUILD=HOST]
311 --host=HOST configure for HOST [guessed]
312 --target=TARGET configure for TARGET [TARGET=HOST]
313 Features and packages:
314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
316 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
317 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
318 --x-includes=DIR X include files are in DIR
319 --x-libraries=DIR X library files are in DIR
321 if test -n "$ac_help"; then
322 echo "--enable and --with options recognized:$ac_help"
326 -host | --host | --hos | --ho)
328 -host=* | --host=* | --hos=* | --ho=*)
331 -includedir | --includedir | --includedi | --included | --include \
332 | --includ | --inclu | --incl | --inc)
333 ac_prev=includedir ;;
334 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
335 | --includ=* | --inclu=* | --incl=* | --inc=*)
336 includedir="$ac_optarg" ;;
338 -infodir | --infodir | --infodi | --infod | --info | --inf)
340 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
341 infodir="$ac_optarg" ;;
343 -libdir | --libdir | --libdi | --libd)
345 -libdir=* | --libdir=* | --libdi=* | --libd=*)
346 libdir="$ac_optarg" ;;
348 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
349 | --libexe | --libex | --libe)
350 ac_prev=libexecdir ;;
351 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
352 | --libexe=* | --libex=* | --libe=*)
353 libexecdir="$ac_optarg" ;;
355 -localstatedir | --localstatedir | --localstatedi | --localstated \
356 | --localstate | --localstat | --localsta | --localst \
357 | --locals | --local | --loca | --loc | --lo)
358 ac_prev=localstatedir ;;
359 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
360 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
361 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
362 localstatedir="$ac_optarg" ;;
364 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
366 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
367 mandir="$ac_optarg" ;;
370 # Obsolete; use --without-fp.
373 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
377 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
378 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
381 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
382 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
383 | --oldin | --oldi | --old | --ol | --o)
384 ac_prev=oldincludedir ;;
385 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
386 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
387 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
388 oldincludedir="$ac_optarg" ;;
390 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
392 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
393 prefix="$ac_optarg" ;;
395 -program-prefix | --program-prefix | --program-prefi | --program-pref \
396 | --program-pre | --program-pr | --program-p)
397 ac_prev=program_prefix ;;
398 -program-prefix=* | --program-prefix=* | --program-prefi=* \
399 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
400 program_prefix="$ac_optarg" ;;
402 -program-suffix | --program-suffix | --program-suffi | --program-suff \
403 | --program-suf | --program-su | --program-s)
404 ac_prev=program_suffix ;;
405 -program-suffix=* | --program-suffix=* | --program-suffi=* \
406 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
407 program_suffix="$ac_optarg" ;;
409 -program-transform-name | --program-transform-name \
410 | --program-transform-nam | --program-transform-na \
411 | --program-transform-n | --program-transform- \
412 | --program-transform | --program-transfor \
413 | --program-transfo | --program-transf \
414 | --program-trans | --program-tran \
415 | --progr-tra | --program-tr | --program-t)
416 ac_prev=program_transform_name ;;
417 -program-transform-name=* | --program-transform-name=* \
418 | --program-transform-nam=* | --program-transform-na=* \
419 | --program-transform-n=* | --program-transform-=* \
420 | --program-transform=* | --program-transfor=* \
421 | --program-transfo=* | --program-transf=* \
422 | --program-trans=* | --program-tran=* \
423 | --progr-tra=* | --program-tr=* | --program-t=*)
424 program_transform_name="$ac_optarg" ;;
426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
427 | -silent | --silent | --silen | --sile | --sil)
430 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
432 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
434 sbindir="$ac_optarg" ;;
436 -sharedstatedir | --sharedstatedir | --sharedstatedi \
437 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
438 | --sharedst | --shareds | --shared | --share | --shar \
440 ac_prev=sharedstatedir ;;
441 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
442 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
443 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
445 sharedstatedir="$ac_optarg" ;;
447 -site | --site | --sit)
449 -site=* | --site=* | --sit=*)
452 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
454 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
455 srcdir="$ac_optarg" ;;
457 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
458 | --syscon | --sysco | --sysc | --sys | --sy)
459 ac_prev=sysconfdir ;;
460 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
461 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
462 sysconfdir="$ac_optarg" ;;
464 -target | --target | --targe | --targ | --tar | --ta | --t)
466 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
467 target="$ac_optarg" ;;
469 -v | -verbose | --verbose | --verbos | --verbo | --verb)
472 -version | --version | --versio | --versi | --vers)
473 echo "configure generated by autoconf version 2.13.1"
477 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
478 # Reject names that are not valid shell variable names.
479 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
480 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
482 ac_package=`echo $ac_package| sed 's/-/_/g'`
487 eval "with_${ac_package}='$ac_optarg'" ;;
489 -without-* | --without-*)
490 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
491 # Reject names that are not valid shell variable names.
492 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
493 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
495 ac_package=`echo $ac_package| sed 's/-/_/g'`
496 eval "with_${ac_package}=no" ;;
499 # Obsolete; use --with-x.
502 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
503 | --x-incl | --x-inc | --x-in | --x-i)
504 ac_prev=x_includes ;;
505 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
506 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
507 x_includes="$ac_optarg" ;;
509 -x-libraries | --x-libraries | --x-librarie | --x-librari \
510 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
511 ac_prev=x_libraries ;;
512 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
513 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
514 x_libraries="$ac_optarg" ;;
516 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
520 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
521 echo "configure: warning: $ac_option: invalid host type" 1>&2
523 if test "x$nonopt" != xNONE; then
524 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
532 if test -n "$ac_prev"; then
533 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
536 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
538 # File descriptor usage:
541 # 2 errors and warnings
542 # 3 some systems may open it to /dev/tty
543 # 4 used on the Kubota Titan
544 # 6 checking for... messages and results
545 # 5 compiler messages saved in config.log
546 if test "$silent" = yes; then
554 This file contains any messages produced by compilers while
555 running configure, to aid debugging if configure makes a mistake.
558 # Strip out --no-create and --no-recursion so they do not pile up.
559 # Also quote any args containing shell metacharacters.
564 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
565 | --no-cr | --no-c) ;;
566 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
567 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
568 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
569 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
570 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
575 # Only set these to C if already set. These must not be set unconditionally
576 # because not all systems understand e.g. LANG=C (notably SCO).
577 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
578 # Non-C LC_CTYPE values break the ctype check.
579 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
580 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
581 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
582 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
584 # confdefs.h avoids OS command line length limits that DEFS can exceed.
585 rm -rf conftest* confdefs.h
586 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
589 # A filename unique to this package, relative to the directory that
590 # configure is in, which we can look for to find out if srcdir is correct.
591 ac_unique_file=build/version
593 # Find the source files, if location was not specified.
594 if test -z "$srcdir"; then
595 ac_srcdir_defaulted=yes
596 # Try the directory containing this script, then its parent.
598 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
599 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
601 if test ! -r $srcdir/$ac_unique_file; then
605 ac_srcdir_defaulted=no
607 if test ! -r $srcdir/$ac_unique_file; then
608 if test "$ac_srcdir_defaulted" = yes; then
609 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
611 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
614 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
616 # Prefer explicitly selected file to automatically selected ones.
617 if test -z "$CONFIG_SITE"; then
618 if test "x$prefix" != xNONE; then
619 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
621 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
624 for ac_site_file in $CONFIG_SITE; do
625 if test -r "$ac_site_file"; then
626 echo "loading site script $ac_site_file"
633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
634 ac_cpp='$CPP $CPPFLAGS'
635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
637 cross_compiling=$ac_cv_prog_cc_cross
641 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
642 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
643 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
650 ac_n= ac_c='\c' ac_t=
654 for ac_dir in build $srcdir/build; do
655 if test -f $ac_dir/install-sh; then
657 ac_install_sh="$ac_aux_dir/install-sh -c"
659 elif test -f $ac_dir/install.sh; then
661 ac_install_sh="$ac_aux_dir/install.sh -c"
663 elif test -f $ac_dir/shtool; then
665 ac_install_sh="$ac_aux_dir/shtool install -c"
669 if test -z "$ac_aux_dir"; then
670 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
672 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
673 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
674 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
676 OL_VERSION=`cat $ac_aux_dir/version`
677 if test -z "$OL_VERSION"; then
678 { echo "configure: error: could not determine version" 1>&2; exit 1; }
681 echo "Configuring OpenLDAP $OL_VERSION ..."
684 echo $ac_n "checking host system type""... $ac_c" 1>&6
685 echo "configure:686: checking host system type" >&5
686 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
688 # Make sure we can run config.sub.
689 if $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
693 ac_cv_host_alias=$host
694 case "$ac_cv_host_alias" in
698 if ac_cv_host_alias=`$ac_config_guess`; then :
699 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
701 *) ac_cv_host_alias=$nonopt ;;
705 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
706 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo $ac_n "(cached) $ac_c" 1>&6
713 echo "$ac_t""$ac_cv_host" 1>&6
716 host_alias=$ac_cv_host_alias
717 host_cpu=$ac_cv_host_cpu
718 host_vendor=$ac_cv_host_vendor
719 host_os=$ac_cv_host_os
725 echo $ac_n "checking target system type""... $ac_c" 1>&6
726 echo "configure:727: checking target system type" >&5
727 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
729 # Make sure we can run config.sub.
730 if $ac_config_sub sun4 >/dev/null 2>&1; then :
731 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
734 ac_cv_target_alias=$target
735 case "$ac_cv_target_alias" in
739 ac_cv_target_alias=$host_alias ;;
741 *) ac_cv_target_alias=$nonopt ;;
745 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
746 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
750 echo $ac_n "(cached) $ac_c" 1>&6
753 echo "$ac_t""$ac_cv_target" 1>&6
756 target_alias=$ac_cv_target_alias
757 target_cpu=$ac_cv_target_cpu
758 target_vendor=$ac_cv_target_vendor
759 target_os=$ac_cv_target_os
765 echo $ac_n "checking build system type""... $ac_c" 1>&6
766 echo "configure:767: checking build system type" >&5
767 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
769 # Make sure we can run config.sub.
770 if $ac_config_sub sun4 >/dev/null 2>&1; then :
771 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
774 ac_cv_build_alias=$build
775 case "$ac_cv_build_alias" in
779 ac_cv_build_alias=$host_alias ;;
781 *) ac_cv_build_alias=$nonopt ;;
785 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
786 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
787 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
788 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
790 echo $ac_n "(cached) $ac_c" 1>&6
793 echo "$ac_t""$ac_cv_build" 1>&6
796 build_alias=$ac_cv_build_alias
797 build_cpu=$ac_cv_build_cpu
798 build_vendor=$ac_cv_build_vendor
799 build_os=$ac_cv_build_os
805 # Do some error checking and defaulting for the host and target type.
807 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
810 # 1. You are not allowed to specify --host, --target, and nonopt at the
812 # 2. Host defaults to nonopt.
813 # 3. If nonopt is not specified, then host defaults to the current host,
814 # as determined by config.guess.
815 # 4. Target and build default to nonopt.
816 # 5. If nonopt is not specified, then target and build default to host.
818 # The aliases save the names the user supplied, while $host etc.
819 # will get canonicalized.
820 case $host---$target---$nonopt in
821 NONE---*---* | *---NONE---* | *---*---NONE) ;;
822 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
825 test "$host_alias" != "$target_alias" &&
826 test "$program_prefix$program_suffix$program_transform_name" = \
828 program_prefix=${target_alias}-
831 # Find a good install program. We prefer a C program (faster),
832 # so one script is as good as another. But avoid the broken or
833 # incompatible versions:
834 # SysV /etc/install, /usr/sbin/install
835 # SunOS /usr/etc/install
838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
841 # ./install, which can be erroneously created by make from ./install.sh.
842 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
843 echo "configure:844: checking for a BSD compatible install" >&5
844 if test -z "$INSTALL"; then
845 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
849 for ac_dir in $PATH; do
850 # Account for people who put trailing slashes in PATH elements.
852 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
854 # OSF1 and SCO ODT 3.0 have their own names for install.
855 # Don't use installbsd from OSF since it installs stuff as root
857 for ac_prog in ginstall scoinst install; do
858 if test -f $ac_dir/$ac_prog; then
859 if test $ac_prog = install &&
860 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
861 # AIX install. It has an incompatible calling convention.
863 elif test $ac_prog = install &&
864 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
865 # program-specific install script used by HP pwplus--don't use.
868 ac_cv_path_install="$ac_dir/$ac_prog -c"
879 if test "${ac_cv_path_install+set}" = set; then
880 INSTALL="$ac_cv_path_install"
882 # As a last resort, use the slow shell script. We don't cache a
883 # path for INSTALL within a source directory, because that will
884 # break other packages using the cache if that directory is
885 # removed, or if the path is relative.
886 INSTALL="$ac_install_sh"
889 echo "$ac_t""$INSTALL" 1>&6
891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
892 # It thinks the first close brace ends the variable substitution.
893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
899 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
900 echo "configure:901: checking whether build environment is sane" >&5
903 echo timestamp > conftestfile
904 # Do `set' in a subshell so we don't clobber the current shell's
905 # arguments. Must try -L first in case configure is actually a
906 # symlink; some systems play weird games with the mod time of symlinks
907 # (eg FreeBSD returns the mod time of the symlink's containing
910 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
911 if test "$*" = "X"; then
913 set X `ls -t $srcdir/configure conftestfile`
915 if test "$*" != "X $srcdir/configure conftestfile" \
916 && test "$*" != "X conftestfile $srcdir/configure"; then
918 # If neither matched, then we have a broken ls. This can happen
919 # if, for instance, CONFIG_SHELL is bash and it inherits a
920 # broken ls alias from the environment. This has actually
921 # happened. Such a system could not be considered "sane".
922 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
923 alias in your environment" 1>&2; exit 1; }
926 test "$2" = conftestfile
932 { echo "configure: error: newly created file is older than distributed files!
933 Check your system clock" 1>&2; exit 1; }
936 echo "$ac_t""yes" 1>&6
937 if test "$program_transform_name" = s,x,x,; then
938 program_transform_name=
940 # Double any \ or $. echo might interpret backslashes.
941 cat <<\EOF_SED > conftestsed
942 s,\\,\\\\,g; s,\$,$$,g
944 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
947 test "$program_prefix" != NONE &&
948 program_transform_name="s,^,${program_prefix},;$program_transform_name"
949 # Use a double $ so make ignores it.
950 test "$program_suffix" != NONE &&
951 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
953 # sed with no file args requires a program.
954 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
956 for ac_prog in mawk gawk nawk awk
958 # Extract the first word of "$ac_prog", so it can be a program name with args.
959 set dummy $ac_prog; ac_word=$2
960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961 echo "configure:962: checking for $ac_word" >&5
962 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 if test -n "$AWK"; then
966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
970 for ac_dir in $ac_dummy; do
971 test -z "$ac_dir" && ac_dir=.
972 if test -f $ac_dir/$ac_word; then
973 ac_cv_prog_AWK="$ac_prog"
980 AWK="$ac_cv_prog_AWK"
981 if test -n "$AWK"; then
982 echo "$ac_t""$AWK" 1>&6
984 echo "$ac_t""no" 1>&6
987 test -n "$AWK" && break
990 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
991 echo "configure:992: checking whether ${MAKE-make} sets \${MAKE}" >&5
992 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
993 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
996 cat > conftestmake <<\EOF
998 @echo 'ac_maketemp="${MAKE}"'
1000 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1001 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1002 if test -n "$ac_maketemp"; then
1003 eval ac_cv_prog_make_${ac_make}_set=yes
1005 eval ac_cv_prog_make_${ac_make}_set=no
1009 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1010 echo "$ac_t""yes" 1>&6
1013 echo "$ac_t""no" 1>&6
1014 SET_MAKE="MAKE=${MAKE-make}"
1023 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1024 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1029 missing_dir=`cd $ac_aux_dir && pwd`
1030 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1031 echo "configure:1032: checking for working aclocal" >&5
1032 # Run test in a subshell; some versions of sh will print an error if
1033 # an executable is not found, even if stderr is redirected.
1034 # Redirect stdin to placate older versions of autoconf. Sigh.
1035 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1037 echo "$ac_t""found" 1>&6
1039 ACLOCAL="$missing_dir/missing aclocal"
1040 echo "$ac_t""missing" 1>&6
1043 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1044 echo "configure:1045: checking for working autoconf" >&5
1045 # Run test in a subshell; some versions of sh will print an error if
1046 # an executable is not found, even if stderr is redirected.
1047 # Redirect stdin to placate older versions of autoconf. Sigh.
1048 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1050 echo "$ac_t""found" 1>&6
1052 AUTOCONF="$missing_dir/missing autoconf"
1053 echo "$ac_t""missing" 1>&6
1056 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1057 echo "configure:1058: checking for working automake" >&5
1058 # Run test in a subshell; some versions of sh will print an error if
1059 # an executable is not found, even if stderr is redirected.
1060 # Redirect stdin to placate older versions of autoconf. Sigh.
1061 if (automake --version) < /dev/null > /dev/null 2>&1; then
1063 echo "$ac_t""found" 1>&6
1065 AUTOMAKE="$missing_dir/missing automake"
1066 echo "$ac_t""missing" 1>&6
1069 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1070 echo "configure:1071: checking for working autoheader" >&5
1071 # Run test in a subshell; some versions of sh will print an error if
1072 # an executable is not found, even if stderr is redirected.
1073 # Redirect stdin to placate older versions of autoconf. Sigh.
1074 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1075 AUTOHEADER=autoheader
1076 echo "$ac_t""found" 1>&6
1078 AUTOHEADER="$missing_dir/missing autoheader"
1079 echo "$ac_t""missing" 1>&6
1082 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1083 echo "configure:1084: checking for working makeinfo" >&5
1084 # Run test in a subshell; some versions of sh will print an error if
1085 # an executable is not found, even if stderr is redirected.
1086 # Redirect stdin to placate older versions of autoconf. Sigh.
1087 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1089 echo "$ac_t""found" 1>&6
1091 MAKEINFO="$missing_dir/missing makeinfo"
1092 echo "$ac_t""missing" 1>&6
1095 install_sh="$missing_dir/install-sh"
1096 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1098 for ac_prog in gnutar gtar tar
1100 # Extract the first word of "$ac_prog", so it can be a program name with args.
1101 set dummy $ac_prog; ac_word=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 if test -n "$AMTAR"; then
1108 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_prog_AMTAR="$ac_prog"
1122 AMTAR="$ac_cv_prog_AMTAR"
1123 if test -n "$AMTAR"; then
1124 echo "$ac_t""$AMTAR" 1>&6
1126 echo "$ac_t""no" 1>&6
1129 test -n "$AMTAR" && break
1134 if test -n "$AMTAR"; then
1135 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1142 cat >> confdefs.h <<EOF
1143 #define OPENLDAP_PACKAGE "$PACKAGE"
1146 cat >> confdefs.h <<EOF
1147 #define OPENLDAP_VERSION "$VERSION"
1153 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1154 echo "configure:1155: checking configure arguments" >&5
1159 ldap_subdir="/openldap"
1161 # Check whether --with-subdir or --without-subdir was given.
1162 if test "${with_subdir+set}" = set; then
1163 withval="$with_subdir"
1170 ldap_subdir="$withval"
1173 ldap_subdir="/$withval"
1180 # OpenLDAP --enable-debug
1181 # Check whether --enable-debug or --disable-debug was given.
1182 if test "${enable_debug+set}" = set; then
1183 enableval="$enable_debug"
1186 for ol_val in auto yes no ; do
1187 if test "$enableval" = "$ol_val" ; then
1191 if test "$ol_arg" = "invalid" ; then
1192 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1194 ol_enable_debug="$ol_arg"
1197 ol_enable_debug="yes"
1199 # end --enable-debug
1200 # OpenLDAP --enable-syslog
1201 # Check whether --enable-syslog or --disable-syslog was given.
1202 if test "${enable_syslog+set}" = set; then
1203 enableval="$enable_syslog"
1206 for ol_val in auto yes no ; do
1207 if test "$enableval" = "$ol_val" ; then
1211 if test "$ol_arg" = "invalid" ; then
1212 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1214 ol_enable_syslog="$ol_arg"
1217 ol_enable_syslog="auto"
1219 # end --enable-syslog
1220 # OpenLDAP --enable-proctitle
1221 # Check whether --enable-proctitle or --disable-proctitle was given.
1222 if test "${enable_proctitle+set}" = set; then
1223 enableval="$enable_proctitle"
1226 for ol_val in auto yes no ; do
1227 if test "$enableval" = "$ol_val" ; then
1231 if test "$ol_arg" = "invalid" ; then
1232 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1234 ol_enable_proctitle="$ol_arg"
1237 ol_enable_proctitle="yes"
1239 # end --enable-proctitle
1240 # OpenLDAP --enable-cache
1241 # Check whether --enable-cache or --disable-cache was given.
1242 if test "${enable_cache+set}" = set; then
1243 enableval="$enable_cache"
1246 for ol_val in auto yes no ; do
1247 if test "$enableval" = "$ol_val" ; then
1251 if test "$ol_arg" = "invalid" ; then
1252 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1254 ol_enable_cache="$ol_arg"
1257 ol_enable_cache="yes"
1259 # end --enable-cache
1260 # OpenLDAP --enable-dns
1261 # Check whether --enable-dns or --disable-dns was given.
1262 if test "${enable_dns+set}" = set; then
1263 enableval="$enable_dns"
1266 for ol_val in auto yes no ; do
1267 if test "$enableval" = "$ol_val" ; then
1271 if test "$ol_arg" = "invalid" ; then
1272 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1274 ol_enable_dns="$ol_arg"
1280 # OpenLDAP --enable-referrals
1281 # Check whether --enable-referrals or --disable-referrals was given.
1282 if test "${enable_referrals+set}" = set; then
1283 enableval="$enable_referrals"
1286 for ol_val in auto yes no ; do
1287 if test "$enableval" = "$ol_val" ; then
1291 if test "$ol_arg" = "invalid" ; then
1292 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1294 ol_enable_referrals="$ol_arg"
1297 ol_enable_referrals="yes"
1299 # end --enable-referrals
1300 # OpenLDAP --enable-kbind
1301 # Check whether --enable-kbind or --disable-kbind was given.
1302 if test "${enable_kbind+set}" = set; then
1303 enableval="$enable_kbind"
1306 for ol_val in auto yes no ; do
1307 if test "$enableval" = "$ol_val" ; then
1311 if test "$ol_arg" = "invalid" ; then
1312 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1314 ol_enable_kbind="$ol_arg"
1317 ol_enable_kbind="auto"
1319 # end --enable-kbind
1320 # OpenLDAP --enable-cldap
1321 # Check whether --enable-cldap or --disable-cldap was given.
1322 if test "${enable_cldap+set}" = set; then
1323 enableval="$enable_cldap"
1326 for ol_val in auto yes no ; do
1327 if test "$enableval" = "$ol_val" ; then
1331 if test "$ol_arg" = "invalid" ; then
1332 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1334 ol_enable_cldap="$ol_arg"
1337 ol_enable_cldap="no"
1339 # end --enable-cldap
1340 # OpenLDAP --enable-ldapi
1341 # Check whether --enable-ldapi or --disable-ldapi was given.
1342 if test "${enable_ldapi+set}" = set; then
1343 enableval="$enable_ldapi"
1346 for ol_val in auto yes no ; do
1347 if test "$enableval" = "$ol_val" ; then
1351 if test "$ol_arg" = "invalid" ; then
1352 { echo "configure: error: bad value $enableval for --enable-ldapi" 1>&2; exit 1; }
1354 ol_enable_ldapi="$ol_arg"
1357 ol_enable_ldapi="no"
1359 # end --enable-ldapi
1360 # OpenLDAP --enable-x_compile
1361 # Check whether --enable-x_compile or --disable-x_compile was given.
1362 if test "${enable_x_compile+set}" = set; then
1363 enableval="$enable_x_compile"
1366 for ol_val in yes no ; do
1367 if test "$enableval" = "$ol_val" ; then
1371 if test "$ol_arg" = "invalid" ; then
1372 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1374 ol_enable_x_compile="$ol_arg"
1377 ol_enable_x_compile="no"
1379 # end --enable-x_compile
1382 # OpenLDAP --with-cyrus_sasl
1383 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1384 if test "${with_cyrus_sasl+set}" = set; then
1385 withval="$with_cyrus_sasl"
1388 for ol_val in auto yes no ; do
1389 if test "$withval" = "$ol_val" ; then
1393 if test "$ol_arg" = "invalid" ; then
1394 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1396 ol_with_cyrus_sasl="$ol_arg"
1399 ol_with_cyrus_sasl="auto"
1401 # end --with-cyrus_sasl
1403 # OpenLDAP --with-fetch
1404 # Check whether --with-fetch or --without-fetch was given.
1405 if test "${with_fetch+set}" = set; then
1406 withval="$with_fetch"
1409 for ol_val in auto yes no ; do
1410 if test "$withval" = "$ol_val" ; then
1414 if test "$ol_arg" = "invalid" ; then
1415 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1417 ol_with_fetch="$ol_arg"
1420 ol_with_fetch="auto"
1424 # OpenLDAP --with-kerberos
1425 # Check whether --with-kerberos or --without-kerberos was given.
1426 if test "${with_kerberos+set}" = set; then
1427 withval="$with_kerberos"
1430 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1431 if test "$withval" = "$ol_val" ; then
1435 if test "$ol_arg" = "invalid" ; then
1436 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1438 ol_with_kerberos="$ol_arg"
1441 ol_with_kerberos="auto"
1443 # end --with-kerberos
1445 # OpenLDAP --with-readline
1446 # Check whether --with-readline or --without-readline was given.
1447 if test "${with_readline+set}" = set; then
1448 withval="$with_readline"
1451 for ol_val in auto yes no ; do
1452 if test "$withval" = "$ol_val" ; then
1456 if test "$ol_arg" = "invalid" ; then
1457 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1459 ol_with_readline="$ol_arg"
1462 ol_with_readline="auto"
1464 # end --with-readline
1466 # OpenLDAP --with-threads
1467 # Check whether --with-threads or --without-threads was given.
1468 if test "${with_threads+set}" = set; then
1469 withval="$with_threads"
1472 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1473 if test "$withval" = "$ol_val" ; then
1477 if test "$ol_arg" = "invalid" ; then
1478 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1480 ol_with_threads="$ol_arg"
1483 ol_with_threads="auto"
1485 # end --with-threads
1487 # OpenLDAP --with-tls
1488 # Check whether --with-tls or --without-tls was given.
1489 if test "${with_tls+set}" = set; then
1493 for ol_val in auto ssleay openssl yes no ; do
1494 if test "$withval" = "$ol_val" ; then
1498 if test "$ol_arg" = "invalid" ; then
1499 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1501 ol_with_tls="$ol_arg"
1508 # OpenLDAP --with-yielding_select
1509 # Check whether --with-yielding_select or --without-yielding_select was given.
1510 if test "${with_yielding_select+set}" = set; then
1511 withval="$with_yielding_select"
1514 for ol_val in auto yes no manual ; do
1515 if test "$withval" = "$ol_val" ; then
1519 if test "$ol_arg" = "invalid" ; then
1520 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1522 ol_with_yielding_select="$ol_arg"
1525 ol_with_yielding_select="auto"
1527 # end --with-yielding_select
1530 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1531 if test "${with_xxldapdoptions+set}" = set; then
1532 withval="$with_xxldapdoptions"
1536 # OpenLDAP --enable-ldapd
1537 # Check whether --enable-ldapd or --disable-ldapd was given.
1538 if test "${enable_ldapd+set}" = set; then
1539 enableval="$enable_ldapd"
1542 for ol_val in auto yes no ; do
1543 if test "$enableval" = "$ol_val" ; then
1547 if test "$ol_arg" = "invalid" ; then
1548 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1550 ol_enable_ldapd="$ol_arg"
1553 ol_enable_ldapd="no"
1555 # end --enable-ldapd
1557 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1558 if test "${with_xxslapdoptions+set}" = set; then
1559 withval="$with_xxslapdoptions"
1563 # OpenLDAP --enable-slapd
1564 # Check whether --enable-slapd or --disable-slapd was given.
1565 if test "${enable_slapd+set}" = set; then
1566 enableval="$enable_slapd"
1569 for ol_val in auto yes no ; do
1570 if test "$enableval" = "$ol_val" ; then
1574 if test "$ol_arg" = "invalid" ; then
1575 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1577 ol_enable_slapd="$ol_arg"
1580 ol_enable_slapd="yes"
1582 # end --enable-slapd
1583 # OpenLDAP --enable-cleartext
1584 # Check whether --enable-cleartext or --disable-cleartext was given.
1585 if test "${enable_cleartext+set}" = set; then
1586 enableval="$enable_cleartext"
1589 for ol_val in auto yes no ; do
1590 if test "$enableval" = "$ol_val" ; then
1594 if test "$ol_arg" = "invalid" ; then
1595 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1597 ol_enable_cleartext="$ol_arg"
1600 ol_enable_cleartext="yes"
1602 # end --enable-cleartext
1603 # OpenLDAP --enable-crypt
1604 # Check whether --enable-crypt or --disable-crypt was given.
1605 if test "${enable_crypt+set}" = set; then
1606 enableval="$enable_crypt"
1609 for ol_val in auto yes no ; do
1610 if test "$enableval" = "$ol_val" ; then
1614 if test "$ol_arg" = "invalid" ; then
1615 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1617 ol_enable_crypt="$ol_arg"
1620 ol_enable_crypt="auto"
1622 # end --enable-crypt
1623 # OpenLDAP --enable-kpasswd
1624 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1625 if test "${enable_kpasswd+set}" = set; then
1626 enableval="$enable_kpasswd"
1629 for ol_val in auto yes no ; do
1630 if test "$enableval" = "$ol_val" ; then
1634 if test "$ol_arg" = "invalid" ; then
1635 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1637 ol_enable_kpasswd="$ol_arg"
1640 ol_enable_kpasswd="no"
1642 # end --enable-kpasswd
1643 # OpenLDAP --enable-spasswd
1644 # Check whether --enable-spasswd or --disable-spasswd was given.
1645 if test "${enable_spasswd+set}" = set; then
1646 enableval="$enable_spasswd"
1649 for ol_val in auto yes no ; do
1650 if test "$enableval" = "$ol_val" ; then
1654 if test "$ol_arg" = "invalid" ; then
1655 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1657 ol_enable_spasswd="$ol_arg"
1660 ol_enable_spasswd="no"
1662 # end --enable-spasswd
1663 # OpenLDAP --enable-modules
1664 # Check whether --enable-modules or --disable-modules was given.
1665 if test "${enable_modules+set}" = set; then
1666 enableval="$enable_modules"
1669 for ol_val in auto yes no ; do
1670 if test "$enableval" = "$ol_val" ; then
1674 if test "$ol_arg" = "invalid" ; then
1675 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1677 ol_enable_modules="$ol_arg"
1680 ol_enable_modules="no"
1682 # end --enable-modules
1683 # OpenLDAP --enable-multimaster
1684 # Check whether --enable-multimaster or --disable-multimaster was given.
1685 if test "${enable_multimaster+set}" = set; then
1686 enableval="$enable_multimaster"
1689 for ol_val in auto yes no ; do
1690 if test "$enableval" = "$ol_val" ; then
1694 if test "$ol_arg" = "invalid" ; then
1695 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1697 ol_enable_multimaster="$ol_arg"
1700 ol_enable_multimaster="no"
1702 # end --enable-multimaster
1703 # OpenLDAP --enable-phonetic
1704 # Check whether --enable-phonetic or --disable-phonetic was given.
1705 if test "${enable_phonetic+set}" = set; then
1706 enableval="$enable_phonetic"
1709 for ol_val in auto yes no ; do
1710 if test "$enableval" = "$ol_val" ; then
1714 if test "$ol_arg" = "invalid" ; then
1715 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1717 ol_enable_phonetic="$ol_arg"
1720 ol_enable_phonetic="no"
1722 # end --enable-phonetic
1723 # OpenLDAP --enable-quipu
1724 # Check whether --enable-quipu or --disable-quipu was given.
1725 if test "${enable_quipu+set}" = set; then
1726 enableval="$enable_quipu"
1729 for ol_val in auto yes no ; do
1730 if test "$enableval" = "$ol_val" ; then
1734 if test "$ol_arg" = "invalid" ; then
1735 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1737 ol_enable_quipu="$ol_arg"
1740 ol_enable_quipu="no"
1742 # end --enable-quipu
1743 # OpenLDAP --enable-rlookups
1744 # Check whether --enable-rlookups or --disable-rlookups was given.
1745 if test "${enable_rlookups+set}" = set; then
1746 enableval="$enable_rlookups"
1749 for ol_val in auto yes no ; do
1750 if test "$enableval" = "$ol_val" ; then
1754 if test "$ol_arg" = "invalid" ; then
1755 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1757 ol_enable_rlookups="$ol_arg"
1760 ol_enable_rlookups="auto"
1762 # end --enable-rlookups
1763 # OpenLDAP --enable-aci
1764 # Check whether --enable-aci or --disable-aci was given.
1765 if test "${enable_aci+set}" = set; then
1766 enableval="$enable_aci"
1769 for ol_val in auto yes no ; do
1770 if test "$enableval" = "$ol_val" ; then
1774 if test "$ol_arg" = "invalid" ; then
1775 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1777 ol_enable_aci="$ol_arg"
1783 # OpenLDAP --enable-wrappers
1784 # Check whether --enable-wrappers or --disable-wrappers was given.
1785 if test "${enable_wrappers+set}" = set; then
1786 enableval="$enable_wrappers"
1789 for ol_val in auto yes no ; do
1790 if test "$enableval" = "$ol_val" ; then
1794 if test "$ol_arg" = "invalid" ; then
1795 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1797 ol_enable_wrappers="$ol_arg"
1800 ol_enable_wrappers="no"
1802 # end --enable-wrappers
1803 # OpenLDAP --enable-dynamic
1804 # Check whether --enable-dynamic or --disable-dynamic was given.
1805 if test "${enable_dynamic+set}" = set; then
1806 enableval="$enable_dynamic"
1809 for ol_val in auto yes no ; do
1810 if test "$enableval" = "$ol_val" ; then
1814 if test "$ol_arg" = "invalid" ; then
1815 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1817 ol_enable_dynamic="$ol_arg"
1820 ol_enable_dynamic="no"
1822 # end --enable-dynamic
1824 # OpenLDAP --enable-bdb2
1825 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1826 if test "${enable_bdb2+set}" = set; then
1827 enableval="$enable_bdb2"
1830 for ol_val in auto yes no ; do
1831 if test "$enableval" = "$ol_val" ; then
1835 if test "$ol_arg" = "invalid" ; then
1836 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1838 ol_enable_bdb2="$ol_arg"
1844 # OpenLDAP --with-bdb2_module
1845 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1846 if test "${with_bdb2_module+set}" = set; then
1847 withval="$with_bdb2_module"
1850 for ol_val in static dynamic ; do
1851 if test "$withval" = "$ol_val" ; then
1855 if test "$ol_arg" = "invalid" ; then
1856 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1858 ol_with_bdb2_module="$ol_arg"
1861 ol_with_bdb2_module="static"
1863 # end --with-bdb2_module
1865 # OpenLDAP --enable-dnssrv
1866 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1867 if test "${enable_dnssrv+set}" = set; then
1868 enableval="$enable_dnssrv"
1871 for ol_val in auto yes no ; do
1872 if test "$enableval" = "$ol_val" ; then
1876 if test "$ol_arg" = "invalid" ; then
1877 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1879 ol_enable_dnssrv="$ol_arg"
1882 ol_enable_dnssrv="no"
1884 # end --enable-dnssrv
1885 # OpenLDAP --with-dnssrv_module
1886 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1887 if test "${with_dnssrv_module+set}" = set; then
1888 withval="$with_dnssrv_module"
1891 for ol_val in static dynamic ; do
1892 if test "$withval" = "$ol_val" ; then
1896 if test "$ol_arg" = "invalid" ; then
1897 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1899 ol_with_dnssrv_module="$ol_arg"
1902 ol_with_dnssrv_module="static"
1904 # end --with-dnssrv_module
1906 # OpenLDAP --enable-ldap
1907 # Check whether --enable-ldap or --disable-ldap was given.
1908 if test "${enable_ldap+set}" = set; then
1909 enableval="$enable_ldap"
1912 for ol_val in auto yes no ; do
1913 if test "$enableval" = "$ol_val" ; then
1917 if test "$ol_arg" = "invalid" ; then
1918 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1920 ol_enable_ldap="$ol_arg"
1926 # OpenLDAP --with-ldap_module
1927 # Check whether --with-ldap_module or --without-ldap_module was given.
1928 if test "${with_ldap_module+set}" = set; then
1929 withval="$with_ldap_module"
1932 for ol_val in static dynamic ; do
1933 if test "$withval" = "$ol_val" ; then
1937 if test "$ol_arg" = "invalid" ; then
1938 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1940 ol_with_ldap_module="$ol_arg"
1943 ol_with_ldap_module="static"
1945 # end --with-ldap_module
1947 # OpenLDAP --enable-ldbm
1948 # Check whether --enable-ldbm or --disable-ldbm was given.
1949 if test "${enable_ldbm+set}" = set; then
1950 enableval="$enable_ldbm"
1953 for ol_val in auto yes no ; do
1954 if test "$enableval" = "$ol_val" ; then
1958 if test "$ol_arg" = "invalid" ; then
1959 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1961 ol_enable_ldbm="$ol_arg"
1964 ol_enable_ldbm="yes"
1967 # OpenLDAP --with-ldbm_api
1968 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1969 if test "${with_ldbm_api+set}" = set; then
1970 withval="$with_ldbm_api"
1973 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1974 if test "$withval" = "$ol_val" ; then
1978 if test "$ol_arg" = "invalid" ; then
1979 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1981 ol_with_ldbm_api="$ol_arg"
1984 ol_with_ldbm_api="auto"
1986 # end --with-ldbm_api
1988 # OpenLDAP --with-ldbm_module
1989 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1990 if test "${with_ldbm_module+set}" = set; then
1991 withval="$with_ldbm_module"
1994 for ol_val in static dynamic ; do
1995 if test "$withval" = "$ol_val" ; then
1999 if test "$ol_arg" = "invalid" ; then
2000 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2002 ol_with_ldbm_module="$ol_arg"
2005 ol_with_ldbm_module="static"
2007 # end --with-ldbm_module
2009 # OpenLDAP --with-ldbm_type
2010 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2011 if test "${with_ldbm_type+set}" = set; then
2012 withval="$with_ldbm_type"
2015 for ol_val in auto btree hash ; do
2016 if test "$withval" = "$ol_val" ; then
2020 if test "$ol_arg" = "invalid" ; then
2021 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2023 ol_with_ldbm_type="$ol_arg"
2026 ol_with_ldbm_type="auto"
2028 # end --with-ldbm_type
2030 # OpenLDAP --enable-passwd
2031 # Check whether --enable-passwd or --disable-passwd was given.
2032 if test "${enable_passwd+set}" = set; then
2033 enableval="$enable_passwd"
2036 for ol_val in auto yes no ; do
2037 if test "$enableval" = "$ol_val" ; then
2041 if test "$ol_arg" = "invalid" ; then
2042 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2044 ol_enable_passwd="$ol_arg"
2047 ol_enable_passwd="no"
2049 # end --enable-passwd
2050 # OpenLDAP --with-passwd_module
2051 # Check whether --with-passwd_module or --without-passwd_module was given.
2052 if test "${with_passwd_module+set}" = set; then
2053 withval="$with_passwd_module"
2056 for ol_val in static dynamic ; do
2057 if test "$withval" = "$ol_val" ; then
2061 if test "$ol_arg" = "invalid" ; then
2062 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2064 ol_with_passwd_module="$ol_arg"
2067 ol_with_passwd_module="static"
2069 # end --with-passwd_module
2071 # OpenLDAP --enable-perl
2072 # Check whether --enable-perl or --disable-perl was given.
2073 if test "${enable_perl+set}" = set; then
2074 enableval="$enable_perl"
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-perl" 1>&2; exit 1; }
2085 ol_enable_perl="$ol_arg"
2091 # OpenLDAP --with-perl_module
2092 # Check whether --with-perl_module or --without-perl_module was given.
2093 if test "${with_perl_module+set}" = set; then
2094 withval="$with_perl_module"
2097 for ol_val in static dynamic ; do
2098 if test "$withval" = "$ol_val" ; then
2102 if test "$ol_arg" = "invalid" ; then
2103 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2105 ol_with_perl_module="$ol_arg"
2108 ol_with_perl_module="static"
2110 # end --with-perl_module
2112 # OpenLDAP --enable-shell
2113 # Check whether --enable-shell or --disable-shell was given.
2114 if test "${enable_shell+set}" = set; then
2115 enableval="$enable_shell"
2118 for ol_val in auto yes no ; do
2119 if test "$enableval" = "$ol_val" ; then
2123 if test "$ol_arg" = "invalid" ; then
2124 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2126 ol_enable_shell="$ol_arg"
2129 ol_enable_shell="no"
2131 # end --enable-shell
2132 # OpenLDAP --with-shell_module
2133 # Check whether --with-shell_module or --without-shell_module was given.
2134 if test "${with_shell_module+set}" = set; then
2135 withval="$with_shell_module"
2138 for ol_val in static dynamic ; do
2139 if test "$withval" = "$ol_val" ; then
2143 if test "$ol_arg" = "invalid" ; then
2144 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2146 ol_with_shell_module="$ol_arg"
2149 ol_with_shell_module="static"
2151 # end --with-shell_module
2153 # OpenLDAP --enable-sql
2154 # Check whether --enable-sql or --disable-sql was given.
2155 if test "${enable_sql+set}" = set; then
2156 enableval="$enable_sql"
2159 for ol_val in auto yes no ; do
2160 if test "$enableval" = "$ol_val" ; then
2164 if test "$ol_arg" = "invalid" ; then
2165 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2167 ol_enable_sql="$ol_arg"
2173 # OpenLDAP --with-sql_module
2174 # Check whether --with-sql_module or --without-sql_module was given.
2175 if test "${with_sql_module+set}" = set; then
2176 withval="$with_sql_module"
2179 for ol_val in static dynamic ; do
2180 if test "$withval" = "$ol_val" ; then
2184 if test "$ol_arg" = "invalid" ; then
2185 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2187 ol_with_sql_module="$ol_arg"
2190 ol_with_sql_module="static"
2192 # end --with-sql_module
2194 # OpenLDAP --enable-tcl
2195 # Check whether --enable-tcl or --disable-tcl was given.
2196 if test "${enable_tcl+set}" = set; then
2197 enableval="$enable_tcl"
2200 for ol_val in auto yes no ; do
2201 if test "$enableval" = "$ol_val" ; then
2205 if test "$ol_arg" = "invalid" ; then
2206 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2208 ol_enable_tcl="$ol_arg"
2214 # OpenLDAP --with-tcl_module
2215 # Check whether --with-tcl_module or --without-tcl_module was given.
2216 if test "${with_tcl_module+set}" = set; then
2217 withval="$with_tcl_module"
2220 for ol_val in static dynamic ; do
2221 if test "$withval" = "$ol_val" ; then
2225 if test "$ol_arg" = "invalid" ; then
2226 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2228 ol_with_tcl_module="$ol_arg"
2231 ol_with_tcl_module="static"
2233 # end --with-tcl_module
2236 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2237 if test "${with_xxslurpdoptions+set}" = set; then
2238 withval="$with_xxslurpdoptions"
2242 # OpenLDAP --enable-slurpd
2243 # Check whether --enable-slurpd or --disable-slurpd was given.
2244 if test "${enable_slurpd+set}" = set; then
2245 enableval="$enable_slurpd"
2248 for ol_val in auto yes no ; do
2249 if test "$enableval" = "$ol_val" ; then
2253 if test "$ol_arg" = "invalid" ; then
2254 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2256 ol_enable_slurpd="$ol_arg"
2259 ol_enable_slurpd="auto"
2261 # end --enable-slurpd
2263 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2264 if test "${with_xxliboptions+set}" = set; then
2265 withval="$with_xxliboptions"
2269 # Check whether --enable-static or --disable-static was given.
2270 if test "${enable_static+set}" = set; then
2271 enableval="$enable_static"
2272 p=${PACKAGE-default}
2273 case "$enableval" in
2274 yes) enable_static=yes ;;
2275 no) enable_static=no ;;
2278 # Look at the argument we got. We use all the common list separators.
2279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2280 for pkg in $enableval; do
2281 if test "X$pkg" = "X$p"; then
2292 # Check whether --enable-shared or --disable-shared was given.
2293 if test "${enable_shared+set}" = set; then
2294 enableval="$enable_shared"
2295 p=${PACKAGE-default}
2296 case "$enableval" in
2297 yes) enable_shared=yes ;;
2298 no) enable_shared=no ;;
2301 # Look at the argument we got. We use all the common list separators.
2302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2303 for pkg in $enableval; do
2304 if test "X$pkg" = "X$p"; then
2318 if test $ol_enable_dns = yes ; then
2319 if test $ol_enable_referrals = no ; then
2320 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2322 if test $ol_enable_referrals = auto ; then
2323 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2324 ol_enable_referrals=yes
2328 if test $ol_enable_slapd = no ; then
2329 if test $ol_enable_bdb2 = yes ; then
2330 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2332 if test $ol_enable_dnssrv = yes ; then
2333 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2335 if test $ol_enable_ldap = yes ; then
2336 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2338 if test $ol_enable_ldbm = yes ; then
2339 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2341 if test $ol_enable_passwd = yes ; then
2342 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2344 if test $ol_enable_perl = yes ; then
2345 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2347 if test $ol_enable_shell = yes ; then
2348 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2350 if test $ol_enable_tcl = yes ; then
2351 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2353 if test $ol_enable_sql = yes ; then
2354 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2356 if test $ol_enable_modules = yes ; then
2357 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2359 if test $ol_enable_multimaster = yes ; then
2360 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2362 if test $ol_enable_wrappers = yes ; then
2363 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2365 if test $ol_enable_phonetic = yes ; then
2366 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2368 if test $ol_enable_quipu = yes ; then
2369 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2371 if test $ol_enable_rlookups = yes ; then
2372 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2374 if test $ol_enable_aci = yes ; then
2375 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2377 if test $ol_with_ldbm_api != auto ; then
2378 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2380 if test $ol_with_ldbm_type != auto ; then
2381 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2383 if test $ol_with_bdb2_module != static ; then
2384 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2386 if test $ol_with_dnssrv_module != static ; then
2387 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2389 if test $ol_with_ldap_module != static ; then
2390 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2392 if test $ol_with_ldbm_module != static ; then
2393 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2395 if test $ol_with_passwd_module != static ; then
2396 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2398 if test $ol_with_perl_module != static ; then
2399 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2401 if test $ol_with_shell_module != static ; then
2402 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2404 if test $ol_with_tcl_module != static ; then
2405 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2407 if test $ol_with_sql_module != static ; then
2408 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2410 if test $ol_enable_slurpd = yes ; then
2411 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2414 # force settings to no
2425 ol_enable_modules=no
2426 ol_enable_multimaster=no
2427 ol_enable_phonetic=no
2429 ol_enable_rlookups=no
2431 ol_enable_wrappers=no
2432 ol_enable_dynamic=no
2435 ol_with_ldbm_type=no
2437 ol_with_bdb2_module=static
2438 ol_with_dnssrv_module=static
2439 ol_with_ldap_module=static
2440 ol_with_ldbm_module=static
2441 ol_with_passwd_module=static
2442 ol_with_perl_module=static
2443 ol_with_shell_module=static
2444 ol_with_tcl_module=static
2445 ol_with_sql_module=static
2449 elif test $ol_enable_ldbm = no ; then
2451 if test $ol_with_ldbm_api != auto ; then
2452 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2455 if test $ol_with_ldbm_type != auto ; then
2456 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2459 if test $ol_with_ldbm_module != static ; then
2460 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2463 if test $ol_enable_bdb2 = yes ; then
2464 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2467 if test $ol_enable_modules != yes -a \
2468 $ol_enable_dnssrv = no -a \
2469 $ol_enable_ldap = no -a \
2470 $ol_enable_passwd = no -a \
2471 $ol_enable_perl = no -a \
2472 $ol_enable_shell = no -a \
2473 $ol_enable_sql = no -a \
2474 $ol_enable_tcl = no ; then
2475 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2479 ol_with_ldbm_type=no
2480 ol_with_ldbm_module=static
2482 elif test $ol_enable_bdb2 = yes ; then
2484 if test $ol_with_ldbm_api != auto -a \
2485 $ol_with_ldbm_api != berkeley ; then
2486 { echo "configure: error: BDB2 requires LDBM API berkeley or auto" 1>&2; exit 1; }
2489 ol_with_ldbm_api=db2
2493 if test $ol_enable_bdb2 != no ; then
2494 if test $ol_with_ldbm_api != auto -a \
2495 $ol_with_ldbm_api != berkeley ; then
2496 echo "configure: warning: BDB2 requires LDBM api berkeley or auto" 1>&2
2501 if test $ol_with_ldbm_api = gdbm -a \
2502 $ol_with_ldbm_type = btree ; then
2503 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2505 if test $ol_with_ldbm_api = mdbm -a \
2506 $ol_with_ldbm_type = btree ; then
2507 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2509 if test $ol_with_ldbm_api = ndbm -a \
2510 $ol_with_ldbm_type = btree ; then
2511 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2515 if test $ol_enable_slurpd = yes ; then
2516 if test $ol_with_threads = no ; then
2517 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2521 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2522 if test $ol_with_kerberos = no ; then
2523 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2525 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2526 if test $ol_with_kerberos != auto ; then
2527 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2533 if test $ol_enable_spasswd = yes ; then
2534 if test $ol_with_cyrus_sasl = no ; then
2535 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2540 echo "$ac_t""done" 1>&6
2569 BUILD_BDB2_DYNAMIC=static
2570 BUILD_DNSSRV_DYNAMIC=static
2571 BUILD_LDAP_DYNAMIC=static
2572 BUILD_LDBM_DYNAMIC=static
2573 BUILD_PASSWD_DYNAMIC=static
2574 BUILD_PERL_DYNAMIC=static
2575 BUILD_SHELL_DYNAMIC=static
2576 BUILD_TCL_DYNAMIC=static
2577 BUILD_SQL_DYNAMIC=static
2579 SLAPD_MODULES_LDFLAGS=
2580 SLAPD_MODULES_CPPFLAGS=
2603 cat >> confdefs.h <<\EOF
2604 #define HAVE_MKVERSION 1
2612 *-*-aix*) if test -z "$CC" ; then
2613 case "$ol_with_threads" in
2614 auto | yes | posix) ol_aix_threads=yes ;;
2620 if test $ol_aix_threads = yes ; then
2621 if test -z "${CC}" ; then
2622 for ac_prog in cc_r xlc_r cc
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2627 echo "configure:2628: checking for $ac_word" >&5
2628 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2636 for ac_dir in $ac_dummy; do
2637 test -z "$ac_dir" && ac_dir=.
2638 if test -f $ac_dir/$ac_word; then
2639 ac_cv_prog_CC="$ac_prog"
2647 if test -n "$CC"; then
2648 echo "$ac_t""$CC" 1>&6
2650 echo "$ac_t""no" 1>&6
2653 test -n "$CC" && break
2657 if test "$CC" = cc ; then
2658 if test $ol_with_threads != auto ; then
2659 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2661 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2667 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2668 ol_with_threads=posix
2669 ol_cv_pthread_create=yes
2673 if test -z "${CC}"; then
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2679 echo "configure:2680: checking for $ac_word" >&5
2680 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
2686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2688 for ac_dir in $ac_dummy; do
2689 test -z "$ac_dir" && ac_dir=.
2690 if test -f $ac_dir/$ac_word; then
2691 ac_cv_prog_CC="$ac_prog"
2699 if test -n "$CC"; then
2700 echo "$ac_t""$CC" 1>&6
2702 echo "$ac_t""no" 1>&6
2705 test -n "$CC" && break
2713 # Check whether --enable-fast-install or --disable-fast-install was given.
2714 if test "${enable_fast_install+set}" = set; then
2715 enableval="$enable_fast_install"
2716 p=${PACKAGE-default}
2717 case "$enableval" in
2718 yes) enable_fast_install=yes ;;
2719 no) enable_fast_install=no ;;
2721 enable_fast_install=no
2722 # Look at the argument we got. We use all the common list separators.
2723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2724 for pkg in $enableval; do
2725 if test "X$pkg" = "X$p"; then
2726 enable_fast_install=yes
2733 enable_fast_install=yes
2736 # Extract the first word of "ranlib", so it can be a program name with args.
2737 set dummy ranlib; ac_word=$2
2738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_word" >&5
2740 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 if test -n "$RANLIB"; then
2744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2748 for ac_dir in $ac_dummy; do
2749 test -z "$ac_dir" && ac_dir=.
2750 if test -f $ac_dir/$ac_word; then
2751 ac_cv_prog_RANLIB="ranlib"
2756 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2759 RANLIB="$ac_cv_prog_RANLIB"
2760 if test -n "$RANLIB"; then
2761 echo "$ac_t""$RANLIB" 1>&6
2763 echo "$ac_t""no" 1>&6
2766 # Extract the first word of "gcc", so it can be a program name with args.
2767 set dummy gcc; ac_word=$2
2768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2769 echo "configure:2770: checking for $ac_word" >&5
2770 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2778 for ac_dir in $ac_dummy; do
2779 test -z "$ac_dir" && ac_dir=.
2780 if test -f $ac_dir/$ac_word; then
2789 if test -n "$CC"; then
2790 echo "$ac_t""$CC" 1>&6
2792 echo "$ac_t""no" 1>&6
2795 if test -z "$CC"; then
2796 # Extract the first word of "cc", so it can be a program name with args.
2797 set dummy cc; ac_word=$2
2798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2799 echo "configure:2800: checking for $ac_word" >&5
2800 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2809 for ac_dir in $ac_dummy; do
2810 test -z "$ac_dir" && ac_dir=.
2811 if test -f $ac_dir/$ac_word; then
2812 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2813 ac_prog_rejected=yes
2821 if test $ac_prog_rejected = yes; then
2822 # We found a bogon in the path, so make sure we never use it.
2823 set dummy $ac_cv_prog_CC
2825 if test $# -gt 0; then
2826 # We chose a different compiler from the bogus one.
2827 # However, it has the same basename, so the bogon will be chosen
2828 # first if we set CC to just the basename; use the full file name.
2830 set dummy "$ac_dir/$ac_word" "$@"
2838 if test -n "$CC"; then
2839 echo "$ac_t""$CC" 1>&6
2841 echo "$ac_t""no" 1>&6
2844 if test -z "$CC"; then
2845 case "`uname -s`" in
2846 *win32* | *WIN32* | *CYGWIN*)
2847 # Extract the first word of "cl", so it can be a program name with args.
2848 set dummy cl; ac_word=$2
2849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2850 echo "configure:2851: checking for $ac_word" >&5
2851 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2854 if test -n "$CC"; then
2855 ac_cv_prog_CC="$CC" # Let the user override the test.
2857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2859 for ac_dir in $ac_dummy; do
2860 test -z "$ac_dir" && ac_dir=.
2861 if test -f $ac_dir/$ac_word; then
2870 if test -n "$CC"; then
2871 echo "$ac_t""$CC" 1>&6
2873 echo "$ac_t""no" 1>&6
2878 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2881 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2882 echo "configure:2883: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2885 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2888 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2889 cross_compiling=$ac_cv_prog_cc_cross
2891 cat > conftest.$ac_ext << EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2898 if { (eval echo configure:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2899 ac_cv_prog_cc_works=yes
2900 # If we can't run a trivial program, we are probably using a cross compiler.
2901 if (./conftest; exit) 2>/dev/null; then
2902 ac_cv_prog_cc_cross=no
2904 ac_cv_prog_cc_cross=yes
2907 echo "configure: failed program was:" >&5
2908 cat conftest.$ac_ext >&5
2909 ac_cv_prog_cc_works=no
2913 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2916 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2917 cross_compiling=$ac_cv_prog_cc_cross
2919 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2920 if test $ac_cv_prog_cc_works = no; then
2921 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2923 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2924 echo "configure:2925: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2925 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2926 cross_compiling=$ac_cv_prog_cc_cross
2928 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2929 echo "configure:2930: checking whether we are using GNU C" >&5
2930 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 cat > conftest.c <<EOF
2938 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2945 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2947 if test $ac_cv_prog_gcc = yes; then
2953 ac_test_CFLAGS="${CFLAGS+set}"
2954 ac_save_CFLAGS="$CFLAGS"
2956 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2957 echo "configure:2958: checking whether ${CC-cc} accepts -g" >&5
2958 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 echo 'void f(){}' > conftest.c
2962 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2971 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2972 if test "$ac_test_CFLAGS" = set; then
2973 CFLAGS="$ac_save_CFLAGS"
2974 elif test $ac_cv_prog_cc_g = yes; then
2975 if test "$GCC" = yes; then
2981 if test "$GCC" = yes; then
2988 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2989 if test "${with_gnu_ld+set}" = set; then
2990 withval="$with_gnu_ld"
2991 test "$withval" = no || with_gnu_ld=yes
2997 if test "$ac_cv_prog_gcc" = yes; then
2998 # Check if gcc -print-prog-name=ld gives a path.
2999 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3000 echo "configure:3001: checking for ld used by GCC" >&5
3001 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3003 # Accept absolute paths.
3004 [\\/]* | [A-Za-z]:[\\/]*)
3005 re_direlt='/[^/][^/]*/\.\./'
3006 # Canonicalize the path of ld
3007 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3008 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3009 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3011 test -z "$LD" && LD="$ac_prog"
3014 # If it fails, then pretend we aren't using GCC.
3018 # If it is relative, then search for the first ld in PATH.
3022 elif test "$with_gnu_ld" = yes; then
3023 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3024 echo "configure:3025: checking for GNU ld" >&5
3026 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3027 echo "configure:3028: checking for non-GNU ld" >&5
3029 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 if test -z "$LD"; then
3033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3034 for ac_dir in $PATH; do
3035 test -z "$ac_dir" && ac_dir=.
3036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3037 ac_cv_path_LD="$ac_dir/$ac_prog"
3038 # Check to see if the program is GNU ld. I'd rather use --version,
3039 # but apparently some GNU ld's only accept -v.
3040 # Break only if it was the GNU/non-GNU ld that we prefer.
3041 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3042 test "$with_gnu_ld" != no && break
3044 test "$with_gnu_ld" != yes && break
3050 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3055 if test -n "$LD"; then
3056 echo "$ac_t""$LD" 1>&6
3058 echo "$ac_t""no" 1>&6
3060 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3061 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3062 echo "configure:3063: checking if the linker ($LD) is GNU ld" >&5
3063 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3067 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3068 ac_cv_prog_gnu_ld=yes
3070 ac_cv_prog_gnu_ld=no
3074 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3077 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3078 echo "configure:3079: checking for BSD-compatible nm" >&5
3079 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 if test -n "$NM"; then
3083 # Let the user override the test.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3087 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3088 test -z "$ac_dir" && ac_dir=.
3089 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3090 # Check to see if the nm accepts a BSD-compat flag.
3091 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3092 # nm: unknown option "B" ignored
3093 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3094 ac_cv_path_NM="$ac_dir/nm -B"
3096 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3097 ac_cv_path_NM="$ac_dir/nm -p"
3100 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3101 continue # so that we can try to find one that supports BSD flags
3106 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3111 echo "$ac_t""$NM" 1>&6
3113 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3114 echo "configure:3115: checking whether ln -s works" >&5
3115 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3119 if ln -s X conftestdata 2>/dev/null
3122 ac_cv_prog_LN_S="ln -s"
3127 LN_S="$ac_cv_prog_LN_S"
3128 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3129 echo "$ac_t""yes" 1>&6
3131 echo "$ac_t""no" 1>&6
3134 if test $host != $build; then
3135 ac_tool_prefix=${host_alias}-
3142 NONE) lt_target="$host" ;;
3143 *) lt_target="$target" ;;
3146 # Check for any special flags to pass to ltconfig.
3147 libtool_flags="--cache-file=$cache_file"
3148 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3149 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3150 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3151 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3152 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3153 libtool_flags="$libtool_flags --enable-dlopen"
3154 libtool_flags="$libtool_flags --enable-win32-dll"
3155 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3156 if test "${enable_libtool_lock+set}" = set; then
3157 enableval="$enable_libtool_lock"
3161 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3162 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3164 # Some flags need to be propagated to the compiler or linker for good
3166 case "$lt_target" in
3168 # Find out which ABI we are using.
3169 echo '#line 3170 "configure"' > conftest.$ac_ext
3170 if { (eval echo configure:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3171 case "`/usr/bin/file conftest.o`" in
3187 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3188 SAVE_CFLAGS="$CFLAGS"
3189 CFLAGS="$CFLAGS -belf"
3190 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3191 echo "configure:3192: checking whether the C compiler needs -belf" >&5
3192 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3203 if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3205 lt_cv_cc_needs_belf=yes
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3210 lt_cv_cc_needs_belf=no
3215 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3216 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3217 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3218 CFLAGS="$SAVE_CFLAGS"
3222 *-*-cygwin* | *-*-mingw*)
3223 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3224 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3226 echo "configure:3227: checking for $ac_word" >&5
3227 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3230 if test -n "$DLLTOOL"; then
3231 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3235 for ac_dir in $ac_dummy; do
3236 test -z "$ac_dir" && ac_dir=.
3237 if test -f $ac_dir/$ac_word; then
3238 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3245 DLLTOOL="$ac_cv_prog_DLLTOOL"
3246 if test -n "$DLLTOOL"; then
3247 echo "$ac_t""$DLLTOOL" 1>&6
3249 echo "$ac_t""no" 1>&6
3253 if test -z "$ac_cv_prog_DLLTOOL"; then
3254 if test -n "$ac_tool_prefix"; then
3255 # Extract the first word of "dlltool", so it can be a program name with args.
3256 set dummy dlltool; ac_word=$2
3257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3258 echo "configure:3259: checking for $ac_word" >&5
3259 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 if test -n "$DLLTOOL"; then
3263 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3267 for ac_dir in $ac_dummy; do
3268 test -z "$ac_dir" && ac_dir=.
3269 if test -f $ac_dir/$ac_word; then
3270 ac_cv_prog_DLLTOOL="dlltool"
3275 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3278 DLLTOOL="$ac_cv_prog_DLLTOOL"
3279 if test -n "$DLLTOOL"; then
3280 echo "$ac_t""$DLLTOOL" 1>&6
3282 echo "$ac_t""no" 1>&6
3290 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}as; ac_word=$2
3292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3293 echo "configure:3294: checking for $ac_word" >&5
3294 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3297 if test -n "$AS"; then
3298 ac_cv_prog_AS="$AS" # Let the user override the test.
3300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3302 for ac_dir in $ac_dummy; do
3303 test -z "$ac_dir" && ac_dir=.
3304 if test -f $ac_dir/$ac_word; then
3305 ac_cv_prog_AS="${ac_tool_prefix}as"
3313 if test -n "$AS"; then
3314 echo "$ac_t""$AS" 1>&6
3316 echo "$ac_t""no" 1>&6
3320 if test -z "$ac_cv_prog_AS"; then
3321 if test -n "$ac_tool_prefix"; then
3322 # Extract the first word of "as", so it can be a program name with args.
3323 set dummy as; ac_word=$2
3324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3325 echo "configure:3326: checking for $ac_word" >&5
3326 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3329 if test -n "$AS"; then
3330 ac_cv_prog_AS="$AS" # Let the user override the test.
3332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3334 for ac_dir in $ac_dummy; do
3335 test -z "$ac_dir" && ac_dir=.
3336 if test -f $ac_dir/$ac_word; then
3342 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3346 if test -n "$AS"; then
3347 echo "$ac_t""$AS" 1>&6
3349 echo "$ac_t""no" 1>&6
3357 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3358 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3360 echo "configure:3361: checking for $ac_word" >&5
3361 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 if test -n "$OBJDUMP"; then
3365 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3369 for ac_dir in $ac_dummy; do
3370 test -z "$ac_dir" && ac_dir=.
3371 if test -f $ac_dir/$ac_word; then
3372 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3379 OBJDUMP="$ac_cv_prog_OBJDUMP"
3380 if test -n "$OBJDUMP"; then
3381 echo "$ac_t""$OBJDUMP" 1>&6
3383 echo "$ac_t""no" 1>&6
3387 if test -z "$ac_cv_prog_OBJDUMP"; then
3388 if test -n "$ac_tool_prefix"; then
3389 # Extract the first word of "objdump", so it can be a program name with args.
3390 set dummy objdump; ac_word=$2
3391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3392 echo "configure:3393: checking for $ac_word" >&5
3393 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 if test -n "$OBJDUMP"; then
3397 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3401 for ac_dir in $ac_dummy; do
3402 test -z "$ac_dir" && ac_dir=.
3403 if test -f $ac_dir/$ac_word; then
3404 ac_cv_prog_OBJDUMP="objdump"
3409 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3412 OBJDUMP="$ac_cv_prog_OBJDUMP"
3413 if test -n "$OBJDUMP"; then
3414 echo "$ac_t""$OBJDUMP" 1>&6
3416 echo "$ac_t""no" 1>&6
3429 # Save cache, so that ltconfig can load it
3432 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3433 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3434 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3435 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3436 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3437 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3438 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3439 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3441 # Reload cache, that may have been modified by ltconfig
3444 # This can be used to rebuild libtool when needed
3445 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3447 # Always use our own libtool.
3448 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3450 # Redirect the config.log output again, so that the ltconfig log is not
3451 # clobbered by the next message.
3452 exec 5>>./config.log
3455 for ac_prog in mawk gawk nawk awk
3457 # Extract the first word of "$ac_prog", so it can be a program name with args.
3458 set dummy $ac_prog; ac_word=$2
3459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3460 echo "configure:3461: checking for $ac_word" >&5
3461 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3464 if test -n "$AWK"; then
3465 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3469 for ac_dir in $ac_dummy; do
3470 test -z "$ac_dir" && ac_dir=.
3471 if test -f $ac_dir/$ac_word; then
3472 ac_cv_prog_AWK="$ac_prog"
3479 AWK="$ac_cv_prog_AWK"
3480 if test -n "$AWK"; then
3481 echo "$ac_t""$AWK" 1>&6
3483 echo "$ac_t""no" 1>&6
3486 test -n "$AWK" && break
3489 # test for ln hardlink support
3490 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3491 echo "configure:3492: checking whether ln works" >&5
3492 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3495 rm -f conftest.src conftest.dst
3496 echo "conftest" > conftest.src
3497 if ln conftest.src conftest.dst 2>/dev/null
3499 ol_cv_prog_LN_H="ln"
3501 ol_cv_prog_LN_H="cp"
3503 rm -f conftest.src conftest.dst
3506 LN_H="$ol_cv_prog_LN_H"
3507 if test "$ol_cv_prog_LN_H" = "ln"; then
3508 echo "$ac_t""yes" 1>&6
3510 echo "$ac_t""no" 1>&6
3513 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3514 echo "configure:3515: checking whether ln -s works" >&5
3515 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3519 if ln -s X conftestdata 2>/dev/null
3522 ac_cv_prog_LN_S="ln -s"
3527 LN_S="$ac_cv_prog_LN_S"
3528 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3529 echo "$ac_t""yes" 1>&6
3531 echo "$ac_t""no" 1>&6
3535 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3539 # Extract the first word of "sendmail", so it can be a program name with args.
3540 set dummy sendmail; ac_word=$2
3541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3542 echo "configure:3543: checking for $ac_word" >&5
3543 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3548 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3551 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3555 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3556 for ac_dir in $ac_dummy; do
3557 test -z "$ac_dir" && ac_dir=.
3558 if test -f $ac_dir/$ac_word; then
3559 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3564 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3568 SENDMAIL="$ac_cv_path_SENDMAIL"
3569 if test -n "$SENDMAIL"; then
3570 echo "$ac_t""$SENDMAIL" 1>&6
3572 echo "$ac_t""no" 1>&6
3575 # Extract the first word of "vi", so it can be a program name with args.
3576 set dummy vi; ac_word=$2
3577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3578 echo "configure:3579: checking for $ac_word" >&5
3579 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3584 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3587 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3591 ac_dummy="$PATH:/usr/ucb"
3592 for ac_dir in $ac_dummy; do
3593 test -z "$ac_dir" && ac_dir=.
3594 if test -f $ac_dir/$ac_word; then
3595 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3600 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3604 EDITOR="$ac_cv_path_EDITOR"
3605 if test -n "$EDITOR"; then
3606 echo "$ac_t""$EDITOR" 1>&6
3608 echo "$ac_t""no" 1>&6
3611 # Extract the first word of "finger", so it can be a program name with args.
3612 set dummy finger; ac_word=$2
3613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_word" >&5
3615 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3620 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3623 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3627 ac_dummy="$PATH:/usr/ucb"
3628 for ac_dir in $ac_dummy; do
3629 test -z "$ac_dir" && ac_dir=.
3630 if test -f $ac_dir/$ac_word; then
3631 ac_cv_path_FINGER="$ac_dir/$ac_word"
3636 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3640 FINGER="$ac_cv_path_FINGER"
3641 if test -n "$FINGER"; then
3642 echo "$ac_t""$FINGER" 1>&6
3644 echo "$ac_t""no" 1>&6
3649 if test $ol_enable_perl != no ; then
3650 # Extract the first word of "perl", so it can be a program name with args.
3651 set dummy perl; ac_word=$2
3652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3653 echo "configure:3654: checking for $ac_word" >&5
3654 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3659 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3662 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3667 for ac_dir in $ac_dummy; do
3668 test -z "$ac_dir" && ac_dir=.
3669 if test -f $ac_dir/$ac_word; then
3670 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3675 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3679 PERLBIN="$ac_cv_path_PERLBIN"
3680 if test -n "$PERLBIN"; then
3681 echo "$ac_t""$PERLBIN" 1>&6
3683 echo "$ac_t""no" 1>&6
3687 if test "no$PERLBIN" = "no" ; then
3688 if test $ol_enable_perl = yes ; then
3689 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3693 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3694 if test x"$ol_with_perl_module" = "xstatic" ; then
3695 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3697 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3703 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3704 echo "configure:3705: checking how to run the C preprocessor" >&5
3705 # On Suns, sometimes $CPP names a directory.
3706 if test -n "$CPP" && test -d "$CPP"; then
3709 if test -z "$CPP"; then
3710 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3713 # This must be in double quotes, not single quotes, because CPP may get
3714 # substituted into the Makefile and "${CC-cc}" will confuse make.
3716 # On the NeXT, cc -E runs the code through the compiler's parser,
3717 # not just through cpp.
3718 cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3725 { (eval echo configure:3726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3727 if test -z "$ac_err"; then
3731 echo "configure: failed program was:" >&5
3732 cat conftest.$ac_ext >&5
3734 CPP="${CC-cc} -E -traditional-cpp"
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3742 { (eval echo configure:3743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3744 if test -z "$ac_err"; then
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3751 CPP="${CC-cc} -nologo -E"
3752 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3759 { (eval echo configure:3760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3761 if test -z "$ac_err"; then
3765 echo "configure: failed program was:" >&5
3766 cat conftest.$ac_ext >&5
3775 ac_cv_prog_CPP="$CPP"
3777 CPP="$ac_cv_prog_CPP"
3779 ac_cv_prog_CPP="$CPP"
3781 echo "$ac_t""$CPP" 1>&6
3784 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3785 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3787 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3788 echo "configure: warning: programs compiled here do run here..." 1>&2
3789 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3791 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3792 echo "configure: warning: programs compiled here do not run here..." 1>&2
3793 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3796 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3797 echo "configure:3798: checking for AIX" >&5
3798 cat > conftest.$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3807 egrep "yes" >/dev/null 2>&1; then
3809 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3810 #define _ALL_SOURCE 1
3815 echo "$ac_t""no" 1>&6
3820 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3821 echo "configure:3822: checking for POSIXized ISC" >&5
3822 if test -d /etc/conf/kconfig.d &&
3823 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3825 echo "$ac_t""yes" 1>&6
3826 ISC=yes # If later tests want to check for ISC.
3827 cat >> confdefs.h <<\EOF
3828 #define _POSIX_SOURCE 1
3831 if test "$GCC" = yes; then
3837 echo "$ac_t""no" 1>&6
3841 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3842 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3843 echo "configure:3844: checking for minix/config.h" >&5
3844 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3850 #include <minix/config.h>
3852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3853 { (eval echo configure:3854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3855 if test -z "$ac_err"; then
3857 eval "ac_cv_header_$ac_safe=yes"
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3863 eval "ac_cv_header_$ac_safe=no"
3867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3868 echo "$ac_t""yes" 1>&6
3871 echo "$ac_t""no" 1>&6
3875 if test "$MINIX" = yes; then
3876 cat >> confdefs.h <<\EOF
3877 #define _POSIX_SOURCE 1
3880 cat >> confdefs.h <<\EOF
3881 #define _POSIX_1_SOURCE 2
3884 cat >> confdefs.h <<\EOF
3891 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3892 echo "configure:3893: checking for Cygwin environment" >&5
3893 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3896 cat > conftest.$ac_ext <<EOF
3897 #line 3898 "configure"
3898 #include "confdefs.h"
3903 #define __CYGWIN__ __CYGWIN32__
3908 if { (eval echo configure:3909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3920 echo "$ac_t""$ac_cv_cygwin" 1>&6
3922 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3923 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3924 echo "configure:3925: checking for mingw32 environment" >&5
3925 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3936 if { (eval echo configure:3937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3940 echo "configure: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3948 echo "$ac_t""$ac_cv_mingw32" 1>&6
3950 test "$ac_cv_mingw32" = yes && MINGW32=yes
3951 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3952 echo "configure:3953: checking for EMX OS/2 environment" >&5
3953 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3964 if { (eval echo configure:3965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 echo "configure: failed program was:" >&5
3969 cat conftest.$ac_ext >&5
3976 echo "$ac_t""$ac_cv_emxos2" 1>&6
3978 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3982 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3983 echo "configure:3984: checking for executable suffix" >&5
3984 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3987 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3991 echo 'int main () { return 0; }' > conftest.$ac_ext
3993 if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3994 for file in conftest.*; do
3996 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3997 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4001 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4004 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4009 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4010 echo "$ac_t""${ac_cv_exeext}" 1>&6
4013 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4014 echo "configure:4015: checking for object suffix" >&5
4015 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4016 echo $ac_n "(cached) $ac_c" 1>&6
4019 echo 'int i = 1;' > conftest.$ac_ext
4020 if { (eval echo configure:4021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4021 for ac_file in conftest.*; do
4024 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4028 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4033 echo "$ac_t""$ac_cv_objext" 1>&6
4034 OBJEXT=$ac_cv_objext
4035 ac_objext=$ac_cv_objext
4038 cat >> confdefs.h <<EOF
4039 #define EXEEXT "${EXEEXT}"
4043 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4044 echo "configure:4045: checking for be_app in -lbe" >&5
4045 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4046 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4049 ac_save_LIBS="$LIBS"
4050 LIBS="-lbe -lroot -lnet $LIBS"
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 /* Override any gcc2 internal prototype to avoid an error. */
4055 /* We use char because int might match the return type of a gcc2
4056 builtin and then its argument prototype would still apply. */
4063 if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4065 eval "ac_cv_lib_$ac_lib_var=yes"
4067 echo "configure: failed program was:" >&5
4068 cat conftest.$ac_ext >&5
4070 eval "ac_cv_lib_$ac_lib_var=no"
4073 LIBS="$ac_save_LIBS"
4076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4077 echo "$ac_t""yes" 1>&6
4078 LIBS="$LIBS -lbe -lroot -lnet"
4080 echo "$ac_t""no" 1>&6
4088 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4089 echo "configure:4090: checking for ${CC-cc} option to accept ANSI C" >&5
4090 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4093 am_cv_prog_cc_stdc=no
4095 # Don't try gcc -ansi; that turns off useful extensions and
4096 # breaks some systems' header files.
4097 # AIX -qlanglvl=ansi
4098 # Ultrix and OSF/1 -std1
4099 # HP-UX 10.20 and later -Ae
4100 # HP-UX older versions -Aa -D_HPUX_SOURCE
4101 # SVR4 -Xc -D__EXTENSIONS__
4102 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4104 CC="$ac_save_CC $ac_arg"
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4110 #include <sys/types.h>
4111 #include <sys/stat.h>
4112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4113 struct buf { int x; };
4114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4115 static char *e (p, i)
4121 static char *f (char * (*g) (char **, int), char **p, ...)
4126 s = g (p, va_arg (v,int));
4130 int test (int i, double x);
4131 struct s1 {int (*f) (int a);};
4132 struct s2 {int (*f) (double a);};
4133 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4139 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4143 if { (eval echo configure:4144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4145 am_cv_prog_cc_stdc="$ac_arg"; break
4147 echo "configure: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4156 if test -z "$am_cv_prog_cc_stdc"; then
4157 echo "$ac_t""none needed" 1>&6
4159 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4161 case "x$am_cv_prog_cc_stdc" in
4163 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4166 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4167 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4170 # test for make depend flag
4173 if test -z "${MKDEP}"; then
4175 if test -z "${MKDEP_FLAGS}"; then
4176 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4177 echo "configure:4178: checking for ${OL_MKDEP} depend flag" >&5
4178 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4183 for flag in "-M" "-xM"; do
4184 cat > conftest.c <<EOF
4187 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4188 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4190 if test ! -f conftest."${ac_object}" ; then
4192 OL_MKDEP_FLAGS="$flag"
4201 echo "$ac_t""$ol_cv_mkdep" 1>&6
4204 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4209 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4214 if test "${ol_cv_mkdep}" = no ; then
4215 # this will soon become an error
4216 echo "configure: warning: do not know how to generate dependencies" 1>&2
4219 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4220 echo "configure:4221: checking for afopen in -ls" >&5
4221 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4222 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4225 ac_save_LIBS="$LIBS"
4227 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4230 /* Override any gcc2 internal prototype to avoid an error. */
4231 /* We use char because int might match the return type of a gcc2
4232 builtin and then its argument prototype would still apply. */
4239 if { (eval echo configure:4240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4241 eval "ac_cv_lib_$ac_lib_var=yes"
4243 echo "configure: failed program was:" >&5
4244 cat conftest.$ac_ext >&5
4246 eval "ac_cv_lib_$ac_lib_var=no"
4249 LIBS="$ac_save_LIBS"
4252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4253 echo "$ac_t""yes" 1>&6
4256 cat >> confdefs.h <<\EOF
4257 #define HAVE_AIX_SECURITY 1
4262 echo "$ac_t""no" 1>&6
4267 if test $ol_enable_modules != no ; then
4268 for ac_hdr in ltdl.h
4270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4272 echo "configure:4273: checking for $ac_hdr" >&5
4273 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4276 cat > conftest.$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4282 { (eval echo configure:4283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4284 if test -z "$ac_err"; then
4286 eval "ac_cv_header_$ac_safe=yes"
4289 echo "configure: failed program was:" >&5
4290 cat conftest.$ac_ext >&5
4292 eval "ac_cv_header_$ac_safe=no"
4296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4299 cat >> confdefs.h <<EOF
4300 #define $ac_tr_hdr 1
4304 echo "$ac_t""no" 1>&6
4309 if test $ac_cv_header_ltdl_h = no ; then
4310 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4313 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4314 echo "configure:4315: checking for lt_dlinit in -lltdl" >&5
4315 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4316 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4319 ac_save_LIBS="$LIBS"
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4324 /* Override any gcc2 internal prototype to avoid an error. */
4325 /* We use char because int might match the return type of a gcc2
4326 builtin and then its argument prototype would still apply. */
4333 if { (eval echo configure:4334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4335 eval "ac_cv_lib_$ac_lib_var=yes"
4337 echo "configure: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4340 eval "ac_cv_lib_$ac_lib_var=no"
4343 LIBS="$ac_save_LIBS"
4346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4347 echo "$ac_t""yes" 1>&6
4350 cat >> confdefs.h <<\EOF
4351 #define HAVE_LIBLTDL 1
4356 echo "$ac_t""no" 1>&6
4360 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4361 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4365 ol_with_bdb2_module=static
4366 ol_with_dnssrv_module=static
4367 ol_with_ldap_module=static
4368 ol_with_ldbm_module=static
4369 ol_with_passwd_module=static
4370 ol_with_perl_module=static
4371 ol_with_shell_module=static
4372 ol_with_tcl_module=static
4373 ol_with_sql_module=static
4377 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4378 echo "configure:4379: checking for EBCDIC" >&5
4379 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4383 cat > conftest.$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4388 #include <__ASCII__/generate_error.h>
4392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4393 { (eval echo configure:4394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4395 if test -z "$ac_err"; then
4397 ol_cv_cpp_ebcdic=yes
4400 echo "configure: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4408 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4409 if test $ol_cv_cpp_ebcdic = yes ; then
4410 cat >> confdefs.h <<\EOF
4411 #define HAVE_EBCDIC 1
4416 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4417 echo "configure:4418: checking for ANSI C header files" >&5
4418 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4430 { (eval echo configure:4431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4432 if test -z "$ac_err"; then
4434 ol_cv_header_stdc=yes
4437 echo "configure: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4440 ol_cv_header_stdc=no
4444 if test $ol_cv_header_stdc = yes; then
4445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4452 egrep "memchr" >/dev/null 2>&1; then
4456 ol_cv_header_stdc=no
4462 if test $ol_cv_header_stdc = yes; then
4463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4464 cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4470 egrep "free" >/dev/null 2>&1; then
4474 ol_cv_header_stdc=no
4480 if test $ol_cv_header_stdc = yes; then
4481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4482 if test "$cross_compiling" = yes; then
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4493 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4494 || ('j' <= (c) && (c) <= 'r') \
4495 || ('s' <= (c) && (c) <= 'z'))
4496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4498 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4499 int main () { int i; for (i = 0; i < 256; i++)
4500 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 ol_cv_header_stdc=no
4519 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4520 if test $ol_cv_header_stdc = yes; then
4521 cat >> confdefs.h <<\EOF
4522 #define STDC_HEADERS 1
4526 ac_cv_header_stdc=disable
4529 if test $ol_cv_header_stdc != yes; then
4530 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4534 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4537 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4538 echo "configure:4539: checking for $ac_hdr that defines DIR" >&5
4539 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4540 echo $ac_n "(cached) $ac_c" 1>&6
4542 cat > conftest.$ac_ext <<EOF
4543 #line 4544 "configure"
4544 #include "confdefs.h"
4545 #include <sys/types.h>
4551 if { (eval echo configure:4552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4553 eval "ac_cv_header_dirent_$ac_safe=yes"
4555 echo "configure: failed program was:" >&5
4556 cat conftest.$ac_ext >&5
4558 eval "ac_cv_header_dirent_$ac_safe=no"
4562 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4563 echo "$ac_t""yes" 1>&6
4564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4565 cat >> confdefs.h <<EOF
4566 #define $ac_tr_hdr 1
4568 ac_header_dirent=$ac_hdr; break
4570 echo "$ac_t""no" 1>&6
4573 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4574 if test $ac_header_dirent = dirent.h; then
4575 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4576 echo "configure:4577: checking for opendir in -ldir" >&5
4577 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4578 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 ac_save_LIBS="$LIBS"
4583 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4586 /* Override any gcc2 internal prototype to avoid an error. */
4587 /* We use char because int might match the return type of a gcc2
4588 builtin and then its argument prototype would still apply. */
4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4597 eval "ac_cv_lib_$ac_lib_var=yes"
4599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4602 eval "ac_cv_lib_$ac_lib_var=no"
4605 LIBS="$ac_save_LIBS"
4608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4609 echo "$ac_t""yes" 1>&6
4612 echo "$ac_t""no" 1>&6
4616 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4617 echo "configure:4618: checking for opendir in -lx" >&5
4618 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4619 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4620 echo $ac_n "(cached) $ac_c" 1>&6
4622 ac_save_LIBS="$LIBS"
4624 cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4627 /* Override any gcc2 internal prototype to avoid an error. */
4628 /* We use char because int might match the return type of a gcc2
4629 builtin and then its argument prototype would still apply. */
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
4653 echo "$ac_t""no" 1>&6
4658 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4659 echo "configure:4660: checking for sys/wait.h that is POSIX.1 compatible" >&5
4660 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4663 cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4666 #include <sys/types.h>
4667 #include <sys/wait.h>
4669 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4672 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4677 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4680 if { (eval echo configure:4681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4682 ac_cv_header_sys_wait_h=yes
4684 echo "configure: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4687 ac_cv_header_sys_wait_h=no
4692 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4693 if test $ac_cv_header_sys_wait_h = yes; then
4694 cat >> confdefs.h <<\EOF
4695 #define HAVE_SYS_WAIT_H 1
4700 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4701 echo "configure:4702: checking POSIX termios" >&5
4702 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4705 cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4708 #include <sys/types.h>
4710 #include <termios.h>
4712 /* SunOS 4.0.3 has termios.h but not the library calls. */
4716 if { (eval echo configure:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4718 am_cv_sys_posix_termios=yes
4720 echo "configure: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4723 am_cv_sys_posix_termios=no
4728 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4731 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4732 echo "configure:4733: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4733 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4734 echo $ac_n "(cached) $ac_c" 1>&6
4736 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4738 gwinsz_in_termios_h=no
4739 if test $am_cv_sys_posix_termios = yes; then
4740 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4743 #include <sys/types.h>
4744 # include <termios.h>
4750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4751 egrep "yes" >/dev/null 2>&1; then
4753 gwinsz_in_termios_h=yes
4759 if test $gwinsz_in_termios_h = no; then
4760 cat > conftest.$ac_ext <<EOF
4761 #line 4762 "configure"
4762 #include "confdefs.h"
4763 #include <sys/types.h>
4764 # include <sys/ioctl.h>
4770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4771 egrep "yes" >/dev/null 2>&1; then
4773 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4781 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4782 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4783 cat >> confdefs.h <<\EOF
4784 #define GWINSZ_IN_SYS_IOCTL 1
4789 if test $am_cv_sys_posix_termios = yes ; then
4790 cat >> confdefs.h <<\EOF
4791 #define HAVE_POSIX_TERMIOS 1
4842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4844 echo "configure:4845: checking for $ac_hdr" >&5
4845 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4846 echo $ac_n "(cached) $ac_c" 1>&6
4848 cat > conftest.$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4854 { (eval echo configure:4855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4856 if test -z "$ac_err"; then
4858 eval "ac_cv_header_$ac_safe=yes"
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4864 eval "ac_cv_header_$ac_safe=no"
4868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4869 echo "$ac_t""yes" 1>&6
4870 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4871 cat >> confdefs.h <<EOF
4872 #define $ac_tr_hdr 1
4876 echo "$ac_t""no" 1>&6
4883 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4884 echo "configure:4885: checking for sigset in -lV3" >&5
4885 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4886 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 ac_save_LIBS="$LIBS"
4891 cat > conftest.$ac_ext <<EOF
4892 #line 4893 "configure"
4893 #include "confdefs.h"
4894 /* Override any gcc2 internal prototype to avoid an error. */
4895 /* We use char because int might match the return type of a gcc2
4896 builtin and then its argument prototype would still apply. */
4903 if { (eval echo configure:4904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4905 eval "ac_cv_lib_$ac_lib_var=yes"
4907 echo "configure: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4910 eval "ac_cv_lib_$ac_lib_var=no"
4913 LIBS="$ac_save_LIBS"
4916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4917 echo "$ac_t""yes" 1>&6
4918 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4919 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4920 cat >> confdefs.h <<EOF
4921 #define $ac_tr_lib 1
4927 echo "$ac_t""no" 1>&6
4931 if test $ac_cv_header_winsock_h = yes; then
4932 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4933 echo "configure:4934: checking for winsock" >&5
4934 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4935 echo $ac_n "(cached) $ac_c" 1>&6
4937 cat > conftest.$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4940 #include <winsock.h>
4944 select(0,NULL,NULL,NULL,NULL);
4946 gethostname(NULL,0);
4950 if { (eval echo configure:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4954 echo "configure: failed program was:" >&5
4955 cat conftest.$ac_ext >&5
4962 echo "$ac_t""$ol_cv_winsock" 1>&6
4964 if test $ol_cv_winsock = yes ; then
4965 cat >> confdefs.h <<\EOF
4966 #define HAVE_WINSOCK 1
4969 ac_cv_func_socket=yes
4970 ac_cv_func_select=yes
4971 ac_cv_func_closesocket=yes
4972 ac_cv_func_gethostname=yes
4977 echo $ac_n "checking for socket""... $ac_c" 1>&6
4978 echo "configure:4979: checking for socket" >&5
4979 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4980 echo $ac_n "(cached) $ac_c" 1>&6
4982 cat > conftest.$ac_ext <<EOF
4983 #line 4984 "configure"
4984 #include "confdefs.h"
4985 /* System header to define __stub macros and hopefully few prototypes,
4986 which can conflict with char socket(); below. */
4988 /* Override any gcc2 internal prototype to avoid an error. */
4989 /* We use char because int might match the return type of a gcc2
4990 builtin and then its argument prototype would still apply. */
4996 /* The GNU C library defines this for functions which it implements
4997 to always fail with ENOSYS. Some functions are actually named
4998 something starting with __ and the normal name is an alias. */
4999 #if defined (__stub_socket) || defined (__stub___socket)
5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5009 eval "ac_cv_func_socket=yes"
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5014 eval "ac_cv_func_socket=no"
5019 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5020 echo "$ac_t""yes" 1>&6
5023 echo "$ac_t""no" 1>&6
5025 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5026 echo "configure:5027: checking for main in -lsocket" >&5
5027 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5028 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5029 echo $ac_n "(cached) $ac_c" 1>&6
5031 ac_save_LIBS="$LIBS"
5032 LIBS="-lsocket $LIBS"
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5041 if { (eval echo configure:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5043 eval "ac_cv_lib_$ac_lib_var=yes"
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5048 eval "ac_cv_lib_$ac_lib_var=no"
5051 LIBS="$ac_save_LIBS"
5054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5055 echo "$ac_t""yes" 1>&6
5056 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5058 cat >> confdefs.h <<EOF
5059 #define $ac_tr_lib 1
5062 LIBS="-lsocket $LIBS"
5065 echo "$ac_t""no" 1>&6
5068 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5069 echo "configure:5070: checking for main in -lnet" >&5
5070 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5071 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 ac_save_LIBS="$LIBS"
5076 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5084 if { (eval echo configure:5085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5086 eval "ac_cv_lib_$ac_lib_var=yes"
5088 echo "configure: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5091 eval "ac_cv_lib_$ac_lib_var=no"
5094 LIBS="$ac_save_LIBS"
5097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5098 echo "$ac_t""yes" 1>&6
5099 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5100 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5101 cat >> confdefs.h <<EOF
5102 #define $ac_tr_lib 1
5108 echo "$ac_t""no" 1>&6
5111 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5112 echo "configure:5113: checking for main in -lnsl_s" >&5
5113 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5114 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5117 ac_save_LIBS="$LIBS"
5118 LIBS="-lnsl_s $LIBS"
5119 cat > conftest.$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5127 if { (eval echo configure:5128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5129 eval "ac_cv_lib_$ac_lib_var=yes"
5131 echo "configure: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5134 eval "ac_cv_lib_$ac_lib_var=no"
5137 LIBS="$ac_save_LIBS"
5140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5141 echo "$ac_t""yes" 1>&6
5142 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5143 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5144 cat >> confdefs.h <<EOF
5145 #define $ac_tr_lib 1
5148 LIBS="-lnsl_s $LIBS"
5151 echo "$ac_t""no" 1>&6
5154 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5155 echo "configure:5156: checking for main in -lnsl" >&5
5156 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5157 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5160 ac_save_LIBS="$LIBS"
5162 cat > conftest.$ac_ext <<EOF
5163 #line 5164 "configure"
5164 #include "confdefs.h"
5170 if { (eval echo configure:5171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5172 eval "ac_cv_lib_$ac_lib_var=yes"
5174 echo "configure: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5177 eval "ac_cv_lib_$ac_lib_var=no"
5180 LIBS="$ac_save_LIBS"
5183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5184 echo "$ac_t""yes" 1>&6
5185 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5186 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5187 cat >> confdefs.h <<EOF
5188 #define $ac_tr_lib 1
5194 echo "$ac_t""no" 1>&6
5197 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5198 echo "configure:5199: checking for socket in -linet" >&5
5199 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5200 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6
5203 ac_save_LIBS="$LIBS"
5205 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure"
5207 #include "confdefs.h"
5208 /* Override any gcc2 internal prototype to avoid an error. */
5209 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5219 eval "ac_cv_lib_$ac_lib_var=yes"
5221 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5
5224 eval "ac_cv_lib_$ac_lib_var=no"
5227 LIBS="$ac_save_LIBS"
5230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5231 echo "$ac_t""yes" 1>&6
5232 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5233 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5234 cat >> confdefs.h <<EOF
5235 #define $ac_tr_lib 1
5241 echo "$ac_t""no" 1>&6
5244 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5245 echo "configure:5246: checking for main in -lgen" >&5
5246 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5247 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5250 ac_save_LIBS="$LIBS"
5252 cat > conftest.$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5260 if { (eval echo configure:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5262 eval "ac_cv_lib_$ac_lib_var=yes"
5264 echo "configure: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5267 eval "ac_cv_lib_$ac_lib_var=no"
5270 LIBS="$ac_save_LIBS"
5273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5274 echo "$ac_t""yes" 1>&6
5275 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5276 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5277 cat >> confdefs.h <<EOF
5278 #define $ac_tr_lib 1
5284 echo "$ac_t""no" 1>&6
5291 echo $ac_n "checking for select""... $ac_c" 1>&6
5292 echo "configure:5293: checking for select" >&5
5293 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 /* System header to define __stub macros and hopefully few prototypes,
5300 which can conflict with char select(); below. */
5302 /* Override any gcc2 internal prototype to avoid an error. */
5303 /* We use char because int might match the return type of a gcc2
5304 builtin and then its argument prototype would still apply. */
5310 /* The GNU C library defines this for functions which it implements
5311 to always fail with ENOSYS. Some functions are actually named
5312 something starting with __ and the normal name is an alias. */
5313 #if defined (__stub_select) || defined (__stub___select)
5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5323 eval "ac_cv_func_select=yes"
5325 echo "configure: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5328 eval "ac_cv_func_select=no"
5333 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5334 echo "$ac_t""yes" 1>&6
5337 echo "$ac_t""no" 1>&6
5338 { echo "configure: error: select() required." 1>&2; exit 1; }
5342 if test "${ac_cv_header_winsock_h}" != yes; then
5343 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5344 echo "configure:5345: checking types of arguments for select()" >&5
5345 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6
5348 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5351 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5354 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5355 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5356 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5360 #ifdef HAVE_SYS_TYPES_H
5361 #include <sys/types.h>
5363 #ifdef HAVE_SYS_TIME_H
5364 #include <sys/time.h>
5366 #ifdef HAVE_SYS_SELECT_H
5367 #include <sys/select.h>
5369 #ifdef HAVE_SYS_SOCKET_H
5370 #include <sys/socket.h>
5372 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);
5377 if { (eval echo configure:5378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5379 ac_not_found=no ; break 3
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5396 if test "$ac_not_found" = yes; then
5397 ac_cv_func_select_arg1=int
5398 ac_cv_func_select_arg234='int *'
5399 ac_cv_func_select_arg5='struct timeval *'
5401 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5402 cat >> confdefs.h <<EOF
5403 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5406 cat >> confdefs.h <<EOF
5407 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5410 cat >> confdefs.h <<EOF
5411 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5418 for ac_hdr in regex.h
5420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5422 echo "configure:5423: checking for $ac_hdr" >&5
5423 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5426 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5432 { (eval echo configure:5433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5434 if test -z "$ac_err"; then
5436 eval "ac_cv_header_$ac_safe=yes"
5439 echo "configure: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5442 eval "ac_cv_header_$ac_safe=no"
5446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5447 echo "$ac_t""yes" 1>&6
5448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5449 cat >> confdefs.h <<EOF
5450 #define $ac_tr_hdr 1
5454 echo "$ac_t""no" 1>&6
5458 if test "$ac_cv_header_regex_h" != yes ; then
5459 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5461 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5462 echo "configure:5463: checking for regfree" >&5
5463 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5464 echo $ac_n "(cached) $ac_c" 1>&6
5466 cat > conftest.$ac_ext <<EOF
5467 #line 5468 "configure"
5468 #include "confdefs.h"
5469 /* System header to define __stub macros and hopefully few prototypes,
5470 which can conflict with char regfree(); below. */
5472 /* Override any gcc2 internal prototype to avoid an error. */
5473 /* We use char because int might match the return type of a gcc2
5474 builtin and then its argument prototype would still apply. */
5480 /* The GNU C library defines this for functions which it implements
5481 to always fail with ENOSYS. Some functions are actually named
5482 something starting with __ and the normal name is an alias. */
5483 #if defined (__stub_regfree) || defined (__stub___regfree)
5491 if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5493 eval "ac_cv_func_regfree=yes"
5495 echo "configure: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5498 eval "ac_cv_func_regfree=no"
5503 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5504 echo "$ac_t""yes" 1>&6
5507 echo "$ac_t""no" 1>&6
5508 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5513 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5514 echo "configure:5515: checking for compatible POSIX regex" >&5
5515 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5516 echo $ac_n "(cached) $ac_c" 1>&6
5519 if test "$cross_compiling" = yes; then
5520 ol_cv_c_posix_regex=cross
5522 cat > conftest.$ac_ext <<EOF
5523 #line 5524 "configure"
5524 #include "confdefs.h"
5526 #include <sys/types.h>
5528 static char *pattern, *string;
5536 if(regcomp(&re, pattern, 0)) {
5540 string = "ALL MATCH";
5542 rc = regexec(&re, string, 0, (void*)0, 0);
5549 if { (eval echo configure:5550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5551 ol_cv_c_posix_regex=yes
5553 echo "configure: failed program was:" >&5
5554 cat conftest.$ac_ext >&5
5556 ol_cv_c_posix_regex=no
5563 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5565 if test "$ol_cv_c_posix_regex" = no ; then
5566 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5569 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5570 echo "configure:5571: checking for res_search" >&5
5571 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5572 echo $ac_n "(cached) $ac_c" 1>&6
5574 cat > conftest.$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5577 /* System header to define __stub macros and hopefully few prototypes,
5578 which can conflict with char res_search(); below. */
5580 /* Override any gcc2 internal prototype to avoid an error. */
5581 /* We use char because int might match the return type of a gcc2
5582 builtin and then its argument prototype would still apply. */
5588 /* The GNU C library defines this for functions which it implements
5589 to always fail with ENOSYS. Some functions are actually named
5590 something starting with __ and the normal name is an alias. */
5591 #if defined (__stub_res_search) || defined (__stub___res_search)
5599 if { (eval echo configure:5600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5601 eval "ac_cv_func_res_search=yes"
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5606 eval "ac_cv_func_res_search=no"
5611 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5612 echo "$ac_t""yes" 1>&6
5615 echo "$ac_t""no" 1>&6
5618 if test $ac_cv_func_res_search = no ; then
5619 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5620 echo "configure:5621: checking for res_search in -lbind" >&5
5621 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5622 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5623 echo $ac_n "(cached) $ac_c" 1>&6
5625 ac_save_LIBS="$LIBS"
5627 cat > conftest.$ac_ext <<EOF
5628 #line 5629 "configure"
5629 #include "confdefs.h"
5630 /* Override any gcc2 internal prototype to avoid an error. */
5631 /* We use char because int might match the return type of a gcc2
5632 builtin and then its argument prototype would still apply. */
5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5641 eval "ac_cv_lib_$ac_lib_var=yes"
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5646 eval "ac_cv_lib_$ac_lib_var=no"
5649 LIBS="$ac_save_LIBS"
5652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5653 echo "$ac_t""yes" 1>&6
5654 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5655 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5656 cat >> confdefs.h <<EOF
5657 #define $ac_tr_lib 1
5663 echo "$ac_t""no" 1>&6
5666 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5669 if test $ac_cv_func_res_search = no ; then
5670 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5671 echo "configure:5672: checking for __res_search in -lbind" >&5
5672 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5673 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5674 echo $ac_n "(cached) $ac_c" 1>&6
5676 ac_save_LIBS="$LIBS"
5678 cat > conftest.$ac_ext <<EOF
5679 #line 5680 "configure"
5680 #include "confdefs.h"
5681 /* Override any gcc2 internal prototype to avoid an error. */
5682 /* We use char because int might match the return type of a gcc2
5683 builtin and then its argument prototype would still apply. */
5684 char __res_search();
5690 if { (eval echo configure:5691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5692 eval "ac_cv_lib_$ac_lib_var=yes"
5694 echo "configure: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5697 eval "ac_cv_lib_$ac_lib_var=no"
5700 LIBS="$ac_save_LIBS"
5703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5704 echo "$ac_t""yes" 1>&6
5705 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5706 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5707 cat >> confdefs.h <<EOF
5708 #define $ac_tr_lib 1
5714 echo "$ac_t""no" 1>&6
5717 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5720 if test $ac_cv_func_res_search = no ; then
5721 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5722 echo "configure:5723: checking for res_search in -lresolv" >&5
5723 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5724 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5725 echo $ac_n "(cached) $ac_c" 1>&6
5727 ac_save_LIBS="$LIBS"
5728 LIBS="-lresolv $LIBS"
5729 cat > conftest.$ac_ext <<EOF
5730 #line 5731 "configure"
5731 #include "confdefs.h"
5732 /* Override any gcc2 internal prototype to avoid an error. */
5733 /* We use char because int might match the return type of a gcc2
5734 builtin and then its argument prototype would still apply. */
5741 if { (eval echo configure:5742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5743 eval "ac_cv_lib_$ac_lib_var=yes"
5745 echo "configure: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5748 eval "ac_cv_lib_$ac_lib_var=no"
5751 LIBS="$ac_save_LIBS"
5754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5755 echo "$ac_t""yes" 1>&6
5756 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5757 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5758 cat >> confdefs.h <<EOF
5759 #define $ac_tr_lib 1
5762 LIBS="-lresolv $LIBS"
5765 echo "$ac_t""no" 1>&6
5768 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5771 if test "$ac_cv_func_res_search" = yes ; then
5772 cat >> confdefs.h <<\EOF
5773 #define HAVE_RES_SEARCH 1
5776 elif test $ol_enable_dns = yes ; then
5777 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5778 elif test $ol_enable_dns != no ; then
5779 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5784 if test $ol_enable_ldapd != no ; then
5785 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5787 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5788 echo "configure:5789: checking for main in -lxtpp" >&5
5789 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5790 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5791 echo $ac_n "(cached) $ac_c" 1>&6
5793 ac_save_LIBS="$LIBS"
5794 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5795 cat > conftest.$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5803 if { (eval echo configure:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5805 eval "ac_cv_lib_$ac_lib_var=yes"
5807 echo "configure: failed program was:" >&5
5808 cat conftest.$ac_ext >&5
5810 eval "ac_cv_lib_$ac_lib_var=no"
5813 LIBS="$ac_save_LIBS"
5816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5817 echo "$ac_t""yes" 1>&6
5820 cat >> confdefs.h <<\EOF
5824 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5827 echo "$ac_t""no" 1>&6
5831 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5832 echo "configure:5833: checking for main in -ldsap" >&5
5833 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5834 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5837 ac_save_LIBS="$LIBS"
5838 LIBS="-ldsap -lisode $LIBS"
5839 cat > conftest.$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5847 if { (eval echo configure:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5849 eval "ac_cv_lib_$ac_lib_var=yes"
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5854 eval "ac_cv_lib_$ac_lib_var=no"
5857 LIBS="$ac_save_LIBS"
5860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5861 echo "$ac_t""yes" 1>&6
5864 cat >> confdefs.h <<\EOF
5868 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5871 echo "$ac_t""no" 1>&6
5875 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5876 echo "configure:5877: checking for main in -lisode" >&5
5877 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5878 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5881 ac_save_LIBS="$LIBS"
5882 LIBS="-lisode $LIBS"
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5893 eval "ac_cv_lib_$ac_lib_var=yes"
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5898 eval "ac_cv_lib_$ac_lib_var=no"
5901 LIBS="$ac_save_LIBS"
5904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5905 echo "$ac_t""yes" 1>&6
5908 cat >> confdefs.h <<\EOF
5909 #define HAVE_ISODE 1
5912 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5915 echo "$ac_t""no" 1>&6
5921 if test $ol_link_isode != no; then
5922 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5923 echo "configure:5924: checking for main in -lpp" >&5
5924 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5925 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6
5928 ac_save_LIBS="$LIBS"
5930 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5938 if { (eval echo configure:5939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5940 eval "ac_cv_lib_$ac_lib_var=yes"
5942 echo "configure: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5945 eval "ac_cv_lib_$ac_lib_var=no"
5948 LIBS="$ac_save_LIBS"
5951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5952 echo "$ac_t""yes" 1>&6
5954 cat >> confdefs.h <<\EOF
5958 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5961 echo "$ac_t""no" 1>&6
5966 # Extract the first word of "pepsy", so it can be a program name with args.
5967 set dummy pepsy; ac_word=$2
5968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5969 echo "configure:5970: checking for $ac_word" >&5
5970 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5971 echo $ac_n "(cached) $ac_c" 1>&6
5975 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5978 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5983 for ac_dir in $ac_dummy; do
5984 test -z "$ac_dir" && ac_dir=.
5985 if test -f $ac_dir/$ac_word; then
5986 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5994 PEPSY="$ac_cv_path_PEPSY"
5995 if test -n "$PEPSY"; then
5996 echo "$ac_t""$PEPSY" 1>&6
5998 echo "$ac_t""no" 1>&6
6003 if test $ol_enable_quipu != no ; then
6004 for ac_hdr in quipu/commonarg.h
6006 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6008 echo "configure:6009: checking for $ac_hdr" >&5
6009 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6010 echo $ac_n "(cached) $ac_c" 1>&6
6012 cat > conftest.$ac_ext <<EOF
6013 #line 6014 "configure"
6014 #include "confdefs.h"
6017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6018 { (eval echo configure:6019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6020 if test -z "$ac_err"; then
6022 eval "ac_cv_header_$ac_safe=yes"
6025 echo "configure: failed program was:" >&5
6026 cat conftest.$ac_ext >&5
6028 eval "ac_cv_header_$ac_safe=no"
6032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6033 echo "$ac_t""yes" 1>&6
6034 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6035 cat >> confdefs.h <<EOF
6036 #define $ac_tr_hdr 1
6040 echo "$ac_t""no" 1>&6
6045 if test $ac_cv_header_quipu_commonarg_h = yes ; then
6047 elif test $ol_enable_quipu = auto ; then
6048 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
6050 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
6059 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
6060 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
6062 for ac_hdr in krb5.h
6064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6066 echo "configure:6067: checking for $ac_hdr" >&5
6067 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6068 echo $ac_n "(cached) $ac_c" 1>&6
6070 cat > conftest.$ac_ext <<EOF
6071 #line 6072 "configure"
6072 #include "confdefs.h"
6075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6076 { (eval echo configure:6077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6078 if test -z "$ac_err"; then
6080 eval "ac_cv_header_$ac_safe=yes"
6083 echo "configure: failed program was:" >&5
6084 cat conftest.$ac_ext >&5
6086 eval "ac_cv_header_$ac_safe=no"
6090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6091 echo "$ac_t""yes" 1>&6
6092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6093 cat >> confdefs.h <<EOF
6094 #define $ac_tr_hdr 1
6098 echo "$ac_t""no" 1>&6
6103 if test $ac_cv_header_krb5_h = yes ; then
6104 for ac_hdr in heim_err.h
6106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6108 echo "configure:6109: checking for $ac_hdr" >&5
6109 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6110 echo $ac_n "(cached) $ac_c" 1>&6
6112 cat > conftest.$ac_ext <<EOF
6113 #line 6114 "configure"
6114 #include "confdefs.h"
6117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6118 { (eval echo configure:6119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6120 if test -z "$ac_err"; then
6122 eval "ac_cv_header_$ac_safe=yes"
6125 echo "configure: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6128 eval "ac_cv_header_$ac_safe=no"
6132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6133 echo "$ac_t""yes" 1>&6
6134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6135 cat >> confdefs.h <<EOF
6136 #define $ac_tr_hdr 1
6140 echo "$ac_t""no" 1>&6
6144 if test $ac_cv_header_heim_err_h = yes ; then
6150 if test $krb5_impl = mit; then
6151 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6152 echo "configure:6153: checking for main in -lkrb5" >&5
6153 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6154 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6155 echo $ac_n "(cached) $ac_c" 1>&6
6157 ac_save_LIBS="$LIBS"
6158 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6159 cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6167 if { (eval echo configure:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6169 eval "ac_cv_lib_$ac_lib_var=yes"
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6174 eval "ac_cv_lib_$ac_lib_var=no"
6177 LIBS="$ac_save_LIBS"
6180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6181 echo "$ac_t""yes" 1>&6
6183 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6185 echo "$ac_t""no" 1>&6
6190 elif test $krb5_impl = heimdal; then
6191 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6192 echo "configure:6193: checking for main in -lkrb5" >&5
6193 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6194 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6195 echo $ac_n "(cached) $ac_c" 1>&6
6197 ac_save_LIBS="$LIBS"
6198 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6199 cat > conftest.$ac_ext <<EOF
6200 #line 6201 "configure"
6201 #include "confdefs.h"
6207 if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6209 eval "ac_cv_lib_$ac_lib_var=yes"
6211 echo "configure: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6214 eval "ac_cv_lib_$ac_lib_var=no"
6217 LIBS="$ac_save_LIBS"
6220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6221 echo "$ac_t""yes" 1>&6
6223 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6225 echo "$ac_t""no" 1>&6
6230 cat >> confdefs.h <<\EOF
6231 #define HAVE_HEIMDAL_KERBEROS 1
6236 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6239 if test $have_krb5 = yes ; then
6242 cat >> confdefs.h <<\EOF
6247 if test $ol_enable_kpasswd != no ; then
6248 ol_link_kpasswd=yes;
6251 if test $ol_with_kerberos = k5only ; then
6252 ol_with_kerberos=found
6255 elif test $ol_with_kerberos != auto ; then
6256 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6262 if test $ol_link_krb5 = yes -a \
6263 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6265 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6269 echo "configure:6270: checking for $ac_hdr" >&5
6270 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6
6273 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6279 { (eval echo configure:6280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6281 if test -z "$ac_err"; then
6283 eval "ac_cv_header_$ac_safe=yes"
6286 echo "configure: failed program was:" >&5
6287 cat conftest.$ac_ext >&5
6289 eval "ac_cv_header_$ac_safe=no"
6293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6294 echo "$ac_t""yes" 1>&6
6295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6296 cat >> confdefs.h <<EOF
6297 #define $ac_tr_hdr 1
6301 echo "$ac_t""no" 1>&6
6306 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6307 if test $krb5_impl = mit; then
6308 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6309 echo "configure:6310: checking for main in -lkrb4" >&5
6310 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6311 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6314 ac_save_LIBS="$LIBS"
6315 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6324 if { (eval echo configure:6325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6326 eval "ac_cv_lib_$ac_lib_var=yes"
6328 echo "configure: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6331 eval "ac_cv_lib_$ac_lib_var=no"
6334 LIBS="$ac_save_LIBS"
6337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6338 echo "$ac_t""yes" 1>&6
6340 KRB4_LIBS="-lkrb4 -ldes425"
6342 echo "$ac_t""no" 1>&6
6347 elif test $krb5_impl = heimdal; then
6348 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6349 echo "configure:6350: checking for main in -lkrb4" >&5
6350 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6351 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6352 echo $ac_n "(cached) $ac_c" 1>&6
6354 ac_save_LIBS="$LIBS"
6355 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6356 cat > conftest.$ac_ext <<EOF
6357 #line 6358 "configure"
6358 #include "confdefs.h"
6364 if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6366 eval "ac_cv_lib_$ac_lib_var=yes"
6368 echo "configure: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6371 eval "ac_cv_lib_$ac_lib_var=no"
6374 LIBS="$ac_save_LIBS"
6377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6378 echo "$ac_t""yes" 1>&6
6382 echo "$ac_t""no" 1>&6
6389 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6392 if test $have_k425 = yes ; then
6393 ol_with_kerberos=found
6396 cat >> confdefs.h <<\EOF
6397 #define HAVE_KRB425 1
6400 cat >> confdefs.h <<\EOF
6405 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6406 echo "configure:6407: checking for des_debug in Kerberos libraries" >&5
6407 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6408 echo $ac_n "(cached) $ac_c" 1>&6
6412 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6413 cat > conftest.$ac_ext <<EOF
6414 #line 6415 "configure"
6415 #include "confdefs.h"
6417 #include <kerberosIV/krb.h>
6418 #include <kerberosIV/des.h>
6419 extern int des_debug;
6427 if { (eval echo configure:6428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6429 ol_cv_var_des_debug=yes
6431 echo "configure: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6434 ol_cv_var_des_debug=no
6441 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6443 if test $ol_cv_var_des_debug = yes ; then
6444 cat >> confdefs.h <<\EOF
6445 #define HAVE_DES_DEBUG 1
6455 if test $ol_link_krb5 = yes ; then
6456 ol_with_kerberos=found
6459 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6460 -o $ol_with_kerberos = kth ; then
6462 for ac_hdr in krb.h des.h krb-archaeology.h
6464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6466 echo "configure:6467: checking for $ac_hdr" >&5
6467 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6470 cat > conftest.$ac_ext <<EOF
6471 #line 6472 "configure"
6472 #include "confdefs.h"
6475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6476 { (eval echo configure:6477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6478 if test -z "$ac_err"; then
6480 eval "ac_cv_header_$ac_safe=yes"
6483 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6486 eval "ac_cv_header_$ac_safe=no"
6490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6491 echo "$ac_t""yes" 1>&6
6492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6493 cat >> confdefs.h <<EOF
6494 #define $ac_tr_hdr 1
6498 echo "$ac_t""no" 1>&6
6503 if test $ac_cv_header_krb_h = yes ; then
6504 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6505 echo "configure:6506: checking for main in -lkrb" >&5
6506 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6507 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6508 echo $ac_n "(cached) $ac_c" 1>&6
6510 ac_save_LIBS="$LIBS"
6511 LIBS="-lkrb -ldes $LIBS"
6512 cat > conftest.$ac_ext <<EOF
6513 #line 6514 "configure"
6514 #include "confdefs.h"
6520 if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6522 eval "ac_cv_lib_$ac_lib_var=yes"
6524 echo "configure: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6527 eval "ac_cv_lib_$ac_lib_var=no"
6530 LIBS="$ac_save_LIBS"
6533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6534 echo "$ac_t""yes" 1>&6
6537 echo "$ac_t""no" 1>&6
6542 if test $have_k4 = yes ; then
6543 ol_with_kerberos=found
6546 cat >> confdefs.h <<\EOF
6551 KRB4_LIBS="-lkrb -ldes"
6553 if test $ac_cv_header_krb_archaeology_h = yes ; then
6554 cat >> confdefs.h <<\EOF
6555 #define HAVE_KTH_KERBEROS 1
6563 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6564 ol_link_kpasswd=yes;
6567 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6568 cat >> confdefs.h <<\EOF
6569 #define HAVE_KERBEROS 1
6573 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6574 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6578 if test $ol_with_tls != no ; then
6580 for ac_hdr in openssl/ssl.h ssl.h
6582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6584 echo "configure:6585: checking for $ac_hdr" >&5
6585 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6586 echo $ac_n "(cached) $ac_c" 1>&6
6588 cat > conftest.$ac_ext <<EOF
6589 #line 6590 "configure"
6590 #include "confdefs.h"
6593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6594 { (eval echo configure:6595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6596 if test -z "$ac_err"; then
6598 eval "ac_cv_header_$ac_safe=yes"
6601 echo "configure: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6604 eval "ac_cv_header_$ac_safe=no"
6608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6609 echo "$ac_t""yes" 1>&6
6610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6611 cat >> confdefs.h <<EOF
6612 #define $ac_tr_hdr 1
6616 echo "$ac_t""no" 1>&6
6621 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6622 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6623 echo "configure:6624: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6624 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6625 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6626 echo $ac_n "(cached) $ac_c" 1>&6
6628 ac_save_LIBS="$LIBS"
6629 LIBS="-lssl -lcrypto $LIBS"
6630 cat > conftest.$ac_ext <<EOF
6631 #line 6632 "configure"
6632 #include "confdefs.h"
6633 /* Override any gcc2 internal prototype to avoid an error. */
6634 /* We use char because int might match the return type of a gcc2
6635 builtin and then its argument prototype would still apply. */
6636 char SSLeay_add_ssl_algorithms();
6639 SSLeay_add_ssl_algorithms()
6642 if { (eval echo configure:6643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6644 eval "ac_cv_lib_$ac_lib_var=yes"
6646 echo "configure: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6649 eval "ac_cv_lib_$ac_lib_var=no"
6652 LIBS="$ac_save_LIBS"
6655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6656 echo "$ac_t""yes" 1>&6
6660 echo "$ac_t""no" 1>&6
6665 if test $have_ssleay = no ; then
6666 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6667 echo "configure:6668: checking for SSL_library_init in -lssl" >&5
6668 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6669 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 ac_save_LIBS="$LIBS"
6673 LIBS="-lssl -lcrypto $LIBS"
6674 cat > conftest.$ac_ext <<EOF
6675 #line 6676 "configure"
6676 #include "confdefs.h"
6677 /* Override any gcc2 internal prototype to avoid an error. */
6678 /* We use char because int might match the return type of a gcc2
6679 builtin and then its argument prototype would still apply. */
6680 char SSL_library_init();
6686 if { (eval echo configure:6687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6688 eval "ac_cv_lib_$ac_lib_var=yes"
6690 echo "configure: failed program was:" >&5
6691 cat conftest.$ac_ext >&5
6693 eval "ac_cv_lib_$ac_lib_var=no"
6696 LIBS="$ac_save_LIBS"
6699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6704 echo "$ac_t""no" 1>&6
6710 if test $have_ssleay = no ; then
6711 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6712 echo "configure:6713: checking for ssl3_accept in -lssl" >&5
6713 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6714 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6715 echo $ac_n "(cached) $ac_c" 1>&6
6717 ac_save_LIBS="$LIBS"
6718 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6719 cat > conftest.$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6722 /* Override any gcc2 internal prototype to avoid an error. */
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6731 if { (eval echo configure:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6733 eval "ac_cv_lib_$ac_lib_var=yes"
6735 echo "configure: failed program was:" >&5
6736 cat conftest.$ac_ext >&5
6738 eval "ac_cv_lib_$ac_lib_var=no"
6741 LIBS="$ac_save_LIBS"
6744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6745 echo "$ac_t""yes" 1>&6
6749 echo "$ac_t""no" 1>&6
6755 if test $have_ssleay = yes ; then
6759 cat >> confdefs.h <<\EOF
6760 #define HAVE_SSLEAY 1
6764 if test $need_rsaref = yes; then
6765 cat >> confdefs.h <<\EOF
6766 #define HAVE_RSAREF 1
6770 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6772 TLS_LIBS="-lssl -lcrypto"
6778 if test $ol_link_tls = yes ; then
6779 cat >> confdefs.h <<\EOF
6787 gethostbyname_r gethostbyaddr_r \
6790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6791 echo "configure:6792: checking for $ac_func" >&5
6792 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6793 echo $ac_n "(cached) $ac_c" 1>&6
6795 cat > conftest.$ac_ext <<EOF
6796 #line 6797 "configure"
6797 #include "confdefs.h"
6798 /* System header to define __stub macros and hopefully few prototypes,
6799 which can conflict with char $ac_func(); below. */
6801 /* Override any gcc2 internal prototype to avoid an error. */
6802 /* We use char because int might match the return type of a gcc2
6803 builtin and then its argument prototype would still apply. */
6809 /* The GNU C library defines this for functions which it implements
6810 to always fail with ENOSYS. Some functions are actually named
6811 something starting with __ and the normal name is an alias. */
6812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6820 if { (eval echo configure:6821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6822 eval "ac_cv_func_$ac_func=yes"
6824 echo "configure: failed program was:" >&5
6825 cat conftest.$ac_ext >&5
6827 eval "ac_cv_func_$ac_func=no"
6832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6833 echo "$ac_t""yes" 1>&6
6834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6835 cat >> confdefs.h <<EOF
6836 #define $ac_tr_func 1
6840 echo "$ac_t""no" 1>&6
6845 if test "$ac_cv_func_ctime_r" = no ; then
6846 ol_cv_func_ctime_r_nargs=0
6848 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6849 echo "configure:6850: checking number of arguments of ctime_r" >&5
6850 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6851 echo $ac_n "(cached) $ac_c" 1>&6
6853 cat > conftest.$ac_ext <<EOF
6854 #line 6855 "configure"
6855 #include "confdefs.h"
6858 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6861 if { (eval echo configure:6862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6863 ol_cv_func_ctime_r_nargs3=yes
6865 echo "configure: failed program was:" >&5
6866 cat conftest.$ac_ext >&5
6868 ol_cv_func_ctime_r_nargs3=no
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6877 time_t ti; char *buffer; ctime_r(&ti,buffer);
6880 if { (eval echo configure:6881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6882 ol_cv_func_ctime_r_nargs2=yes
6884 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6887 ol_cv_func_ctime_r_nargs2=no
6891 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6892 $ol_cv_func_ctime_r_nargs2 = no ; then
6894 ol_cv_func_ctime_r_nargs=3
6896 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6897 $ol_cv_func_ctime_r_nargs2 = yes ; then
6899 ol_cv_func_ctime_r_nargs=2
6902 ol_cv_func_ctime_r_nargs=0
6907 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6909 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6910 cat >> confdefs.h <<EOF
6911 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6918 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6919 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6920 echo "configure:6921: checking number of arguments of gethostbyname_r" >&5
6921 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6922 echo $ac_n "(cached) $ac_c" 1>&6
6924 cat > conftest.$ac_ext <<EOF
6925 #line 6926 "configure"
6926 #include "confdefs.h"
6927 #include <sys/types.h>
6928 #include <sys/socket.h>
6929 #include <netinet/in.h>
6931 #define BUFSIZE (sizeof(struct hostent)+10)
6933 struct hostent hent; char buffer[BUFSIZE];
6934 int bufsize=BUFSIZE;int h_errno;
6935 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6936 buffer, bufsize, &h_errno);
6939 if { (eval echo configure:6940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6941 ol_cv_func_gethostbyname_r_nargs5=yes
6943 echo "configure: failed program was:" >&5
6944 cat conftest.$ac_ext >&5
6946 ol_cv_func_gethostbyname_r_nargs5=no
6950 cat > conftest.$ac_ext <<EOF
6951 #line 6952 "configure"
6952 #include "confdefs.h"
6953 #include <sys/types.h>
6954 #include <sys/socket.h>
6955 #include <netinet/in.h>
6957 #define BUFSIZE (sizeof(struct hostent)+10)
6959 struct hostent hent;struct hostent *rhent;
6960 char buffer[BUFSIZE];
6961 int bufsize=BUFSIZE;int h_errno;
6962 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6966 if { (eval echo configure:6967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6968 ol_cv_func_gethostbyname_r_nargs6=yes
6970 echo "configure: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6973 ol_cv_func_gethostbyname_r_nargs6=no
6977 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6978 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6980 ol_cv_func_gethostbyname_r_nargs=5
6982 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6983 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6985 ol_cv_func_gethostbyname_r_nargs=6
6988 ol_cv_func_gethostbyname_r_nargs=0
6993 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6994 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6995 cat >> confdefs.h <<EOF
6996 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7002 ol_cv_func_gethostbyname_r_nargs=0
7005 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7006 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7007 echo "configure:7008: checking number of arguments of gethostbyaddr_r" >&5
7008 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7009 echo $ac_n "(cached) $ac_c" 1>&6
7011 cat > conftest.$ac_ext <<EOF
7012 #line 7013 "configure"
7013 #include "confdefs.h"
7014 #include <sys/types.h>
7015 #include <sys/socket.h>
7016 #include <netinet/in.h>
7018 #define BUFSIZE (sizeof(struct hostent)+10)
7020 struct hostent hent; char buffer[BUFSIZE];
7022 size_t alen=sizeof(struct in_addr);
7023 int bufsize=BUFSIZE;int h_errno;
7024 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7025 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7028 if { (eval echo configure:7029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7030 ol_cv_func_gethostbyaddr_r_nargs7=yes
7032 echo "configure: failed program was:" >&5
7033 cat conftest.$ac_ext >&5
7035 ol_cv_func_gethostbyaddr_r_nargs7=no
7039 cat > conftest.$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7042 #include <sys/types.h>
7043 #include <sys/socket.h>
7044 #include <netinet/in.h>
7046 #define BUFSIZE (sizeof(struct hostent)+10)
7048 struct hostent hent;
7049 struct hostent *rhent; char buffer[BUFSIZE];
7051 size_t alen=sizeof(struct in_addr);
7052 int bufsize=BUFSIZE;int h_errno;
7053 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7054 alen, AF_INET, &hent, buffer, bufsize,
7058 if { (eval echo configure:7059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7060 ol_cv_func_gethostbyaddr_r_nargs8=yes
7062 echo "configure: failed program was:" >&5
7063 cat conftest.$ac_ext >&5
7065 ol_cv_func_gethostbyaddr_r_nargs8=no
7069 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7070 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7072 ol_cv_func_gethostbyaddr_r_nargs=7
7074 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7075 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7077 ol_cv_func_gethostbyaddr_r_nargs=8
7080 ol_cv_func_gethostbyaddr_r_nargs=0
7085 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7086 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7087 cat >> confdefs.h <<EOF
7088 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7094 ol_cv_func_gethostbyaddr_r_nargs=0
7097 if test "$ac_cv_func_ctime_r" = yes \
7098 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7099 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7100 -a "$ac_cv_func_gethostbyname_r" = yes \
7101 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7102 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7103 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7104 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7105 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7108 cat >> confdefs.h <<\EOF
7109 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7116 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7117 -o $ol_with_threads = nt ; then
7120 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
7121 echo "configure:7122: checking for NT Threads" >&5
7122 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
7123 echo $ac_n "(cached) $ac_c" 1>&6
7126 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7127 echo "configure:7128: checking for _beginthread" >&5
7128 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7131 cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7134 /* System header to define __stub macros and hopefully few prototypes,
7135 which can conflict with char _beginthread(); below. */
7137 /* Override any gcc2 internal prototype to avoid an error. */
7138 /* We use char because int might match the return type of a gcc2
7139 builtin and then its argument prototype would still apply. */
7140 char _beginthread();
7145 /* The GNU C library defines this for functions which it implements
7146 to always fail with ENOSYS. Some functions are actually named
7147 something starting with __ and the normal name is an alias. */
7148 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7158 eval "ac_cv_func__beginthread=yes"
7160 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7163 eval "ac_cv_func__beginthread=no"
7168 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7169 echo "$ac_t""yes" 1>&6
7170 ol_cv_nt_threads=yes
7172 echo "$ac_t""no" 1>&6
7179 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7181 if test $ol_cv_nt_threads = yes ; then
7182 cat >> confdefs.h <<\EOF
7183 #define HAVE_NT_THREADS 1
7189 if test "$ol_cv_nt_threads" = yes ; then
7191 ol_with_threads=found
7192 ol_with_yielding_select=yes
7194 cat >> confdefs.h <<\EOF
7195 #define HAVE_NT_SERVICE_MANAGER 1
7198 cat >> confdefs.h <<\EOF
7199 #define HAVE_NT_EVENT_LOG 1
7204 if test $ol_with_threads = nt ; then
7205 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7209 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7210 -o $ol_with_threads = posix ; then
7212 for ac_hdr in pthread.h
7214 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7215 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7216 echo "configure:7217: checking for $ac_hdr" >&5
7217 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7218 echo $ac_n "(cached) $ac_c" 1>&6
7220 cat > conftest.$ac_ext <<EOF
7221 #line 7222 "configure"
7222 #include "confdefs.h"
7225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7226 { (eval echo configure:7227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7228 if test -z "$ac_err"; then
7230 eval "ac_cv_header_$ac_safe=yes"
7233 echo "configure: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7236 eval "ac_cv_header_$ac_safe=no"
7240 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7241 echo "$ac_t""yes" 1>&6
7242 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7243 cat >> confdefs.h <<EOF
7244 #define $ac_tr_hdr 1
7248 echo "$ac_t""no" 1>&6
7253 if test $ac_cv_header_pthread_h = yes ; then
7254 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7255 echo "configure:7256: checking POSIX thread version" >&5
7256 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7257 echo $ac_n "(cached) $ac_c" 1>&6
7260 cat > conftest.$ac_ext <<EOF
7261 #line 7262 "configure"
7262 #include "confdefs.h"
7264 # include <pthread.h>
7265 /* this check could be improved */
7266 # ifdef PTHREAD_ONCE_INIT
7267 pthread_version_final;
7271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7272 egrep "pthread_version_final" >/dev/null 2>&1; then
7274 ol_pthread_final=yes
7282 cat > conftest.$ac_ext <<EOF
7283 #line 7284 "configure"
7284 #include "confdefs.h"
7286 # include <pthread.h>
7287 /* this check could be improved */
7288 # ifdef pthread_once_init
7289 pthread_version_draft4;
7293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7294 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7296 ol_pthread_draft4=yes
7299 ol_pthread_draft4=no
7304 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7305 ol_cv_pthread_version=final
7306 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7307 ol_cv_pthread_version=draft4
7309 ol_cv_pthread_version=unknown
7314 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7317 if test $ol_cv_pthread_version = final ; then
7318 cat >> confdefs.h <<\EOF
7319 #define HAVE_PTHREADS_FINAL 1
7322 elif test $ol_cv_pthread_version = draft4 ; then
7323 cat >> confdefs.h <<\EOF
7324 #define HAVE_PTHREADS_D4 1
7328 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7331 # consider threads found
7332 ol_with_threads=found
7335 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7336 echo "configure:7337: checking for LinuxThreads pthread.h" >&5
7337 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7338 echo $ac_n "(cached) $ac_c" 1>&6
7340 cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 #include <pthread.h>
7345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7346 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7348 ol_cv_header_linux_threads=yes
7351 ol_cv_header_linux_threads=no
7358 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7359 if test $ol_cv_header_linux_threads = yes; then
7360 cat >> confdefs.h <<\EOF
7361 #define HAVE_LINUX_THREADS 1
7367 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7368 echo "configure:7369: checking for GNU Pth pthread.h" >&5
7369 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7372 cat > conftest.$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7375 #include <pthread.h>
7376 #ifdef _POSIX_THREAD_IS_GNU_PTH
7381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7382 egrep "__gnu_pth__" >/dev/null 2>&1; then
7384 ol_cv_header_gnu_pth_pthread_h=yes
7387 ol_cv_header_gnu_pth_pthread_h=no
7394 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7397 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7398 for ac_hdr in sched.h
7400 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7401 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7402 echo "configure:7403: checking for $ac_hdr" >&5
7403 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7404 echo $ac_n "(cached) $ac_c" 1>&6
7406 cat > conftest.$ac_ext <<EOF
7407 #line 7408 "configure"
7408 #include "confdefs.h"
7411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7412 { (eval echo configure:7413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7414 if test -z "$ac_err"; then
7416 eval "ac_cv_header_$ac_safe=yes"
7419 echo "configure: failed program was:" >&5
7420 cat conftest.$ac_ext >&5
7422 eval "ac_cv_header_$ac_safe=no"
7426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7427 echo "$ac_t""yes" 1>&6
7428 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7429 cat >> confdefs.h <<EOF
7430 #define $ac_tr_hdr 1
7434 echo "$ac_t""no" 1>&6
7441 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7442 echo "configure:7443: checking for pthread_create in default libraries" >&5
7443 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7444 echo $ac_n "(cached) $ac_c" 1>&6
7447 if test "$cross_compiling" = yes; then
7448 cat > conftest.$ac_ext <<EOF
7449 #line 7450 "configure"
7450 #include "confdefs.h"
7451 /* pthread test headers */
7452 #include <pthread.h>
7454 #define NULL (void*)0
7457 static void *task(p)
7460 return (void *) (p == NULL);
7465 /* pthread test function */
7468 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7469 /* This system (e.g. AIX) defaults detached; must override */
7470 pthread_attr_t attr;
7472 status = pthread_attr_init(&attr);
7473 if( status ) exit( status );
7475 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7476 if( status ) exit( status );
7480 #if HAVE_PTHREADS_D4
7481 #define ATTR pthread_attr_default
7486 /* make sure pthread_create() isn't just a stub */
7487 status = pthread_create(&t, ATTR, task, NULL);
7488 if( status ) exit( status );
7490 /* make sure pthread_detach() isn't just a stub */
7491 #if HAVE_PTHREADS_D4
7492 status = pthread_detach( &t );
7494 status = pthread_detach( t );
7497 #ifdef HAVE_LINUX_THREADS
7498 pthread_kill_other_threads_np();
7505 if { (eval echo configure:7506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7507 ol_cv_pthread_create=yes
7509 echo "configure: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7512 ol_cv_pthread_create=no
7516 cat > conftest.$ac_ext <<EOF
7517 #line 7518 "configure"
7518 #include "confdefs.h"
7519 /* pthread test headers */
7520 #include <pthread.h>
7522 #define NULL (void*)0
7525 static void *task(p)
7528 return (void *) (p == NULL);
7532 int main(argc, argv)
7537 /* pthread test function */
7540 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7541 /* This system (e.g. AIX) defaults detached; must override */
7542 pthread_attr_t attr;
7544 status = pthread_attr_init(&attr);
7545 if( status ) exit( status );
7547 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7548 if( status ) exit( status );
7552 #if HAVE_PTHREADS_D4
7553 #define ATTR pthread_attr_default
7558 /* make sure pthread_create() isn't just a stub */
7559 status = pthread_create(&t, ATTR, task, NULL);
7560 if( status ) exit( status );
7562 /* make sure pthread_detach() isn't just a stub */
7563 #if HAVE_PTHREADS_D4
7564 status = pthread_detach( &t );
7566 status = pthread_detach( t );
7569 #ifdef HAVE_LINUX_THREADS
7570 pthread_kill_other_threads_np();
7578 if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7580 ol_cv_pthread_create=yes
7582 echo "configure: failed program was:" >&5
7583 cat conftest.$ac_ext >&5
7585 ol_cv_pthread_create=no
7592 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7594 if test $ol_cv_pthread_create != no ; then
7595 ol_link_threads=posix
7599 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7600 if test "$ol_link_threads" = no ; then
7602 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7603 echo "configure:7604: checking for pthread link with -kthread" >&5
7604 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7605 echo $ac_n "(cached) $ac_c" 1>&6
7610 LIBS="-kthread $LIBS"
7612 if test "$cross_compiling" = yes; then
7613 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 /* pthread test headers */
7617 #include <pthread.h>
7619 #define NULL (void*)0
7622 static void *task(p)
7625 return (void *) (p == NULL);
7630 /* pthread test function */
7633 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7634 /* This system (e.g. AIX) defaults detached; must override */
7635 pthread_attr_t attr;
7637 status = pthread_attr_init(&attr);
7638 if( status ) exit( status );
7640 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7641 if( status ) exit( status );
7645 #if HAVE_PTHREADS_D4
7646 #define ATTR pthread_attr_default
7651 /* make sure pthread_create() isn't just a stub */
7652 status = pthread_create(&t, ATTR, task, NULL);
7653 if( status ) exit( status );
7655 /* make sure pthread_detach() isn't just a stub */
7656 #if HAVE_PTHREADS_D4
7657 status = pthread_detach( &t );
7659 status = pthread_detach( t );
7662 #ifdef HAVE_LINUX_THREADS
7663 pthread_kill_other_threads_np();
7670 if { (eval echo configure:7671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7672 ol_cv_pthread_kthread=yes
7674 echo "configure: failed program was:" >&5
7675 cat conftest.$ac_ext >&5
7677 ol_cv_pthread_kthread=no
7681 cat > conftest.$ac_ext <<EOF
7682 #line 7683 "configure"
7683 #include "confdefs.h"
7684 /* pthread test headers */
7685 #include <pthread.h>
7687 #define NULL (void*)0
7690 static void *task(p)
7693 return (void *) (p == NULL);
7697 int main(argc, argv)
7702 /* pthread test function */
7705 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7706 /* This system (e.g. AIX) defaults detached; must override */
7707 pthread_attr_t attr;
7709 status = pthread_attr_init(&attr);
7710 if( status ) exit( status );
7712 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7713 if( status ) exit( status );
7717 #if HAVE_PTHREADS_D4
7718 #define ATTR pthread_attr_default
7723 /* make sure pthread_create() isn't just a stub */
7724 status = pthread_create(&t, ATTR, task, NULL);
7725 if( status ) exit( status );
7727 /* make sure pthread_detach() isn't just a stub */
7728 #if HAVE_PTHREADS_D4
7729 status = pthread_detach( &t );
7731 status = pthread_detach( t );
7734 #ifdef HAVE_LINUX_THREADS
7735 pthread_kill_other_threads_np();
7743 if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7745 ol_cv_pthread_kthread=yes
7747 echo "configure: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7750 ol_cv_pthread_kthread=no
7761 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7763 if test $ol_cv_pthread_kthread = yes ; then
7764 ol_link_pthreads="-kthread"
7765 ol_link_threads=posix
7769 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7770 if test "$ol_link_threads" = no ; then
7772 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7773 echo "configure:7774: checking for pthread link with -pthread" >&5
7774 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7780 LIBS="-pthread $LIBS"
7782 if test "$cross_compiling" = yes; then
7783 cat > conftest.$ac_ext <<EOF
7784 #line 7785 "configure"
7785 #include "confdefs.h"
7786 /* pthread test headers */
7787 #include <pthread.h>
7789 #define NULL (void*)0
7792 static void *task(p)
7795 return (void *) (p == NULL);
7800 /* pthread test function */
7803 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7804 /* This system (e.g. AIX) defaults detached; must override */
7805 pthread_attr_t attr;
7807 status = pthread_attr_init(&attr);
7808 if( status ) exit( status );
7810 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7811 if( status ) exit( status );
7815 #if HAVE_PTHREADS_D4
7816 #define ATTR pthread_attr_default
7821 /* make sure pthread_create() isn't just a stub */
7822 status = pthread_create(&t, ATTR, task, NULL);
7823 if( status ) exit( status );
7825 /* make sure pthread_detach() isn't just a stub */
7826 #if HAVE_PTHREADS_D4
7827 status = pthread_detach( &t );
7829 status = pthread_detach( t );
7832 #ifdef HAVE_LINUX_THREADS
7833 pthread_kill_other_threads_np();
7840 if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7842 ol_cv_pthread_pthread=yes
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7847 ol_cv_pthread_pthread=no
7851 cat > conftest.$ac_ext <<EOF
7852 #line 7853 "configure"
7853 #include "confdefs.h"
7854 /* pthread test headers */
7855 #include <pthread.h>
7857 #define NULL (void*)0
7860 static void *task(p)
7863 return (void *) (p == NULL);
7867 int main(argc, argv)
7872 /* pthread test function */
7875 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7876 /* This system (e.g. AIX) defaults detached; must override */
7877 pthread_attr_t attr;
7879 status = pthread_attr_init(&attr);
7880 if( status ) exit( status );
7882 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7883 if( status ) exit( status );
7887 #if HAVE_PTHREADS_D4
7888 #define ATTR pthread_attr_default
7893 /* make sure pthread_create() isn't just a stub */
7894 status = pthread_create(&t, ATTR, task, NULL);
7895 if( status ) exit( status );
7897 /* make sure pthread_detach() isn't just a stub */
7898 #if HAVE_PTHREADS_D4
7899 status = pthread_detach( &t );
7901 status = pthread_detach( t );
7904 #ifdef HAVE_LINUX_THREADS
7905 pthread_kill_other_threads_np();
7913 if { (eval echo configure:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7915 ol_cv_pthread_pthread=yes
7917 echo "configure: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7920 ol_cv_pthread_pthread=no
7931 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7933 if test $ol_cv_pthread_pthread = yes ; then
7934 ol_link_pthreads="-pthread"
7935 ol_link_threads=posix
7939 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7940 if test "$ol_link_threads" = no ; then
7942 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7943 echo "configure:7944: checking for pthread link with -pthreads" >&5
7944 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7945 echo $ac_n "(cached) $ac_c" 1>&6
7950 LIBS="-pthreads $LIBS"
7952 if test "$cross_compiling" = yes; then
7953 cat > conftest.$ac_ext <<EOF
7954 #line 7955 "configure"
7955 #include "confdefs.h"
7956 /* pthread test headers */
7957 #include <pthread.h>
7959 #define NULL (void*)0
7962 static void *task(p)
7965 return (void *) (p == NULL);
7970 /* pthread test function */
7973 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7974 /* This system (e.g. AIX) defaults detached; must override */
7975 pthread_attr_t attr;
7977 status = pthread_attr_init(&attr);
7978 if( status ) exit( status );
7980 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7981 if( status ) exit( status );
7985 #if HAVE_PTHREADS_D4
7986 #define ATTR pthread_attr_default
7991 /* make sure pthread_create() isn't just a stub */
7992 status = pthread_create(&t, ATTR, task, NULL);
7993 if( status ) exit( status );
7995 /* make sure pthread_detach() isn't just a stub */
7996 #if HAVE_PTHREADS_D4
7997 status = pthread_detach( &t );
7999 status = pthread_detach( t );
8002 #ifdef HAVE_LINUX_THREADS
8003 pthread_kill_other_threads_np();
8010 if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8012 ol_cv_pthread_pthreads=yes
8014 echo "configure: failed program was:" >&5
8015 cat conftest.$ac_ext >&5
8017 ol_cv_pthread_pthreads=no
8021 cat > conftest.$ac_ext <<EOF
8022 #line 8023 "configure"
8023 #include "confdefs.h"
8024 /* pthread test headers */
8025 #include <pthread.h>
8027 #define NULL (void*)0
8030 static void *task(p)
8033 return (void *) (p == NULL);
8037 int main(argc, argv)
8042 /* pthread test function */
8045 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8046 /* This system (e.g. AIX) defaults detached; must override */
8047 pthread_attr_t attr;
8049 status = pthread_attr_init(&attr);
8050 if( status ) exit( status );
8052 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8053 if( status ) exit( status );
8057 #if HAVE_PTHREADS_D4
8058 #define ATTR pthread_attr_default
8063 /* make sure pthread_create() isn't just a stub */
8064 status = pthread_create(&t, ATTR, task, NULL);
8065 if( status ) exit( status );
8067 /* make sure pthread_detach() isn't just a stub */
8068 #if HAVE_PTHREADS_D4
8069 status = pthread_detach( &t );
8071 status = pthread_detach( t );
8074 #ifdef HAVE_LINUX_THREADS
8075 pthread_kill_other_threads_np();
8083 if { (eval echo configure:8084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8085 ol_cv_pthread_pthreads=yes
8087 echo "configure: failed program was:" >&5
8088 cat conftest.$ac_ext >&5
8090 ol_cv_pthread_pthreads=no
8101 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8103 if test $ol_cv_pthread_pthreads = yes ; then
8104 ol_link_pthreads="-pthreads"
8105 ol_link_threads=posix
8109 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8110 if test "$ol_link_threads" = no ; then
8112 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8113 echo "configure:8114: checking for pthread link with -mthreads" >&5
8114 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8115 echo $ac_n "(cached) $ac_c" 1>&6
8120 LIBS="-mthreads $LIBS"
8122 if test "$cross_compiling" = yes; then
8123 cat > conftest.$ac_ext <<EOF
8124 #line 8125 "configure"
8125 #include "confdefs.h"
8126 /* pthread test headers */
8127 #include <pthread.h>
8129 #define NULL (void*)0
8132 static void *task(p)
8135 return (void *) (p == NULL);
8140 /* pthread test function */
8143 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8144 /* This system (e.g. AIX) defaults detached; must override */
8145 pthread_attr_t attr;
8147 status = pthread_attr_init(&attr);
8148 if( status ) exit( status );
8150 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8151 if( status ) exit( status );
8155 #if HAVE_PTHREADS_D4
8156 #define ATTR pthread_attr_default
8161 /* make sure pthread_create() isn't just a stub */
8162 status = pthread_create(&t, ATTR, 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_mthreads=yes
8184 echo "configure: failed program was:" >&5
8185 cat conftest.$ac_ext >&5
8187 ol_cv_pthread_mthreads=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 */
8215 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8216 /* This system (e.g. AIX) defaults detached; must override */
8217 pthread_attr_t attr;
8219 status = pthread_attr_init(&attr);
8220 if( status ) exit( status );
8222 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8223 if( status ) exit( status );
8227 #if HAVE_PTHREADS_D4
8228 #define ATTR pthread_attr_default
8233 /* make sure pthread_create() isn't just a stub */
8234 status = pthread_create(&t, ATTR, task, NULL);
8235 if( status ) exit( status );
8237 /* make sure pthread_detach() isn't just a stub */
8238 #if HAVE_PTHREADS_D4
8239 status = pthread_detach( &t );
8241 status = pthread_detach( t );
8244 #ifdef HAVE_LINUX_THREADS
8245 pthread_kill_other_threads_np();
8253 if { (eval echo configure:8254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8255 ol_cv_pthread_mthreads=yes
8257 echo "configure: failed program was:" >&5
8258 cat conftest.$ac_ext >&5
8260 ol_cv_pthread_mthreads=no
8271 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8273 if test $ol_cv_pthread_mthreads = yes ; then
8274 ol_link_pthreads="-mthreads"
8275 ol_link_threads=posix
8279 # Pthread try link: -thread (ol_cv_pthread_thread)
8280 if test "$ol_link_threads" = no ; then
8282 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8283 echo "configure:8284: checking for pthread link with -thread" >&5
8284 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8285 echo $ac_n "(cached) $ac_c" 1>&6
8290 LIBS="-thread $LIBS"
8292 if test "$cross_compiling" = yes; then
8293 cat > conftest.$ac_ext <<EOF
8294 #line 8295 "configure"
8295 #include "confdefs.h"
8296 /* pthread test headers */
8297 #include <pthread.h>
8299 #define NULL (void*)0
8302 static void *task(p)
8305 return (void *) (p == NULL);
8310 /* pthread test function */
8313 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8314 /* This system (e.g. AIX) defaults detached; must override */
8315 pthread_attr_t attr;
8317 status = pthread_attr_init(&attr);
8318 if( status ) exit( status );
8320 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8321 if( status ) exit( status );
8325 #if HAVE_PTHREADS_D4
8326 #define ATTR pthread_attr_default
8331 /* make sure pthread_create() isn't just a stub */
8332 status = pthread_create(&t, ATTR, task, NULL);
8333 if( status ) exit( status );
8335 /* make sure pthread_detach() isn't just a stub */
8336 #if HAVE_PTHREADS_D4
8337 status = pthread_detach( &t );
8339 status = pthread_detach( t );
8342 #ifdef HAVE_LINUX_THREADS
8343 pthread_kill_other_threads_np();
8350 if { (eval echo configure:8351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8352 ol_cv_pthread_thread=yes
8354 echo "configure: failed program was:" >&5
8355 cat conftest.$ac_ext >&5
8357 ol_cv_pthread_thread=no
8361 cat > conftest.$ac_ext <<EOF
8362 #line 8363 "configure"
8363 #include "confdefs.h"
8364 /* pthread test headers */
8365 #include <pthread.h>
8367 #define NULL (void*)0
8370 static void *task(p)
8373 return (void *) (p == NULL);
8377 int main(argc, argv)
8382 /* pthread test function */
8385 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8386 /* This system (e.g. AIX) defaults detached; must override */
8387 pthread_attr_t attr;
8389 status = pthread_attr_init(&attr);
8390 if( status ) exit( status );
8392 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8393 if( status ) exit( status );
8397 #if HAVE_PTHREADS_D4
8398 #define ATTR pthread_attr_default
8403 /* make sure pthread_create() isn't just a stub */
8404 status = pthread_create(&t, ATTR, task, NULL);
8405 if( status ) exit( status );
8407 /* make sure pthread_detach() isn't just a stub */
8408 #if HAVE_PTHREADS_D4
8409 status = pthread_detach( &t );
8411 status = pthread_detach( t );
8414 #ifdef HAVE_LINUX_THREADS
8415 pthread_kill_other_threads_np();
8423 if { (eval echo configure:8424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8425 ol_cv_pthread_thread=yes
8427 echo "configure: failed program was:" >&5
8428 cat conftest.$ac_ext >&5
8430 ol_cv_pthread_thread=no
8441 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8443 if test $ol_cv_pthread_thread = yes ; then
8444 ol_link_pthreads="-thread"
8445 ol_link_threads=posix
8450 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8451 if test "$ol_link_threads" = no ; then
8452 # try -lpthread -lmach -lexc -lc_r
8453 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8454 echo "configure:8455: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8455 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8456 echo $ac_n "(cached) $ac_c" 1>&6
8461 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8463 if test "$cross_compiling" = yes; then
8464 cat > conftest.$ac_ext <<EOF
8465 #line 8466 "configure"
8466 #include "confdefs.h"
8467 /* pthread test headers */
8468 #include <pthread.h>
8470 #define NULL (void*)0
8473 static void *task(p)
8476 return (void *) (p == NULL);
8481 /* pthread test function */
8484 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8485 /* This system (e.g. AIX) defaults detached; must override */
8486 pthread_attr_t attr;
8488 status = pthread_attr_init(&attr);
8489 if( status ) exit( status );
8491 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8492 if( status ) exit( status );
8496 #if HAVE_PTHREADS_D4
8497 #define ATTR pthread_attr_default
8502 /* make sure pthread_create() isn't just a stub */
8503 status = pthread_create(&t, ATTR, task, NULL);
8504 if( status ) exit( status );
8506 /* make sure pthread_detach() isn't just a stub */
8507 #if HAVE_PTHREADS_D4
8508 status = pthread_detach( &t );
8510 status = pthread_detach( t );
8513 #ifdef HAVE_LINUX_THREADS
8514 pthread_kill_other_threads_np();
8521 if { (eval echo configure:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8523 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8525 echo "configure: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8528 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8532 cat > conftest.$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8535 /* pthread test headers */
8536 #include <pthread.h>
8538 #define NULL (void*)0
8541 static void *task(p)
8544 return (void *) (p == NULL);
8548 int main(argc, argv)
8553 /* pthread test function */
8556 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8557 /* This system (e.g. AIX) defaults detached; must override */
8558 pthread_attr_t attr;
8560 status = pthread_attr_init(&attr);
8561 if( status ) exit( status );
8563 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8564 if( status ) exit( status );
8568 #if HAVE_PTHREADS_D4
8569 #define ATTR pthread_attr_default
8574 /* make sure pthread_create() isn't just a stub */
8575 status = pthread_create(&t, ATTR, task, NULL);
8576 if( status ) exit( status );
8578 /* make sure pthread_detach() isn't just a stub */
8579 #if HAVE_PTHREADS_D4
8580 status = pthread_detach( &t );
8582 status = pthread_detach( t );
8585 #ifdef HAVE_LINUX_THREADS
8586 pthread_kill_other_threads_np();
8594 if { (eval echo configure:8595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8596 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8598 echo "configure: failed program was:" >&5
8599 cat conftest.$ac_ext >&5
8601 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8612 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8614 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8615 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8616 ol_link_threads=posix
8620 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8621 if test "$ol_link_threads" = no ; then
8622 # try -lpthread -lmach -lexc
8623 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8624 echo "configure:8625: checking for pthread link with -lpthread -lmach -lexc" >&5
8625 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
8631 LIBS="-lpthread -lmach -lexc $LIBS"
8633 if test "$cross_compiling" = yes; then
8634 cat > conftest.$ac_ext <<EOF
8635 #line 8636 "configure"
8636 #include "confdefs.h"
8637 /* pthread test headers */
8638 #include <pthread.h>
8640 #define NULL (void*)0
8643 static void *task(p)
8646 return (void *) (p == NULL);
8651 /* pthread test function */
8654 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8655 /* This system (e.g. AIX) defaults detached; must override */
8656 pthread_attr_t attr;
8658 status = pthread_attr_init(&attr);
8659 if( status ) exit( status );
8661 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8662 if( status ) exit( status );
8666 #if HAVE_PTHREADS_D4
8667 #define ATTR pthread_attr_default
8672 /* make sure pthread_create() isn't just a stub */
8673 status = pthread_create(&t, ATTR, task, NULL);
8674 if( status ) exit( status );
8676 /* make sure pthread_detach() isn't just a stub */
8677 #if HAVE_PTHREADS_D4
8678 status = pthread_detach( &t );
8680 status = pthread_detach( t );
8683 #ifdef HAVE_LINUX_THREADS
8684 pthread_kill_other_threads_np();
8691 if { (eval echo configure:8692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8693 ol_cv_pthread_lpthread_lmach_lexc=yes
8695 echo "configure: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8698 ol_cv_pthread_lpthread_lmach_lexc=no
8702 cat > conftest.$ac_ext <<EOF
8703 #line 8704 "configure"
8704 #include "confdefs.h"
8705 /* pthread test headers */
8706 #include <pthread.h>
8708 #define NULL (void*)0
8711 static void *task(p)
8714 return (void *) (p == NULL);
8718 int main(argc, argv)
8723 /* pthread test function */
8726 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8727 /* This system (e.g. AIX) defaults detached; must override */
8728 pthread_attr_t attr;
8730 status = pthread_attr_init(&attr);
8731 if( status ) exit( status );
8733 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8734 if( status ) exit( status );
8738 #if HAVE_PTHREADS_D4
8739 #define ATTR pthread_attr_default
8744 /* make sure pthread_create() isn't just a stub */
8745 status = pthread_create(&t, ATTR, task, NULL);
8746 if( status ) exit( status );
8748 /* make sure pthread_detach() isn't just a stub */
8749 #if HAVE_PTHREADS_D4
8750 status = pthread_detach( &t );
8752 status = pthread_detach( t );
8755 #ifdef HAVE_LINUX_THREADS
8756 pthread_kill_other_threads_np();
8764 if { (eval echo configure:8765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8766 ol_cv_pthread_lpthread_lmach_lexc=yes
8768 echo "configure: failed program was:" >&5
8769 cat conftest.$ac_ext >&5
8771 ol_cv_pthread_lpthread_lmach_lexc=no
8782 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8784 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8785 ol_link_pthreads="-lpthread -lmach -lexc"
8786 ol_link_threads=posix
8791 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8792 if test "$ol_link_threads" = no ; then
8793 # try -lpthread -Wl,-woff,85
8794 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8795 echo "configure:8796: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8796 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8797 echo $ac_n "(cached) $ac_c" 1>&6
8802 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8804 if test "$cross_compiling" = yes; then
8805 cat > conftest.$ac_ext <<EOF
8806 #line 8807 "configure"
8807 #include "confdefs.h"
8808 /* pthread test headers */
8809 #include <pthread.h>
8811 #define NULL (void*)0
8814 static void *task(p)
8817 return (void *) (p == NULL);
8822 /* pthread test function */
8825 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8826 /* This system (e.g. AIX) defaults detached; must override */
8827 pthread_attr_t attr;
8829 status = pthread_attr_init(&attr);
8830 if( status ) exit( status );
8832 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8833 if( status ) exit( status );
8837 #if HAVE_PTHREADS_D4
8838 #define ATTR pthread_attr_default
8843 /* make sure pthread_create() isn't just a stub */
8844 status = pthread_create(&t, ATTR, task, NULL);
8845 if( status ) exit( status );
8847 /* make sure pthread_detach() isn't just a stub */
8848 #if HAVE_PTHREADS_D4
8849 status = pthread_detach( &t );
8851 status = pthread_detach( t );
8854 #ifdef HAVE_LINUX_THREADS
8855 pthread_kill_other_threads_np();
8862 if { (eval echo configure:8863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8864 ol_cv_pthread_lib_lpthread_woff=yes
8866 echo "configure: failed program was:" >&5
8867 cat conftest.$ac_ext >&5
8869 ol_cv_pthread_lib_lpthread_woff=no
8873 cat > conftest.$ac_ext <<EOF
8874 #line 8875 "configure"
8875 #include "confdefs.h"
8876 /* pthread test headers */
8877 #include <pthread.h>
8879 #define NULL (void*)0
8882 static void *task(p)
8885 return (void *) (p == NULL);
8889 int main(argc, argv)
8894 /* pthread test function */
8897 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8898 /* This system (e.g. AIX) defaults detached; must override */
8899 pthread_attr_t attr;
8901 status = pthread_attr_init(&attr);
8902 if( status ) exit( status );
8904 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8905 if( status ) exit( status );
8909 #if HAVE_PTHREADS_D4
8910 #define ATTR pthread_attr_default
8915 /* make sure pthread_create() isn't just a stub */
8916 status = pthread_create(&t, ATTR, task, NULL);
8917 if( status ) exit( status );
8919 /* make sure pthread_detach() isn't just a stub */
8920 #if HAVE_PTHREADS_D4
8921 status = pthread_detach( &t );
8923 status = pthread_detach( t );
8926 #ifdef HAVE_LINUX_THREADS
8927 pthread_kill_other_threads_np();
8935 if { (eval echo configure:8936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8937 ol_cv_pthread_lib_lpthread_woff=yes
8939 echo "configure: failed program was:" >&5
8940 cat conftest.$ac_ext >&5
8942 ol_cv_pthread_lib_lpthread_woff=no
8953 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8955 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8956 ol_link_pthreads="-lpthread -Wl,-woff,85"
8957 ol_link_threads=posix
8962 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8963 if test "$ol_link_threads" = no ; then
8965 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8966 echo "configure:8967: checking for pthread link with -lpthread" >&5
8967 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8968 echo $ac_n "(cached) $ac_c" 1>&6
8973 LIBS="-lpthread $LIBS"
8975 if test "$cross_compiling" = yes; then
8976 cat > conftest.$ac_ext <<EOF
8977 #line 8978 "configure"
8978 #include "confdefs.h"
8979 /* pthread test headers */
8980 #include <pthread.h>
8982 #define NULL (void*)0
8985 static void *task(p)
8988 return (void *) (p == NULL);
8993 /* pthread test function */
8996 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8997 /* This system (e.g. AIX) defaults detached; must override */
8998 pthread_attr_t attr;
9000 status = pthread_attr_init(&attr);
9001 if( status ) exit( status );
9003 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9004 if( status ) exit( status );
9008 #if HAVE_PTHREADS_D4
9009 #define ATTR pthread_attr_default
9014 /* make sure pthread_create() isn't just a stub */
9015 status = pthread_create(&t, ATTR, task, NULL);
9016 if( status ) exit( status );
9018 /* make sure pthread_detach() isn't just a stub */
9019 #if HAVE_PTHREADS_D4
9020 status = pthread_detach( &t );
9022 status = pthread_detach( t );
9025 #ifdef HAVE_LINUX_THREADS
9026 pthread_kill_other_threads_np();
9033 if { (eval echo configure:9034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9035 ol_cv_pthread_lpthread=yes
9037 echo "configure: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9040 ol_cv_pthread_lpthread=no
9044 cat > conftest.$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9047 /* pthread test headers */
9048 #include <pthread.h>
9050 #define NULL (void*)0
9053 static void *task(p)
9056 return (void *) (p == NULL);
9060 int main(argc, argv)
9065 /* pthread test function */
9068 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9069 /* This system (e.g. AIX) defaults detached; must override */
9070 pthread_attr_t attr;
9072 status = pthread_attr_init(&attr);
9073 if( status ) exit( status );
9075 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9076 if( status ) exit( status );
9080 #if HAVE_PTHREADS_D4
9081 #define ATTR pthread_attr_default
9086 /* make sure pthread_create() isn't just a stub */
9087 status = pthread_create(&t, ATTR, task, NULL);
9088 if( status ) exit( status );
9090 /* make sure pthread_detach() isn't just a stub */
9091 #if HAVE_PTHREADS_D4
9092 status = pthread_detach( &t );
9094 status = pthread_detach( t );
9097 #ifdef HAVE_LINUX_THREADS
9098 pthread_kill_other_threads_np();
9106 if { (eval echo configure:9107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9108 ol_cv_pthread_lpthread=yes
9110 echo "configure: failed program was:" >&5
9111 cat conftest.$ac_ext >&5
9113 ol_cv_pthread_lpthread=no
9124 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9126 if test $ol_cv_pthread_lpthread = yes ; then
9127 ol_link_pthreads="-lpthread"
9128 ol_link_threads=posix
9132 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9133 if test "$ol_link_threads" = no ; then
9135 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9136 echo "configure:9137: checking for pthread link with -lc_r" >&5
9137 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9138 echo $ac_n "(cached) $ac_c" 1>&6
9145 if test "$cross_compiling" = yes; then
9146 cat > conftest.$ac_ext <<EOF
9147 #line 9148 "configure"
9148 #include "confdefs.h"
9149 /* pthread test headers */
9150 #include <pthread.h>
9152 #define NULL (void*)0
9155 static void *task(p)
9158 return (void *) (p == NULL);
9163 /* pthread test function */
9166 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9167 /* This system (e.g. AIX) defaults detached; must override */
9168 pthread_attr_t attr;
9170 status = pthread_attr_init(&attr);
9171 if( status ) exit( status );
9173 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9174 if( status ) exit( status );
9178 #if HAVE_PTHREADS_D4
9179 #define ATTR pthread_attr_default
9184 /* make sure pthread_create() isn't just a stub */
9185 status = pthread_create(&t, ATTR, task, NULL);
9186 if( status ) exit( status );
9188 /* make sure pthread_detach() isn't just a stub */
9189 #if HAVE_PTHREADS_D4
9190 status = pthread_detach( &t );
9192 status = pthread_detach( t );
9195 #ifdef HAVE_LINUX_THREADS
9196 pthread_kill_other_threads_np();
9203 if { (eval echo configure:9204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9205 ol_cv_pthread_lc_r=yes
9207 echo "configure: failed program was:" >&5
9208 cat conftest.$ac_ext >&5
9210 ol_cv_pthread_lc_r=no
9214 cat > conftest.$ac_ext <<EOF
9215 #line 9216 "configure"
9216 #include "confdefs.h"
9217 /* pthread test headers */
9218 #include <pthread.h>
9220 #define NULL (void*)0
9223 static void *task(p)
9226 return (void *) (p == NULL);
9230 int main(argc, argv)
9235 /* pthread test function */
9238 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9239 /* This system (e.g. AIX) defaults detached; must override */
9240 pthread_attr_t attr;
9242 status = pthread_attr_init(&attr);
9243 if( status ) exit( status );
9245 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9246 if( status ) exit( status );
9250 #if HAVE_PTHREADS_D4
9251 #define ATTR pthread_attr_default
9256 /* make sure pthread_create() isn't just a stub */
9257 status = pthread_create(&t, ATTR, task, NULL);
9258 if( status ) exit( status );
9260 /* make sure pthread_detach() isn't just a stub */
9261 #if HAVE_PTHREADS_D4
9262 status = pthread_detach( &t );
9264 status = pthread_detach( t );
9267 #ifdef HAVE_LINUX_THREADS
9268 pthread_kill_other_threads_np();
9276 if { (eval echo configure:9277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9278 ol_cv_pthread_lc_r=yes
9280 echo "configure: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9283 ol_cv_pthread_lc_r=no
9294 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9296 if test $ol_cv_pthread_lc_r = yes ; then
9297 ol_link_pthreads="-lc_r"
9298 ol_link_threads=posix
9303 # Pthread try link: -threads (ol_cv_pthread_threads)
9304 if test "$ol_link_threads" = no ; then
9306 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9307 echo "configure:9308: checking for pthread link with -threads" >&5
9308 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9309 echo $ac_n "(cached) $ac_c" 1>&6
9314 LIBS="-threads $LIBS"
9316 if test "$cross_compiling" = yes; then
9317 cat > conftest.$ac_ext <<EOF
9318 #line 9319 "configure"
9319 #include "confdefs.h"
9320 /* pthread test headers */
9321 #include <pthread.h>
9323 #define NULL (void*)0
9326 static void *task(p)
9329 return (void *) (p == NULL);
9334 /* pthread test function */
9337 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9338 /* This system (e.g. AIX) defaults detached; must override */
9339 pthread_attr_t attr;
9341 status = pthread_attr_init(&attr);
9342 if( status ) exit( status );
9344 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9345 if( status ) exit( status );
9349 #if HAVE_PTHREADS_D4
9350 #define ATTR pthread_attr_default
9355 /* make sure pthread_create() isn't just a stub */
9356 status = pthread_create(&t, ATTR, task, NULL);
9357 if( status ) exit( status );
9359 /* make sure pthread_detach() isn't just a stub */
9360 #if HAVE_PTHREADS_D4
9361 status = pthread_detach( &t );
9363 status = pthread_detach( t );
9366 #ifdef HAVE_LINUX_THREADS
9367 pthread_kill_other_threads_np();
9374 if { (eval echo configure:9375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9376 ol_cv_pthread_threads=yes
9378 echo "configure: failed program was:" >&5
9379 cat conftest.$ac_ext >&5
9381 ol_cv_pthread_threads=no
9385 cat > conftest.$ac_ext <<EOF
9386 #line 9387 "configure"
9387 #include "confdefs.h"
9388 /* pthread test headers */
9389 #include <pthread.h>
9391 #define NULL (void*)0
9394 static void *task(p)
9397 return (void *) (p == NULL);
9401 int main(argc, argv)
9406 /* pthread test function */
9409 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9410 /* This system (e.g. AIX) defaults detached; must override */
9411 pthread_attr_t attr;
9413 status = pthread_attr_init(&attr);
9414 if( status ) exit( status );
9416 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9417 if( status ) exit( status );
9421 #if HAVE_PTHREADS_D4
9422 #define ATTR pthread_attr_default
9427 /* make sure pthread_create() isn't just a stub */
9428 status = pthread_create(&t, ATTR, task, NULL);
9429 if( status ) exit( status );
9431 /* make sure pthread_detach() isn't just a stub */
9432 #if HAVE_PTHREADS_D4
9433 status = pthread_detach( &t );
9435 status = pthread_detach( t );
9438 #ifdef HAVE_LINUX_THREADS
9439 pthread_kill_other_threads_np();
9447 if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9449 ol_cv_pthread_threads=yes
9451 echo "configure: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9454 ol_cv_pthread_threads=no
9465 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9467 if test $ol_cv_pthread_threads = yes ; then
9468 ol_link_pthreads="-threads"
9469 ol_link_threads=posix
9474 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9475 if test "$ol_link_threads" = no ; then
9476 # try -lpthreads -lmach -lexc -lc_r
9477 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9478 echo "configure:9479: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9479 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9480 echo $ac_n "(cached) $ac_c" 1>&6
9485 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9487 if test "$cross_compiling" = yes; then
9488 cat > conftest.$ac_ext <<EOF
9489 #line 9490 "configure"
9490 #include "confdefs.h"
9491 /* pthread test headers */
9492 #include <pthread.h>
9494 #define NULL (void*)0
9497 static void *task(p)
9500 return (void *) (p == NULL);
9505 /* pthread test function */
9508 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9509 /* This system (e.g. AIX) defaults detached; must override */
9510 pthread_attr_t attr;
9512 status = pthread_attr_init(&attr);
9513 if( status ) exit( status );
9515 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9516 if( status ) exit( status );
9520 #if HAVE_PTHREADS_D4
9521 #define ATTR pthread_attr_default
9526 /* make sure pthread_create() isn't just a stub */
9527 status = pthread_create(&t, ATTR, task, NULL);
9528 if( status ) exit( status );
9530 /* make sure pthread_detach() isn't just a stub */
9531 #if HAVE_PTHREADS_D4
9532 status = pthread_detach( &t );
9534 status = pthread_detach( t );
9537 #ifdef HAVE_LINUX_THREADS
9538 pthread_kill_other_threads_np();
9545 if { (eval echo configure:9546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9547 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9549 echo "configure: failed program was:" >&5
9550 cat conftest.$ac_ext >&5
9552 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9556 cat > conftest.$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9559 /* pthread test headers */
9560 #include <pthread.h>
9562 #define NULL (void*)0
9565 static void *task(p)
9568 return (void *) (p == NULL);
9572 int main(argc, argv)
9577 /* pthread test function */
9580 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9581 /* This system (e.g. AIX) defaults detached; must override */
9582 pthread_attr_t attr;
9584 status = pthread_attr_init(&attr);
9585 if( status ) exit( status );
9587 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9588 if( status ) exit( status );
9592 #if HAVE_PTHREADS_D4
9593 #define ATTR pthread_attr_default
9598 /* make sure pthread_create() isn't just a stub */
9599 status = pthread_create(&t, ATTR, task, NULL);
9600 if( status ) exit( status );
9602 /* make sure pthread_detach() isn't just a stub */
9603 #if HAVE_PTHREADS_D4
9604 status = pthread_detach( &t );
9606 status = pthread_detach( t );
9609 #ifdef HAVE_LINUX_THREADS
9610 pthread_kill_other_threads_np();
9618 if { (eval echo configure:9619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9620 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9622 echo "configure: failed program was:" >&5
9623 cat conftest.$ac_ext >&5
9625 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9636 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9638 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9639 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9640 ol_link_threads=posix
9644 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9645 if test "$ol_link_threads" = no ; then
9646 # try -lpthreads -lmach -lexc
9647 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9648 echo "configure:9649: checking for pthread link with -lpthreads -lmach -lexc" >&5
9649 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9650 echo $ac_n "(cached) $ac_c" 1>&6
9655 LIBS="-lpthreads -lmach -lexc $LIBS"
9657 if test "$cross_compiling" = yes; then
9658 cat > conftest.$ac_ext <<EOF
9659 #line 9660 "configure"
9660 #include "confdefs.h"
9661 /* pthread test headers */
9662 #include <pthread.h>
9664 #define NULL (void*)0
9667 static void *task(p)
9670 return (void *) (p == NULL);
9675 /* pthread test function */
9678 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9679 /* This system (e.g. AIX) defaults detached; must override */
9680 pthread_attr_t attr;
9682 status = pthread_attr_init(&attr);
9683 if( status ) exit( status );
9685 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9686 if( status ) exit( status );
9690 #if HAVE_PTHREADS_D4
9691 #define ATTR pthread_attr_default
9696 /* make sure pthread_create() isn't just a stub */
9697 status = pthread_create(&t, ATTR, task, NULL);
9698 if( status ) exit( status );
9700 /* make sure pthread_detach() isn't just a stub */
9701 #if HAVE_PTHREADS_D4
9702 status = pthread_detach( &t );
9704 status = pthread_detach( t );
9707 #ifdef HAVE_LINUX_THREADS
9708 pthread_kill_other_threads_np();
9715 if { (eval echo configure:9716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9717 ol_cv_pthread_lpthreads_lmach_lexc=yes
9719 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5
9722 ol_cv_pthread_lpthreads_lmach_lexc=no
9726 cat > conftest.$ac_ext <<EOF
9727 #line 9728 "configure"
9728 #include "confdefs.h"
9729 /* pthread test headers */
9730 #include <pthread.h>
9732 #define NULL (void*)0
9735 static void *task(p)
9738 return (void *) (p == NULL);
9742 int main(argc, argv)
9747 /* pthread test function */
9750 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9751 /* This system (e.g. AIX) defaults detached; must override */
9752 pthread_attr_t attr;
9754 status = pthread_attr_init(&attr);
9755 if( status ) exit( status );
9757 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9758 if( status ) exit( status );
9762 #if HAVE_PTHREADS_D4
9763 #define ATTR pthread_attr_default
9768 /* make sure pthread_create() isn't just a stub */
9769 status = pthread_create(&t, ATTR, task, NULL);
9770 if( status ) exit( status );
9772 /* make sure pthread_detach() isn't just a stub */
9773 #if HAVE_PTHREADS_D4
9774 status = pthread_detach( &t );
9776 status = pthread_detach( t );
9779 #ifdef HAVE_LINUX_THREADS
9780 pthread_kill_other_threads_np();
9788 if { (eval echo configure:9789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9790 ol_cv_pthread_lpthreads_lmach_lexc=yes
9792 echo "configure: failed program was:" >&5
9793 cat conftest.$ac_ext >&5
9795 ol_cv_pthread_lpthreads_lmach_lexc=no
9806 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9808 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9809 ol_link_pthreads="-lpthreads -lmach -lexc"
9810 ol_link_threads=posix
9814 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9815 if test "$ol_link_threads" = no ; then
9816 # try -lpthreads -lexc
9817 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9818 echo "configure:9819: checking for pthread link with -lpthreads -lexc" >&5
9819 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9820 echo $ac_n "(cached) $ac_c" 1>&6
9825 LIBS="-lpthreads -lexc $LIBS"
9827 if test "$cross_compiling" = yes; then
9828 cat > conftest.$ac_ext <<EOF
9829 #line 9830 "configure"
9830 #include "confdefs.h"
9831 /* pthread test headers */
9832 #include <pthread.h>
9834 #define NULL (void*)0
9837 static void *task(p)
9840 return (void *) (p == NULL);
9845 /* pthread test function */
9848 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9849 /* This system (e.g. AIX) defaults detached; must override */
9850 pthread_attr_t attr;
9852 status = pthread_attr_init(&attr);
9853 if( status ) exit( status );
9855 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9856 if( status ) exit( status );
9860 #if HAVE_PTHREADS_D4
9861 #define ATTR pthread_attr_default
9866 /* make sure pthread_create() isn't just a stub */
9867 status = pthread_create(&t, ATTR, task, NULL);
9868 if( status ) exit( status );
9870 /* make sure pthread_detach() isn't just a stub */
9871 #if HAVE_PTHREADS_D4
9872 status = pthread_detach( &t );
9874 status = pthread_detach( t );
9877 #ifdef HAVE_LINUX_THREADS
9878 pthread_kill_other_threads_np();
9885 if { (eval echo configure:9886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9887 ol_cv_pthread_lpthreads_lexc=yes
9889 echo "configure: failed program was:" >&5
9890 cat conftest.$ac_ext >&5
9892 ol_cv_pthread_lpthreads_lexc=no
9896 cat > conftest.$ac_ext <<EOF
9897 #line 9898 "configure"
9898 #include "confdefs.h"
9899 /* pthread test headers */
9900 #include <pthread.h>
9902 #define NULL (void*)0
9905 static void *task(p)
9908 return (void *) (p == NULL);
9912 int main(argc, argv)
9917 /* pthread test function */
9920 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9921 /* This system (e.g. AIX) defaults detached; must override */
9922 pthread_attr_t attr;
9924 status = pthread_attr_init(&attr);
9925 if( status ) exit( status );
9927 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9928 if( status ) exit( status );
9932 #if HAVE_PTHREADS_D4
9933 #define ATTR pthread_attr_default
9938 /* make sure pthread_create() isn't just a stub */
9939 status = pthread_create(&t, ATTR, task, NULL);
9940 if( status ) exit( status );
9942 /* make sure pthread_detach() isn't just a stub */
9943 #if HAVE_PTHREADS_D4
9944 status = pthread_detach( &t );
9946 status = pthread_detach( t );
9949 #ifdef HAVE_LINUX_THREADS
9950 pthread_kill_other_threads_np();
9958 if { (eval echo configure:9959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9960 ol_cv_pthread_lpthreads_lexc=yes
9962 echo "configure: failed program was:" >&5
9963 cat conftest.$ac_ext >&5
9965 ol_cv_pthread_lpthreads_lexc=no
9976 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9978 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9979 ol_link_pthreads="-lpthreads -lexc"
9980 ol_link_threads=posix
9985 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9986 if test "$ol_link_threads" = no ; then
9988 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9989 echo "configure:9990: checking for pthread link with -lpthreads" >&5
9990 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9991 echo $ac_n "(cached) $ac_c" 1>&6
9996 LIBS="-lpthreads $LIBS"
9998 if test "$cross_compiling" = yes; then
9999 cat > conftest.$ac_ext <<EOF
10000 #line 10001 "configure"
10001 #include "confdefs.h"
10002 /* pthread test headers */
10003 #include <pthread.h>
10005 #define NULL (void*)0
10008 static void *task(p)
10011 return (void *) (p == NULL);
10016 /* pthread test function */
10019 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10020 /* This system (e.g. AIX) defaults detached; must override */
10021 pthread_attr_t attr;
10023 status = pthread_attr_init(&attr);
10024 if( status ) exit( status );
10026 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10027 if( status ) exit( status );
10031 #if HAVE_PTHREADS_D4
10032 #define ATTR pthread_attr_default
10037 /* make sure pthread_create() isn't just a stub */
10038 status = pthread_create(&t, ATTR, task, NULL);
10039 if( status ) exit( status );
10041 /* make sure pthread_detach() isn't just a stub */
10042 #if HAVE_PTHREADS_D4
10043 status = pthread_detach( &t );
10045 status = pthread_detach( t );
10048 #ifdef HAVE_LINUX_THREADS
10049 pthread_kill_other_threads_np();
10056 if { (eval echo configure:10057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10058 ol_cv_pthread_lib_lpthreads=yes
10060 echo "configure: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10063 ol_cv_pthread_lib_lpthreads=no
10067 cat > conftest.$ac_ext <<EOF
10068 #line 10069 "configure"
10069 #include "confdefs.h"
10070 /* pthread test headers */
10071 #include <pthread.h>
10073 #define NULL (void*)0
10076 static void *task(p)
10079 return (void *) (p == NULL);
10083 int main(argc, argv)
10088 /* pthread test function */
10091 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10092 /* This system (e.g. AIX) defaults detached; must override */
10093 pthread_attr_t attr;
10095 status = pthread_attr_init(&attr);
10096 if( status ) exit( status );
10098 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10099 if( status ) exit( status );
10103 #if HAVE_PTHREADS_D4
10104 #define ATTR pthread_attr_default
10109 /* make sure pthread_create() isn't just a stub */
10110 status = pthread_create(&t, ATTR, task, NULL);
10111 if( status ) exit( status );
10113 /* make sure pthread_detach() isn't just a stub */
10114 #if HAVE_PTHREADS_D4
10115 status = pthread_detach( &t );
10117 status = pthread_detach( t );
10120 #ifdef HAVE_LINUX_THREADS
10121 pthread_kill_other_threads_np();
10129 if { (eval echo configure:10130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10131 ol_cv_pthread_lib_lpthreads=yes
10133 echo "configure: failed program was:" >&5
10134 cat conftest.$ac_ext >&5
10136 ol_cv_pthread_lib_lpthreads=no
10147 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10149 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10150 ol_link_pthreads="-lpthreads"
10151 ol_link_threads=posix
10156 if test $ol_link_threads != no ; then
10157 cat >> confdefs.h <<\EOF
10158 #define HAVE_PTHREADS 1
10162 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10164 save_CPPFLAGS="$CPPFLAGS"
10166 LIBS="$LTHREAD_LIBS $LIBS"
10168 for ac_func in sched_yield pthread_yield
10170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10171 echo "configure:10172: checking for $ac_func" >&5
10172 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10173 echo $ac_n "(cached) $ac_c" 1>&6
10175 cat > conftest.$ac_ext <<EOF
10176 #line 10177 "configure"
10177 #include "confdefs.h"
10178 /* System header to define __stub macros and hopefully few prototypes,
10179 which can conflict with char $ac_func(); below. */
10180 #include <assert.h>
10181 /* Override any gcc2 internal prototype to avoid an error. */
10182 /* We use char because int might match the return type of a gcc2
10183 builtin and then its argument prototype would still apply. */
10189 /* The GNU C library defines this for functions which it implements
10190 to always fail with ENOSYS. Some functions are actually named
10191 something starting with __ and the normal name is an alias. */
10192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10200 if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10202 eval "ac_cv_func_$ac_func=yes"
10204 echo "configure: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10207 eval "ac_cv_func_$ac_func=no"
10212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10213 echo "$ac_t""yes" 1>&6
10214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10215 cat >> confdefs.h <<EOF
10216 #define $ac_tr_func 1
10220 echo "$ac_t""no" 1>&6
10225 if test $ac_cv_func_sched_yield = no -a \
10226 $ac_cv_func_pthread_yield = no ; then
10227 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10228 echo "configure:10229: checking for sched_yield in -lrt" >&5
10229 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10230 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10231 echo $ac_n "(cached) $ac_c" 1>&6
10233 ac_save_LIBS="$LIBS"
10235 cat > conftest.$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238 /* Override any gcc2 internal prototype to avoid an error. */
10239 /* We use char because int might match the return type of a gcc2
10240 builtin and then its argument prototype would still apply. */
10241 char sched_yield();
10247 if { (eval echo configure:10248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10249 eval "ac_cv_lib_$ac_lib_var=yes"
10251 echo "configure: failed program was:" >&5
10252 cat conftest.$ac_ext >&5
10254 eval "ac_cv_lib_$ac_lib_var=no"
10257 LIBS="$ac_save_LIBS"
10260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10261 echo "$ac_t""yes" 1>&6
10262 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10263 cat >> confdefs.h <<\EOF
10264 #define HAVE_SCHED_YIELD 1
10267 ac_cv_func_sched_yield=yes
10269 echo "$ac_t""no" 1>&6
10270 ac_cv_func_sched_yield=no
10274 if test $ac_cv_func_sched_yield = no -a \
10275 $ac_cv_func_pthread_yield = no ; then
10276 for ac_func in thr_yield
10278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10279 echo "configure:10280: checking for $ac_func" >&5
10280 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10281 echo $ac_n "(cached) $ac_c" 1>&6
10283 cat > conftest.$ac_ext <<EOF
10284 #line 10285 "configure"
10285 #include "confdefs.h"
10286 /* System header to define __stub macros and hopefully few prototypes,
10287 which can conflict with char $ac_func(); below. */
10288 #include <assert.h>
10289 /* Override any gcc2 internal prototype to avoid an error. */
10290 /* We use char because int might match the return type of a gcc2
10291 builtin and then its argument prototype would still apply. */
10297 /* The GNU C library defines this for functions which it implements
10298 to always fail with ENOSYS. Some functions are actually named
10299 something starting with __ and the normal name is an alias. */
10300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10308 if { (eval echo configure:10309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10310 eval "ac_cv_func_$ac_func=yes"
10312 echo "configure: failed program was:" >&5
10313 cat conftest.$ac_ext >&5
10315 eval "ac_cv_func_$ac_func=no"
10320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10321 echo "$ac_t""yes" 1>&6
10322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10323 cat >> confdefs.h <<EOF
10324 #define $ac_tr_func 1
10328 echo "$ac_t""no" 1>&6
10333 if test $ac_cv_func_sched_yield = no -a \
10334 $ac_cv_func_pthread_yield = no -a \
10335 "$ac_cv_func_thr_yield" = no ; then
10336 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10339 for ac_func in pthread_kill
10341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10342 echo "configure:10343: checking for $ac_func" >&5
10343 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10344 echo $ac_n "(cached) $ac_c" 1>&6
10346 cat > conftest.$ac_ext <<EOF
10347 #line 10348 "configure"
10348 #include "confdefs.h"
10349 /* System header to define __stub macros and hopefully few prototypes,
10350 which can conflict with char $ac_func(); below. */
10351 #include <assert.h>
10352 /* Override any gcc2 internal prototype to avoid an error. */
10353 /* We use char because int might match the return type of a gcc2
10354 builtin and then its argument prototype would still apply. */
10360 /* The GNU C library defines this for functions which it implements
10361 to always fail with ENOSYS. Some functions are actually named
10362 something starting with __ and the normal name is an alias. */
10363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10371 if { (eval echo configure:10372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10373 eval "ac_cv_func_$ac_func=yes"
10375 echo "configure: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
10378 eval "ac_cv_func_$ac_func=no"
10383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10384 echo "$ac_t""yes" 1>&6
10385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10386 cat >> confdefs.h <<EOF
10387 #define $ac_tr_func 1
10391 echo "$ac_t""no" 1>&6
10396 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10397 echo "configure:10398: checking for pthread_detach with <pthread.h>" >&5
10398 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10399 echo $ac_n "(cached) $ac_c" 1>&6
10402 cat > conftest.$ac_ext <<EOF
10403 #line 10404 "configure"
10404 #include "confdefs.h"
10406 #include <pthread.h>
10408 #define NULL (void*)0
10412 pthread_detach(NULL);
10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10417 ol_cv_func_pthread_detach=yes
10419 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10422 ol_cv_func_pthread_detach=no
10428 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10430 if test $ol_cv_func_pthread_detach = no ; then
10431 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10434 cat >> confdefs.h <<\EOF
10435 #define HAVE_PTHREAD_DETACH 1
10440 pthread_setconcurrency \
10441 pthread_getconcurrency \
10442 thr_setconcurrency \
10443 thr_getconcurrency \
10446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10447 echo "configure:10448: checking for $ac_func" >&5
10448 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
10451 cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10454 /* System header to define __stub macros and hopefully few prototypes,
10455 which can conflict with char $ac_func(); below. */
10456 #include <assert.h>
10457 /* Override any gcc2 internal prototype to avoid an error. */
10458 /* We use char because int might match the return type of a gcc2
10459 builtin and then its argument prototype would still apply. */
10465 /* The GNU C library defines this for functions which it implements
10466 to always fail with ENOSYS. Some functions are actually named
10467 something starting with __ and the normal name is an alias. */
10468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10476 if { (eval echo configure:10477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10478 eval "ac_cv_func_$ac_func=yes"
10480 echo "configure: failed program was:" >&5
10481 cat conftest.$ac_ext >&5
10483 eval "ac_cv_func_$ac_func=no"
10488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10489 echo "$ac_t""yes" 1>&6
10490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10491 cat >> confdefs.h <<EOF
10492 #define $ac_tr_func 1
10496 echo "$ac_t""no" 1>&6
10502 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
10503 echo "configure:10504: checking for pthread_kill_other_threads_np" >&5
10504 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
10505 echo $ac_n "(cached) $ac_c" 1>&6
10507 cat > conftest.$ac_ext <<EOF
10508 #line 10509 "configure"
10509 #include "confdefs.h"
10510 /* System header to define __stub macros and hopefully few prototypes,
10511 which can conflict with char pthread_kill_other_threads_np(); below. */
10512 #include <assert.h>
10513 /* Override any gcc2 internal prototype to avoid an error. */
10514 /* We use char because int might match the return type of a gcc2
10515 builtin and then its argument prototype would still apply. */
10516 char pthread_kill_other_threads_np();
10521 /* The GNU C library defines this for functions which it implements
10522 to always fail with ENOSYS. Some functions are actually named
10523 something starting with __ and the normal name is an alias. */
10524 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
10527 f = pthread_kill_other_threads_np;
10532 if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10534 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
10536 echo "configure: failed program was:" >&5
10537 cat conftest.$ac_ext >&5
10539 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10544 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10545 echo "$ac_t""yes" 1>&6
10548 echo "$ac_t""no" 1>&6
10551 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10552 echo "configure:10553: checking for LinuxThreads implementation" >&5
10553 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10554 echo $ac_n "(cached) $ac_c" 1>&6
10556 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10559 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10564 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10565 echo "configure:10566: checking for LinuxThreads consistency" >&5
10566 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10567 echo $ac_n "(cached) $ac_c" 1>&6
10570 if test $ol_cv_header_linux_threads = yes -a \
10571 $ol_cv_sys_linux_threads = yes; then
10572 ol_cv_linux_threads=yes
10573 elif test $ol_cv_header_linux_threads = no -a \
10574 $ol_cv_sys_linux_threads = no; then
10575 ol_cv_linux_threads=no
10577 ol_cv_linux_threads=error
10582 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10585 if test $ol_cv_linux_threads = error; then
10586 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10589 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10590 echo "configure:10591: checking if pthread_create() works" >&5
10591 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10592 echo $ac_n "(cached) $ac_c" 1>&6
10595 if test "$cross_compiling" = yes; then
10596 ol_cv_pthread_create_works=yes
10598 cat > conftest.$ac_ext <<EOF
10599 #line 10600 "configure"
10600 #include "confdefs.h"
10601 /* pthread test headers */
10602 #include <pthread.h>
10604 #define NULL (void*)0
10607 static void *task(p)
10610 return (void *) (p == NULL);
10614 int main(argc, argv)
10619 /* pthread test function */
10622 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10623 /* This system (e.g. AIX) defaults detached; must override */
10624 pthread_attr_t attr;
10626 status = pthread_attr_init(&attr);
10627 if( status ) exit( status );
10629 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10630 if( status ) exit( status );
10634 #if HAVE_PTHREADS_D4
10635 #define ATTR pthread_attr_default
10640 /* make sure pthread_create() isn't just a stub */
10641 status = pthread_create(&t, ATTR, task, NULL);
10642 if( status ) exit( status );
10644 /* make sure pthread_detach() isn't just a stub */
10645 #if HAVE_PTHREADS_D4
10646 status = pthread_detach( &t );
10648 status = pthread_detach( t );
10651 #ifdef HAVE_LINUX_THREADS
10652 pthread_kill_other_threads_np();
10660 if { (eval echo configure:10661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10662 ol_cv_pthread_create_works=yes
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10667 ol_cv_pthread_create_works=no
10674 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10676 if test $ol_cv_pthread_create_works = no ; then
10677 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10680 if test $ol_with_yielding_select = auto ; then
10681 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10682 echo "configure:10683: checking if select yields when using pthreads" >&5
10683 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10684 echo $ac_n "(cached) $ac_c" 1>&6
10687 if test "$cross_compiling" = yes; then
10688 ol_cv_pthread_select_yields=cross
10690 cat > conftest.$ac_ext <<EOF
10691 #line 10692 "configure"
10692 #include "confdefs.h"
10694 #include <sys/types.h>
10695 #include <sys/time.h>
10696 #include <unistd.h>
10697 #include <pthread.h>
10699 #define NULL (void*) 0
10702 static int fildes[2];
10704 static void *task(p)
10716 FD_SET(fildes[0], &rfds);
10718 /* we're not interested in any fds */
10719 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10726 exit(0); /* if we exit here, the select blocked the whole process */
10729 int main(argc, argv)
10735 /* create a pipe to select */
10736 if(pipe(&fildes[0])) {
10741 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10742 (void) pthread_setconcurrency(2);
10744 #ifdef HAVE_THR_SETCONCURRENCY
10745 /* Set Solaris LWP concurrency to 2 */
10746 thr_setconcurrency(2);
10750 #if HAVE_PTHREADS_D4
10751 pthread_create(&t, pthread_attr_default, task, NULL);
10753 pthread_create(&t, NULL, task, NULL);
10756 #if HAVE_SCHED_YIELD
10757 sched_yield(); /* make sure task runs first */
10759 #ifdef HAVE_PTHREAD_YIELD
10760 pthread_yield(); /* make sure task runs first */
10767 if { (eval echo configure:10768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10769 ol_cv_pthread_select_yields=no
10771 echo "configure: failed program was:" >&5
10772 cat conftest.$ac_ext >&5
10774 ol_cv_pthread_select_yields=yes
10781 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10783 if test $ol_cv_pthread_select_yields = cross ; then
10784 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10787 if test $ol_cv_pthread_select_yields = yes ; then
10788 ol_with_yielding_select=yes
10792 CPPFLAGS="$save_CPPFLAGS"
10795 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10799 if test $ol_with_threads = posix ; then
10800 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10804 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10805 -o $ol_with_threads = mach ; then
10807 for ac_hdr in mach/cthreads.h
10809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10811 echo "configure:10812: checking for $ac_hdr" >&5
10812 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10813 echo $ac_n "(cached) $ac_c" 1>&6
10815 cat > conftest.$ac_ext <<EOF
10816 #line 10817 "configure"
10817 #include "confdefs.h"
10820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10821 { (eval echo configure:10822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10823 if test -z "$ac_err"; then
10825 eval "ac_cv_header_$ac_safe=yes"
10828 echo "configure: failed program was:" >&5
10829 cat conftest.$ac_ext >&5
10831 eval "ac_cv_header_$ac_safe=no"
10835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10836 echo "$ac_t""yes" 1>&6
10837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10838 cat >> confdefs.h <<EOF
10839 #define $ac_tr_hdr 1
10843 echo "$ac_t""no" 1>&6
10847 if test $ac_cv_header_mach_cthreads_h = yes ; then
10848 ol_with_threads=found
10850 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10851 echo "configure:10852: checking for cthread_fork" >&5
10852 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10853 echo $ac_n "(cached) $ac_c" 1>&6
10855 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10858 /* System header to define __stub macros and hopefully few prototypes,
10859 which can conflict with char cthread_fork(); below. */
10860 #include <assert.h>
10861 /* Override any gcc2 internal prototype to avoid an error. */
10862 /* We use char because int might match the return type of a gcc2
10863 builtin and then its argument prototype would still apply. */
10864 char cthread_fork();
10869 /* The GNU C library defines this for functions which it implements
10870 to always fail with ENOSYS. Some functions are actually named
10871 something starting with __ and the normal name is an alias. */
10872 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10880 if { (eval echo configure:10881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10882 eval "ac_cv_func_cthread_fork=yes"
10884 echo "configure: failed program was:" >&5
10885 cat conftest.$ac_ext >&5
10887 eval "ac_cv_func_cthread_fork=no"
10892 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10893 echo "$ac_t""yes" 1>&6
10894 ol_link_threads=yes
10896 echo "$ac_t""no" 1>&6
10900 if test $ol_link_threads = no ; then
10901 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10902 echo "configure:10903: checking for cthread_fork with -all_load" >&5
10903 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10904 echo $ac_n "(cached) $ac_c" 1>&6
10908 LIBS="-all_load $LIBS"
10909 cat > conftest.$ac_ext <<EOF
10910 #line 10911 "configure"
10911 #include "confdefs.h"
10912 #include <mach/cthreads.h>
10915 cthread_fork((void *)0, (void *)0);
10919 if { (eval echo configure:10920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10921 ol_cv_cthread_all_load=yes
10923 echo "configure: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10926 ol_cv_cthread_all_load=no
10933 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10935 if test $ol_cv_cthread_all_load = yes ; then
10936 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10937 ol_link_threads=mach
10941 if test $ol_link_threads != no ; then
10942 : check for cthread specific functionality here
10943 cat >> confdefs.h <<\EOF
10944 #define HAVE_MACH_CTHREADS 1
10948 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10952 if test $ol_with_threads = mach ; then
10953 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10957 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10958 -o $ol_with_threads = pth ; then
10960 for ac_hdr in pth.h
10962 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10964 echo "configure:10965: checking for $ac_hdr" >&5
10965 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10966 echo $ac_n "(cached) $ac_c" 1>&6
10968 cat > conftest.$ac_ext <<EOF
10969 #line 10970 "configure"
10970 #include "confdefs.h"
10973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10974 { (eval echo configure:10975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10976 if test -z "$ac_err"; then
10978 eval "ac_cv_header_$ac_safe=yes"
10981 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10984 eval "ac_cv_header_$ac_safe=no"
10988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10989 echo "$ac_t""yes" 1>&6
10990 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10991 cat >> confdefs.h <<EOF
10992 #define $ac_tr_hdr 1
10996 echo "$ac_t""no" 1>&6
11001 if test $ac_cv_header_pth_h = yes ; then
11002 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11003 echo "configure:11004: checking for pth_version in -lpth" >&5
11004 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11005 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11006 echo $ac_n "(cached) $ac_c" 1>&6
11008 ac_save_LIBS="$LIBS"
11010 cat > conftest.$ac_ext <<EOF
11011 #line 11012 "configure"
11012 #include "confdefs.h"
11013 /* Override any gcc2 internal prototype to avoid an error. */
11014 /* We use char because int might match the return type of a gcc2
11015 builtin and then its argument prototype would still apply. */
11016 char pth_version();
11022 if { (eval echo configure:11023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11024 eval "ac_cv_lib_$ac_lib_var=yes"
11026 echo "configure: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11029 eval "ac_cv_lib_$ac_lib_var=no"
11032 LIBS="$ac_save_LIBS"
11035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11036 echo "$ac_t""yes" 1>&6
11039 echo "$ac_t""no" 1>&6
11044 if test $have_pth = yes ; then
11045 cat >> confdefs.h <<\EOF
11046 #define HAVE_GNU_PTH 1
11049 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11050 ol_link_threads=pth
11052 if test $ol_with_yielding_select = auto ; then
11053 ol_with_yielding_select=yes
11059 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11060 -o $ol_with_threads = lwp ; then
11062 for ac_hdr in thread.h synch.h
11064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11066 echo "configure:11067: checking for $ac_hdr" >&5
11067 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11068 echo $ac_n "(cached) $ac_c" 1>&6
11070 cat > conftest.$ac_ext <<EOF
11071 #line 11072 "configure"
11072 #include "confdefs.h"
11075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11076 { (eval echo configure:11077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11078 if test -z "$ac_err"; then
11080 eval "ac_cv_header_$ac_safe=yes"
11083 echo "configure: failed program was:" >&5
11084 cat conftest.$ac_ext >&5
11086 eval "ac_cv_header_$ac_safe=no"
11090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11091 echo "$ac_t""yes" 1>&6
11092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11093 cat >> confdefs.h <<EOF
11094 #define $ac_tr_hdr 1
11098 echo "$ac_t""no" 1>&6
11102 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11103 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11104 echo "configure:11105: checking for thr_create in -lthread" >&5
11105 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11106 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11107 echo $ac_n "(cached) $ac_c" 1>&6
11109 ac_save_LIBS="$LIBS"
11110 LIBS="-lthread $LIBS"
11111 cat > conftest.$ac_ext <<EOF
11112 #line 11113 "configure"
11113 #include "confdefs.h"
11114 /* Override any gcc2 internal prototype to avoid an error. */
11115 /* We use char because int might match the return type of a gcc2
11116 builtin and then its argument prototype would still apply. */
11123 if { (eval echo configure:11124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11125 eval "ac_cv_lib_$ac_lib_var=yes"
11127 echo "configure: failed program was:" >&5
11128 cat conftest.$ac_ext >&5
11130 eval "ac_cv_lib_$ac_lib_var=no"
11133 LIBS="$ac_save_LIBS"
11136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11137 echo "$ac_t""yes" 1>&6
11140 echo "$ac_t""no" 1>&6
11145 if test $have_thr = yes ; then
11146 cat >> confdefs.h <<\EOF
11150 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11151 ol_link_threads=thr
11153 if test $ol_with_yielding_select = auto ; then
11154 ol_with_yielding_select=yes
11158 thr_setconcurrency \
11159 thr_getconcurrency \
11162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11163 echo "configure:11164: checking for $ac_func" >&5
11164 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11165 echo $ac_n "(cached) $ac_c" 1>&6
11167 cat > conftest.$ac_ext <<EOF
11168 #line 11169 "configure"
11169 #include "confdefs.h"
11170 /* System header to define __stub macros and hopefully few prototypes,
11171 which can conflict with char $ac_func(); below. */
11172 #include <assert.h>
11173 /* Override any gcc2 internal prototype to avoid an error. */
11174 /* We use char because int might match the return type of a gcc2
11175 builtin and then its argument prototype would still apply. */
11181 /* The GNU C library defines this for functions which it implements
11182 to always fail with ENOSYS. Some functions are actually named
11183 something starting with __ and the normal name is an alias. */
11184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11192 if { (eval echo configure:11193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11194 eval "ac_cv_func_$ac_func=yes"
11196 echo "configure: failed program was:" >&5
11197 cat conftest.$ac_ext >&5
11199 eval "ac_cv_func_$ac_func=no"
11204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11205 echo "$ac_t""yes" 1>&6
11206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11207 cat >> confdefs.h <<EOF
11208 #define $ac_tr_func 1
11212 echo "$ac_t""no" 1>&6
11219 for ac_hdr in lwp/lwp.h
11221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11223 echo "configure:11224: checking for $ac_hdr" >&5
11224 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11227 cat > conftest.$ac_ext <<EOF
11228 #line 11229 "configure"
11229 #include "confdefs.h"
11232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11233 { (eval echo configure:11234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11235 if test -z "$ac_err"; then
11237 eval "ac_cv_header_$ac_safe=yes"
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11243 eval "ac_cv_header_$ac_safe=no"
11247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11248 echo "$ac_t""yes" 1>&6
11249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11250 cat >> confdefs.h <<EOF
11251 #define $ac_tr_hdr 1
11255 echo "$ac_t""no" 1>&6
11259 if test $ac_cv_header_lwp_lwp_h = yes ; then
11260 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11261 echo "configure:11262: checking for lwp_create in -llwp" >&5
11262 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11263 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11266 ac_save_LIBS="$LIBS"
11268 cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure"
11270 #include "confdefs.h"
11271 /* Override any gcc2 internal prototype to avoid an error. */
11272 /* We use char because int might match the return type of a gcc2
11273 builtin and then its argument prototype would still apply. */
11280 if { (eval echo configure:11281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11282 eval "ac_cv_lib_$ac_lib_var=yes"
11284 echo "configure: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11287 eval "ac_cv_lib_$ac_lib_var=no"
11290 LIBS="$ac_save_LIBS"
11293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11294 echo "$ac_t""yes" 1>&6
11297 echo "$ac_t""no" 1>&6
11302 if test $have_lwp = yes ; then
11303 cat >> confdefs.h <<\EOF
11307 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11308 ol_link_threads=lwp
11310 if test $ol_with_yielding_select = auto ; then
11311 ol_with_yielding_select=no
11317 if test $ol_with_yielding_select = yes ; then
11318 cat >> confdefs.h <<\EOF
11319 #define HAVE_YIELDING_SELECT 1
11324 if test $ol_with_threads = manual ; then
11325 ol_link_threads=yes
11327 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11329 for ac_hdr in pthread.h sched.h
11331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11333 echo "configure:11334: checking for $ac_hdr" >&5
11334 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11335 echo $ac_n "(cached) $ac_c" 1>&6
11337 cat > conftest.$ac_ext <<EOF
11338 #line 11339 "configure"
11339 #include "confdefs.h"
11342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11343 { (eval echo configure:11344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11345 if test -z "$ac_err"; then
11347 eval "ac_cv_header_$ac_safe=yes"
11350 echo "configure: failed program was:" >&5
11351 cat conftest.$ac_ext >&5
11353 eval "ac_cv_header_$ac_safe=no"
11357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11358 echo "$ac_t""yes" 1>&6
11359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11360 cat >> confdefs.h <<EOF
11361 #define $ac_tr_hdr 1
11365 echo "$ac_t""no" 1>&6
11369 for ac_func in sched_yield pthread_yield
11371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11372 echo "configure:11373: checking for $ac_func" >&5
11373 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11374 echo $ac_n "(cached) $ac_c" 1>&6
11376 cat > conftest.$ac_ext <<EOF
11377 #line 11378 "configure"
11378 #include "confdefs.h"
11379 /* System header to define __stub macros and hopefully few prototypes,
11380 which can conflict with char $ac_func(); below. */
11381 #include <assert.h>
11382 /* Override any gcc2 internal prototype to avoid an error. */
11383 /* We use char because int might match the return type of a gcc2
11384 builtin and then its argument prototype would still apply. */
11390 /* The GNU C library defines this for functions which it implements
11391 to always fail with ENOSYS. Some functions are actually named
11392 something starting with __ and the normal name is an alias. */
11393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11401 if { (eval echo configure:11402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11403 eval "ac_cv_func_$ac_func=yes"
11405 echo "configure: failed program was:" >&5
11406 cat conftest.$ac_ext >&5
11408 eval "ac_cv_func_$ac_func=no"
11413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11414 echo "$ac_t""yes" 1>&6
11415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11416 cat >> confdefs.h <<EOF
11417 #define $ac_tr_func 1
11421 echo "$ac_t""no" 1>&6
11426 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11427 echo "configure:11428: checking for LinuxThreads pthread.h" >&5
11428 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11429 echo $ac_n "(cached) $ac_c" 1>&6
11431 cat > conftest.$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11434 #include <pthread.h>
11436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11437 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11439 ol_cv_header_linux_threads=yes
11442 ol_cv_header_linux_threads=no
11449 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11450 if test $ol_cv_header_linux_threads = yes; then
11451 cat >> confdefs.h <<\EOF
11452 #define HAVE_LINUX_THREADS 1
11458 for ac_hdr in mach/cthreads.h
11460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11462 echo "configure:11463: checking for $ac_hdr" >&5
11463 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11464 echo $ac_n "(cached) $ac_c" 1>&6
11466 cat > conftest.$ac_ext <<EOF
11467 #line 11468 "configure"
11468 #include "confdefs.h"
11471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11472 { (eval echo configure:11473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11474 if test -z "$ac_err"; then
11476 eval "ac_cv_header_$ac_safe=yes"
11479 echo "configure: failed program was:" >&5
11480 cat conftest.$ac_ext >&5
11482 eval "ac_cv_header_$ac_safe=no"
11486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11487 echo "$ac_t""yes" 1>&6
11488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11489 cat >> confdefs.h <<EOF
11490 #define $ac_tr_hdr 1
11494 echo "$ac_t""no" 1>&6
11498 for ac_hdr in lwp/lwp.h
11500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11502 echo "configure:11503: checking for $ac_hdr" >&5
11503 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11504 echo $ac_n "(cached) $ac_c" 1>&6
11506 cat > conftest.$ac_ext <<EOF
11507 #line 11508 "configure"
11508 #include "confdefs.h"
11511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11512 { (eval echo configure:11513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11514 if test -z "$ac_err"; then
11516 eval "ac_cv_header_$ac_safe=yes"
11519 echo "configure: failed program was:" >&5
11520 cat conftest.$ac_ext >&5
11522 eval "ac_cv_header_$ac_safe=no"
11526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11527 echo "$ac_t""yes" 1>&6
11528 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11529 cat >> confdefs.h <<EOF
11530 #define $ac_tr_hdr 1
11534 echo "$ac_t""no" 1>&6
11538 for ac_hdr in thread.h synch.h
11540 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11542 echo "configure:11543: checking for $ac_hdr" >&5
11543 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11544 echo $ac_n "(cached) $ac_c" 1>&6
11546 cat > conftest.$ac_ext <<EOF
11547 #line 11548 "configure"
11548 #include "confdefs.h"
11551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11552 { (eval echo configure:11553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11554 if test -z "$ac_err"; then
11556 eval "ac_cv_header_$ac_safe=yes"
11559 echo "configure: failed program was:" >&5
11560 cat conftest.$ac_ext >&5
11562 eval "ac_cv_header_$ac_safe=no"
11566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11567 echo "$ac_t""yes" 1>&6
11568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11569 cat >> confdefs.h <<EOF
11570 #define $ac_tr_hdr 1
11574 echo "$ac_t""no" 1>&6
11580 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11581 cat >> confdefs.h <<\EOF
11582 #define REENTRANT 1
11585 cat >> confdefs.h <<\EOF
11586 #define _REENTRANT 1
11589 cat >> confdefs.h <<\EOF
11590 #define THREAD_SAFE 1
11593 cat >> confdefs.h <<\EOF
11594 #define _THREAD_SAFE 1
11597 cat >> confdefs.h <<\EOF
11598 #define THREADSAFE 1
11601 cat >> confdefs.h <<\EOF
11602 #define _THREADSAFE 1
11605 cat >> confdefs.h <<\EOF
11606 #define _SGI_MP_SOURCE 1
11610 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11611 echo "configure:11612: checking for thread specific errno" >&5
11612 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11613 echo $ac_n "(cached) $ac_c" 1>&6
11616 cat > conftest.$ac_ext <<EOF
11617 #line 11618 "configure"
11618 #include "confdefs.h"
11624 if { (eval echo configure:11625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11626 ol_cv_errno_thread_specific=yes
11628 echo "configure: failed program was:" >&5
11629 cat conftest.$ac_ext >&5
11631 ol_cv_errno_thread_specific=no
11637 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11639 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11640 echo "configure:11641: checking for thread specific h_errno" >&5
11641 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11642 echo $ac_n "(cached) $ac_c" 1>&6
11645 cat > conftest.$ac_ext <<EOF
11646 #line 11647 "configure"
11647 #include "confdefs.h"
11653 if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11655 ol_cv_h_errno_thread_specific=yes
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11660 ol_cv_h_errno_thread_specific=no
11666 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11668 if test $ol_cv_errno_thread_specific != yes \
11669 -o $ol_cv_h_errno_thread_specific != yes ; then
11670 LIBS="$LTHREAD_LIBS $LIBS"
11676 if test $ol_link_threads = no ; then
11677 if test $ol_with_threads = yes ; then
11678 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11681 if test $ol_with_threads = auto ; then
11682 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11686 cat >> confdefs.h <<\EOF
11687 #define NO_THREADS 1
11693 if test $ol_link_threads != no ; then
11694 cat >> confdefs.h <<\EOF
11695 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11702 if test $ol_with_ldbm_api = auto \
11703 -o $ol_with_ldbm_api = berkeley \
11704 -o $ol_with_ldbm_api = bcompat ; then
11706 if test $ol_with_ldbm_api = bcompat; then \
11707 ol_cv_berkeley_db=no
11708 for ac_hdr in db_185.h db.h
11710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11712 echo "configure:11713: checking for $ac_hdr" >&5
11713 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11714 echo $ac_n "(cached) $ac_c" 1>&6
11716 cat > conftest.$ac_ext <<EOF
11717 #line 11718 "configure"
11718 #include "confdefs.h"
11721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11722 { (eval echo configure:11723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11724 if test -z "$ac_err"; then
11726 eval "ac_cv_header_$ac_safe=yes"
11729 echo "configure: failed program was:" >&5
11730 cat conftest.$ac_ext >&5
11732 eval "ac_cv_header_$ac_safe=no"
11736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11737 echo "$ac_t""yes" 1>&6
11738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11739 cat >> confdefs.h <<EOF
11740 #define $ac_tr_hdr 1
11744 echo "$ac_t""no" 1>&6
11748 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11749 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11750 echo "configure:11751: checking if Berkeley DB header compatibility" >&5
11751 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11752 echo $ac_n "(cached) $ac_c" 1>&6
11755 cat > conftest.$ac_ext <<EOF
11756 #line 11757 "configure"
11757 #include "confdefs.h"
11760 # include <db_185.h>
11765 /* this check could be improved */
11766 #ifndef DB_VERSION_MAJOR
11767 # define DB_VERSION_MAJOR 1
11770 #if DB_VERSION_MAJOR == 1
11775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11776 egrep "__db_version_1" >/dev/null 2>&1; then
11778 ol_cv_header_db1=yes
11781 ol_cv_header_db1=no
11787 echo "$ac_t""$ol_cv_header_db1" 1>&6
11789 if test ol_cv_header_db1=yes ; then
11791 if test $ol_cv_lib_db = no ; then
11792 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11793 echo "configure:11794: checking for Berkeley DB link (default)" >&5
11794 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11795 echo $ac_n "(cached) $ac_c" 1>&6
11800 LIBS="$ol_DB_LIB $LIBS"
11802 cat > conftest.$ac_ext <<EOF
11803 #line 11804 "configure"
11804 #include "confdefs.h"
11806 #ifdef HAVE_DB_185_H
11807 # include <db_185.h>
11812 #ifndef DB_VERSION_MAJOR
11813 # define DB_VERSION_MAJOR 1
11817 #define NULL ((void*)0)
11822 #if DB_VERSION_MAJOR > 2
11823 db_env_create( NULL, 0 );
11824 #elif DB_VERSION_MAJOR > 1
11825 db_appexit( NULL );
11827 (void) dbopen( NULL, 0, 0, 0, NULL);
11832 if { (eval echo configure:11833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11836 echo "configure: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11847 echo "$ac_t""$ol_cv_db_none" 1>&6
11849 if test $ol_cv_db_none = yes ; then
11854 if test $ol_cv_lib_db = no ; then
11855 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11856 echo "configure:11857: checking for Berkeley DB link (-ldb)" >&5
11857 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11858 echo $ac_n "(cached) $ac_c" 1>&6
11863 LIBS="$ol_DB_LIB $LIBS"
11865 cat > conftest.$ac_ext <<EOF
11866 #line 11867 "configure"
11867 #include "confdefs.h"
11869 #ifdef HAVE_DB_185_H
11870 # include <db_185.h>
11875 #ifndef DB_VERSION_MAJOR
11876 # define DB_VERSION_MAJOR 1
11880 #define NULL ((void*)0)
11885 #if DB_VERSION_MAJOR > 2
11886 db_env_create( NULL, 0 );
11887 #elif DB_VERSION_MAJOR > 1
11888 db_appexit( NULL );
11890 (void) dbopen( NULL, 0, 0, 0, NULL);
11895 if { (eval echo configure:11896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11899 echo "configure: failed program was:" >&5
11900 cat conftest.$ac_ext >&5
11910 echo "$ac_t""$ol_cv_db_db" 1>&6
11912 if test $ol_cv_db_db = yes ; then
11917 if test $ol_cv_lib_db = no ; then
11918 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11919 echo "configure:11920: checking for Berkeley DB link (-ldb3)" >&5
11920 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11921 echo $ac_n "(cached) $ac_c" 1>&6
11926 LIBS="$ol_DB_LIB $LIBS"
11928 cat > conftest.$ac_ext <<EOF
11929 #line 11930 "configure"
11930 #include "confdefs.h"
11932 #ifdef HAVE_DB_185_H
11933 # include <db_185.h>
11938 #ifndef DB_VERSION_MAJOR
11939 # define DB_VERSION_MAJOR 1
11943 #define NULL ((void*)0)
11948 #if DB_VERSION_MAJOR > 2
11949 db_env_create( NULL, 0 );
11950 #elif DB_VERSION_MAJOR > 1
11951 db_appexit( NULL );
11953 (void) dbopen( NULL, 0, 0, 0, NULL);
11958 if { (eval echo configure:11959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11962 echo "configure: failed program was:" >&5
11963 cat conftest.$ac_ext >&5
11973 echo "$ac_t""$ol_cv_db_db3" 1>&6
11975 if test $ol_cv_db_db3 = yes ; then
11980 if test $ol_cv_lib_db = no ; then
11981 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11982 echo "configure:11983: checking for Berkeley DB link (-ldb2)" >&5
11983 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11984 echo $ac_n "(cached) $ac_c" 1>&6
11989 LIBS="$ol_DB_LIB $LIBS"
11991 cat > conftest.$ac_ext <<EOF
11992 #line 11993 "configure"
11993 #include "confdefs.h"
11995 #ifdef HAVE_DB_185_H
11996 # include <db_185.h>
12001 #ifndef DB_VERSION_MAJOR
12002 # define DB_VERSION_MAJOR 1
12006 #define NULL ((void*)0)
12011 #if DB_VERSION_MAJOR > 2
12012 db_env_create( NULL, 0 );
12013 #elif DB_VERSION_MAJOR > 1
12014 db_appexit( NULL );
12016 (void) dbopen( NULL, 0, 0, 0, NULL);
12021 if { (eval echo configure:12022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12025 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5
12036 echo "$ac_t""$ol_cv_db_db2" 1>&6
12038 if test $ol_cv_db_db2 = yes ; then
12043 if test $ol_cv_lib_db = no ; then
12044 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12045 echo "configure:12046: checking for Berkeley DB link (-ldb1)" >&5
12046 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12047 echo $ac_n "(cached) $ac_c" 1>&6
12052 LIBS="$ol_DB_LIB $LIBS"
12054 cat > conftest.$ac_ext <<EOF
12055 #line 12056 "configure"
12056 #include "confdefs.h"
12058 #ifdef HAVE_DB_185_H
12059 # include <db_185.h>
12064 #ifndef DB_VERSION_MAJOR
12065 # define DB_VERSION_MAJOR 1
12069 #define NULL ((void*)0)
12074 #if DB_VERSION_MAJOR > 2
12075 db_env_create( NULL, 0 );
12076 #elif DB_VERSION_MAJOR > 1
12077 db_appexit( NULL );
12079 (void) dbopen( NULL, 0, 0, 0, NULL);
12084 if { (eval echo configure:12085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12088 echo "configure: failed program was:" >&5
12089 cat conftest.$ac_ext >&5
12099 echo "$ac_t""$ol_cv_db_db1" 1>&6
12101 if test $ol_cv_db_db1 = yes ; then
12107 if test "$ol_cv_lib_db" != no ; then
12108 ol_cv_berkeley_db=yes
12114 ol_cv_berkeley_db=no
12117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12119 echo "configure:12120: checking for $ac_hdr" >&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
12145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12146 cat >> confdefs.h <<EOF
12147 #define $ac_tr_hdr 1
12151 echo "$ac_t""no" 1>&6
12155 if test $ac_cv_header_db_h = yes; then
12157 if test $ol_cv_lib_db = no ; then
12158 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12159 echo "configure:12160: checking for Berkeley DB link (default)" >&5
12160 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12161 echo $ac_n "(cached) $ac_c" 1>&6
12166 LIBS="$ol_DB_LIB $LIBS"
12168 cat > conftest.$ac_ext <<EOF
12169 #line 12170 "configure"
12170 #include "confdefs.h"
12172 #ifdef HAVE_DB_185_H
12173 # include <db_185.h>
12178 #ifndef DB_VERSION_MAJOR
12179 # define DB_VERSION_MAJOR 1
12183 #define NULL ((void*)0)
12188 #if DB_VERSION_MAJOR > 2
12189 db_env_create( NULL, 0 );
12190 #elif DB_VERSION_MAJOR > 1
12191 db_appexit( NULL );
12193 (void) dbopen( NULL, 0, 0, 0, NULL);
12198 if { (eval echo configure:12199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12202 echo "configure: failed program was:" >&5
12203 cat conftest.$ac_ext >&5
12213 echo "$ac_t""$ol_cv_db_none" 1>&6
12215 if test $ol_cv_db_none = yes ; then
12220 if test $ol_cv_lib_db = no ; then
12221 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12222 echo "configure:12223: checking for Berkeley DB link (-ldb)" >&5
12223 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12224 echo $ac_n "(cached) $ac_c" 1>&6
12229 LIBS="$ol_DB_LIB $LIBS"
12231 cat > conftest.$ac_ext <<EOF
12232 #line 12233 "configure"
12233 #include "confdefs.h"
12235 #ifdef HAVE_DB_185_H
12236 # include <db_185.h>
12241 #ifndef DB_VERSION_MAJOR
12242 # define DB_VERSION_MAJOR 1
12246 #define NULL ((void*)0)
12251 #if DB_VERSION_MAJOR > 2
12252 db_env_create( NULL, 0 );
12253 #elif DB_VERSION_MAJOR > 1
12254 db_appexit( NULL );
12256 (void) dbopen( NULL, 0, 0, 0, NULL);
12261 if { (eval echo configure:12262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12265 echo "configure: failed program was:" >&5
12266 cat conftest.$ac_ext >&5
12276 echo "$ac_t""$ol_cv_db_db" 1>&6
12278 if test $ol_cv_db_db = yes ; then
12283 if test $ol_cv_lib_db = no ; then
12284 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12285 echo "configure:12286: checking for Berkeley DB link (-ldb3)" >&5
12286 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12287 echo $ac_n "(cached) $ac_c" 1>&6
12292 LIBS="$ol_DB_LIB $LIBS"
12294 cat > conftest.$ac_ext <<EOF
12295 #line 12296 "configure"
12296 #include "confdefs.h"
12298 #ifdef HAVE_DB_185_H
12299 # include <db_185.h>
12304 #ifndef DB_VERSION_MAJOR
12305 # define DB_VERSION_MAJOR 1
12309 #define NULL ((void*)0)
12314 #if DB_VERSION_MAJOR > 2
12315 db_env_create( NULL, 0 );
12316 #elif DB_VERSION_MAJOR > 1
12317 db_appexit( NULL );
12319 (void) dbopen( NULL, 0, 0, 0, NULL);
12324 if { (eval echo configure:12325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12328 echo "configure: failed program was:" >&5
12329 cat conftest.$ac_ext >&5
12339 echo "$ac_t""$ol_cv_db_db3" 1>&6
12341 if test $ol_cv_db_db3 = yes ; then
12346 if test $ol_cv_lib_db = no ; then
12347 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12348 echo "configure:12349: checking for Berkeley DB link (-ldb2)" >&5
12349 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12350 echo $ac_n "(cached) $ac_c" 1>&6
12355 LIBS="$ol_DB_LIB $LIBS"
12357 cat > conftest.$ac_ext <<EOF
12358 #line 12359 "configure"
12359 #include "confdefs.h"
12361 #ifdef HAVE_DB_185_H
12362 # include <db_185.h>
12367 #ifndef DB_VERSION_MAJOR
12368 # define DB_VERSION_MAJOR 1
12372 #define NULL ((void*)0)
12377 #if DB_VERSION_MAJOR > 2
12378 db_env_create( NULL, 0 );
12379 #elif DB_VERSION_MAJOR > 1
12380 db_appexit( NULL );
12382 (void) dbopen( NULL, 0, 0, 0, NULL);
12387 if { (eval echo configure:12388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12391 echo "configure: failed program was:" >&5
12392 cat conftest.$ac_ext >&5
12402 echo "$ac_t""$ol_cv_db_db2" 1>&6
12404 if test $ol_cv_db_db2 = yes ; then
12409 if test $ol_cv_lib_db = no ; then
12410 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12411 echo "configure:12412: checking for Berkeley DB link (-ldb1)" >&5
12412 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12413 echo $ac_n "(cached) $ac_c" 1>&6
12418 LIBS="$ol_DB_LIB $LIBS"
12420 cat > conftest.$ac_ext <<EOF
12421 #line 12422 "configure"
12422 #include "confdefs.h"
12424 #ifdef HAVE_DB_185_H
12425 # include <db_185.h>
12430 #ifndef DB_VERSION_MAJOR
12431 # define DB_VERSION_MAJOR 1
12435 #define NULL ((void*)0)
12440 #if DB_VERSION_MAJOR > 2
12441 db_env_create( NULL, 0 );
12442 #elif DB_VERSION_MAJOR > 1
12443 db_appexit( NULL );
12445 (void) dbopen( NULL, 0, 0, 0, NULL);
12450 if { (eval echo configure:12451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12454 echo "configure: failed program was:" >&5
12455 cat conftest.$ac_ext >&5
12465 echo "$ac_t""$ol_cv_db_db1" 1>&6
12467 if test $ol_cv_db_db1 = yes ; then
12473 if test "$ol_cv_lib_db" != no ; then
12474 ol_cv_berkeley_db=yes
12475 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12476 echo "configure:12477: checking for Berkeley DB thread support" >&5
12477 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12478 echo $ac_n "(cached) $ac_c" 1>&6
12482 if test $ol_cv_lib_db != yes ; then
12483 LIBS="$ol_cv_lib_db"
12486 if test "$cross_compiling" = yes; then
12487 ol_cv_berkeley_db_thread=cross
12489 cat > conftest.$ac_ext <<EOF
12490 #line 12491 "configure"
12491 #include "confdefs.h"
12493 #ifdef HAVE_DB_185_H
12499 #define NULL ((void *)0)
12504 u_int32_t flags = DB_CREATE | DB_THREAD;
12507 #if DB_VERSION_MAJOR > 2
12508 DB_ENV *env = NULL;
12510 rc = db_env_create( &env, 0 );
12513 rc = env->open( env, NULL, NULL, flags, 0 );
12518 memset( &env, '\0', sizeof(env) );
12520 rc = db_appinit( NULL, NULL, &env, flags );
12523 db_appexit( &env );
12530 if { (eval echo configure:12531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12532 ol_cv_berkeley_db_thread=yes
12534 echo "configure: failed program was:" >&5
12535 cat conftest.$ac_ext >&5
12537 ol_cv_berkeley_db_thread=no
12545 if test $ol_cv_berkeley_db_thread != no ; then
12546 cat >> confdefs.h <<\EOF
12547 #define HAVE_BERKELEY_DB_THREAD 1
12554 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12560 if test $ol_cv_berkeley_db != no ; then
12561 cat >> confdefs.h <<\EOF
12562 #define HAVE_BERKELEY_DB 1
12566 ol_link_ldbm=berkeley
12567 ol_with_ldbm_api=db
12569 if test $ol_with_ldbm_type = hash ; then
12570 cat >> confdefs.h <<\EOF
12571 #define LDBM_USE_DBHASH 1
12575 cat >> confdefs.h <<\EOF
12576 #define LDBM_USE_DBBTREE 1
12581 if test $ol_cv_lib_db != yes ; then
12582 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12587 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12588 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12589 ol_with_ldbm_api=none
12592 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12593 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12594 echo "configure:12595: checking for MDBM library" >&5
12595 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12596 echo $ac_n "(cached) $ac_c" 1>&6
12599 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12600 echo "configure:12601: checking for mdbm_set_chain" >&5
12601 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12602 echo $ac_n "(cached) $ac_c" 1>&6
12604 cat > conftest.$ac_ext <<EOF
12605 #line 12606 "configure"
12606 #include "confdefs.h"
12607 /* System header to define __stub macros and hopefully few prototypes,
12608 which can conflict with char mdbm_set_chain(); below. */
12609 #include <assert.h>
12610 /* Override any gcc2 internal prototype to avoid an error. */
12611 /* We use char because int might match the return type of a gcc2
12612 builtin and then its argument prototype would still apply. */
12613 char mdbm_set_chain();
12618 /* The GNU C library defines this for functions which it implements
12619 to always fail with ENOSYS. Some functions are actually named
12620 something starting with __ and the normal name is an alias. */
12621 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12624 f = mdbm_set_chain;
12629 if { (eval echo configure:12630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12631 eval "ac_cv_func_mdbm_set_chain=yes"
12633 echo "configure: failed program was:" >&5
12634 cat conftest.$ac_ext >&5
12636 eval "ac_cv_func_mdbm_set_chain=no"
12641 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12642 echo "$ac_t""yes" 1>&6
12645 echo "$ac_t""no" 1>&6
12647 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12648 echo "configure:12649: checking for mdbm_set_chain in -lmdbm" >&5
12649 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12650 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12651 echo $ac_n "(cached) $ac_c" 1>&6
12653 ac_save_LIBS="$LIBS"
12654 LIBS="-lmdbm $LIBS"
12655 cat > conftest.$ac_ext <<EOF
12656 #line 12657 "configure"
12657 #include "confdefs.h"
12658 /* Override any gcc2 internal prototype to avoid an error. */
12659 /* We use char because int might match the return type of a gcc2
12660 builtin and then its argument prototype would still apply. */
12661 char mdbm_set_chain();
12667 if { (eval echo configure:12668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12669 eval "ac_cv_lib_$ac_lib_var=yes"
12671 echo "configure: failed program was:" >&5
12672 cat conftest.$ac_ext >&5
12674 eval "ac_cv_lib_$ac_lib_var=no"
12677 LIBS="$ac_save_LIBS"
12680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12681 echo "$ac_t""yes" 1>&6
12682 ol_cv_lib_mdbm=-lmdbm
12684 echo "$ac_t""no" 1>&6
12695 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12698 for ac_hdr in mdbm.h
12700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12702 echo "configure:12703: checking for $ac_hdr" >&5
12703 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12704 echo $ac_n "(cached) $ac_c" 1>&6
12706 cat > conftest.$ac_ext <<EOF
12707 #line 12708 "configure"
12708 #include "confdefs.h"
12711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12712 { (eval echo configure:12713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12714 if test -z "$ac_err"; then
12716 eval "ac_cv_header_$ac_safe=yes"
12719 echo "configure: failed program was:" >&5
12720 cat conftest.$ac_ext >&5
12722 eval "ac_cv_header_$ac_safe=no"
12726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12727 echo "$ac_t""yes" 1>&6
12728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12729 cat >> confdefs.h <<EOF
12730 #define $ac_tr_hdr 1
12734 echo "$ac_t""no" 1>&6
12738 echo $ac_n "checking for db""... $ac_c" 1>&6
12739 echo "configure:12740: checking for db" >&5
12740 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12741 echo $ac_n "(cached) $ac_c" 1>&6
12744 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12752 echo "$ac_t""$ol_cv_mdbm" 1>&6
12753 if test $ol_cv_mdbm = yes ; then
12754 cat >> confdefs.h <<\EOF
12755 #define HAVE_MDBM 1
12761 if test $ol_cv_mdbm = yes ; then
12763 ol_with_ldbm_api=mdbm
12764 if test $ol_cv_lib_mdbm != yes ; then
12765 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12770 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12771 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12772 echo "configure:12773: checking for GDBM library" >&5
12773 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12774 echo $ac_n "(cached) $ac_c" 1>&6
12777 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12778 echo "configure:12779: checking for gdbm_open" >&5
12779 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12780 echo $ac_n "(cached) $ac_c" 1>&6
12782 cat > conftest.$ac_ext <<EOF
12783 #line 12784 "configure"
12784 #include "confdefs.h"
12785 /* System header to define __stub macros and hopefully few prototypes,
12786 which can conflict with char gdbm_open(); below. */
12787 #include <assert.h>
12788 /* Override any gcc2 internal prototype to avoid an error. */
12789 /* We use char because int might match the return type of a gcc2
12790 builtin and then its argument prototype would still apply. */
12796 /* The GNU C library defines this for functions which it implements
12797 to always fail with ENOSYS. Some functions are actually named
12798 something starting with __ and the normal name is an alias. */
12799 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12807 if { (eval echo configure:12808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12809 eval "ac_cv_func_gdbm_open=yes"
12811 echo "configure: failed program was:" >&5
12812 cat conftest.$ac_ext >&5
12814 eval "ac_cv_func_gdbm_open=no"
12819 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12820 echo "$ac_t""yes" 1>&6
12823 echo "$ac_t""no" 1>&6
12825 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12826 echo "configure:12827: checking for gdbm_open in -lgdbm" >&5
12827 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12828 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12829 echo $ac_n "(cached) $ac_c" 1>&6
12831 ac_save_LIBS="$LIBS"
12832 LIBS="-lgdbm $LIBS"
12833 cat > conftest.$ac_ext <<EOF
12834 #line 12835 "configure"
12835 #include "confdefs.h"
12836 /* Override any gcc2 internal prototype to avoid an error. */
12837 /* We use char because int might match the return type of a gcc2
12838 builtin and then its argument prototype would still apply. */
12845 if { (eval echo configure:12846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12847 eval "ac_cv_lib_$ac_lib_var=yes"
12849 echo "configure: failed program was:" >&5
12850 cat conftest.$ac_ext >&5
12852 eval "ac_cv_lib_$ac_lib_var=no"
12855 LIBS="$ac_save_LIBS"
12858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12859 echo "$ac_t""yes" 1>&6
12860 ol_cv_lib_gdbm=-lgdbm
12862 echo "$ac_t""no" 1>&6
12873 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12876 for ac_hdr in gdbm.h
12878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12880 echo "configure:12881: checking for $ac_hdr" >&5
12881 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12882 echo $ac_n "(cached) $ac_c" 1>&6
12884 cat > conftest.$ac_ext <<EOF
12885 #line 12886 "configure"
12886 #include "confdefs.h"
12889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12890 { (eval echo configure:12891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12892 if test -z "$ac_err"; then
12894 eval "ac_cv_header_$ac_safe=yes"
12897 echo "configure: failed program was:" >&5
12898 cat conftest.$ac_ext >&5
12900 eval "ac_cv_header_$ac_safe=no"
12904 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12905 echo "$ac_t""yes" 1>&6
12906 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12907 cat >> confdefs.h <<EOF
12908 #define $ac_tr_hdr 1
12912 echo "$ac_t""no" 1>&6
12916 echo $ac_n "checking for db""... $ac_c" 1>&6
12917 echo "configure:12918: checking for db" >&5
12918 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12919 echo $ac_n "(cached) $ac_c" 1>&6
12922 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12930 echo "$ac_t""$ol_cv_gdbm" 1>&6
12931 if test $ol_cv_gdbm = yes ; then
12932 cat >> confdefs.h <<\EOF
12933 #define HAVE_GDBM 1
12939 if test $ol_cv_gdbm = yes ; then
12941 ol_with_ldbm_api=gdbm
12943 if test $ol_cv_lib_gdbm != yes ; then
12944 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12949 if test $ol_with_ldbm_api = ndbm ; then
12950 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12951 echo "configure:12952: checking for NDBM library" >&5
12952 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12953 echo $ac_n "(cached) $ac_c" 1>&6
12956 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12957 echo "configure:12958: checking for dbm_open" >&5
12958 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12959 echo $ac_n "(cached) $ac_c" 1>&6
12961 cat > conftest.$ac_ext <<EOF
12962 #line 12963 "configure"
12963 #include "confdefs.h"
12964 /* System header to define __stub macros and hopefully few prototypes,
12965 which can conflict with char dbm_open(); below. */
12966 #include <assert.h>
12967 /* Override any gcc2 internal prototype to avoid an error. */
12968 /* We use char because int might match the return type of a gcc2
12969 builtin and then its argument prototype would still apply. */
12975 /* The GNU C library defines this for functions which it implements
12976 to always fail with ENOSYS. Some functions are actually named
12977 something starting with __ and the normal name is an alias. */
12978 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12986 if { (eval echo configure:12987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12988 eval "ac_cv_func_dbm_open=yes"
12990 echo "configure: failed program was:" >&5
12991 cat conftest.$ac_ext >&5
12993 eval "ac_cv_func_dbm_open=no"
12998 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12999 echo "$ac_t""yes" 1>&6
13002 echo "$ac_t""no" 1>&6
13004 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
13005 echo "configure:13006: checking for dbm_open in -lndbm" >&5
13006 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13007 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13008 echo $ac_n "(cached) $ac_c" 1>&6
13010 ac_save_LIBS="$LIBS"
13011 LIBS="-lndbm $LIBS"
13012 cat > conftest.$ac_ext <<EOF
13013 #line 13014 "configure"
13014 #include "confdefs.h"
13015 /* Override any gcc2 internal prototype to avoid an error. */
13016 /* We use char because int might match the return type of a gcc2
13017 builtin and then its argument prototype would still apply. */
13024 if { (eval echo configure:13025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13026 eval "ac_cv_lib_$ac_lib_var=yes"
13028 echo "configure: failed program was:" >&5
13029 cat conftest.$ac_ext >&5
13031 eval "ac_cv_lib_$ac_lib_var=no"
13034 LIBS="$ac_save_LIBS"
13037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13038 echo "$ac_t""yes" 1>&6
13039 ol_cv_lib_ndbm=-lndbm
13041 echo "$ac_t""no" 1>&6
13043 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13044 echo "configure:13045: checking for dbm_open in -ldbm" >&5
13045 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13046 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13047 echo $ac_n "(cached) $ac_c" 1>&6
13049 ac_save_LIBS="$LIBS"
13051 cat > conftest.$ac_ext <<EOF
13052 #line 13053 "configure"
13053 #include "confdefs.h"
13054 /* Override any gcc2 internal prototype to avoid an error. */
13055 /* We use char because int might match the return type of a gcc2
13056 builtin and then its argument prototype would still apply. */
13063 if { (eval echo configure:13064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13065 eval "ac_cv_lib_$ac_lib_var=yes"
13067 echo "configure: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13070 eval "ac_cv_lib_$ac_lib_var=no"
13073 LIBS="$ac_save_LIBS"
13076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13077 echo "$ac_t""yes" 1>&6
13078 ol_cv_lib_ndbm=-ldbm
13080 echo "$ac_t""no" 1>&6
13093 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
13096 for ac_hdr in ndbm.h
13098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13100 echo "configure:13101: checking for $ac_hdr" >&5
13101 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13102 echo $ac_n "(cached) $ac_c" 1>&6
13104 cat > conftest.$ac_ext <<EOF
13105 #line 13106 "configure"
13106 #include "confdefs.h"
13109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13110 { (eval echo configure:13111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13112 if test -z "$ac_err"; then
13114 eval "ac_cv_header_$ac_safe=yes"
13117 echo "configure: failed program was:" >&5
13118 cat conftest.$ac_ext >&5
13120 eval "ac_cv_header_$ac_safe=no"
13124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13125 echo "$ac_t""yes" 1>&6
13126 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13127 cat >> confdefs.h <<EOF
13128 #define $ac_tr_hdr 1
13132 echo "$ac_t""no" 1>&6
13136 echo $ac_n "checking for db""... $ac_c" 1>&6
13137 echo "configure:13138: checking for db" >&5
13138 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
13139 echo $ac_n "(cached) $ac_c" 1>&6
13142 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
13150 echo "$ac_t""$ol_cv_ndbm" 1>&6
13151 if test $ol_cv_ndbm = yes ; then
13152 cat >> confdefs.h <<\EOF
13153 #define HAVE_NDBM 1
13159 if test $ol_cv_ndbm = yes ; then
13161 ol_with_ldbm_api=ndbm
13163 if test $ol_cv_lib_ndbm != yes ; then
13164 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13169 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13170 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13171 if test $ol_enable_ldbm = yes ; then
13172 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13175 echo "configure: warning: disabling LDBM" 1>&2
13180 if test $ol_enable_bdb2 != no ; then
13181 if test $ol_enable_bdb2 = yes -a $ol_link_ldbm != berkeley ; then
13182 { echo "configure: error: BDB2 requires LDBM BerkeleyDB 2" 1>&2; exit 1; }
13183 elif test $ol_link_ldbm = berkeley ; then
13184 ol_link_bdb2=$ol_link_ldbm
13188 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13189 LINK_BINS_DYNAMIC="yes"
13191 LINK_BINS_DYNAMIC="no"
13194 if test $ol_enable_wrappers != no ; then
13195 for ac_hdr in tcpd.h
13197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13199 echo "configure:13200: checking for $ac_hdr" >&5
13200 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13201 echo $ac_n "(cached) $ac_c" 1>&6
13203 cat > conftest.$ac_ext <<EOF
13204 #line 13205 "configure"
13205 #include "confdefs.h"
13208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13209 { (eval echo configure:13210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13211 if test -z "$ac_err"; then
13213 eval "ac_cv_header_$ac_safe=yes"
13216 echo "configure: failed program was:" >&5
13217 cat conftest.$ac_ext >&5
13219 eval "ac_cv_header_$ac_safe=no"
13223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13224 echo "$ac_t""yes" 1>&6
13225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13226 cat >> confdefs.h <<EOF
13227 #define $ac_tr_hdr 1
13231 echo "$ac_t""no" 1>&6
13236 if test $ac_cv_header_tcpd_h != yes ; then
13239 cat > conftest.$ac_ext <<EOF
13240 #line 13241 "configure"
13241 #include "confdefs.h"
13243 int allow_severity = 0;
13244 int deny_severity = 0;
13250 if { (eval echo configure:13251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13254 echo "configure: failed program was:" >&5
13255 cat conftest.$ac_ext >&5
13262 if test $have_wrappers = yes ; then
13263 cat >> confdefs.h <<\EOF
13264 #define HAVE_TCPD 1
13269 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13270 echo "configure:13271: checking for main in -lnsl" >&5
13271 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13272 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13273 echo $ac_n "(cached) $ac_c" 1>&6
13275 ac_save_LIBS="$LIBS"
13277 cat > conftest.$ac_ext <<EOF
13278 #line 13279 "configure"
13279 #include "confdefs.h"
13285 if { (eval echo configure:13286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13287 eval "ac_cv_lib_$ac_lib_var=yes"
13289 echo "configure: failed program was:" >&5
13290 cat conftest.$ac_ext >&5
13292 eval "ac_cv_lib_$ac_lib_var=no"
13295 LIBS="$ac_save_LIBS"
13298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13299 echo "$ac_t""yes" 1>&6
13300 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13302 cat >> confdefs.h <<EOF
13303 #define $ac_tr_lib 1
13309 echo "$ac_t""no" 1>&6
13313 echo "configure: warning: could not find -lwrap" 1>&2
13314 if test $ol_enable_wrappers = yes ; then
13315 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13318 echo "configure: warning: disabling wrappers support" 1>&2
13319 ol_enable_wrappers=no
13324 if test $ol_enable_syslog != no ; then
13325 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13326 echo "configure:13327: checking for openlog" >&5
13327 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13328 echo $ac_n "(cached) $ac_c" 1>&6
13330 cat > conftest.$ac_ext <<EOF
13331 #line 13332 "configure"
13332 #include "confdefs.h"
13333 /* System header to define __stub macros and hopefully few prototypes,
13334 which can conflict with char openlog(); below. */
13335 #include <assert.h>
13336 /* Override any gcc2 internal prototype to avoid an error. */
13337 /* We use char because int might match the return type of a gcc2
13338 builtin and then its argument prototype would still apply. */
13344 /* The GNU C library defines this for functions which it implements
13345 to always fail with ENOSYS. Some functions are actually named
13346 something starting with __ and the normal name is an alias. */
13347 #if defined (__stub_openlog) || defined (__stub___openlog)
13355 if { (eval echo configure:13356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13357 eval "ac_cv_func_openlog=yes"
13359 echo "configure: failed program was:" >&5
13360 cat conftest.$ac_ext >&5
13362 eval "ac_cv_func_openlog=no"
13367 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13368 echo "$ac_t""yes" 1>&6
13371 echo "$ac_t""no" 1>&6
13374 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13375 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13377 ol_enable_syslog=$ac_cv_func_openlog
13380 if test $ol_enable_tcl != no ; then
13381 for ac_hdr in tcl.h
13383 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13384 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13385 echo "configure:13386: checking for $ac_hdr" >&5
13386 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13387 echo $ac_n "(cached) $ac_c" 1>&6
13389 cat > conftest.$ac_ext <<EOF
13390 #line 13391 "configure"
13391 #include "confdefs.h"
13394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13395 { (eval echo configure:13396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13397 if test -z "$ac_err"; then
13399 eval "ac_cv_header_$ac_safe=yes"
13402 echo "configure: failed program was:" >&5
13403 cat conftest.$ac_ext >&5
13405 eval "ac_cv_header_$ac_safe=no"
13409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13410 echo "$ac_t""yes" 1>&6
13411 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13412 cat >> confdefs.h <<EOF
13413 #define $ac_tr_hdr 1
13417 echo "$ac_t""no" 1>&6
13422 if test $ac_cv_header_tcl_h != yes ; then
13425 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13426 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13427 echo "configure:13428: checking for main in -l$lib" >&5
13428 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13429 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13430 echo $ac_n "(cached) $ac_c" 1>&6
13432 ac_save_LIBS="$LIBS"
13433 LIBS="-l$lib $LIBS"
13434 cat > conftest.$ac_ext <<EOF
13435 #line 13436 "configure"
13436 #include "confdefs.h"
13442 if { (eval echo configure:13443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13444 eval "ac_cv_lib_$ac_lib_var=yes"
13446 echo "configure: failed program was:" >&5
13447 cat conftest.$ac_ext >&5
13449 eval "ac_cv_lib_$ac_lib_var=no"
13452 LIBS="$ac_save_LIBS"
13455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13456 echo "$ac_t""yes" 1>&6
13458 if test x"$ol_with_tcl_module" = "xstatic" ; then
13459 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13461 MOD_TCL_LIB="-l${lib}"
13464 echo "$ac_t""no" 1>&6
13471 if test $have_tcl != yes ; then
13472 echo "configure: warning: could not find -ltcl" 1>&2
13473 if test $ol_enable_tcl = yes ; then
13474 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13482 for ac_hdr in termcap.h ncurses.h
13484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13486 echo "configure:13487: checking for $ac_hdr" >&5
13487 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13488 echo $ac_n "(cached) $ac_c" 1>&6
13490 cat > conftest.$ac_ext <<EOF
13491 #line 13492 "configure"
13492 #include "confdefs.h"
13495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13496 { (eval echo configure:13497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13498 if test -z "$ac_err"; then
13500 eval "ac_cv_header_$ac_safe=yes"
13503 echo "configure: failed program was:" >&5
13504 cat conftest.$ac_ext >&5
13506 eval "ac_cv_header_$ac_safe=no"
13510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13511 echo "$ac_t""yes" 1>&6
13512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13513 cat >> confdefs.h <<EOF
13514 #define $ac_tr_hdr 1
13518 echo "$ac_t""no" 1>&6
13523 if test $ol_link_termcap = no ; then
13524 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13525 echo "configure:13526: checking for tputs in -ltermcap" >&5
13526 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13527 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13528 echo $ac_n "(cached) $ac_c" 1>&6
13530 ac_save_LIBS="$LIBS"
13531 LIBS="-ltermcap $LIBS"
13532 cat > conftest.$ac_ext <<EOF
13533 #line 13534 "configure"
13534 #include "confdefs.h"
13535 /* Override any gcc2 internal prototype to avoid an error. */
13536 /* We use char because int might match the return type of a gcc2
13537 builtin and then its argument prototype would still apply. */
13544 if { (eval echo configure:13545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13546 eval "ac_cv_lib_$ac_lib_var=yes"
13548 echo "configure: failed program was:" >&5
13549 cat conftest.$ac_ext >&5
13551 eval "ac_cv_lib_$ac_lib_var=no"
13554 LIBS="$ac_save_LIBS"
13557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13558 echo "$ac_t""yes" 1>&6
13561 echo "$ac_t""no" 1>&6
13565 if test $have_termcap = yes ; then
13566 cat >> confdefs.h <<\EOF
13567 #define HAVE_TERMCAP 1
13570 ol_link_termcap=yes
13571 TERMCAP_LIBS=-ltermcap
13575 if test $ol_link_termcap = no ; then
13576 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13577 echo "configure:13578: checking for initscr in -lncurses" >&5
13578 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13579 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13580 echo $ac_n "(cached) $ac_c" 1>&6
13582 ac_save_LIBS="$LIBS"
13583 LIBS="-lncurses $LIBS"
13584 cat > conftest.$ac_ext <<EOF
13585 #line 13586 "configure"
13586 #include "confdefs.h"
13587 /* Override any gcc2 internal prototype to avoid an error. */
13588 /* We use char because int might match the return type of a gcc2
13589 builtin and then its argument prototype would still apply. */
13596 if { (eval echo configure:13597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13598 eval "ac_cv_lib_$ac_lib_var=yes"
13600 echo "configure: failed program was:" >&5
13601 cat conftest.$ac_ext >&5
13603 eval "ac_cv_lib_$ac_lib_var=no"
13606 LIBS="$ac_save_LIBS"
13609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13610 echo "$ac_t""yes" 1>&6
13613 echo "$ac_t""no" 1>&6
13617 if test $have_ncurses = yes ; then
13618 cat >> confdefs.h <<\EOF
13619 #define HAVE_NCURSES 1
13622 ol_link_termcap=yes
13623 TERMCAP_LIBS=-lncurses
13627 if test $ol_link_termcap = no ; then
13628 cat >> confdefs.h <<\EOF
13629 #define NO_TERMCAP 1
13637 if test $ol_with_cyrus_sasl != no ; then
13638 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13639 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13640 echo "configure:13641: checking for sasl.h" >&5
13641 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13642 echo $ac_n "(cached) $ac_c" 1>&6
13644 cat > conftest.$ac_ext <<EOF
13645 #line 13646 "configure"
13646 #include "confdefs.h"
13649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13650 { (eval echo configure:13651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13652 if test -z "$ac_err"; then
13654 eval "ac_cv_header_$ac_safe=yes"
13657 echo "configure: failed program was:" >&5
13658 cat conftest.$ac_ext >&5
13660 eval "ac_cv_header_$ac_safe=no"
13664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13665 echo "$ac_t""yes" 1>&6
13668 echo "$ac_t""no" 1>&6
13672 if test $ac_cv_header_sasl_h = yes ; then
13673 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13674 echo "configure:13675: checking for sasl_client_init in -lsasl" >&5
13675 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13676 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13677 echo $ac_n "(cached) $ac_c" 1>&6
13679 ac_save_LIBS="$LIBS"
13680 LIBS="-lsasl $LIBS"
13681 cat > conftest.$ac_ext <<EOF
13682 #line 13683 "configure"
13683 #include "confdefs.h"
13684 /* Override any gcc2 internal prototype to avoid an error. */
13685 /* We use char because int might match the return type of a gcc2
13686 builtin and then its argument prototype would still apply. */
13687 char sasl_client_init();
13693 if { (eval echo configure:13694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13695 eval "ac_cv_lib_$ac_lib_var=yes"
13697 echo "configure: failed program was:" >&5
13698 cat conftest.$ac_ext >&5
13700 eval "ac_cv_lib_$ac_lib_var=no"
13703 LIBS="$ac_save_LIBS"
13706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13707 echo "$ac_t""yes" 1>&6
13708 have_cyrus_sasl=yes
13710 echo "$ac_t""no" 1>&6
13715 if test $have_cyrus_sasl != no ; then
13717 cat >> confdefs.h <<\EOF
13718 #define HAVE_CYRUS_SASL 1
13725 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
13726 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
13730 if test $cross_compiling != yes ; then
13732 if test -r /dev/urandom ; then
13733 dev="/dev/urandom";
13734 elif test -r /idev/urandom ; then
13735 dev="/idev/urandom";
13736 elif test -r /dev/srandom ; then
13737 dev="/dev/srandom";
13738 elif test -r /dev/random ; then
13740 elif test -r /idev/random ; then
13741 dev="/idev/random";
13744 if test $dev != no ; then
13745 cat >> confdefs.h <<EOF
13746 #define URANDOM_DEVICE "$dev"
13753 if test $ol_with_fetch != no ; then
13755 LIBS="-lfetch -lcom_err $LIBS"
13756 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13757 echo "configure:13758: checking fetch(3) library" >&5
13758 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13759 echo $ac_n "(cached) $ac_c" 1>&6
13762 cat > conftest.$ac_ext <<EOF
13763 #line 13764 "configure"
13764 #include "confdefs.h"
13766 #include <sys/param.h>
13770 struct url *u = fetchParseURL("file:///");
13773 if { (eval echo configure:13774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13775 ol_cv_lib_fetch=yes
13777 echo "configure: failed program was:" >&5
13778 cat conftest.$ac_ext >&5
13785 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13787 if test $ol_cv_lib_fetch != no ; then
13788 ol_link_fetch="-lfetch -lcom_err"
13789 cat >> confdefs.h <<\EOF
13790 #define HAVE_FETCH 1
13796 if test $ol_cv_lib_fetch != no ; then
13797 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13798 ol_link_fetch=freebsd
13800 elif test $ol_with_fetch != auto ; then
13801 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13805 ol_link_readline=no
13806 if test $ol_with_readline != no ; then
13807 for ac_hdr in readline/readline.h readline/history.h
13809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13811 echo "configure:13812: checking for $ac_hdr" >&5
13812 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13813 echo $ac_n "(cached) $ac_c" 1>&6
13815 cat > conftest.$ac_ext <<EOF
13816 #line 13817 "configure"
13817 #include "confdefs.h"
13820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13821 { (eval echo configure:13822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13823 if test -z "$ac_err"; then
13825 eval "ac_cv_header_$ac_safe=yes"
13828 echo "configure: failed program was:" >&5
13829 cat conftest.$ac_ext >&5
13831 eval "ac_cv_header_$ac_safe=no"
13835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13836 echo "$ac_t""yes" 1>&6
13837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13838 cat >> confdefs.h <<EOF
13839 #define $ac_tr_hdr 1
13843 echo "$ac_t""no" 1>&6
13848 if test $ac_cv_header_readline_readline_h = yes ; then
13850 LIBS="$TERMCAP_LIBS $LIBS"
13851 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13852 echo "configure:13853: checking for readline in -lreadline" >&5
13853 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13854 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13855 echo $ac_n "(cached) $ac_c" 1>&6
13857 ac_save_LIBS="$LIBS"
13858 LIBS="-lreadline $LIBS"
13859 cat > conftest.$ac_ext <<EOF
13860 #line 13861 "configure"
13861 #include "confdefs.h"
13862 /* Override any gcc2 internal prototype to avoid an error. */
13863 /* We use char because int might match the return type of a gcc2
13864 builtin and then its argument prototype would still apply. */
13871 if { (eval echo configure:13872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13873 eval "ac_cv_lib_$ac_lib_var=yes"
13875 echo "configure: failed program was:" >&5
13876 cat conftest.$ac_ext >&5
13878 eval "ac_cv_lib_$ac_lib_var=no"
13881 LIBS="$ac_save_LIBS"
13884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13885 echo "$ac_t""yes" 1>&6
13888 echo "$ac_t""no" 1>&6
13894 if test $have_readline = yes ; then
13895 ol_with_readline=found
13896 ol_link_readline=yes
13898 READLINE_LIBS="-lreadline"
13903 if test $ol_link_readline = yes ; then
13904 cat >> confdefs.h <<\EOF
13905 #define HAVE_READLINE 1
13911 if test $ol_enable_crypt != no ; then
13912 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13913 echo "configure:13914: checking for crypt" >&5
13914 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13915 echo $ac_n "(cached) $ac_c" 1>&6
13917 cat > conftest.$ac_ext <<EOF
13918 #line 13919 "configure"
13919 #include "confdefs.h"
13920 /* System header to define __stub macros and hopefully few prototypes,
13921 which can conflict with char crypt(); below. */
13922 #include <assert.h>
13923 /* Override any gcc2 internal prototype to avoid an error. */
13924 /* We use char because int might match the return type of a gcc2
13925 builtin and then its argument prototype would still apply. */
13931 /* The GNU C library defines this for functions which it implements
13932 to always fail with ENOSYS. Some functions are actually named
13933 something starting with __ and the normal name is an alias. */
13934 #if defined (__stub_crypt) || defined (__stub___crypt)
13942 if { (eval echo configure:13943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13944 eval "ac_cv_func_crypt=yes"
13946 echo "configure: failed program was:" >&5
13947 cat conftest.$ac_ext >&5
13949 eval "ac_cv_func_crypt=no"
13954 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13955 echo "$ac_t""yes" 1>&6
13958 echo "$ac_t""no" 1>&6
13960 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13961 echo "configure:13962: checking for crypt in -lcrypt" >&5
13962 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13963 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13964 echo $ac_n "(cached) $ac_c" 1>&6
13966 ac_save_LIBS="$LIBS"
13967 LIBS="-lcrypt $LIBS"
13968 cat > conftest.$ac_ext <<EOF
13969 #line 13970 "configure"
13970 #include "confdefs.h"
13971 /* Override any gcc2 internal prototype to avoid an error. */
13972 /* We use char because int might match the return type of a gcc2
13973 builtin and then its argument prototype would still apply. */
13980 if { (eval echo configure:13981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13982 eval "ac_cv_lib_$ac_lib_var=yes"
13984 echo "configure: failed program was:" >&5
13985 cat conftest.$ac_ext >&5
13987 eval "ac_cv_lib_$ac_lib_var=no"
13990 LIBS="$ac_save_LIBS"
13993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13994 echo "$ac_t""yes" 1>&6
13995 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13998 echo "$ac_t""no" 1>&6
14005 if test $have_crypt = yes ; then
14006 cat >> confdefs.h <<\EOF
14007 #define HAVE_CRYPT 1
14011 echo "configure: warning: could not find crypt" 1>&2
14012 if test $ol_enable_crypt = yes ; then
14013 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
14016 echo "configure: warning: disabling crypt support" 1>&2
14021 if test $ol_enable_proctitle != no ; then
14022 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
14023 echo "configure:14024: checking for setproctitle" >&5
14024 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
14025 echo $ac_n "(cached) $ac_c" 1>&6
14027 cat > conftest.$ac_ext <<EOF
14028 #line 14029 "configure"
14029 #include "confdefs.h"
14030 /* System header to define __stub macros and hopefully few prototypes,
14031 which can conflict with char setproctitle(); below. */
14032 #include <assert.h>
14033 /* Override any gcc2 internal prototype to avoid an error. */
14034 /* We use char because int might match the return type of a gcc2
14035 builtin and then its argument prototype would still apply. */
14036 char setproctitle();
14041 /* The GNU C library defines this for functions which it implements
14042 to always fail with ENOSYS. Some functions are actually named
14043 something starting with __ and the normal name is an alias. */
14044 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
14052 if { (eval echo configure:14053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14054 eval "ac_cv_func_setproctitle=yes"
14056 echo "configure: failed program was:" >&5
14057 cat conftest.$ac_ext >&5
14059 eval "ac_cv_func_setproctitle=no"
14064 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
14065 echo "$ac_t""yes" 1>&6
14066 have_setproctitle=yes
14068 echo "$ac_t""no" 1>&6
14070 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
14071 echo "configure:14072: checking for setproctitle in -lutil" >&5
14072 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
14073 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14074 echo $ac_n "(cached) $ac_c" 1>&6
14076 ac_save_LIBS="$LIBS"
14077 LIBS="-lutil $LIBS"
14078 cat > conftest.$ac_ext <<EOF
14079 #line 14080 "configure"
14080 #include "confdefs.h"
14081 /* Override any gcc2 internal prototype to avoid an error. */
14082 /* We use char because int might match the return type of a gcc2
14083 builtin and then its argument prototype would still apply. */
14084 char setproctitle();
14090 if { (eval echo configure:14091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14092 eval "ac_cv_lib_$ac_lib_var=yes"
14094 echo "configure: failed program was:" >&5
14095 cat conftest.$ac_ext >&5
14097 eval "ac_cv_lib_$ac_lib_var=no"
14100 LIBS="$ac_save_LIBS"
14103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14104 echo "$ac_t""yes" 1>&6
14105 have_setproctitle=yes
14106 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14108 echo "$ac_t""no" 1>&6
14109 have_setproctitle=no
14110 LIBOBJS="$LIBOBJS setproctitle.o"
14111 LIBSRCS="$LIBSRCS setproctitle.c"
14117 if test $have_setproctitle = yes ; then
14118 cat >> confdefs.h <<\EOF
14119 #define HAVE_SETPROCTITLE 1
14125 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14126 echo "configure:14127: checking for ANSI C header files" >&5
14127 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
14128 echo $ac_n "(cached) $ac_c" 1>&6
14130 cat > conftest.$ac_ext <<EOF
14131 #line 14132 "configure"
14132 #include "confdefs.h"
14133 #include <stdlib.h>
14134 #include <stdarg.h>
14135 #include <string.h>
14138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14139 { (eval echo configure:14140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14141 if test -z "$ac_err"; then
14143 ac_cv_header_stdc=yes
14146 echo "configure: failed program was:" >&5
14147 cat conftest.$ac_ext >&5
14149 ac_cv_header_stdc=no
14153 if test $ac_cv_header_stdc = yes; then
14154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14155 cat > conftest.$ac_ext <<EOF
14156 #line 14157 "configure"
14157 #include "confdefs.h"
14158 #include <string.h>
14160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14161 egrep "memchr" >/dev/null 2>&1; then
14165 ac_cv_header_stdc=no
14171 if test $ac_cv_header_stdc = yes; then
14172 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14173 cat > conftest.$ac_ext <<EOF
14174 #line 14175 "configure"
14175 #include "confdefs.h"
14176 #include <stdlib.h>
14178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14179 egrep "free" >/dev/null 2>&1; then
14183 ac_cv_header_stdc=no
14189 if test $ac_cv_header_stdc = yes; then
14190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14191 if test "$cross_compiling" = yes; then
14194 cat > conftest.$ac_ext <<EOF
14195 #line 14196 "configure"
14196 #include "confdefs.h"
14198 #if ((' ' & 0x0FF) == 0x020)
14199 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14200 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14202 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14203 || ('j' <= (c) && (c) <= 'r') \
14204 || ('s' <= (c) && (c) <= 'z'))
14205 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14208 int main () { int i; for (i = 0; i < 256; i++)
14209 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14213 if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14217 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14220 ac_cv_header_stdc=no
14228 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14229 if test $ac_cv_header_stdc = yes; then
14230 cat >> confdefs.h <<\EOF
14231 #define STDC_HEADERS 1
14236 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14237 echo "configure:14238: checking for mode_t" >&5
14238 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
14241 cat > conftest.$ac_ext <<EOF
14242 #line 14243 "configure"
14243 #include "confdefs.h"
14244 #include <sys/types.h>
14246 #include <stdlib.h>
14247 #include <stddef.h>
14251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14252 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14254 eval "ac_cv_type_mode_t=yes"
14257 eval "ac_cv_type_mode_t=no"
14262 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14263 echo "$ac_t""yes" 1>&6
14265 echo "$ac_t""no" 1>&6
14266 cat >> confdefs.h <<EOF
14272 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14273 echo "configure:14274: checking for off_t" >&5
14274 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14275 echo $ac_n "(cached) $ac_c" 1>&6
14277 cat > conftest.$ac_ext <<EOF
14278 #line 14279 "configure"
14279 #include "confdefs.h"
14280 #include <sys/types.h>
14282 #include <stdlib.h>
14283 #include <stddef.h>
14287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14288 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14290 eval "ac_cv_type_off_t=yes"
14293 eval "ac_cv_type_off_t=no"
14298 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14299 echo "$ac_t""yes" 1>&6
14301 echo "$ac_t""no" 1>&6
14302 cat >> confdefs.h <<EOF
14308 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14309 echo "configure:14310: checking for pid_t" >&5
14310 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14311 echo $ac_n "(cached) $ac_c" 1>&6
14313 cat > conftest.$ac_ext <<EOF
14314 #line 14315 "configure"
14315 #include "confdefs.h"
14316 #include <sys/types.h>
14318 #include <stdlib.h>
14319 #include <stddef.h>
14323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14324 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14326 eval "ac_cv_type_pid_t=yes"
14329 eval "ac_cv_type_pid_t=no"
14334 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14335 echo "$ac_t""yes" 1>&6
14337 echo "$ac_t""no" 1>&6
14338 cat >> confdefs.h <<EOF
14344 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14345 echo "configure:14346: checking for ptrdiff_t" >&5
14346 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14347 echo $ac_n "(cached) $ac_c" 1>&6
14349 cat > conftest.$ac_ext <<EOF
14350 #line 14351 "configure"
14351 #include "confdefs.h"
14352 #include <stddef.h>
14357 if { (eval echo configure:14358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14359 am_cv_type_ptrdiff_t=yes
14361 echo "configure: failed program was:" >&5
14362 cat conftest.$ac_ext >&5
14364 am_cv_type_ptrdiff_t=no
14369 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14370 if test $am_cv_type_ptrdiff_t = yes; then
14371 cat >> confdefs.h <<\EOF
14372 #define HAVE_PTRDIFF_T 1
14377 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14378 echo "configure:14379: checking return type of signal handlers" >&5
14379 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14380 echo $ac_n "(cached) $ac_c" 1>&6
14382 cat > conftest.$ac_ext <<EOF
14383 #line 14384 "configure"
14384 #include "confdefs.h"
14385 #include <sys/types.h>
14386 #include <signal.h>
14391 extern "C" void (*signal (int, void (*)(int)))(int);
14393 void (*signal ()) ();
14400 if { (eval echo configure:14401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14402 ac_cv_type_signal=void
14404 echo "configure: failed program was:" >&5
14405 cat conftest.$ac_ext >&5
14407 ac_cv_type_signal=int
14412 echo "$ac_t""$ac_cv_type_signal" 1>&6
14413 cat >> confdefs.h <<EOF
14414 #define RETSIGTYPE $ac_cv_type_signal
14418 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14419 echo "configure:14420: checking for size_t" >&5
14420 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14421 echo $ac_n "(cached) $ac_c" 1>&6
14423 cat > conftest.$ac_ext <<EOF
14424 #line 14425 "configure"
14425 #include "confdefs.h"
14426 #include <sys/types.h>
14428 #include <stdlib.h>
14429 #include <stddef.h>
14433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14434 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14436 eval "ac_cv_type_size_t=yes"
14439 eval "ac_cv_type_size_t=no"
14444 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14445 echo "$ac_t""yes" 1>&6
14447 echo "$ac_t""no" 1>&6
14448 cat >> confdefs.h <<EOF
14449 #define size_t unsigned
14455 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14456 echo "configure:14457: checking for ssize_t" >&5
14457 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14458 echo $ac_n "(cached) $ac_c" 1>&6
14460 cat > conftest.$ac_ext <<EOF
14461 #line 14462 "configure"
14462 #include "confdefs.h"
14463 #include <sys/types.h>
14465 #include <stdlib.h>
14466 #include <stddef.h>
14470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14471 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14473 eval "ac_cv_type_ssize_t=yes"
14476 eval "ac_cv_type_ssize_t=no"
14481 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14482 echo "$ac_t""yes" 1>&6
14484 echo "$ac_t""no" 1>&6
14485 cat >> confdefs.h <<EOF
14486 #define ssize_t signed int
14491 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14492 echo "configure:14493: checking for caddr_t" >&5
14493 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14494 echo $ac_n "(cached) $ac_c" 1>&6
14496 cat > conftest.$ac_ext <<EOF
14497 #line 14498 "configure"
14498 #include "confdefs.h"
14499 #include <sys/types.h>
14501 #include <stdlib.h>
14502 #include <stddef.h>
14506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14507 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14509 eval "ac_cv_type_caddr_t=yes"
14512 eval "ac_cv_type_caddr_t=no"
14517 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14518 echo "$ac_t""yes" 1>&6
14520 echo "$ac_t""no" 1>&6
14521 cat >> confdefs.h <<EOF
14522 #define caddr_t char *
14528 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14529 echo "configure:14530: checking for socklen_t" >&5
14530 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14531 echo $ac_n "(cached) $ac_c" 1>&6
14533 cat > conftest.$ac_ext <<EOF
14534 #line 14535 "configure"
14535 #include "confdefs.h"
14537 #ifdef HAVE_SYS_TYPES_H
14538 #include <sys/types.h>
14540 #ifdef HAVE_SYS_SOCKET_H
14541 #include <sys/socket.h>
14548 if { (eval echo configure:14549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14550 ol_cv_type_socklen_t=yes
14552 echo "configure: failed program was:" >&5
14553 cat conftest.$ac_ext >&5
14555 ol_cv_type_socklen_t=no
14560 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14561 if test $ol_cv_type_socklen_t = no; then
14562 cat >> confdefs.h <<\EOF
14563 #define socklen_t int
14568 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14569 echo "configure:14570: checking for member st_blksize in aggregate type struct stat" >&5
14570 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14571 echo $ac_n "(cached) $ac_c" 1>&6
14573 cat > conftest.$ac_ext <<EOF
14574 #line 14575 "configure"
14575 #include "confdefs.h"
14576 #include <sys/types.h>
14577 #include <sys/stat.h>
14579 struct stat foo; foo.st_blksize;
14582 if { (eval echo configure:14583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14584 ac_cv_c_struct_member_st_blksize=yes
14586 echo "configure: failed program was:" >&5
14587 cat conftest.$ac_ext >&5
14589 ac_cv_c_struct_member_st_blksize=no
14594 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14595 st_blksize="$ac_cv_c_struct_member_st_blksize"
14596 if test $ac_cv_c_struct_member_st_blksize = yes; then
14597 cat >> confdefs.h <<\EOF
14598 #define HAVE_ST_BLKSIZE 1
14603 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14604 echo "configure:14605: checking whether time.h and sys/time.h may both be included" >&5
14605 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14606 echo $ac_n "(cached) $ac_c" 1>&6
14608 cat > conftest.$ac_ext <<EOF
14609 #line 14610 "configure"
14610 #include "confdefs.h"
14611 #include <sys/types.h>
14612 #include <sys/time.h>
14618 if { (eval echo configure:14619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14620 ac_cv_header_time=yes
14622 echo "configure: failed program was:" >&5
14623 cat conftest.$ac_ext >&5
14625 ac_cv_header_time=no
14630 echo "$ac_t""$ac_cv_header_time" 1>&6
14631 if test $ac_cv_header_time = yes; then
14632 cat >> confdefs.h <<\EOF
14633 #define TIME_WITH_SYS_TIME 1
14638 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14639 echo "configure:14640: checking whether struct tm is in sys/time.h or time.h" >&5
14640 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14641 echo $ac_n "(cached) $ac_c" 1>&6
14643 cat > conftest.$ac_ext <<EOF
14644 #line 14645 "configure"
14645 #include "confdefs.h"
14646 #include <sys/types.h>
14649 struct tm *tp; tp->tm_sec;
14652 if { (eval echo configure:14653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14654 ac_cv_struct_tm=time.h
14656 echo "configure: failed program was:" >&5
14657 cat conftest.$ac_ext >&5
14659 ac_cv_struct_tm=sys/time.h
14664 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14665 if test $ac_cv_struct_tm = sys/time.h; then
14666 cat >> confdefs.h <<\EOF
14667 #define TM_IN_SYS_TIME 1
14672 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14673 echo "configure:14674: checking for uid_t in sys/types.h" >&5
14674 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14675 echo $ac_n "(cached) $ac_c" 1>&6
14677 cat > conftest.$ac_ext <<EOF
14678 #line 14679 "configure"
14679 #include "confdefs.h"
14680 #include <sys/types.h>
14682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14683 egrep "uid_t" >/dev/null 2>&1; then
14685 ac_cv_type_uid_t=yes
14688 ac_cv_type_uid_t=no
14694 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14695 if test $ac_cv_type_uid_t = no; then
14696 cat >> confdefs.h <<\EOF
14700 cat >> confdefs.h <<\EOF
14706 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14707 echo "configure:14708: checking for sig_atomic_t" >&5
14708 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14709 echo $ac_n "(cached) $ac_c" 1>&6
14711 cat > conftest.$ac_ext <<EOF
14712 #line 14713 "configure"
14713 #include "confdefs.h"
14714 #include <signal.h>
14716 sig_atomic_t atomic;
14719 if { (eval echo configure:14720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14721 ol_cv_type_sig_atomic_t=yes
14723 echo "configure: failed program was:" >&5
14724 cat conftest.$ac_ext >&5
14726 ol_cv_type_sig_atomic_t=no
14731 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14732 if test $ol_cv_type_sig_atomic_t = no; then
14733 cat >> confdefs.h <<\EOF
14734 #define sig_atomic_t int
14741 # test for pw_gecos in struct passwd
14742 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14743 echo "configure:14744: checking struct passwd for pw_gecos" >&5
14744 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14745 echo $ac_n "(cached) $ac_c" 1>&6
14748 cat > conftest.$ac_ext <<EOF
14749 #line 14750 "configure"
14750 #include "confdefs.h"
14755 pwd.pw_gecos = pwd.pw_name;
14759 if { (eval echo configure:14760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14761 ol_cv_struct_passwd_pw_gecos=yes
14763 echo "configure: failed program was:" >&5
14764 cat conftest.$ac_ext >&5
14766 ol_cv_struct_passwd_pw_gecos=no
14771 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14772 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14773 cat >> confdefs.h <<\EOF
14774 #define HAVE_PW_GECOS 1
14779 # test for pw_passwd in struct passwd
14780 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14781 echo "configure:14782: checking struct passwd for pw_passwd" >&5
14782 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14783 echo $ac_n "(cached) $ac_c" 1>&6
14786 cat > conftest.$ac_ext <<EOF
14787 #line 14788 "configure"
14788 #include "confdefs.h"
14793 pwd.pw_passwd = pwd.pw_name;
14797 if { (eval echo configure:14798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14799 ol_cv_struct_passwd_pw_passwd=yes
14801 echo "configure: failed program was:" >&5
14802 cat conftest.$ac_ext >&5
14804 ol_cv_struct_passwd_pw_passwd=no
14809 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14810 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14811 cat >> confdefs.h <<\EOF
14812 #define HAVE_PW_PASSWD 1
14818 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14819 echo "configure:14820: checking if toupper() requires islower()" >&5
14820 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14821 echo $ac_n "(cached) $ac_c" 1>&6
14824 if test "$cross_compiling" = yes; then
14825 ol_cv_c_upper_lower=safe
14827 cat > conftest.$ac_ext <<EOF
14828 #line 14829 "configure"
14829 #include "confdefs.h"
14834 if ('C' == toupper('C'))
14840 if { (eval echo configure:14841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14842 ol_cv_c_upper_lower=no
14844 echo "configure: failed program was:" >&5
14845 cat conftest.$ac_ext >&5
14847 ol_cv_c_upper_lower=yes
14854 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14855 if test $ol_cv_c_upper_lower != no ; then
14856 cat >> confdefs.h <<\EOF
14857 #define C_UPPER_LOWER 1
14862 echo $ac_n "checking for working const""... $ac_c" 1>&6
14863 echo "configure:14864: checking for working const" >&5
14864 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14865 echo $ac_n "(cached) $ac_c" 1>&6
14867 cat > conftest.$ac_ext <<EOF
14868 #line 14869 "configure"
14869 #include "confdefs.h"
14873 /* Ultrix mips cc rejects this. */
14874 typedef int charset[2]; const charset x;
14875 /* SunOS 4.1.1 cc rejects this. */
14876 char const *const *ccp;
14878 /* NEC SVR4.0.2 mips cc rejects this. */
14879 struct point {int x, y;};
14880 static struct point const zero = {0,0};
14881 /* AIX XL C 1.02.0.0 rejects this.
14882 It does not let you subtract one const X* pointer from another in an arm
14883 of an if-expression whose if-part is not a constant expression */
14884 const char *g = "string";
14885 ccp = &g + (g ? g-g : 0);
14886 /* HPUX 7.0 cc rejects these. */
14889 ccp = (char const *const *) p;
14890 { /* SCO 3.2v4 cc rejects this. */
14892 char const *s = 0 ? (char *) 0 : (char const *) 0;
14896 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14897 int x[] = {25, 17};
14898 const int *foo = &x[0];
14901 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14902 typedef const int *iptr;
14906 { /* AIX XL C 1.02.0.0 rejects this saying
14907 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14908 struct s { int j; const int *ap[3]; };
14909 struct s *b; b->j = 5;
14911 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14912 const int foo = 10;
14917 if { (eval echo configure:14918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14921 echo "configure: failed program was:" >&5
14922 cat conftest.$ac_ext >&5
14929 echo "$ac_t""$ac_cv_c_const" 1>&6
14930 if test $ac_cv_c_const = no; then
14931 cat >> confdefs.h <<\EOF
14937 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14938 echo "configure:14939: checking if compiler understands volatile" >&5
14939 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14940 echo $ac_n "(cached) $ac_c" 1>&6
14942 cat > conftest.$ac_ext <<EOF
14943 #line 14944 "configure"
14944 #include "confdefs.h"
14947 volatile int a; int * volatile b = x ? &y : &z;
14948 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14952 if { (eval echo configure:14953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14954 ol_cv_c_volatile=yes
14956 echo "configure: failed program was:" >&5
14957 cat conftest.$ac_ext >&5
14959 ol_cv_c_volatile=no
14964 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14965 if test $ol_cv_c_volatile = yes; then
14968 cat >> confdefs.h <<\EOF
14975 if test $cross_compiling = yes ; then
14976 cat >> confdefs.h <<\EOF
14977 #define CROSS_COMPILING 1
14981 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14982 echo "configure:14983: checking whether byte ordering is bigendian" >&5
14983 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14984 echo $ac_n "(cached) $ac_c" 1>&6
14986 ac_cv_c_bigendian=unknown
14987 # See if sys/param.h defines the BYTE_ORDER macro.
14988 cat > conftest.$ac_ext <<EOF
14989 #line 14990 "configure"
14990 #include "confdefs.h"
14991 #include <sys/types.h>
14992 #include <sys/param.h>
14995 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14996 bogus endian macros
15000 if { (eval echo configure:15001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15002 # It does; now see whether it defined to BIG_ENDIAN or not.
15003 cat > conftest.$ac_ext <<EOF
15004 #line 15005 "configure"
15005 #include "confdefs.h"
15006 #include <sys/types.h>
15007 #include <sys/param.h>
15010 #if BYTE_ORDER != BIG_ENDIAN
15015 if { (eval echo configure:15016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15017 ac_cv_c_bigendian=yes
15019 echo "configure: failed program was:" >&5
15020 cat conftest.$ac_ext >&5
15022 ac_cv_c_bigendian=no
15026 echo "configure: failed program was:" >&5
15027 cat conftest.$ac_ext >&5
15030 if test $ac_cv_c_bigendian = unknown; then
15031 if test "$cross_compiling" = yes; then
15032 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15034 cat > conftest.$ac_ext <<EOF
15035 #line 15036 "configure"
15036 #include "confdefs.h"
15038 /* Are we little or big endian? From Harbison&Steele. */
15042 char c[sizeof (long)];
15045 exit (u.c[sizeof (long) - 1] == 1);
15048 if { (eval echo configure:15049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15050 ac_cv_c_bigendian=no
15052 echo "configure: failed program was:" >&5
15053 cat conftest.$ac_ext >&5
15055 ac_cv_c_bigendian=yes
15063 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15064 if test $ac_cv_c_bigendian = yes; then
15065 cat >> confdefs.h <<\EOF
15066 #define WORDS_BIGENDIAN 1
15073 echo $ac_n "checking size of short""... $ac_c" 1>&6
15074 echo "configure:15075: checking size of short" >&5
15075 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
15076 echo $ac_n "(cached) $ac_c" 1>&6
15078 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15079 cat > conftest.$ac_ext <<EOF
15080 #line 15081 "configure"
15081 #include "confdefs.h"
15082 #include "confdefs.h"
15083 #include <sys/types.h>
15087 switch (0) case 0: case (sizeof (short) == $ac_size):;
15090 if { (eval echo configure:15091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15092 ac_cv_sizeof_short=$ac_size
15094 echo "configure: failed program was:" >&5
15095 cat conftest.$ac_ext >&5
15098 if test x$ac_cv_sizeof_short != x ; then break; fi
15103 if test x$ac_cv_sizeof_short = x ; then
15104 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15106 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15107 cat >> confdefs.h <<EOF
15108 #define SIZEOF_SHORT $ac_cv_sizeof_short
15112 echo $ac_n "checking size of int""... $ac_c" 1>&6
15113 echo "configure:15114: checking size of int" >&5
15114 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15115 echo $ac_n "(cached) $ac_c" 1>&6
15117 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15118 cat > conftest.$ac_ext <<EOF
15119 #line 15120 "configure"
15120 #include "confdefs.h"
15121 #include "confdefs.h"
15122 #include <sys/types.h>
15126 switch (0) case 0: case (sizeof (int) == $ac_size):;
15129 if { (eval echo configure:15130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15131 ac_cv_sizeof_int=$ac_size
15133 echo "configure: failed program was:" >&5
15134 cat conftest.$ac_ext >&5
15137 if test x$ac_cv_sizeof_int != x ; then break; fi
15142 if test x$ac_cv_sizeof_int = x ; then
15143 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
15145 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15146 cat >> confdefs.h <<EOF
15147 #define SIZEOF_INT $ac_cv_sizeof_int
15151 echo $ac_n "checking size of long""... $ac_c" 1>&6
15152 echo "configure:15153: checking size of long" >&5
15153 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15154 echo $ac_n "(cached) $ac_c" 1>&6
15156 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15157 cat > conftest.$ac_ext <<EOF
15158 #line 15159 "configure"
15159 #include "confdefs.h"
15160 #include "confdefs.h"
15161 #include <sys/types.h>
15165 switch (0) case 0: case (sizeof (long) == $ac_size):;
15168 if { (eval echo configure:15169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15170 ac_cv_sizeof_long=$ac_size
15172 echo "configure: failed program was:" >&5
15173 cat conftest.$ac_ext >&5
15176 if test x$ac_cv_sizeof_long != x ; then break; fi
15181 if test x$ac_cv_sizeof_long = x ; then
15182 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15184 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15185 cat >> confdefs.h <<EOF
15186 #define SIZEOF_LONG $ac_cv_sizeof_long
15191 if test "$ac_cv_sizeof_int" -lt 4 ; then
15192 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15194 cat >> confdefs.h <<\EOF
15195 #define LBER_INT_T long
15199 cat >> confdefs.h <<\EOF
15200 #define LBER_INT_T int
15205 cat >> confdefs.h <<\EOF
15206 #define LBER_LEN_T long
15209 cat >> confdefs.h <<\EOF
15210 #define LBER_SOCKET_T int
15213 cat >> confdefs.h <<\EOF
15214 #define LBER_TAG_T long
15218 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15219 echo "configure:15220: checking for 8-bit clean memcmp" >&5
15220 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15221 echo $ac_n "(cached) $ac_c" 1>&6
15223 if test "$cross_compiling" = yes; then
15224 ac_cv_func_memcmp_clean=no
15226 cat > conftest.$ac_ext <<EOF
15227 #line 15228 "configure"
15228 #include "confdefs.h"
15232 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15233 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15237 if { (eval echo configure:15238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15239 ac_cv_func_memcmp_clean=yes
15241 echo "configure: failed program was:" >&5
15242 cat conftest.$ac_ext >&5
15244 ac_cv_func_memcmp_clean=no
15251 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15252 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15254 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15255 echo "configure:15256: checking for strftime" >&5
15256 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15257 echo $ac_n "(cached) $ac_c" 1>&6
15259 cat > conftest.$ac_ext <<EOF
15260 #line 15261 "configure"
15261 #include "confdefs.h"
15262 /* System header to define __stub macros and hopefully few prototypes,
15263 which can conflict with char strftime(); below. */
15264 #include <assert.h>
15265 /* Override any gcc2 internal prototype to avoid an error. */
15266 /* We use char because int might match the return type of a gcc2
15267 builtin and then its argument prototype would still apply. */
15273 /* The GNU C library defines this for functions which it implements
15274 to always fail with ENOSYS. Some functions are actually named
15275 something starting with __ and the normal name is an alias. */
15276 #if defined (__stub_strftime) || defined (__stub___strftime)
15284 if { (eval echo configure:15285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15286 eval "ac_cv_func_strftime=yes"
15288 echo "configure: failed program was:" >&5
15289 cat conftest.$ac_ext >&5
15291 eval "ac_cv_func_strftime=no"
15296 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15297 echo "$ac_t""yes" 1>&6
15298 cat >> confdefs.h <<\EOF
15299 #define HAVE_STRFTIME 1
15303 echo "$ac_t""no" 1>&6
15304 # strftime is in -lintl on SCO UNIX.
15305 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15306 echo "configure:15307: checking for strftime in -lintl" >&5
15307 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15308 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15309 echo $ac_n "(cached) $ac_c" 1>&6
15311 ac_save_LIBS="$LIBS"
15312 LIBS="-lintl $LIBS"
15313 cat > conftest.$ac_ext <<EOF
15314 #line 15315 "configure"
15315 #include "confdefs.h"
15316 /* Override any gcc2 internal prototype to avoid an error. */
15317 /* We use char because int might match the return type of a gcc2
15318 builtin and then its argument prototype would still apply. */
15325 if { (eval echo configure:15326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15327 eval "ac_cv_lib_$ac_lib_var=yes"
15329 echo "configure: failed program was:" >&5
15330 cat conftest.$ac_ext >&5
15332 eval "ac_cv_lib_$ac_lib_var=no"
15335 LIBS="$ac_save_LIBS"
15338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15339 echo "$ac_t""yes" 1>&6
15340 cat >> confdefs.h <<\EOF
15341 #define HAVE_STRFTIME 1
15344 LIBS="-lintl $LIBS"
15346 echo "$ac_t""no" 1>&6
15352 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15353 echo "configure:15354: checking for inet_aton()" >&5
15354 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15355 echo $ac_n "(cached) $ac_c" 1>&6
15357 cat > conftest.$ac_ext <<EOF
15358 #line 15359 "configure"
15359 #include "confdefs.h"
15361 #ifdef HAVE_SYS_TYPES_H
15362 # include <sys/types.h>
15364 #ifdef HAVE_SYS_SOCKET_H
15365 # include <sys/socket.h>
15366 # ifdef HAVE_SYS_SELECT_H
15367 # include <sys/select.h>
15369 # include <netinet/in.h>
15370 # ifdef HAVE_ARPA_INET_H
15371 # include <arpa/inet.h>
15377 int rc = inet_aton( "255.255.255.255", &in );
15380 if { (eval echo configure:15381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15382 ol_cv_func_inet_aton=yes
15384 echo "configure: failed program was:" >&5
15385 cat conftest.$ac_ext >&5
15387 ol_cv_func_inet_aton=no
15392 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15393 if test $ol_cv_func_inet_aton != no; then
15394 cat >> confdefs.h <<\EOF
15395 #define HAVE_INET_ATON 1
15401 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15402 echo "configure:15403: checking for _spawnlp" >&5
15403 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15404 echo $ac_n "(cached) $ac_c" 1>&6
15406 cat > conftest.$ac_ext <<EOF
15407 #line 15408 "configure"
15408 #include "confdefs.h"
15409 /* System header to define __stub macros and hopefully few prototypes,
15410 which can conflict with char _spawnlp(); below. */
15411 #include <assert.h>
15412 /* Override any gcc2 internal prototype to avoid an error. */
15413 /* We use char because int might match the return type of a gcc2
15414 builtin and then its argument prototype would still apply. */
15420 /* The GNU C library defines this for functions which it implements
15421 to always fail with ENOSYS. Some functions are actually named
15422 something starting with __ and the normal name is an alias. */
15423 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15431 if { (eval echo configure:15432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15433 eval "ac_cv_func__spawnlp=yes"
15435 echo "configure: failed program was:" >&5
15436 cat conftest.$ac_ext >&5
15438 eval "ac_cv_func__spawnlp=no"
15443 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15444 echo "$ac_t""yes" 1>&6
15445 cat >> confdefs.h <<\EOF
15446 #define HAVE_SPAWNLP 1
15450 echo "$ac_t""no" 1>&6
15454 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15455 echo "configure:15456: checking for _snprintf" >&5
15456 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15457 echo $ac_n "(cached) $ac_c" 1>&6
15459 cat > conftest.$ac_ext <<EOF
15460 #line 15461 "configure"
15461 #include "confdefs.h"
15462 /* System header to define __stub macros and hopefully few prototypes,
15463 which can conflict with char _snprintf(); below. */
15464 #include <assert.h>
15465 /* Override any gcc2 internal prototype to avoid an error. */
15466 /* We use char because int might match the return type of a gcc2
15467 builtin and then its argument prototype would still apply. */
15473 /* The GNU C library defines this for functions which it implements
15474 to always fail with ENOSYS. Some functions are actually named
15475 something starting with __ and the normal name is an alias. */
15476 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15484 if { (eval echo configure:15485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15486 eval "ac_cv_func__snprintf=yes"
15488 echo "configure: failed program was:" >&5
15489 cat conftest.$ac_ext >&5
15491 eval "ac_cv_func__snprintf=no"
15496 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15497 echo "$ac_t""yes" 1>&6
15498 ac_cv_func_snprintf=yes
15499 cat >> confdefs.h <<\EOF
15500 #define snprintf _snprintf
15505 echo "$ac_t""no" 1>&6
15509 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15510 echo "configure:15511: checking for _vsnprintf" >&5
15511 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15512 echo $ac_n "(cached) $ac_c" 1>&6
15514 cat > conftest.$ac_ext <<EOF
15515 #line 15516 "configure"
15516 #include "confdefs.h"
15517 /* System header to define __stub macros and hopefully few prototypes,
15518 which can conflict with char _vsnprintf(); below. */
15519 #include <assert.h>
15520 /* Override any gcc2 internal prototype to avoid an error. */
15521 /* We use char because int might match the return type of a gcc2
15522 builtin and then its argument prototype would still apply. */
15528 /* The GNU C library defines this for functions which it implements
15529 to always fail with ENOSYS. Some functions are actually named
15530 something starting with __ and the normal name is an alias. */
15531 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15539 if { (eval echo configure:15540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15541 eval "ac_cv_func__vsnprintf=yes"
15543 echo "configure: failed program was:" >&5
15544 cat conftest.$ac_ext >&5
15546 eval "ac_cv_func__vsnprintf=no"
15551 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15552 echo "$ac_t""yes" 1>&6
15553 ac_cv_func_vsnprintf=yes
15554 cat >> confdefs.h <<\EOF
15555 #define vsnprintf _vsnprintf
15560 echo "$ac_t""no" 1>&6
15564 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15565 echo "configure:15566: checking for vprintf" >&5
15566 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15567 echo $ac_n "(cached) $ac_c" 1>&6
15569 cat > conftest.$ac_ext <<EOF
15570 #line 15571 "configure"
15571 #include "confdefs.h"
15572 /* System header to define __stub macros and hopefully few prototypes,
15573 which can conflict with char vprintf(); below. */
15574 #include <assert.h>
15575 /* Override any gcc2 internal prototype to avoid an error. */
15576 /* We use char because int might match the return type of a gcc2
15577 builtin and then its argument prototype would still apply. */
15583 /* The GNU C library defines this for functions which it implements
15584 to always fail with ENOSYS. Some functions are actually named
15585 something starting with __ and the normal name is an alias. */
15586 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15594 if { (eval echo configure:15595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15596 eval "ac_cv_func_vprintf=yes"
15598 echo "configure: failed program was:" >&5
15599 cat conftest.$ac_ext >&5
15601 eval "ac_cv_func_vprintf=no"
15606 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15607 echo "$ac_t""yes" 1>&6
15608 cat >> confdefs.h <<\EOF
15609 #define HAVE_VPRINTF 1
15613 echo "$ac_t""no" 1>&6
15616 if test "$ac_cv_func_vprintf" != yes; then
15617 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15618 echo "configure:15619: checking for _doprnt" >&5
15619 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15620 echo $ac_n "(cached) $ac_c" 1>&6
15622 cat > conftest.$ac_ext <<EOF
15623 #line 15624 "configure"
15624 #include "confdefs.h"
15625 /* System header to define __stub macros and hopefully few prototypes,
15626 which can conflict with char _doprnt(); below. */
15627 #include <assert.h>
15628 /* Override any gcc2 internal prototype to avoid an error. */
15629 /* We use char because int might match the return type of a gcc2
15630 builtin and then its argument prototype would still apply. */
15636 /* The GNU C library defines this for functions which it implements
15637 to always fail with ENOSYS. Some functions are actually named
15638 something starting with __ and the normal name is an alias. */
15639 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15647 if { (eval echo configure:15648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15649 eval "ac_cv_func__doprnt=yes"
15651 echo "configure: failed program was:" >&5
15652 cat conftest.$ac_ext >&5
15654 eval "ac_cv_func__doprnt=no"
15659 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15660 echo "$ac_t""yes" 1>&6
15661 cat >> confdefs.h <<\EOF
15662 #define HAVE_DOPRNT 1
15666 echo "$ac_t""no" 1>&6
15672 if test $ac_cv_func_vprintf = yes ; then
15673 for ac_func in vsnprintf vsprintf
15675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15676 echo "configure:15677: checking for $ac_func" >&5
15677 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15678 echo $ac_n "(cached) $ac_c" 1>&6
15680 cat > conftest.$ac_ext <<EOF
15681 #line 15682 "configure"
15682 #include "confdefs.h"
15683 /* System header to define __stub macros and hopefully few prototypes,
15684 which can conflict with char $ac_func(); below. */
15685 #include <assert.h>
15686 /* Override any gcc2 internal prototype to avoid an error. */
15687 /* We use char because int might match the return type of a gcc2
15688 builtin and then its argument prototype would still apply. */
15694 /* The GNU C library defines this for functions which it implements
15695 to always fail with ENOSYS. Some functions are actually named
15696 something starting with __ and the normal name is an alias. */
15697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15705 if { (eval echo configure:15706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15707 eval "ac_cv_func_$ac_func=yes"
15709 echo "configure: failed program was:" >&5
15710 cat conftest.$ac_ext >&5
15712 eval "ac_cv_func_$ac_func=no"
15717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15718 echo "$ac_t""yes" 1>&6
15719 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15720 cat >> confdefs.h <<EOF
15721 #define $ac_tr_func 1
15725 echo "$ac_t""no" 1>&6
15783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15784 echo "configure:15785: checking for $ac_func" >&5
15785 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15786 echo $ac_n "(cached) $ac_c" 1>&6
15788 cat > conftest.$ac_ext <<EOF
15789 #line 15790 "configure"
15790 #include "confdefs.h"
15791 /* System header to define __stub macros and hopefully few prototypes,
15792 which can conflict with char $ac_func(); below. */
15793 #include <assert.h>
15794 /* Override any gcc2 internal prototype to avoid an error. */
15795 /* We use char because int might match the return type of a gcc2
15796 builtin and then its argument prototype would still apply. */
15802 /* The GNU C library defines this for functions which it implements
15803 to always fail with ENOSYS. Some functions are actually named
15804 something starting with __ and the normal name is an alias. */
15805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15813 if { (eval echo configure:15814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15815 eval "ac_cv_func_$ac_func=yes"
15817 echo "configure: failed program was:" >&5
15818 cat conftest.$ac_ext >&5
15820 eval "ac_cv_func_$ac_func=no"
15825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15826 echo "$ac_t""yes" 1>&6
15827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15828 cat >> confdefs.h <<EOF
15829 #define $ac_tr_func 1
15833 echo "$ac_t""no" 1>&6
15838 for ac_func in getopt tempnam
15840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15841 echo "configure:15842: checking for $ac_func" >&5
15842 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15843 echo $ac_n "(cached) $ac_c" 1>&6
15845 cat > conftest.$ac_ext <<EOF
15846 #line 15847 "configure"
15847 #include "confdefs.h"
15848 /* System header to define __stub macros and hopefully few prototypes,
15849 which can conflict with char $ac_func(); below. */
15850 #include <assert.h>
15851 /* Override any gcc2 internal prototype to avoid an error. */
15852 /* We use char because int might match the return type of a gcc2
15853 builtin and then its argument prototype would still apply. */
15859 /* The GNU C library defines this for functions which it implements
15860 to always fail with ENOSYS. Some functions are actually named
15861 something starting with __ and the normal name is an alias. */
15862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15870 if { (eval echo configure:15871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15872 eval "ac_cv_func_$ac_func=yes"
15874 echo "configure: failed program was:" >&5
15875 cat conftest.$ac_ext >&5
15877 eval "ac_cv_func_$ac_func=no"
15882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15883 echo "$ac_t""yes" 1>&6
15884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15885 cat >> confdefs.h <<EOF
15886 #define $ac_tr_func 1
15890 echo "$ac_t""no" 1>&6
15891 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15897 if test "$ac_cv_func_getopt" != yes; then
15898 LIBSRCS="$LIBSRCS getopt.c"
15901 if test "$ac_cv_func_tempnam" != yes; then
15902 LIBSRCS="$LIBSRCS tempnam.c"
15905 # Check Configuration
15906 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15907 echo "configure:15908: checking declaration of sys_errlist" >&5
15908 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15909 echo $ac_n "(cached) $ac_c" 1>&6
15912 cat > conftest.$ac_ext <<EOF
15913 #line 15914 "configure"
15914 #include "confdefs.h"
15917 #include <sys/types.h>
15920 #include <stdlib.h>
15923 char *c = (char *) *sys_errlist
15926 if { (eval echo configure:15927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15928 ol_cv_dcl_sys_errlist=yes
15929 ol_cv_have_sys_errlist=yes
15931 echo "configure: failed program was:" >&5
15932 cat conftest.$ac_ext >&5
15934 ol_cv_dcl_sys_errlist=no
15939 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15941 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15942 if test $ol_cv_dcl_sys_errlist = no ; then
15943 cat >> confdefs.h <<\EOF
15944 #define DECL_SYS_ERRLIST 1
15948 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15949 echo "configure:15950: checking existence of sys_errlist" >&5
15950 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15951 echo $ac_n "(cached) $ac_c" 1>&6
15954 cat > conftest.$ac_ext <<EOF
15955 #line 15956 "configure"
15956 #include "confdefs.h"
15959 char *c = (char *) *sys_errlist
15962 if { (eval echo configure:15963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15964 ol_cv_have_sys_errlist=yes
15966 echo "configure: failed program was:" >&5
15967 cat conftest.$ac_ext >&5
15969 ol_cv_have_sys_errlist=no
15974 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15976 if test $ol_cv_have_sys_errlist = yes ; then
15977 cat >> confdefs.h <<\EOF
15978 #define HAVE_SYS_ERRLIST 1
15985 if test "$ol_enable_debug" != no ; then
15986 cat >> confdefs.h <<\EOF
15987 #define LDAP_DEBUG 1
15991 if test "$ol_enable_syslog" = yes ; then
15992 cat >> confdefs.h <<\EOF
15993 #define LDAP_SYSLOG 1
15997 if test "$ol_enable_libui" = yes ; then
15998 cat >> confdefs.h <<\EOF
15999 #define LDAP_LIBUI 1
16003 if test "$ol_enable_cache" = no ; then
16004 cat >> confdefs.h <<\EOF
16005 #define LDAP_NOCACHE 1
16009 if test "$ol_link_kbind" != no ; then
16010 cat >> confdefs.h <<\EOF
16011 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
16015 if test "$ol_enable_dns" != no ; then
16016 cat >> confdefs.h <<\EOF
16017 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
16021 if test "$ol_enable_proctitle" != no ; then
16022 cat >> confdefs.h <<\EOF
16023 #define LDAP_PROCTITLE 1
16027 if test "$ol_enable_referrals" != no ; then
16028 cat >> confdefs.h <<\EOF
16029 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
16033 if test "$ol_enable_cldap" != no ; then
16034 cat >> confdefs.h <<\EOF
16035 #define LDAP_CONNECTIONLESS 1
16039 if test "$ol_enable_ldapi" != no; then
16040 cat >> confdefs.h <<\EOF
16041 #define USE_PF_LOCAL 1
16046 if test "$ol_enable_cleartext" != no ; then
16047 cat >> confdefs.h <<\EOF
16048 #define SLAPD_CLEARTEXT 1
16052 if test "$ol_enable_crypt" != no ; then
16053 cat >> confdefs.h <<\EOF
16054 #define SLAPD_CRYPT 1
16058 if test "$ol_link_kpasswd" != no ; then
16059 cat >> confdefs.h <<\EOF
16060 #define SLAPD_KPASSWD 1
16064 if test "$ol_link_spasswd" != no ; then
16065 cat >> confdefs.h <<\EOF
16066 #define SLAPD_SPASSWD 1
16070 if test "$ol_enable_multimaster" != no ; then
16071 cat >> confdefs.h <<\EOF
16072 #define SLAPD_MULTIMASTER 1
16076 if test "$ol_enable_phonetic" != no ; then
16077 cat >> confdefs.h <<\EOF
16078 #define SLAPD_PHONETIC 1
16082 if test "$ol_enable_rlookups" != no ; then
16083 cat >> confdefs.h <<\EOF
16084 #define SLAPD_RLOOKUPS 1
16088 if test "$ol_enable_aci" != no ; then
16089 cat >> confdefs.h <<\EOF
16090 #define SLAPD_ACI_ENABLED 1
16095 if test "$ol_link_modules" != no ; then
16096 cat >> confdefs.h <<\EOF
16097 #define SLAPD_MODULES 1
16101 SLAPD_MODULES_LDFLAGS="-dlopen self"
16104 if test "$ol_link_bdb2" != no ; then
16105 cat >> confdefs.h <<\EOF
16106 #define SLAPD_BDB2 1
16111 if test "$ol_with_bdb2_module" != static ; then
16112 cat >> confdefs.h <<\EOF
16113 #define SLAPD_BDB2_DYNAMIC 1
16117 BUILD_BDB2_DYNAMIC=shared
16118 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
16122 if test "$ol_enable_dnssrv" != no ; then
16123 cat >> confdefs.h <<\EOF
16124 #define SLAPD_DNSSRV 1
16129 if test "$ol_with_dnssrv_module" != static ; then
16130 cat >> confdefs.h <<\EOF
16131 #define SLAPD_DNSSRV_DYNAMIC 1
16135 BUILD_DNSSRV_DYNAMIC=shared
16136 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16140 if test "$ol_enable_ldap" != no ; then
16141 cat >> confdefs.h <<\EOF
16142 #define SLAPD_LDAP 1
16147 if test "$ol_with_ldap_module" != static ; then
16148 cat >> confdefs.h <<\EOF
16149 #define SLAPD_LDAP_DYNAMIC 1
16153 BUILD_LDAP_DYNAMIC=shared
16154 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
16158 if test "$ol_link_ldbm" != no ; then
16159 cat >> confdefs.h <<\EOF
16160 #define SLAPD_LDBM 1
16165 if test "$ol_with_ldbm_module" != static ; then
16166 cat >> confdefs.h <<\EOF
16167 #define SLAPD_LDBM_DYNAMIC 1
16171 BUILD_LDBM_DYNAMIC=shared
16172 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
16176 if test "$ol_enable_passwd" != no ; then
16177 cat >> confdefs.h <<\EOF
16178 #define SLAPD_PASSWD 1
16183 if test "$ol_with_passwd_module" != static ; then
16184 cat >> confdefs.h <<\EOF
16185 #define SLAPD_PASSWD_DYNAMIC 1
16189 BUILD_PASSWD_DYNAMIC=shared
16190 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16194 if test "$ol_link_perl" != no ; then
16195 cat >> confdefs.h <<\EOF
16196 #define SLAPD_PERL 1
16201 if test "$ol_with_perl_module" != static ; then
16202 cat >> confdefs.h <<\EOF
16203 #define SLAPD_PERL_DYNAMIC 1
16207 BUILD_PERL_DYNAMIC=shared
16208 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16212 if test "$ol_enable_shell" != no ; then
16213 cat >> confdefs.h <<\EOF
16214 #define SLAPD_SHELL 1
16219 if test "$ol_with_shell_module" != static ; then
16220 cat >> confdefs.h <<\EOF
16221 #define SLAPD_SHELL_DYNAMIC 1
16225 BUILD_SHELL_DYNAMIC=shared
16226 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16230 if test "$ol_enable_tcl" != no ; then
16231 cat >> confdefs.h <<\EOF
16232 #define SLAPD_TCL 1
16237 if test "$ol_with_tcl_module" != static; then
16238 cat >> confdefs.h <<\EOF
16239 #define SLAPD_TCL_DYNAMIC 1
16243 BUILD_TCL_DYNAMIC=shared
16244 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16248 if test "$ol_enable_sql" != no ; then
16249 cat >> confdefs.h <<\EOF
16250 #define SLAPD_SQL 1
16255 SLAPD_SQL_LIBS=-liodbc
16256 if test "$ol_with_sql_module" != static; then
16257 cat >> confdefs.h <<\EOF
16258 #define SLAPD_SQL_DYNAMIC 1
16262 BUILD_SQL_DYNAMIC=shared
16263 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16267 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16268 $BUILD_SLAPD = yes ; then
16272 if test "$ol_link_isode" != no ; then
16277 if test "$LINK_BINS_DYNAMIC" = yes; then
16279 LT_LIB_LINKAGE=shared
16282 LT_LIB_LINKAGE=static
16285 if test "$ac_cv_mingw32" = yes ; then
16359 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16361 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16362 # Let make expand exec_prefix.
16363 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16365 # Any assignment to VPATH causes Sun make to only execute
16366 # the first set of double-colon rules, so remove it if not needed.
16367 # If there is a colon in the path, we need to keep it.
16368 if test "x$srcdir" = x.; then
16369 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16372 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16374 DEFS=-DHAVE_CONFIG_H
16376 # Without the "./", some shells look in PATH for config.status.
16377 : ${CONFIG_STATUS=./config.status}
16379 echo creating $CONFIG_STATUS
16380 rm -f $CONFIG_STATUS
16381 cat > $CONFIG_STATUS <<EOF
16383 # Generated automatically by configure.
16384 # Run this file to recreate the current configuration.
16385 # This directory was configured as follows,
16386 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16388 # $0 $ac_configure_args
16390 # Compiler output produced by configure, useful for debugging
16391 # configure, is in ./config.log if it exists.
16393 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16396 case "\$ac_option" in
16397 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16398 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16399 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16400 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16401 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16403 -help | --help | --hel | --he | --h)
16404 echo "\$ac_cs_usage"; exit 0 ;;
16405 *) echo "\$ac_cs_usage"; exit 1 ;;
16409 ac_given_srcdir=$srcdir
16410 ac_given_INSTALL="$INSTALL"
16412 trap 'rm -fr `echo "\
16413 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16414 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16415 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16416 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16417 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16418 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16419 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16420 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16421 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16422 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16423 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16424 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16425 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16426 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16427 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16428 include/Makefile:build/top.mk:include/Makefile.in \
16429 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16430 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16431 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16432 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16433 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16434 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16435 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16436 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16437 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16438 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16439 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
16440 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16441 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16442 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16443 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16444 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16445 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16446 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16447 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16448 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16449 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16450 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16451 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16452 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16453 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16454 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16455 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16456 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16457 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16458 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16460 cat >> $CONFIG_STATUS <<EOF
16462 # Protect against being on the right side of a sed subst in config.status.
16463 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16464 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16468 s%@CFLAGS@%$CFLAGS%g
16469 s%@CPPFLAGS@%$CPPFLAGS%g
16470 s%@CXXFLAGS@%$CXXFLAGS%g
16471 s%@FFLAGS@%$FFLAGS%g
16473 s%@LDFLAGS@%$LDFLAGS%g
16475 s%@exec_prefix@%$exec_prefix%g
16476 s%@prefix@%$prefix%g
16477 s%@program_transform_name@%$program_transform_name%g
16478 s%@bindir@%$bindir%g
16479 s%@sbindir@%$sbindir%g
16480 s%@libexecdir@%$libexecdir%g
16481 s%@datadir@%$datadir%g
16482 s%@sysconfdir@%$sysconfdir%g
16483 s%@sharedstatedir@%$sharedstatedir%g
16484 s%@localstatedir@%$localstatedir%g
16485 s%@libdir@%$libdir%g
16486 s%@includedir@%$includedir%g
16487 s%@oldincludedir@%$oldincludedir%g
16488 s%@infodir@%$infodir%g
16489 s%@mandir@%$mandir%g
16491 s%@host_alias@%$host_alias%g
16492 s%@host_cpu@%$host_cpu%g
16493 s%@host_vendor@%$host_vendor%g
16494 s%@host_os@%$host_os%g
16495 s%@target@%$target%g
16496 s%@target_alias@%$target_alias%g
16497 s%@target_cpu@%$target_cpu%g
16498 s%@target_vendor@%$target_vendor%g
16499 s%@target_os@%$target_os%g
16501 s%@build_alias@%$build_alias%g
16502 s%@build_cpu@%$build_cpu%g
16503 s%@build_vendor@%$build_vendor%g
16504 s%@build_os@%$build_os%g
16505 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16506 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16507 s%@INSTALL_DATA@%$INSTALL_DATA%g
16508 s%@PACKAGE@%$PACKAGE%g
16509 s%@VERSION@%$VERSION%g
16510 s%@ACLOCAL@%$ACLOCAL%g
16511 s%@AUTOCONF@%$AUTOCONF%g
16512 s%@AUTOMAKE@%$AUTOMAKE%g
16513 s%@AUTOHEADER@%$AUTOHEADER%g
16514 s%@MAKEINFO@%$MAKEINFO%g
16515 s%@install_sh@%$install_sh%g
16518 s%@AMTARFLAGS@%$AMTARFLAGS%g
16519 s%@SET_MAKE@%$SET_MAKE%g
16520 s%@top_builddir@%$top_builddir%g
16521 s%@ldap_subdir@%$ldap_subdir%g
16523 s%@RANLIB@%$RANLIB%g
16525 s%@DLLTOOL@%$DLLTOOL%g
16527 s%@OBJDUMP@%$OBJDUMP%g
16528 s%@LIBTOOL@%$LIBTOOL%g
16530 s%@SENDMAIL@%$SENDMAIL%g
16531 s%@EDITOR@%$EDITOR%g
16532 s%@FINGER@%$FINGER%g
16533 s%@PERLBIN@%$PERLBIN%g
16535 s%@EXEEXT@%$EXEEXT%g
16536 s%@OBJEXT@%$OBJEXT%g
16537 s%@OL_MKDEP@%$OL_MKDEP%g
16538 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16540 s%@LIBOBJS@%$LIBOBJS%g
16541 s%@LIBSRCS@%$LIBSRCS%g
16543 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16544 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16545 s%@DYN_EXT@%$DYN_EXT%g
16546 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
16547 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16548 s%@BUILD_BDB2@%$BUILD_BDB2%g
16549 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16550 s%@BUILD_LDAP@%$BUILD_LDAP%g
16551 s%@BUILD_LDBM@%$BUILD_LDBM%g
16552 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16553 s%@BUILD_PERL@%$BUILD_PERL%g
16554 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
16555 s%@BUILD_SHELL@%$BUILD_SHELL%g
16556 s%@BUILD_SQL@%$BUILD_SQL%g
16557 s%@BUILD_TCL@%$BUILD_TCL%g
16558 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
16559 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16560 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16561 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16562 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16563 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16564 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16565 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16566 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16567 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16568 s%@LDAP_LIBS@%$LDAP_LIBS%g
16569 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
16570 s%@LDIF_LIBS@%$LDIF_LIBS%g
16571 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16572 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16573 s%@LDBM_LIBS@%$LDBM_LIBS%g
16574 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16575 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16576 s%@WRAP_LIBS@%$WRAP_LIBS%g
16577 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16578 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16579 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16580 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16581 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16582 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16583 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16584 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16585 s%@KRB4_LIBS@%$KRB4_LIBS%g
16586 s%@KRB5_LIBS@%$KRB5_LIBS%g
16587 s%@READLINE_LIBS@%$READLINE_LIBS%g
16588 s%@SASL_LIBS@%$SASL_LIBS%g
16589 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16590 s%@TLS_LIBS@%$TLS_LIBS%g
16591 s%@MODULES_LIBS@%$MODULES_LIBS%g
16592 s%@AUTH_LIBS@%$AUTH_LIBS%g
16593 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16594 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16595 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16600 cat >> $CONFIG_STATUS <<\EOF
16602 # Split the substitutions into bite-sized pieces for seds with
16603 # small command number limits, like on Digital OSF/1 and HP-UX.
16604 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16605 ac_file=1 # Number of current file.
16606 ac_beg=1 # First line for current file.
16607 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16610 while $ac_more_lines; do
16611 if test $ac_beg -gt 1; then
16612 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16614 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16616 if test ! -s conftest.s$ac_file; then
16617 ac_more_lines=false
16618 rm -f conftest.s$ac_file
16620 if test -z "$ac_sed_cmds"; then
16621 ac_sed_cmds="sed -f conftest.s$ac_file"
16623 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16625 ac_file=`expr $ac_file + 1`
16627 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16630 if test -z "$ac_sed_cmds"; then
16635 cat >> $CONFIG_STATUS <<EOF
16637 CONFIG_FILES=\${CONFIG_FILES-"\
16638 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16639 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16640 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16641 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16642 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16643 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16644 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16645 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16646 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16647 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16648 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16649 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16650 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16651 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16652 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16653 include/Makefile:build/top.mk:include/Makefile.in \
16654 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16655 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16656 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16657 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16658 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16659 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16660 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16661 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16662 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16663 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16664 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
16665 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16666 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16667 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16668 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16669 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16670 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16671 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16672 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16673 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16674 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16675 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16676 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16677 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16678 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16679 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16680 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16681 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16682 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16685 cat >> $CONFIG_STATUS <<\EOF
16686 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16687 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16689 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16690 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16691 *) ac_file_in="${ac_file}.in" ;;
16694 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16696 # Remove last slash and all that follows it. Not all systems have dirname.
16697 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16698 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16699 # The file is in a subdirectory.
16700 test ! -d "$ac_dir" && mkdir "$ac_dir"
16701 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16702 # A "../" for each directory in $ac_dir_suffix.
16703 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16705 ac_dir_suffix= ac_dots=
16708 case "$ac_given_srcdir" in
16710 if test -z "$ac_dots"; then top_srcdir=.
16711 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16712 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16713 *) # Relative path.
16714 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16715 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16718 case "$ac_given_INSTALL" in
16719 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16720 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16723 echo creating "$ac_file"
16725 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16727 *[Mm]akefile*) ac_comsub="1i\\
16728 # $configure_input" ;;
16732 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16734 s%@configure_input@%$configure_input%g
16735 s%@srcdir@%$srcdir%g
16736 s%@top_srcdir@%$top_srcdir%g
16737 s%@INSTALL@%$INSTALL%g
16738 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16742 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16743 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16745 # ac_d sets the value in "#define NAME VALUE" lines.
16746 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16747 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16750 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16751 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16752 ac_uB='\([ ]\)%\1#\2define\3'
16755 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16756 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16757 ac_eB='$%\1#\2define\3'
16761 if test "${CONFIG_HEADERS+set}" != set; then
16763 cat >> $CONFIG_STATUS <<EOF
16764 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16766 cat >> $CONFIG_STATUS <<\EOF
16768 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16771 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16772 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16773 *) ac_file_in="${ac_file}.in" ;;
16776 echo creating $ac_file
16778 rm -f conftest.frag conftest.in conftest.out
16779 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16780 cat $ac_file_inputs > conftest.in
16784 # Transform confdefs.h into a sed script conftest.vals that substitutes
16785 # the proper values into config.h.in to produce config.h. And first:
16786 # Protect against being on the right side of a sed subst in config.status.
16787 # Protect against being in an unquoted here document in config.status.
16788 rm -f conftest.vals
16789 cat > conftest.hdr <<\EOF
16792 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16796 sed -n -f conftest.hdr confdefs.h > conftest.vals
16799 # This sed command replaces #undef with comments. This is necessary, for
16800 # example, in the case of _POSIX_SOURCE, which is predefined and required
16801 # on some systems where configure will not decide to define it.
16802 cat >> conftest.vals <<\EOF
16803 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16806 # Break up conftest.vals because some shells have a limit on
16807 # the size of here documents, and old seds have small limits too.
16809 rm -f conftest.tail
16812 ac_lines=`grep -c . conftest.vals`
16813 # grep -c gives empty output for an empty file on some AIX systems.
16814 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16815 # Write a limited-size here document to conftest.frag.
16816 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16817 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16819 sed -f conftest.frag conftest.in > conftest.out
16821 mv conftest.out conftest.in
16822 ' >> $CONFIG_STATUS
16823 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16824 rm -f conftest.vals
16825 mv conftest.tail conftest.vals
16827 rm -f conftest.vals
16829 cat >> $CONFIG_STATUS <<\EOF
16830 rm -f conftest.frag conftest.h
16831 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16832 cat conftest.in >> conftest.h
16834 if cmp -s $ac_file conftest.h 2>/dev/null; then
16835 echo "$ac_file is unchanged"
16838 # Remove last slash and all that follows it. Not all systems have dirname.
16839 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16840 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16841 # The file is in a subdirectory.
16842 test ! -d "$ac_dir" && mkdir "$ac_dir"
16845 mv conftest.h $ac_file
16850 cat >> $CONFIG_STATUS <<EOF
16853 cat >> $CONFIG_STATUS <<\EOF
16856 echo Please \"make depend\" to build dependencies
16860 chmod +x $CONFIG_STATUS
16861 rm -fr confdefs* $ac_clean_files
16862 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1