3 # from OpenLDAP: pkg/ldap/configure.in,v 1.295 2000/05/10 02:31:44 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 --enable-dmalloc enable debug malloc support (no)"
52 --with-cyrus-sasl with Cyrus SASL support (auto)"
54 --with-fetch with fetch URL support (auto)"
56 --with-kerberos with support (auto)"
58 --with-readline with readline support (auto)"
60 --with-threads use threads (auto)"
62 --with-tls with TLS/SSL support (auto)"
64 --with-yielding-select with implicitly yielding select (auto)"
66 LDAPD (X.500-to-LDAP Gateway) Options:"
68 --enable-ldapd enable building ldapd (no)"
70 SLAPD (Standalone LDAP Daemon) Options:"
72 --enable-slapd enable building slapd (yes)"
74 --enable-cleartext enable cleartext passwords (yes)"
76 --enable-crypt enable crypt(3) passwords (auto)"
78 --enable-kpasswd enable kerberos password verification (no)"
80 --enable-spasswd enable (Cyrus) SASL password verification (no)"
82 --enable-modules enable dynamic module support (no)"
84 --enable-multimaster enable multimaster replication (no)"
86 --enable-phonetic enable phonetic/soundex (no)"
88 --enable-quipu build quipu migration tools (no)"
90 --enable-rlookups enable reverse lookups (auto)"
92 --enable-aci enable per-object ACIs (no)"
94 --enable-wrappers enable tcp wrapper support (no)"
96 --enable-dynamic enable linking built binaries with dynamic libs (no)"
98 --enable-bdb2 enable bdb2 backend (no)"
100 --with-bdb2-module module type (static)"
102 --enable-dnssrv enable bdb2 backend (no)"
104 --with-dnssrv-module module type (static)"
106 --enable-ldap enable ldap backend (no)"
108 --with-ldap-module module type (static)"
110 --enable-ldbm enable ldbm backend (yes)"
112 --with-ldbm-api use LDBM API (auto)"
114 --with-ldbm-module module type (static)"
116 --with-ldbm-type use LDBM type (auto)"
118 --enable-passwd enable passwd backend (no)"
120 --with-passwd-module module type (static)"
122 --enable-perl enable perl backend (no)"
124 --with-perl-module module type (static)"
126 --enable-shell enable shell backend (no)"
128 --with-shell-module module type (static)"
130 --enable-sql enable sql backend (no)"
132 --with-sql-module module type (static)"
134 --enable-tcl enable tcl backend (no)"
136 --with-tcl-module module type (static)"
138 SLURPD (Replication Daemon) Options:"
140 --enable-slurpd enable building slurpd (auto)"
142 Library Generation & Linking Options"
144 --enable-static[=PKGS] build static libraries [default=yes]"
146 --enable-shared[=PKGS] build shared libraries [default=yes]"
148 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
150 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
152 --disable-libtool-lock avoid locking (might break parallel builds)"
154 # Initialize some variables set by options.
155 # The variables have the same names as the options, with
156 # dashes changed to underlines.
158 cache_file=./config.cache
167 program_transform_name=s,x,x,
175 bindir='${exec_prefix}/bin'
176 sbindir='${exec_prefix}/sbin'
177 libexecdir='${exec_prefix}/libexec'
178 datadir='${prefix}/share'
179 sysconfdir='${prefix}/etc'
180 sharedstatedir='${prefix}/com'
181 localstatedir='${prefix}/var'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${prefix}/info'
186 mandir='${prefix}/man'
188 # Initialize some other variables.
191 SHELL=${CONFIG_SHELL-/bin/sh}
192 # Maximum number of lines to put in a shell here document.
199 # If the previous option needs an argument, assign it.
200 if test -n "$ac_prev"; then
201 eval "$ac_prev=\$ac_option"
207 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
211 # Accept the important Cygnus configure options, so we can diagnose typos.
215 -bindir | --bindir | --bindi | --bind | --bin | --bi)
217 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
218 bindir="$ac_optarg" ;;
220 -build | --build | --buil | --bui | --bu)
222 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
223 build="$ac_optarg" ;;
225 -cache-file | --cache-file | --cache-fil | --cache-fi \
226 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
227 ac_prev=cache_file ;;
228 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
229 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
230 cache_file="$ac_optarg" ;;
232 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
234 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
236 datadir="$ac_optarg" ;;
238 -disable-* | --disable-*)
239 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
240 # Reject names that are not valid shell variable names.
241 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
242 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
244 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
245 eval "enable_${ac_feature}=no" ;;
247 -enable-* | --enable-*)
248 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
249 # Reject names that are not valid shell variable names.
250 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
251 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
253 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
258 eval "enable_${ac_feature}='$ac_optarg'" ;;
260 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
261 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
262 | --exec | --exe | --ex)
263 ac_prev=exec_prefix ;;
264 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
265 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
266 | --exec=* | --exe=* | --ex=*)
267 exec_prefix="$ac_optarg" ;;
269 -gas | --gas | --ga | --g)
270 # Obsolete; use --with-gas.
273 -help | --help | --hel | --he)
274 # Omit some internal or obsolete options to make the list less imposing.
275 # This message is too long to be a string in the A/UX 3.1 sh.
277 Usage: configure [options] [host]
278 Options: [defaults in brackets after descriptions]
280 --cache-file=FILE cache test results in FILE
281 --help print this message
282 --no-create do not create output files
283 --quiet, --silent do not print \`checking...' messages
284 --version print the version of autoconf that created configure
285 Directory and file names:
286 --prefix=PREFIX install architecture-independent files in PREFIX
288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
290 --bindir=DIR user executables in DIR [EPREFIX/bin]
291 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
292 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
293 --datadir=DIR read-only architecture-independent data in DIR
295 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
296 --sharedstatedir=DIR modifiable architecture-independent data in DIR
298 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
299 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
300 --includedir=DIR C header files in DIR [PREFIX/include]
301 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
302 --infodir=DIR info documentation in DIR [PREFIX/info]
303 --mandir=DIR man documentation in DIR [PREFIX/man]
304 --srcdir=DIR find the sources in DIR [configure dir or ..]
305 --program-prefix=PREFIX prepend PREFIX to installed program names
306 --program-suffix=SUFFIX append SUFFIX to installed program names
307 --program-transform-name=PROGRAM
308 run sed PROGRAM on installed program names
312 --build=BUILD configure for building on BUILD [BUILD=HOST]
313 --host=HOST configure for HOST [guessed]
314 --target=TARGET configure for TARGET [TARGET=HOST]
315 Features and packages:
316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
318 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
319 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
320 --x-includes=DIR X include files are in DIR
321 --x-libraries=DIR X library files are in DIR
323 if test -n "$ac_help"; then
324 echo "--enable and --with options recognized:$ac_help"
328 -host | --host | --hos | --ho)
330 -host=* | --host=* | --hos=* | --ho=*)
333 -includedir | --includedir | --includedi | --included | --include \
334 | --includ | --inclu | --incl | --inc)
335 ac_prev=includedir ;;
336 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
337 | --includ=* | --inclu=* | --incl=* | --inc=*)
338 includedir="$ac_optarg" ;;
340 -infodir | --infodir | --infodi | --infod | --info | --inf)
342 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
343 infodir="$ac_optarg" ;;
345 -libdir | --libdir | --libdi | --libd)
347 -libdir=* | --libdir=* | --libdi=* | --libd=*)
348 libdir="$ac_optarg" ;;
350 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
351 | --libexe | --libex | --libe)
352 ac_prev=libexecdir ;;
353 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
354 | --libexe=* | --libex=* | --libe=*)
355 libexecdir="$ac_optarg" ;;
357 -localstatedir | --localstatedir | --localstatedi | --localstated \
358 | --localstate | --localstat | --localsta | --localst \
359 | --locals | --local | --loca | --loc | --lo)
360 ac_prev=localstatedir ;;
361 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
362 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
363 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
364 localstatedir="$ac_optarg" ;;
366 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
368 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
369 mandir="$ac_optarg" ;;
372 # Obsolete; use --without-fp.
375 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
379 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
380 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
383 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
384 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
385 | --oldin | --oldi | --old | --ol | --o)
386 ac_prev=oldincludedir ;;
387 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
388 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
389 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
390 oldincludedir="$ac_optarg" ;;
392 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
394 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
395 prefix="$ac_optarg" ;;
397 -program-prefix | --program-prefix | --program-prefi | --program-pref \
398 | --program-pre | --program-pr | --program-p)
399 ac_prev=program_prefix ;;
400 -program-prefix=* | --program-prefix=* | --program-prefi=* \
401 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
402 program_prefix="$ac_optarg" ;;
404 -program-suffix | --program-suffix | --program-suffi | --program-suff \
405 | --program-suf | --program-su | --program-s)
406 ac_prev=program_suffix ;;
407 -program-suffix=* | --program-suffix=* | --program-suffi=* \
408 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
409 program_suffix="$ac_optarg" ;;
411 -program-transform-name | --program-transform-name \
412 | --program-transform-nam | --program-transform-na \
413 | --program-transform-n | --program-transform- \
414 | --program-transform | --program-transfor \
415 | --program-transfo | --program-transf \
416 | --program-trans | --program-tran \
417 | --progr-tra | --program-tr | --program-t)
418 ac_prev=program_transform_name ;;
419 -program-transform-name=* | --program-transform-name=* \
420 | --program-transform-nam=* | --program-transform-na=* \
421 | --program-transform-n=* | --program-transform-=* \
422 | --program-transform=* | --program-transfor=* \
423 | --program-transfo=* | --program-transf=* \
424 | --program-trans=* | --program-tran=* \
425 | --progr-tra=* | --program-tr=* | --program-t=*)
426 program_transform_name="$ac_optarg" ;;
428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
429 | -silent | --silent | --silen | --sile | --sil)
432 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
434 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
436 sbindir="$ac_optarg" ;;
438 -sharedstatedir | --sharedstatedir | --sharedstatedi \
439 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
440 | --sharedst | --shareds | --shared | --share | --shar \
442 ac_prev=sharedstatedir ;;
443 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
444 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
445 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
447 sharedstatedir="$ac_optarg" ;;
449 -site | --site | --sit)
451 -site=* | --site=* | --sit=*)
454 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
456 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
457 srcdir="$ac_optarg" ;;
459 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
460 | --syscon | --sysco | --sysc | --sys | --sy)
461 ac_prev=sysconfdir ;;
462 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
463 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
464 sysconfdir="$ac_optarg" ;;
466 -target | --target | --targe | --targ | --tar | --ta | --t)
468 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
469 target="$ac_optarg" ;;
471 -v | -verbose | --verbose | --verbos | --verbo | --verb)
474 -version | --version | --versio | --versi | --vers)
475 echo "configure generated by autoconf version 2.13.1"
479 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
480 # Reject names that are not valid shell variable names.
481 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
482 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
484 ac_package=`echo $ac_package| sed 's/-/_/g'`
489 eval "with_${ac_package}='$ac_optarg'" ;;
491 -without-* | --without-*)
492 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
493 # Reject names that are not valid shell variable names.
494 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
495 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
497 ac_package=`echo $ac_package| sed 's/-/_/g'`
498 eval "with_${ac_package}=no" ;;
501 # Obsolete; use --with-x.
504 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
505 | --x-incl | --x-inc | --x-in | --x-i)
506 ac_prev=x_includes ;;
507 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
508 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
509 x_includes="$ac_optarg" ;;
511 -x-libraries | --x-libraries | --x-librarie | --x-librari \
512 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
513 ac_prev=x_libraries ;;
514 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
515 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
516 x_libraries="$ac_optarg" ;;
518 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
522 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
523 echo "configure: warning: $ac_option: invalid host type" 1>&2
525 if test "x$nonopt" != xNONE; then
526 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
534 if test -n "$ac_prev"; then
535 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
538 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
540 # File descriptor usage:
543 # 2 errors and warnings
544 # 3 some systems may open it to /dev/tty
545 # 4 used on the Kubota Titan
546 # 6 checking for... messages and results
547 # 5 compiler messages saved in config.log
548 if test "$silent" = yes; then
556 This file contains any messages produced by compilers while
557 running configure, to aid debugging if configure makes a mistake.
560 # Strip out --no-create and --no-recursion so they do not pile up.
561 # Also quote any args containing shell metacharacters.
566 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
567 | --no-cr | --no-c) ;;
568 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
569 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
570 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
571 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
572 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
577 # Only set these to C if already set. These must not be set unconditionally
578 # because not all systems understand e.g. LANG=C (notably SCO).
579 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
580 # Non-C LC_CTYPE values break the ctype check.
581 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
582 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
583 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
584 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
586 # confdefs.h avoids OS command line length limits that DEFS can exceed.
587 rm -rf conftest* confdefs.h
588 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
591 # A filename unique to this package, relative to the directory that
592 # configure is in, which we can look for to find out if srcdir is correct.
593 ac_unique_file=build/version
595 # Find the source files, if location was not specified.
596 if test -z "$srcdir"; then
597 ac_srcdir_defaulted=yes
598 # Try the directory containing this script, then its parent.
600 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
601 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
603 if test ! -r $srcdir/$ac_unique_file; then
607 ac_srcdir_defaulted=no
609 if test ! -r $srcdir/$ac_unique_file; then
610 if test "$ac_srcdir_defaulted" = yes; then
611 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
613 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
616 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
618 # Prefer explicitly selected file to automatically selected ones.
619 if test -z "$CONFIG_SITE"; then
620 if test "x$prefix" != xNONE; then
621 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
623 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
626 for ac_site_file in $CONFIG_SITE; do
627 if test -r "$ac_site_file"; then
628 echo "loading site script $ac_site_file"
635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
636 ac_cpp='$CPP $CPPFLAGS'
637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
639 cross_compiling=$ac_cv_prog_cc_cross
643 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
644 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
645 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
652 ac_n= ac_c='\c' ac_t=
656 for ac_dir in build $srcdir/build; do
657 if test -f $ac_dir/install-sh; then
659 ac_install_sh="$ac_aux_dir/install-sh -c"
661 elif test -f $ac_dir/install.sh; then
663 ac_install_sh="$ac_aux_dir/install.sh -c"
665 elif test -f $ac_dir/shtool; then
667 ac_install_sh="$ac_aux_dir/shtool install -c"
671 if test -z "$ac_aux_dir"; then
672 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
674 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
675 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
676 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
678 OL_VERSION=`cat $ac_aux_dir/version`
679 if test -z "$OL_VERSION"; then
680 { echo "configure: error: could not determine version" 1>&2; exit 1; }
683 echo "Configuring OpenLDAP $OL_VERSION ..."
686 echo $ac_n "checking host system type""... $ac_c" 1>&6
687 echo "configure:688: checking host system type" >&5
688 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
690 # Make sure we can run config.sub.
691 if $ac_config_sub sun4 >/dev/null 2>&1; then :
692 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
695 ac_cv_host_alias=$host
696 case "$ac_cv_host_alias" in
700 if ac_cv_host_alias=`$ac_config_guess`; then :
701 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703 *) ac_cv_host_alias=$nonopt ;;
707 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
708 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
709 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
710 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo $ac_n "(cached) $ac_c" 1>&6
715 echo "$ac_t""$ac_cv_host" 1>&6
718 host_alias=$ac_cv_host_alias
719 host_cpu=$ac_cv_host_cpu
720 host_vendor=$ac_cv_host_vendor
721 host_os=$ac_cv_host_os
727 echo $ac_n "checking target system type""... $ac_c" 1>&6
728 echo "configure:729: checking target system type" >&5
729 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
731 # Make sure we can run config.sub.
732 if $ac_config_sub sun4 >/dev/null 2>&1; then :
733 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
736 ac_cv_target_alias=$target
737 case "$ac_cv_target_alias" in
741 ac_cv_target_alias=$host_alias ;;
743 *) ac_cv_target_alias=$nonopt ;;
747 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
748 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
752 echo $ac_n "(cached) $ac_c" 1>&6
755 echo "$ac_t""$ac_cv_target" 1>&6
758 target_alias=$ac_cv_target_alias
759 target_cpu=$ac_cv_target_cpu
760 target_vendor=$ac_cv_target_vendor
761 target_os=$ac_cv_target_os
767 echo $ac_n "checking build system type""... $ac_c" 1>&6
768 echo "configure:769: checking build system type" >&5
769 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
771 # Make sure we can run config.sub.
772 if $ac_config_sub sun4 >/dev/null 2>&1; then :
773 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
776 ac_cv_build_alias=$build
777 case "$ac_cv_build_alias" in
781 ac_cv_build_alias=$host_alias ;;
783 *) ac_cv_build_alias=$nonopt ;;
787 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
788 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
789 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
790 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
792 echo $ac_n "(cached) $ac_c" 1>&6
795 echo "$ac_t""$ac_cv_build" 1>&6
798 build_alias=$ac_cv_build_alias
799 build_cpu=$ac_cv_build_cpu
800 build_vendor=$ac_cv_build_vendor
801 build_os=$ac_cv_build_os
807 # Do some error checking and defaulting for the host and target type.
809 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
812 # 1. You are not allowed to specify --host, --target, and nonopt at the
814 # 2. Host defaults to nonopt.
815 # 3. If nonopt is not specified, then host defaults to the current host,
816 # as determined by config.guess.
817 # 4. Target and build default to nonopt.
818 # 5. If nonopt is not specified, then target and build default to host.
820 # The aliases save the names the user supplied, while $host etc.
821 # will get canonicalized.
822 case $host---$target---$nonopt in
823 NONE---*---* | *---NONE---* | *---*---NONE) ;;
824 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
827 test "$host_alias" != "$target_alias" &&
828 test "$program_prefix$program_suffix$program_transform_name" = \
830 program_prefix=${target_alias}-
833 # Find a good install program. We prefer a C program (faster),
834 # so one script is as good as another. But avoid the broken or
835 # incompatible versions:
836 # SysV /etc/install, /usr/sbin/install
837 # SunOS /usr/etc/install
840 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
841 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
842 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
843 # ./install, which can be erroneously created by make from ./install.sh.
844 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
845 echo "configure:846: checking for a BSD compatible install" >&5
846 if test -z "$INSTALL"; then
847 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
851 for ac_dir in $PATH; do
852 # Account for people who put trailing slashes in PATH elements.
854 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
856 # OSF1 and SCO ODT 3.0 have their own names for install.
857 # Don't use installbsd from OSF since it installs stuff as root
859 for ac_prog in ginstall scoinst install; do
860 if test -f $ac_dir/$ac_prog; then
861 if test $ac_prog = install &&
862 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
863 # AIX install. It has an incompatible calling convention.
865 elif test $ac_prog = install &&
866 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
867 # program-specific install script used by HP pwplus--don't use.
870 ac_cv_path_install="$ac_dir/$ac_prog -c"
881 if test "${ac_cv_path_install+set}" = set; then
882 INSTALL="$ac_cv_path_install"
884 # As a last resort, use the slow shell script. We don't cache a
885 # path for INSTALL within a source directory, because that will
886 # break other packages using the cache if that directory is
887 # removed, or if the path is relative.
888 INSTALL="$ac_install_sh"
891 echo "$ac_t""$INSTALL" 1>&6
893 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
894 # It thinks the first close brace ends the variable substitution.
895 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
897 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
899 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
901 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
902 echo "configure:903: checking whether build environment is sane" >&5
905 echo timestamp > conftestfile
906 # Do `set' in a subshell so we don't clobber the current shell's
907 # arguments. Must try -L first in case configure is actually a
908 # symlink; some systems play weird games with the mod time of symlinks
909 # (eg FreeBSD returns the mod time of the symlink's containing
912 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
913 if test "$*" = "X"; then
915 set X `ls -t $srcdir/configure conftestfile`
917 if test "$*" != "X $srcdir/configure conftestfile" \
918 && test "$*" != "X conftestfile $srcdir/configure"; then
920 # If neither matched, then we have a broken ls. This can happen
921 # if, for instance, CONFIG_SHELL is bash and it inherits a
922 # broken ls alias from the environment. This has actually
923 # happened. Such a system could not be considered "sane".
924 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
925 alias in your environment" 1>&2; exit 1; }
928 test "$2" = conftestfile
934 { echo "configure: error: newly created file is older than distributed files!
935 Check your system clock" 1>&2; exit 1; }
938 echo "$ac_t""yes" 1>&6
939 if test "$program_transform_name" = s,x,x,; then
940 program_transform_name=
942 # Double any \ or $. echo might interpret backslashes.
943 cat <<\EOF_SED > conftestsed
944 s,\\,\\\\,g; s,\$,$$,g
946 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
949 test "$program_prefix" != NONE &&
950 program_transform_name="s,^,${program_prefix},;$program_transform_name"
951 # Use a double $ so make ignores it.
952 test "$program_suffix" != NONE &&
953 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
955 # sed with no file args requires a program.
956 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
958 for ac_prog in mawk gawk nawk awk
960 # Extract the first word of "$ac_prog", so it can be a program name with args.
961 set dummy $ac_prog; ac_word=$2
962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
963 echo "configure:964: checking for $ac_word" >&5
964 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 if test -n "$AWK"; then
968 ac_cv_prog_AWK="$AWK" # Let the user override the test.
970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
972 for ac_dir in $ac_dummy; do
973 test -z "$ac_dir" && ac_dir=.
974 if test -f $ac_dir/$ac_word; then
975 ac_cv_prog_AWK="$ac_prog"
982 AWK="$ac_cv_prog_AWK"
983 if test -n "$AWK"; then
984 echo "$ac_t""$AWK" 1>&6
986 echo "$ac_t""no" 1>&6
989 test -n "$AWK" && break
992 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${MAKE-make} sets \${MAKE}" >&5
994 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
995 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
998 cat > conftestmake <<\EOF
1000 @echo 'ac_maketemp="${MAKE}"'
1002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1003 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1004 if test -n "$ac_maketemp"; then
1005 eval ac_cv_prog_make_${ac_make}_set=yes
1007 eval ac_cv_prog_make_${ac_make}_set=no
1011 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1012 echo "$ac_t""yes" 1>&6
1015 echo "$ac_t""no" 1>&6
1016 SET_MAKE="MAKE=${MAKE-make}"
1025 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1026 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1031 missing_dir=`cd $ac_aux_dir && pwd`
1032 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1033 echo "configure:1034: checking for working aclocal" >&5
1034 # Run test in a subshell; some versions of sh will print an error if
1035 # an executable is not found, even if stderr is redirected.
1036 # Redirect stdin to placate older versions of autoconf. Sigh.
1037 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1039 echo "$ac_t""found" 1>&6
1041 ACLOCAL="$missing_dir/missing aclocal"
1042 echo "$ac_t""missing" 1>&6
1045 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working autoconf" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 AUTOCONF="$missing_dir/missing autoconf"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working automake" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (automake --version) < /dev/null > /dev/null 2>&1; then
1065 echo "$ac_t""found" 1>&6
1067 AUTOMAKE="$missing_dir/missing automake"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working autoheader" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1077 AUTOHEADER=autoheader
1078 echo "$ac_t""found" 1>&6
1080 AUTOHEADER="$missing_dir/missing autoheader"
1081 echo "$ac_t""missing" 1>&6
1084 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1085 echo "configure:1086: checking for working makeinfo" >&5
1086 # Run test in a subshell; some versions of sh will print an error if
1087 # an executable is not found, even if stderr is redirected.
1088 # Redirect stdin to placate older versions of autoconf. Sigh.
1089 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1091 echo "$ac_t""found" 1>&6
1093 MAKEINFO="$missing_dir/missing makeinfo"
1094 echo "$ac_t""missing" 1>&6
1097 install_sh="$missing_dir/install-sh"
1098 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1100 for ac_prog in gnutar gtar tar
1102 # Extract the first word of "$ac_prog", so it can be a program name with args.
1103 set dummy $ac_prog; ac_word=$2
1104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1105 echo "configure:1106: checking for $ac_word" >&5
1106 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 if test -n "$AMTAR"; then
1110 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1114 for ac_dir in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir=.
1116 if test -f $ac_dir/$ac_word; then
1117 ac_cv_prog_AMTAR="$ac_prog"
1124 AMTAR="$ac_cv_prog_AMTAR"
1125 if test -n "$AMTAR"; then
1126 echo "$ac_t""$AMTAR" 1>&6
1128 echo "$ac_t""no" 1>&6
1131 test -n "$AMTAR" && break
1136 if test -n "$AMTAR"; then
1137 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1144 cat >> confdefs.h <<EOF
1145 #define OPENLDAP_PACKAGE "$PACKAGE"
1148 cat >> confdefs.h <<EOF
1149 #define OPENLDAP_VERSION "$VERSION"
1155 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1156 echo "configure:1157: checking configure arguments" >&5
1161 ldap_subdir="/openldap"
1163 # Check whether --with-subdir or --without-subdir was given.
1164 if test "${with_subdir+set}" = set; then
1165 withval="$with_subdir"
1172 ldap_subdir="$withval"
1175 ldap_subdir="/$withval"
1182 # OpenLDAP --enable-debug
1183 # Check whether --enable-debug or --disable-debug was given.
1184 if test "${enable_debug+set}" = set; then
1185 enableval="$enable_debug"
1188 for ol_val in auto yes no ; do
1189 if test "$enableval" = "$ol_val" ; then
1193 if test "$ol_arg" = "invalid" ; then
1194 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1196 ol_enable_debug="$ol_arg"
1199 ol_enable_debug="yes"
1201 # end --enable-debug
1202 # OpenLDAP --enable-syslog
1203 # Check whether --enable-syslog or --disable-syslog was given.
1204 if test "${enable_syslog+set}" = set; then
1205 enableval="$enable_syslog"
1208 for ol_val in auto yes no ; do
1209 if test "$enableval" = "$ol_val" ; then
1213 if test "$ol_arg" = "invalid" ; then
1214 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1216 ol_enable_syslog="$ol_arg"
1219 ol_enable_syslog="auto"
1221 # end --enable-syslog
1222 # OpenLDAP --enable-proctitle
1223 # Check whether --enable-proctitle or --disable-proctitle was given.
1224 if test "${enable_proctitle+set}" = set; then
1225 enableval="$enable_proctitle"
1228 for ol_val in auto yes no ; do
1229 if test "$enableval" = "$ol_val" ; then
1233 if test "$ol_arg" = "invalid" ; then
1234 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1236 ol_enable_proctitle="$ol_arg"
1239 ol_enable_proctitle="yes"
1241 # end --enable-proctitle
1242 # OpenLDAP --enable-cache
1243 # Check whether --enable-cache or --disable-cache was given.
1244 if test "${enable_cache+set}" = set; then
1245 enableval="$enable_cache"
1248 for ol_val in auto yes no ; do
1249 if test "$enableval" = "$ol_val" ; then
1253 if test "$ol_arg" = "invalid" ; then
1254 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1256 ol_enable_cache="$ol_arg"
1259 ol_enable_cache="yes"
1261 # end --enable-cache
1262 # OpenLDAP --enable-dns
1263 # Check whether --enable-dns or --disable-dns was given.
1264 if test "${enable_dns+set}" = set; then
1265 enableval="$enable_dns"
1268 for ol_val in auto yes no ; do
1269 if test "$enableval" = "$ol_val" ; then
1273 if test "$ol_arg" = "invalid" ; then
1274 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1276 ol_enable_dns="$ol_arg"
1282 # OpenLDAP --enable-referrals
1283 # Check whether --enable-referrals or --disable-referrals was given.
1284 if test "${enable_referrals+set}" = set; then
1285 enableval="$enable_referrals"
1288 for ol_val in auto yes no ; do
1289 if test "$enableval" = "$ol_val" ; then
1293 if test "$ol_arg" = "invalid" ; then
1294 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1296 ol_enable_referrals="$ol_arg"
1299 ol_enable_referrals="yes"
1301 # end --enable-referrals
1302 # OpenLDAP --enable-kbind
1303 # Check whether --enable-kbind or --disable-kbind was given.
1304 if test "${enable_kbind+set}" = set; then
1305 enableval="$enable_kbind"
1308 for ol_val in auto yes no ; do
1309 if test "$enableval" = "$ol_val" ; then
1313 if test "$ol_arg" = "invalid" ; then
1314 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1316 ol_enable_kbind="$ol_arg"
1319 ol_enable_kbind="auto"
1321 # end --enable-kbind
1322 # OpenLDAP --enable-cldap
1323 # Check whether --enable-cldap or --disable-cldap was given.
1324 if test "${enable_cldap+set}" = set; then
1325 enableval="$enable_cldap"
1328 for ol_val in auto yes no ; do
1329 if test "$enableval" = "$ol_val" ; then
1333 if test "$ol_arg" = "invalid" ; then
1334 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1336 ol_enable_cldap="$ol_arg"
1339 ol_enable_cldap="no"
1341 # end --enable-cldap
1342 # OpenLDAP --enable-ldapi
1343 # Check whether --enable-ldapi or --disable-ldapi was given.
1344 if test "${enable_ldapi+set}" = set; then
1345 enableval="$enable_ldapi"
1348 for ol_val in auto yes no ; do
1349 if test "$enableval" = "$ol_val" ; then
1353 if test "$ol_arg" = "invalid" ; then
1354 { echo "configure: error: bad value $enableval for --enable-ldapi" 1>&2; exit 1; }
1356 ol_enable_ldapi="$ol_arg"
1359 ol_enable_ldapi="no"
1361 # end --enable-ldapi
1362 # OpenLDAP --enable-x_compile
1363 # Check whether --enable-x_compile or --disable-x_compile was given.
1364 if test "${enable_x_compile+set}" = set; then
1365 enableval="$enable_x_compile"
1368 for ol_val in yes no ; do
1369 if test "$enableval" = "$ol_val" ; then
1373 if test "$ol_arg" = "invalid" ; then
1374 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1376 ol_enable_x_compile="$ol_arg"
1379 ol_enable_x_compile="no"
1381 # end --enable-x_compile
1383 # OpenLDAP --enable-dmalloc
1384 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1385 if test "${enable_dmalloc+set}" = set; then
1386 enableval="$enable_dmalloc"
1389 for ol_val in auto yes no ; do
1390 if test "$enableval" = "$ol_val" ; then
1394 if test "$ol_arg" = "invalid" ; then
1395 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1397 ol_enable_dmalloc="$ol_arg"
1400 ol_enable_dmalloc="no"
1402 # end --enable-dmalloc
1404 # OpenLDAP --with-cyrus_sasl
1405 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1406 if test "${with_cyrus_sasl+set}" = set; then
1407 withval="$with_cyrus_sasl"
1410 for ol_val in auto yes no ; do
1411 if test "$withval" = "$ol_val" ; then
1415 if test "$ol_arg" = "invalid" ; then
1416 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1418 ol_with_cyrus_sasl="$ol_arg"
1421 ol_with_cyrus_sasl="auto"
1423 # end --with-cyrus_sasl
1425 # OpenLDAP --with-fetch
1426 # Check whether --with-fetch or --without-fetch was given.
1427 if test "${with_fetch+set}" = set; then
1428 withval="$with_fetch"
1431 for ol_val in auto yes no ; do
1432 if test "$withval" = "$ol_val" ; then
1436 if test "$ol_arg" = "invalid" ; then
1437 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1439 ol_with_fetch="$ol_arg"
1442 ol_with_fetch="auto"
1446 # OpenLDAP --with-kerberos
1447 # Check whether --with-kerberos or --without-kerberos was given.
1448 if test "${with_kerberos+set}" = set; then
1449 withval="$with_kerberos"
1452 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1453 if test "$withval" = "$ol_val" ; then
1457 if test "$ol_arg" = "invalid" ; then
1458 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1460 ol_with_kerberos="$ol_arg"
1463 ol_with_kerberos="auto"
1465 # end --with-kerberos
1467 # OpenLDAP --with-readline
1468 # Check whether --with-readline or --without-readline was given.
1469 if test "${with_readline+set}" = set; then
1470 withval="$with_readline"
1473 for ol_val in auto yes no ; do
1474 if test "$withval" = "$ol_val" ; then
1478 if test "$ol_arg" = "invalid" ; then
1479 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1481 ol_with_readline="$ol_arg"
1484 ol_with_readline="auto"
1486 # end --with-readline
1488 # OpenLDAP --with-threads
1489 # Check whether --with-threads or --without-threads was given.
1490 if test "${with_threads+set}" = set; then
1491 withval="$with_threads"
1494 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1495 if test "$withval" = "$ol_val" ; then
1499 if test "$ol_arg" = "invalid" ; then
1500 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1502 ol_with_threads="$ol_arg"
1505 ol_with_threads="auto"
1507 # end --with-threads
1509 # OpenLDAP --with-tls
1510 # Check whether --with-tls or --without-tls was given.
1511 if test "${with_tls+set}" = set; then
1515 for ol_val in auto ssleay openssl yes no ; do
1516 if test "$withval" = "$ol_val" ; then
1520 if test "$ol_arg" = "invalid" ; then
1521 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1523 ol_with_tls="$ol_arg"
1530 # OpenLDAP --with-yielding_select
1531 # Check whether --with-yielding_select or --without-yielding_select was given.
1532 if test "${with_yielding_select+set}" = set; then
1533 withval="$with_yielding_select"
1536 for ol_val in auto yes no manual ; do
1537 if test "$withval" = "$ol_val" ; then
1541 if test "$ol_arg" = "invalid" ; then
1542 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1544 ol_with_yielding_select="$ol_arg"
1547 ol_with_yielding_select="auto"
1549 # end --with-yielding_select
1552 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1553 if test "${with_xxldapdoptions+set}" = set; then
1554 withval="$with_xxldapdoptions"
1558 # OpenLDAP --enable-ldapd
1559 # Check whether --enable-ldapd or --disable-ldapd was given.
1560 if test "${enable_ldapd+set}" = set; then
1561 enableval="$enable_ldapd"
1564 for ol_val in auto yes no ; do
1565 if test "$enableval" = "$ol_val" ; then
1569 if test "$ol_arg" = "invalid" ; then
1570 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1572 ol_enable_ldapd="$ol_arg"
1575 ol_enable_ldapd="no"
1577 # end --enable-ldapd
1579 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1580 if test "${with_xxslapdoptions+set}" = set; then
1581 withval="$with_xxslapdoptions"
1585 # OpenLDAP --enable-slapd
1586 # Check whether --enable-slapd or --disable-slapd was given.
1587 if test "${enable_slapd+set}" = set; then
1588 enableval="$enable_slapd"
1591 for ol_val in auto yes no ; do
1592 if test "$enableval" = "$ol_val" ; then
1596 if test "$ol_arg" = "invalid" ; then
1597 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1599 ol_enable_slapd="$ol_arg"
1602 ol_enable_slapd="yes"
1604 # end --enable-slapd
1605 # OpenLDAP --enable-cleartext
1606 # Check whether --enable-cleartext or --disable-cleartext was given.
1607 if test "${enable_cleartext+set}" = set; then
1608 enableval="$enable_cleartext"
1611 for ol_val in auto yes no ; do
1612 if test "$enableval" = "$ol_val" ; then
1616 if test "$ol_arg" = "invalid" ; then
1617 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1619 ol_enable_cleartext="$ol_arg"
1622 ol_enable_cleartext="yes"
1624 # end --enable-cleartext
1625 # OpenLDAP --enable-crypt
1626 # Check whether --enable-crypt or --disable-crypt was given.
1627 if test "${enable_crypt+set}" = set; then
1628 enableval="$enable_crypt"
1631 for ol_val in auto yes no ; do
1632 if test "$enableval" = "$ol_val" ; then
1636 if test "$ol_arg" = "invalid" ; then
1637 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1639 ol_enable_crypt="$ol_arg"
1642 ol_enable_crypt="auto"
1644 # end --enable-crypt
1645 # OpenLDAP --enable-kpasswd
1646 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1647 if test "${enable_kpasswd+set}" = set; then
1648 enableval="$enable_kpasswd"
1651 for ol_val in auto yes no ; do
1652 if test "$enableval" = "$ol_val" ; then
1656 if test "$ol_arg" = "invalid" ; then
1657 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1659 ol_enable_kpasswd="$ol_arg"
1662 ol_enable_kpasswd="no"
1664 # end --enable-kpasswd
1665 # OpenLDAP --enable-spasswd
1666 # Check whether --enable-spasswd or --disable-spasswd was given.
1667 if test "${enable_spasswd+set}" = set; then
1668 enableval="$enable_spasswd"
1671 for ol_val in auto yes no ; do
1672 if test "$enableval" = "$ol_val" ; then
1676 if test "$ol_arg" = "invalid" ; then
1677 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1679 ol_enable_spasswd="$ol_arg"
1682 ol_enable_spasswd="no"
1684 # end --enable-spasswd
1685 # OpenLDAP --enable-modules
1686 # Check whether --enable-modules or --disable-modules was given.
1687 if test "${enable_modules+set}" = set; then
1688 enableval="$enable_modules"
1691 for ol_val in auto yes no ; do
1692 if test "$enableval" = "$ol_val" ; then
1696 if test "$ol_arg" = "invalid" ; then
1697 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1699 ol_enable_modules="$ol_arg"
1702 ol_enable_modules="no"
1704 # end --enable-modules
1705 # OpenLDAP --enable-multimaster
1706 # Check whether --enable-multimaster or --disable-multimaster was given.
1707 if test "${enable_multimaster+set}" = set; then
1708 enableval="$enable_multimaster"
1711 for ol_val in auto yes no ; do
1712 if test "$enableval" = "$ol_val" ; then
1716 if test "$ol_arg" = "invalid" ; then
1717 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1719 ol_enable_multimaster="$ol_arg"
1722 ol_enable_multimaster="no"
1724 # end --enable-multimaster
1725 # OpenLDAP --enable-phonetic
1726 # Check whether --enable-phonetic or --disable-phonetic was given.
1727 if test "${enable_phonetic+set}" = set; then
1728 enableval="$enable_phonetic"
1731 for ol_val in auto yes no ; do
1732 if test "$enableval" = "$ol_val" ; then
1736 if test "$ol_arg" = "invalid" ; then
1737 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1739 ol_enable_phonetic="$ol_arg"
1742 ol_enable_phonetic="no"
1744 # end --enable-phonetic
1745 # OpenLDAP --enable-quipu
1746 # Check whether --enable-quipu or --disable-quipu was given.
1747 if test "${enable_quipu+set}" = set; then
1748 enableval="$enable_quipu"
1751 for ol_val in auto yes no ; do
1752 if test "$enableval" = "$ol_val" ; then
1756 if test "$ol_arg" = "invalid" ; then
1757 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1759 ol_enable_quipu="$ol_arg"
1762 ol_enable_quipu="no"
1764 # end --enable-quipu
1765 # OpenLDAP --enable-rlookups
1766 # Check whether --enable-rlookups or --disable-rlookups was given.
1767 if test "${enable_rlookups+set}" = set; then
1768 enableval="$enable_rlookups"
1771 for ol_val in auto yes no ; do
1772 if test "$enableval" = "$ol_val" ; then
1776 if test "$ol_arg" = "invalid" ; then
1777 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1779 ol_enable_rlookups="$ol_arg"
1782 ol_enable_rlookups="auto"
1784 # end --enable-rlookups
1785 # OpenLDAP --enable-aci
1786 # Check whether --enable-aci or --disable-aci was given.
1787 if test "${enable_aci+set}" = set; then
1788 enableval="$enable_aci"
1791 for ol_val in auto yes no ; do
1792 if test "$enableval" = "$ol_val" ; then
1796 if test "$ol_arg" = "invalid" ; then
1797 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1799 ol_enable_aci="$ol_arg"
1805 # OpenLDAP --enable-wrappers
1806 # Check whether --enable-wrappers or --disable-wrappers was given.
1807 if test "${enable_wrappers+set}" = set; then
1808 enableval="$enable_wrappers"
1811 for ol_val in auto yes no ; do
1812 if test "$enableval" = "$ol_val" ; then
1816 if test "$ol_arg" = "invalid" ; then
1817 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1819 ol_enable_wrappers="$ol_arg"
1822 ol_enable_wrappers="no"
1824 # end --enable-wrappers
1825 # OpenLDAP --enable-dynamic
1826 # Check whether --enable-dynamic or --disable-dynamic was given.
1827 if test "${enable_dynamic+set}" = set; then
1828 enableval="$enable_dynamic"
1831 for ol_val in auto yes no ; do
1832 if test "$enableval" = "$ol_val" ; then
1836 if test "$ol_arg" = "invalid" ; then
1837 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1839 ol_enable_dynamic="$ol_arg"
1842 ol_enable_dynamic="no"
1844 # end --enable-dynamic
1846 # OpenLDAP --enable-bdb2
1847 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1848 if test "${enable_bdb2+set}" = set; then
1849 enableval="$enable_bdb2"
1852 for ol_val in auto yes no ; do
1853 if test "$enableval" = "$ol_val" ; then
1857 if test "$ol_arg" = "invalid" ; then
1858 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1860 ol_enable_bdb2="$ol_arg"
1866 # OpenLDAP --with-bdb2_module
1867 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1868 if test "${with_bdb2_module+set}" = set; then
1869 withval="$with_bdb2_module"
1872 for ol_val in static dynamic ; do
1873 if test "$withval" = "$ol_val" ; then
1877 if test "$ol_arg" = "invalid" ; then
1878 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1880 ol_with_bdb2_module="$ol_arg"
1883 ol_with_bdb2_module="static"
1885 # end --with-bdb2_module
1887 # OpenLDAP --enable-dnssrv
1888 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1889 if test "${enable_dnssrv+set}" = set; then
1890 enableval="$enable_dnssrv"
1893 for ol_val in auto yes no ; do
1894 if test "$enableval" = "$ol_val" ; then
1898 if test "$ol_arg" = "invalid" ; then
1899 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1901 ol_enable_dnssrv="$ol_arg"
1904 ol_enable_dnssrv="no"
1906 # end --enable-dnssrv
1907 # OpenLDAP --with-dnssrv_module
1908 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1909 if test "${with_dnssrv_module+set}" = set; then
1910 withval="$with_dnssrv_module"
1913 for ol_val in static dynamic ; do
1914 if test "$withval" = "$ol_val" ; then
1918 if test "$ol_arg" = "invalid" ; then
1919 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1921 ol_with_dnssrv_module="$ol_arg"
1924 ol_with_dnssrv_module="static"
1926 # end --with-dnssrv_module
1928 # OpenLDAP --enable-ldap
1929 # Check whether --enable-ldap or --disable-ldap was given.
1930 if test "${enable_ldap+set}" = set; then
1931 enableval="$enable_ldap"
1934 for ol_val in auto yes no ; do
1935 if test "$enableval" = "$ol_val" ; then
1939 if test "$ol_arg" = "invalid" ; then
1940 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1942 ol_enable_ldap="$ol_arg"
1948 # OpenLDAP --with-ldap_module
1949 # Check whether --with-ldap_module or --without-ldap_module was given.
1950 if test "${with_ldap_module+set}" = set; then
1951 withval="$with_ldap_module"
1954 for ol_val in static dynamic ; do
1955 if test "$withval" = "$ol_val" ; then
1959 if test "$ol_arg" = "invalid" ; then
1960 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1962 ol_with_ldap_module="$ol_arg"
1965 ol_with_ldap_module="static"
1967 # end --with-ldap_module
1969 # OpenLDAP --enable-ldbm
1970 # Check whether --enable-ldbm or --disable-ldbm was given.
1971 if test "${enable_ldbm+set}" = set; then
1972 enableval="$enable_ldbm"
1975 for ol_val in auto yes no ; do
1976 if test "$enableval" = "$ol_val" ; then
1980 if test "$ol_arg" = "invalid" ; then
1981 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1983 ol_enable_ldbm="$ol_arg"
1986 ol_enable_ldbm="yes"
1989 # OpenLDAP --with-ldbm_api
1990 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1991 if test "${with_ldbm_api+set}" = set; then
1992 withval="$with_ldbm_api"
1995 for ol_val in auto db2 db mdbm gdbm manual ; do
1996 if test "$withval" = "$ol_val" ; then
2000 if test "$ol_arg" = "invalid" ; then
2001 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2003 ol_with_ldbm_api="$ol_arg"
2006 ol_with_ldbm_api="auto"
2008 # end --with-ldbm_api
2010 # OpenLDAP --with-ldbm_module
2011 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2012 if test "${with_ldbm_module+set}" = set; then
2013 withval="$with_ldbm_module"
2016 for ol_val in static dynamic ; do
2017 if test "$withval" = "$ol_val" ; then
2021 if test "$ol_arg" = "invalid" ; then
2022 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2024 ol_with_ldbm_module="$ol_arg"
2027 ol_with_ldbm_module="static"
2029 # end --with-ldbm_module
2031 # OpenLDAP --with-ldbm_type
2032 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2033 if test "${with_ldbm_type+set}" = set; then
2034 withval="$with_ldbm_type"
2037 for ol_val in auto btree hash ; do
2038 if test "$withval" = "$ol_val" ; then
2042 if test "$ol_arg" = "invalid" ; then
2043 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2045 ol_with_ldbm_type="$ol_arg"
2048 ol_with_ldbm_type="auto"
2050 # end --with-ldbm_type
2052 # OpenLDAP --enable-passwd
2053 # Check whether --enable-passwd or --disable-passwd was given.
2054 if test "${enable_passwd+set}" = set; then
2055 enableval="$enable_passwd"
2058 for ol_val in auto yes no ; do
2059 if test "$enableval" = "$ol_val" ; then
2063 if test "$ol_arg" = "invalid" ; then
2064 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2066 ol_enable_passwd="$ol_arg"
2069 ol_enable_passwd="no"
2071 # end --enable-passwd
2072 # OpenLDAP --with-passwd_module
2073 # Check whether --with-passwd_module or --without-passwd_module was given.
2074 if test "${with_passwd_module+set}" = set; then
2075 withval="$with_passwd_module"
2078 for ol_val in static dynamic ; do
2079 if test "$withval" = "$ol_val" ; then
2083 if test "$ol_arg" = "invalid" ; then
2084 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2086 ol_with_passwd_module="$ol_arg"
2089 ol_with_passwd_module="static"
2091 # end --with-passwd_module
2093 # OpenLDAP --enable-perl
2094 # Check whether --enable-perl or --disable-perl was given.
2095 if test "${enable_perl+set}" = set; then
2096 enableval="$enable_perl"
2099 for ol_val in auto yes no ; do
2100 if test "$enableval" = "$ol_val" ; then
2104 if test "$ol_arg" = "invalid" ; then
2105 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2107 ol_enable_perl="$ol_arg"
2113 # OpenLDAP --with-perl_module
2114 # Check whether --with-perl_module or --without-perl_module was given.
2115 if test "${with_perl_module+set}" = set; then
2116 withval="$with_perl_module"
2119 for ol_val in static dynamic ; do
2120 if test "$withval" = "$ol_val" ; then
2124 if test "$ol_arg" = "invalid" ; then
2125 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2127 ol_with_perl_module="$ol_arg"
2130 ol_with_perl_module="static"
2132 # end --with-perl_module
2134 # OpenLDAP --enable-shell
2135 # Check whether --enable-shell or --disable-shell was given.
2136 if test "${enable_shell+set}" = set; then
2137 enableval="$enable_shell"
2140 for ol_val in auto yes no ; do
2141 if test "$enableval" = "$ol_val" ; then
2145 if test "$ol_arg" = "invalid" ; then
2146 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2148 ol_enable_shell="$ol_arg"
2151 ol_enable_shell="no"
2153 # end --enable-shell
2154 # OpenLDAP --with-shell_module
2155 # Check whether --with-shell_module or --without-shell_module was given.
2156 if test "${with_shell_module+set}" = set; then
2157 withval="$with_shell_module"
2160 for ol_val in static dynamic ; do
2161 if test "$withval" = "$ol_val" ; then
2165 if test "$ol_arg" = "invalid" ; then
2166 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2168 ol_with_shell_module="$ol_arg"
2171 ol_with_shell_module="static"
2173 # end --with-shell_module
2175 # OpenLDAP --enable-sql
2176 # Check whether --enable-sql or --disable-sql was given.
2177 if test "${enable_sql+set}" = set; then
2178 enableval="$enable_sql"
2181 for ol_val in auto yes no ; do
2182 if test "$enableval" = "$ol_val" ; then
2186 if test "$ol_arg" = "invalid" ; then
2187 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2189 ol_enable_sql="$ol_arg"
2195 # OpenLDAP --with-sql_module
2196 # Check whether --with-sql_module or --without-sql_module was given.
2197 if test "${with_sql_module+set}" = set; then
2198 withval="$with_sql_module"
2201 for ol_val in static dynamic ; do
2202 if test "$withval" = "$ol_val" ; then
2206 if test "$ol_arg" = "invalid" ; then
2207 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2209 ol_with_sql_module="$ol_arg"
2212 ol_with_sql_module="static"
2214 # end --with-sql_module
2216 # OpenLDAP --enable-tcl
2217 # Check whether --enable-tcl or --disable-tcl was given.
2218 if test "${enable_tcl+set}" = set; then
2219 enableval="$enable_tcl"
2222 for ol_val in auto yes no ; do
2223 if test "$enableval" = "$ol_val" ; then
2227 if test "$ol_arg" = "invalid" ; then
2228 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2230 ol_enable_tcl="$ol_arg"
2236 # OpenLDAP --with-tcl_module
2237 # Check whether --with-tcl_module or --without-tcl_module was given.
2238 if test "${with_tcl_module+set}" = set; then
2239 withval="$with_tcl_module"
2242 for ol_val in static dynamic ; do
2243 if test "$withval" = "$ol_val" ; then
2247 if test "$ol_arg" = "invalid" ; then
2248 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2250 ol_with_tcl_module="$ol_arg"
2253 ol_with_tcl_module="static"
2255 # end --with-tcl_module
2258 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2259 if test "${with_xxslurpdoptions+set}" = set; then
2260 withval="$with_xxslurpdoptions"
2264 # OpenLDAP --enable-slurpd
2265 # Check whether --enable-slurpd or --disable-slurpd was given.
2266 if test "${enable_slurpd+set}" = set; then
2267 enableval="$enable_slurpd"
2270 for ol_val in auto yes no ; do
2271 if test "$enableval" = "$ol_val" ; then
2275 if test "$ol_arg" = "invalid" ; then
2276 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2278 ol_enable_slurpd="$ol_arg"
2281 ol_enable_slurpd="auto"
2283 # end --enable-slurpd
2285 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2286 if test "${with_xxliboptions+set}" = set; then
2287 withval="$with_xxliboptions"
2291 # Check whether --enable-static or --disable-static was given.
2292 if test "${enable_static+set}" = set; then
2293 enableval="$enable_static"
2294 p=${PACKAGE-default}
2295 case "$enableval" in
2296 yes) enable_static=yes ;;
2297 no) enable_static=no ;;
2300 # Look at the argument we got. We use all the common list separators.
2301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2302 for pkg in $enableval; do
2303 if test "X$pkg" = "X$p"; then
2314 # Check whether --enable-shared or --disable-shared was given.
2315 if test "${enable_shared+set}" = set; then
2316 enableval="$enable_shared"
2317 p=${PACKAGE-default}
2318 case "$enableval" in
2319 yes) enable_shared=yes ;;
2320 no) enable_shared=no ;;
2323 # Look at the argument we got. We use all the common list separators.
2324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2325 for pkg in $enableval; do
2326 if test "X$pkg" = "X$p"; then
2340 if test $ol_enable_dns = yes ; then
2341 if test $ol_enable_referrals = no ; then
2342 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2344 if test $ol_enable_referrals = auto ; then
2345 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2346 ol_enable_referrals=yes
2350 if test $ol_enable_slapd = no ; then
2351 if test $ol_enable_bdb2 = yes ; then
2352 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2354 if test $ol_enable_dnssrv = yes ; then
2355 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2357 if test $ol_enable_ldap = yes ; then
2358 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2360 if test $ol_enable_ldbm = yes ; then
2361 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2363 if test $ol_enable_passwd = yes ; then
2364 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2366 if test $ol_enable_perl = yes ; then
2367 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2369 if test $ol_enable_shell = yes ; then
2370 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2372 if test $ol_enable_tcl = yes ; then
2373 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2375 if test $ol_enable_sql = yes ; then
2376 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2378 if test $ol_enable_modules = yes ; then
2379 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2381 if test $ol_enable_multimaster = yes ; then
2382 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2384 if test $ol_enable_wrappers = yes ; then
2385 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2387 if test $ol_enable_phonetic = yes ; then
2388 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2390 if test $ol_enable_quipu = yes ; then
2391 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2393 if test $ol_enable_rlookups = yes ; then
2394 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2396 if test $ol_enable_aci = yes ; then
2397 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2399 if test $ol_with_ldbm_api != auto ; then
2400 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2402 if test $ol_with_ldbm_type != auto ; then
2403 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2405 if test $ol_with_bdb2_module != static ; then
2406 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2408 if test $ol_with_dnssrv_module != static ; then
2409 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2411 if test $ol_with_ldap_module != static ; then
2412 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2414 if test $ol_with_ldbm_module != static ; then
2415 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2417 if test $ol_with_passwd_module != static ; then
2418 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2420 if test $ol_with_perl_module != static ; then
2421 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2423 if test $ol_with_shell_module != static ; then
2424 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2426 if test $ol_with_tcl_module != static ; then
2427 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2429 if test $ol_with_sql_module != static ; then
2430 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2432 if test $ol_enable_slurpd = yes ; then
2433 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2436 # force settings to no
2447 ol_enable_modules=no
2448 ol_enable_multimaster=no
2449 ol_enable_phonetic=no
2451 ol_enable_rlookups=no
2453 ol_enable_wrappers=no
2454 ol_enable_dynamic=no
2457 ol_with_ldbm_type=no
2459 ol_with_bdb2_module=static
2460 ol_with_dnssrv_module=static
2461 ol_with_ldap_module=static
2462 ol_with_ldbm_module=static
2463 ol_with_passwd_module=static
2464 ol_with_perl_module=static
2465 ol_with_shell_module=static
2466 ol_with_tcl_module=static
2467 ol_with_sql_module=static
2471 elif test $ol_enable_ldbm = no ; then
2473 if test $ol_with_ldbm_api != auto ; then
2474 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2477 if test $ol_with_ldbm_type != auto ; then
2478 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2481 if test $ol_with_ldbm_module != static ; then
2482 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2485 if test $ol_enable_bdb2 = yes ; then
2486 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2489 if test $ol_enable_modules != yes -a \
2490 $ol_enable_dnssrv = no -a \
2491 $ol_enable_ldap = no -a \
2492 $ol_enable_passwd = no -a \
2493 $ol_enable_perl = no -a \
2494 $ol_enable_shell = no -a \
2495 $ol_enable_sql = no -a \
2496 $ol_enable_tcl = no ; then
2497 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2501 ol_with_ldbm_type=no
2502 ol_with_ldbm_module=static
2504 elif test $ol_enable_bdb2 = yes ; then
2506 if test $ol_with_ldbm_api != auto -a \
2507 $ol_with_ldbm_api != db2 ; then
2508 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2511 ol_with_ldbm_api=db2
2515 if test $ol_enable_bdb2 != no ; then
2516 if test $ol_with_ldbm_api != auto -a \
2517 $ol_with_ldbm_api != db2 ; then
2518 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2523 if test $ol_with_ldbm_api = gdbm -a \
2524 $ol_with_ldbm_type = btree ; then
2525 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2527 if test $ol_with_ldbm_api = mdbm -a \
2528 $ol_with_ldbm_type = btree ; then
2529 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2531 if test $ol_with_ldbm_api = ndbm -a \
2532 $ol_with_ldbm_type = btree ; then
2533 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2537 if test $ol_enable_slurpd = yes ; then
2538 if test $ol_with_threads = no ; then
2539 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2543 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2544 if test $ol_with_kerberos = no ; then
2545 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2547 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2548 if test $ol_with_kerberos != auto ; then
2549 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2555 if test $ol_enable_spasswd = yes ; then
2556 if test $ol_with_cyrus_sasl = no ; then
2557 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2559 ol_with_cyrus_sasl=yes
2562 echo "$ac_t""done" 1>&6
2591 BUILD_BDB2_DYNAMIC=static
2592 BUILD_DNSSRV_DYNAMIC=static
2593 BUILD_LDAP_DYNAMIC=static
2594 BUILD_LDBM_DYNAMIC=static
2595 BUILD_PASSWD_DYNAMIC=static
2596 BUILD_PERL_DYNAMIC=static
2597 BUILD_SHELL_DYNAMIC=static
2598 BUILD_TCL_DYNAMIC=static
2599 BUILD_SQL_DYNAMIC=static
2601 SLAPD_MODULES_LDFLAGS=
2602 SLAPD_MODULES_CPPFLAGS=
2624 cat >> confdefs.h <<\EOF
2625 #define HAVE_MKVERSION 1
2633 *-*-aix*) if test -z "$CC" ; then
2634 case "$ol_with_threads" in
2635 auto | yes | posix) ol_aix_threads=yes ;;
2641 if test $ol_aix_threads = yes ; then
2642 if test -z "${CC}" ; then
2643 for ac_prog in cc_r xlc_r cc
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646 set dummy $ac_prog; ac_word=$2
2647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2648 echo "configure:2649: checking for $ac_word" >&5
2649 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2657 for ac_dir in $ac_dummy; do
2658 test -z "$ac_dir" && ac_dir=.
2659 if test -f $ac_dir/$ac_word; then
2660 ac_cv_prog_CC="$ac_prog"
2668 if test -n "$CC"; then
2669 echo "$ac_t""$CC" 1>&6
2671 echo "$ac_t""no" 1>&6
2674 test -n "$CC" && break
2678 if test "$CC" = cc ; then
2679 if test $ol_with_threads != auto ; then
2680 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2682 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2688 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2689 ol_with_threads=posix
2690 ol_cv_pthread_create=yes
2694 if test -z "${CC}"; then
2697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2698 set dummy $ac_prog; ac_word=$2
2699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2700 echo "configure:2701: checking for $ac_word" >&5
2701 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 if test -n "$CC"; then
2705 ac_cv_prog_CC="$CC" # Let the user override the test.
2707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2709 for ac_dir in $ac_dummy; do
2710 test -z "$ac_dir" && ac_dir=.
2711 if test -f $ac_dir/$ac_word; then
2712 ac_cv_prog_CC="$ac_prog"
2720 if test -n "$CC"; then
2721 echo "$ac_t""$CC" 1>&6
2723 echo "$ac_t""no" 1>&6
2726 test -n "$CC" && break
2734 # Check whether --enable-fast-install or --disable-fast-install was given.
2735 if test "${enable_fast_install+set}" = set; then
2736 enableval="$enable_fast_install"
2737 p=${PACKAGE-default}
2738 case "$enableval" in
2739 yes) enable_fast_install=yes ;;
2740 no) enable_fast_install=no ;;
2742 enable_fast_install=no
2743 # Look at the argument we got. We use all the common list separators.
2744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2745 for pkg in $enableval; do
2746 if test "X$pkg" = "X$p"; then
2747 enable_fast_install=yes
2754 enable_fast_install=yes
2757 # Extract the first word of "ranlib", so it can be a program name with args.
2758 set dummy ranlib; ac_word=$2
2759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2760 echo "configure:2761: checking for $ac_word" >&5
2761 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 if test -n "$RANLIB"; then
2765 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2769 for ac_dir in $ac_dummy; do
2770 test -z "$ac_dir" && ac_dir=.
2771 if test -f $ac_dir/$ac_word; then
2772 ac_cv_prog_RANLIB="ranlib"
2777 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2780 RANLIB="$ac_cv_prog_RANLIB"
2781 if test -n "$RANLIB"; then
2782 echo "$ac_t""$RANLIB" 1>&6
2784 echo "$ac_t""no" 1>&6
2787 # Extract the first word of "gcc", so it can be a program name with args.
2788 set dummy gcc; ac_word=$2
2789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2790 echo "configure:2791: checking for $ac_word" >&5
2791 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2799 for ac_dir in $ac_dummy; do
2800 test -z "$ac_dir" && ac_dir=.
2801 if test -f $ac_dir/$ac_word; then
2810 if test -n "$CC"; then
2811 echo "$ac_t""$CC" 1>&6
2813 echo "$ac_t""no" 1>&6
2816 if test -z "$CC"; then
2817 # Extract the first word of "cc", so it can be a program name with args.
2818 set dummy cc; ac_word=$2
2819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2820 echo "configure:2821: checking for $ac_word" >&5
2821 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 if test -n "$CC"; then
2825 ac_cv_prog_CC="$CC" # Let the user override the test.
2827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2830 for ac_dir in $ac_dummy; do
2831 test -z "$ac_dir" && ac_dir=.
2832 if test -f $ac_dir/$ac_word; then
2833 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2834 ac_prog_rejected=yes
2842 if test $ac_prog_rejected = yes; then
2843 # We found a bogon in the path, so make sure we never use it.
2844 set dummy $ac_cv_prog_CC
2846 if test $# -gt 0; then
2847 # We chose a different compiler from the bogus one.
2848 # However, it has the same basename, so the bogon will be chosen
2849 # first if we set CC to just the basename; use the full file name.
2851 set dummy "$ac_dir/$ac_word" "$@"
2859 if test -n "$CC"; then
2860 echo "$ac_t""$CC" 1>&6
2862 echo "$ac_t""no" 1>&6
2865 if test -z "$CC"; then
2866 case "`uname -s`" in
2867 *win32* | *WIN32* | *CYGWIN*)
2868 # Extract the first word of "cl", so it can be a program name with args.
2869 set dummy cl; ac_word=$2
2870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2871 echo "configure:2872: checking for $ac_word" >&5
2872 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2880 for ac_dir in $ac_dummy; do
2881 test -z "$ac_dir" && ac_dir=.
2882 if test -f $ac_dir/$ac_word; then
2891 if test -n "$CC"; then
2892 echo "$ac_t""$CC" 1>&6
2894 echo "$ac_t""no" 1>&6
2899 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2903 echo "configure:2904: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2906 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2907 ac_cpp='$CPP $CPPFLAGS'
2908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2909 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2910 cross_compiling=$ac_cv_prog_cc_cross
2912 cat > conftest.$ac_ext << EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2919 if { (eval echo configure:2920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2920 ac_cv_prog_cc_works=yes
2921 # If we can't run a trivial program, we are probably using a cross compiler.
2922 if (./conftest; exit) 2>/dev/null; then
2923 ac_cv_prog_cc_cross=no
2925 ac_cv_prog_cc_cross=yes
2928 echo "configure: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2930 ac_cv_prog_cc_works=no
2934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2938 cross_compiling=$ac_cv_prog_cc_cross
2940 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2941 if test $ac_cv_prog_cc_works = no; then
2942 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2944 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2945 echo "configure:2946: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2946 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2947 cross_compiling=$ac_cv_prog_cc_cross
2949 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2950 echo "configure:2951: checking whether we are using GNU C" >&5
2951 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2954 cat > conftest.c <<EOF
2959 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2966 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2968 if test $ac_cv_prog_gcc = yes; then
2974 ac_test_CFLAGS="${CFLAGS+set}"
2975 ac_save_CFLAGS="$CFLAGS"
2977 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2978 echo "configure:2979: checking whether ${CC-cc} accepts -g" >&5
2979 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2982 echo 'void f(){}' > conftest.c
2983 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2992 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2993 if test "$ac_test_CFLAGS" = set; then
2994 CFLAGS="$ac_save_CFLAGS"
2995 elif test $ac_cv_prog_cc_g = yes; then
2996 if test "$GCC" = yes; then
3002 if test "$GCC" = yes; then
3009 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3010 if test "${with_gnu_ld+set}" = set; then
3011 withval="$with_gnu_ld"
3012 test "$withval" = no || with_gnu_ld=yes
3018 if test "$ac_cv_prog_gcc" = yes; then
3019 # Check if gcc -print-prog-name=ld gives a path.
3020 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3021 echo "configure:3022: checking for ld used by GCC" >&5
3022 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3024 # Accept absolute paths.
3025 [\\/]* | [A-Za-z]:[\\/]*)
3026 re_direlt='/[^/][^/]*/\.\./'
3027 # Canonicalize the path of ld
3028 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3029 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3030 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3032 test -z "$LD" && LD="$ac_prog"
3035 # If it fails, then pretend we aren't using GCC.
3039 # If it is relative, then search for the first ld in PATH.
3043 elif test "$with_gnu_ld" = yes; then
3044 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3045 echo "configure:3046: checking for GNU ld" >&5
3047 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3048 echo "configure:3049: checking for non-GNU ld" >&5
3050 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3053 if test -z "$LD"; then
3054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3055 for ac_dir in $PATH; do
3056 test -z "$ac_dir" && ac_dir=.
3057 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3058 ac_cv_path_LD="$ac_dir/$ac_prog"
3059 # Check to see if the program is GNU ld. I'd rather use --version,
3060 # but apparently some GNU ld's only accept -v.
3061 # Break only if it was the GNU/non-GNU ld that we prefer.
3062 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3063 test "$with_gnu_ld" != no && break
3065 test "$with_gnu_ld" != yes && break
3071 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3076 if test -n "$LD"; then
3077 echo "$ac_t""$LD" 1>&6
3079 echo "$ac_t""no" 1>&6
3081 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3083 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3084 echo "configure:3085: checking if the linker ($LD) is GNU ld" >&5
3085 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3086 echo $ac_n "(cached) $ac_c" 1>&6
3088 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3089 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3090 ac_cv_prog_gnu_ld=yes
3092 ac_cv_prog_gnu_ld=no
3096 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3099 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3100 echo "configure:3101: checking for BSD-compatible nm" >&5
3101 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 if test -n "$NM"; then
3105 # Let the user override the test.
3108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3109 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3110 test -z "$ac_dir" && ac_dir=.
3111 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3112 # Check to see if the nm accepts a BSD-compat flag.
3113 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3114 # nm: unknown option "B" ignored
3115 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3116 ac_cv_path_NM="$ac_dir/nm -B"
3118 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3119 ac_cv_path_NM="$ac_dir/nm -p"
3122 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3123 continue # so that we can try to find one that supports BSD flags
3128 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3133 echo "$ac_t""$NM" 1>&6
3136 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3137 echo "configure:3138: checking whether ln -s works" >&5
3138 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3142 if ln -s X conftestdata 2>/dev/null
3145 ac_cv_prog_LN_S="ln -s"
3150 LN_S="$ac_cv_prog_LN_S"
3151 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3152 echo "$ac_t""yes" 1>&6
3154 echo "$ac_t""no" 1>&6
3157 if test $host != $build; then
3158 ac_tool_prefix=${host_alias}-
3164 # Check for any special flags to pass to ltconfig.
3165 libtool_flags="--cache-file=$cache_file"
3166 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3167 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3168 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3169 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3170 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3171 libtool_flags="$libtool_flags --enable-dlopen"
3172 libtool_flags="$libtool_flags --enable-win32-dll"
3173 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3174 if test "${enable_libtool_lock+set}" = set; then
3175 enableval="$enable_libtool_lock"
3179 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3180 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3182 # Some flags need to be propagated to the compiler or linker for good
3186 # Find out which ABI we are using.
3187 echo '#line 3188 "configure"' > conftest.$ac_ext
3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3189 case "`/usr/bin/file conftest.o`" in
3205 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3206 SAVE_CFLAGS="$CFLAGS"
3207 CFLAGS="$CFLAGS -belf"
3208 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3209 echo "configure:3210: checking whether the C compiler needs -belf" >&5
3210 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3221 if { (eval echo configure:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3223 lt_cv_cc_needs_belf=yes
3225 echo "configure: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3228 lt_cv_cc_needs_belf=no
3233 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3234 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3235 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3236 CFLAGS="$SAVE_CFLAGS"
3240 *-*-cygwin* | *-*-mingw*)
3241 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3244 echo "configure:3245: checking for $ac_word" >&5
3245 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3246 echo $ac_n "(cached) $ac_c" 1>&6
3248 if test -n "$DLLTOOL"; then
3249 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3253 for ac_dir in $ac_dummy; do
3254 test -z "$ac_dir" && ac_dir=.
3255 if test -f $ac_dir/$ac_word; then
3256 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3263 DLLTOOL="$ac_cv_prog_DLLTOOL"
3264 if test -n "$DLLTOOL"; then
3265 echo "$ac_t""$DLLTOOL" 1>&6
3267 echo "$ac_t""no" 1>&6
3271 if test -z "$ac_cv_prog_DLLTOOL"; then
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "dlltool", so it can be a program name with args.
3274 set dummy dlltool; ac_word=$2
3275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3276 echo "configure:3277: checking for $ac_word" >&5
3277 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 if test -n "$DLLTOOL"; then
3281 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3285 for ac_dir in $ac_dummy; do
3286 test -z "$ac_dir" && ac_dir=.
3287 if test -f $ac_dir/$ac_word; then
3288 ac_cv_prog_DLLTOOL="dlltool"
3293 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3296 DLLTOOL="$ac_cv_prog_DLLTOOL"
3297 if test -n "$DLLTOOL"; then
3298 echo "$ac_t""$DLLTOOL" 1>&6
3300 echo "$ac_t""no" 1>&6
3308 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3309 set dummy ${ac_tool_prefix}as; ac_word=$2
3310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3311 echo "configure:3312: checking for $ac_word" >&5
3312 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3315 if test -n "$AS"; then
3316 ac_cv_prog_AS="$AS" # Let the user override the test.
3318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3320 for ac_dir in $ac_dummy; do
3321 test -z "$ac_dir" && ac_dir=.
3322 if test -f $ac_dir/$ac_word; then
3323 ac_cv_prog_AS="${ac_tool_prefix}as"
3331 if test -n "$AS"; then
3332 echo "$ac_t""$AS" 1>&6
3334 echo "$ac_t""no" 1>&6
3338 if test -z "$ac_cv_prog_AS"; then
3339 if test -n "$ac_tool_prefix"; then
3340 # Extract the first word of "as", so it can be a program name with args.
3341 set dummy as; ac_word=$2
3342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3343 echo "configure:3344: checking for $ac_word" >&5
3344 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 if test -n "$AS"; then
3348 ac_cv_prog_AS="$AS" # Let the user override the test.
3350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3352 for ac_dir in $ac_dummy; do
3353 test -z "$ac_dir" && ac_dir=.
3354 if test -f $ac_dir/$ac_word; then
3360 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3364 if test -n "$AS"; then
3365 echo "$ac_t""$AS" 1>&6
3367 echo "$ac_t""no" 1>&6
3375 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3376 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3378 echo "configure:3379: checking for $ac_word" >&5
3379 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 if test -n "$OBJDUMP"; then
3383 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3387 for ac_dir in $ac_dummy; do
3388 test -z "$ac_dir" && ac_dir=.
3389 if test -f $ac_dir/$ac_word; then
3390 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3397 OBJDUMP="$ac_cv_prog_OBJDUMP"
3398 if test -n "$OBJDUMP"; then
3399 echo "$ac_t""$OBJDUMP" 1>&6
3401 echo "$ac_t""no" 1>&6
3405 if test -z "$ac_cv_prog_OBJDUMP"; then
3406 if test -n "$ac_tool_prefix"; then
3407 # Extract the first word of "objdump", so it can be a program name with args.
3408 set dummy objdump; ac_word=$2
3409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3410 echo "configure:3411: checking for $ac_word" >&5
3411 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 if test -n "$OBJDUMP"; then
3415 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3419 for ac_dir in $ac_dummy; do
3420 test -z "$ac_dir" && ac_dir=.
3421 if test -f $ac_dir/$ac_word; then
3422 ac_cv_prog_OBJDUMP="objdump"
3427 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3430 OBJDUMP="$ac_cv_prog_OBJDUMP"
3431 if test -n "$OBJDUMP"; then
3432 echo "$ac_t""$OBJDUMP" 1>&6
3434 echo "$ac_t""no" 1>&6
3447 # Save cache, so that ltconfig can load it
3450 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3451 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3452 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3453 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3454 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3455 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3456 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3457 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3459 # Reload cache, that may have been modified by ltconfig
3462 # This can be used to rebuild libtool when needed
3463 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3465 # Always use our own libtool.
3466 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3468 # Redirect the config.log output again, so that the ltconfig log is not
3469 # clobbered by the next message.
3470 exec 5>>./config.log
3473 for ac_prog in mawk gawk nawk awk
3475 # Extract the first word of "$ac_prog", so it can be a program name with args.
3476 set dummy $ac_prog; ac_word=$2
3477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3478 echo "configure:3479: checking for $ac_word" >&5
3479 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3482 if test -n "$AWK"; then
3483 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3487 for ac_dir in $ac_dummy; do
3488 test -z "$ac_dir" && ac_dir=.
3489 if test -f $ac_dir/$ac_word; then
3490 ac_cv_prog_AWK="$ac_prog"
3497 AWK="$ac_cv_prog_AWK"
3498 if test -n "$AWK"; then
3499 echo "$ac_t""$AWK" 1>&6
3501 echo "$ac_t""no" 1>&6
3504 test -n "$AWK" && break
3507 # test for ln hardlink support
3508 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3509 echo "configure:3510: checking whether ln works" >&5
3510 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 rm -f conftest.src conftest.dst
3514 echo "conftest" > conftest.src
3515 if ln conftest.src conftest.dst 2>/dev/null
3517 ol_cv_prog_LN_H="ln"
3519 ol_cv_prog_LN_H="cp"
3521 rm -f conftest.src conftest.dst
3524 LN_H="$ol_cv_prog_LN_H"
3525 if test "$ol_cv_prog_LN_H" = "ln"; then
3526 echo "$ac_t""yes" 1>&6
3528 echo "$ac_t""no" 1>&6
3531 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3532 echo "configure:3533: checking whether ln -s works" >&5
3533 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3537 if ln -s X conftestdata 2>/dev/null
3540 ac_cv_prog_LN_S="ln -s"
3545 LN_S="$ac_cv_prog_LN_S"
3546 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3547 echo "$ac_t""yes" 1>&6
3549 echo "$ac_t""no" 1>&6
3553 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3557 # Extract the first word of "sendmail", so it can be a program name with args.
3558 set dummy sendmail; ac_word=$2
3559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3560 echo "configure:3561: checking for $ac_word" >&5
3561 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3566 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3569 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3573 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3574 for ac_dir in $ac_dummy; do
3575 test -z "$ac_dir" && ac_dir=.
3576 if test -f $ac_dir/$ac_word; then
3577 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3582 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3586 SENDMAIL="$ac_cv_path_SENDMAIL"
3587 if test -n "$SENDMAIL"; then
3588 echo "$ac_t""$SENDMAIL" 1>&6
3590 echo "$ac_t""no" 1>&6
3593 # Extract the first word of "vi", so it can be a program name with args.
3594 set dummy vi; ac_word=$2
3595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3596 echo "configure:3597: checking for $ac_word" >&5
3597 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3602 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3605 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3609 ac_dummy="$PATH:/usr/ucb"
3610 for ac_dir in $ac_dummy; do
3611 test -z "$ac_dir" && ac_dir=.
3612 if test -f $ac_dir/$ac_word; then
3613 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3618 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3622 EDITOR="$ac_cv_path_EDITOR"
3623 if test -n "$EDITOR"; then
3624 echo "$ac_t""$EDITOR" 1>&6
3626 echo "$ac_t""no" 1>&6
3629 # Extract the first word of "finger", so it can be a program name with args.
3630 set dummy finger; ac_word=$2
3631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3632 echo "configure:3633: checking for $ac_word" >&5
3633 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3638 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3641 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3645 ac_dummy="$PATH:/usr/ucb"
3646 for ac_dir in $ac_dummy; do
3647 test -z "$ac_dir" && ac_dir=.
3648 if test -f $ac_dir/$ac_word; then
3649 ac_cv_path_FINGER="$ac_dir/$ac_word"
3654 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3658 FINGER="$ac_cv_path_FINGER"
3659 if test -n "$FINGER"; then
3660 echo "$ac_t""$FINGER" 1>&6
3662 echo "$ac_t""no" 1>&6
3667 if test $ol_enable_perl != no ; then
3668 # Extract the first word of "perl", so it can be a program name with args.
3669 set dummy perl; ac_word=$2
3670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3671 echo "configure:3672: checking for $ac_word" >&5
3672 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3677 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3680 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3685 for ac_dir in $ac_dummy; do
3686 test -z "$ac_dir" && ac_dir=.
3687 if test -f $ac_dir/$ac_word; then
3688 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3693 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3697 PERLBIN="$ac_cv_path_PERLBIN"
3698 if test -n "$PERLBIN"; then
3699 echo "$ac_t""$PERLBIN" 1>&6
3701 echo "$ac_t""no" 1>&6
3705 if test "no$PERLBIN" = "no" ; then
3706 if test $ol_enable_perl = yes ; then
3707 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3711 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3712 if test x"$ol_with_perl_module" = "xstatic" ; then
3713 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3715 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3721 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3722 echo "configure:3723: checking how to run the C preprocessor" >&5
3723 # On Suns, sometimes $CPP names a directory.
3724 if test -n "$CPP" && test -d "$CPP"; then
3727 if test -z "$CPP"; then
3728 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 # This must be in double quotes, not single quotes, because CPP may get
3732 # substituted into the Makefile and "${CC-cc}" will confuse make.
3734 # On the NeXT, cc -E runs the code through the compiler's parser,
3735 # not just through cpp.
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3743 { (eval echo configure:3744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3745 if test -z "$ac_err"; then
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3752 CPP="${CC-cc} -E -traditional-cpp"
3753 cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3760 { (eval echo configure:3761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3762 if test -z "$ac_err"; then
3766 echo "configure: failed program was:" >&5
3767 cat conftest.$ac_ext >&5
3769 CPP="${CC-cc} -nologo -E"
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3777 { (eval echo configure:3778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3779 if test -z "$ac_err"; then
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3793 ac_cv_prog_CPP="$CPP"
3795 CPP="$ac_cv_prog_CPP"
3797 ac_cv_prog_CPP="$CPP"
3799 echo "$ac_t""$CPP" 1>&6
3802 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3803 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3805 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3806 echo "configure: warning: programs compiled here do run here..." 1>&2
3807 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3809 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3810 echo "configure: warning: programs compiled here do not run here..." 1>&2
3811 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3814 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3815 echo "configure:3816: checking for AIX" >&5
3816 cat > conftest.$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3825 egrep "yes" >/dev/null 2>&1; then
3827 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3828 #define _ALL_SOURCE 1
3833 echo "$ac_t""no" 1>&6
3838 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3839 echo "configure:3840: checking for POSIXized ISC" >&5
3840 if test -d /etc/conf/kconfig.d &&
3841 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3843 echo "$ac_t""yes" 1>&6
3844 ISC=yes # If later tests want to check for ISC.
3845 cat >> confdefs.h <<\EOF
3846 #define _POSIX_SOURCE 1
3849 if test "$GCC" = yes; then
3855 echo "$ac_t""no" 1>&6
3859 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3860 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3861 echo "configure:3862: checking for minix/config.h" >&5
3862 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3868 #include <minix/config.h>
3870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3871 { (eval echo configure:3872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3873 if test -z "$ac_err"; then
3875 eval "ac_cv_header_$ac_safe=yes"
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3881 eval "ac_cv_header_$ac_safe=no"
3885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3886 echo "$ac_t""yes" 1>&6
3889 echo "$ac_t""no" 1>&6
3893 if test "$MINIX" = yes; then
3894 cat >> confdefs.h <<\EOF
3895 #define _POSIX_SOURCE 1
3898 cat >> confdefs.h <<\EOF
3899 #define _POSIX_1_SOURCE 2
3902 cat >> confdefs.h <<\EOF
3909 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3910 echo "configure:3911: checking for Cygwin environment" >&5
3911 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3921 #define __CYGWIN__ __CYGWIN32__
3926 if { (eval echo configure:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3938 echo "$ac_t""$ac_cv_cygwin" 1>&6
3940 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3941 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3942 echo "configure:3943: checking for mingw32 environment" >&5
3943 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3946 cat > conftest.$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3954 if { (eval echo configure:3955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3958 echo "configure: failed program was:" >&5
3959 cat conftest.$ac_ext >&5
3966 echo "$ac_t""$ac_cv_mingw32" 1>&6
3968 test "$ac_cv_mingw32" = yes && MINGW32=yes
3969 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3970 echo "configure:3971: checking for EMX OS/2 environment" >&5
3971 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 cat > conftest.$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3982 if { (eval echo configure:3983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3986 echo "configure: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3994 echo "$ac_t""$ac_cv_emxos2" 1>&6
3996 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4000 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4001 echo "configure:4002: checking for executable suffix" >&5
4002 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4005 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4009 echo 'int main () { return 0; }' > conftest.$ac_ext
4011 if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4012 for file in conftest.*; do
4014 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4015 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4019 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4022 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4027 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4028 echo "$ac_t""${ac_cv_exeext}" 1>&6
4031 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4032 echo "configure:4033: checking for object suffix" >&5
4033 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4034 echo $ac_n "(cached) $ac_c" 1>&6
4037 echo 'int i = 1;' > conftest.$ac_ext
4038 if { (eval echo configure:4039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4039 for ac_file in conftest.*; do
4042 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4046 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4051 echo "$ac_t""$ac_cv_objext" 1>&6
4052 OBJEXT=$ac_cv_objext
4053 ac_objext=$ac_cv_objext
4056 cat >> confdefs.h <<EOF
4057 #define EXEEXT "${EXEEXT}"
4061 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4062 echo "configure:4063: checking for be_app in -lbe" >&5
4063 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4064 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4067 ac_save_LIBS="$LIBS"
4068 LIBS="-lbe -lroot -lnet $LIBS"
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4072 /* Override any gcc2 internal prototype to avoid an error. */
4073 /* We use char because int might match the return type of a gcc2
4074 builtin and then its argument prototype would still apply. */
4081 if { (eval echo configure:4082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4083 eval "ac_cv_lib_$ac_lib_var=yes"
4085 echo "configure: failed program was:" >&5
4086 cat conftest.$ac_ext >&5
4088 eval "ac_cv_lib_$ac_lib_var=no"
4091 LIBS="$ac_save_LIBS"
4094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4095 echo "$ac_t""yes" 1>&6
4096 LIBS="$LIBS -lbe -lroot -lnet"
4098 echo "$ac_t""no" 1>&6
4106 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4107 echo "configure:4108: checking for ${CC-cc} option to accept ANSI C" >&5
4108 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4111 am_cv_prog_cc_stdc=no
4113 # Don't try gcc -ansi; that turns off useful extensions and
4114 # breaks some systems' header files.
4115 # AIX -qlanglvl=ansi
4116 # Ultrix and OSF/1 -std1
4117 # HP-UX 10.20 and later -Ae
4118 # HP-UX older versions -Aa -D_HPUX_SOURCE
4119 # SVR4 -Xc -D__EXTENSIONS__
4120 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4122 CC="$ac_save_CC $ac_arg"
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4128 #include <sys/types.h>
4129 #include <sys/stat.h>
4130 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4131 struct buf { int x; };
4132 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4133 static char *e (p, i)
4139 static char *f (char * (*g) (char **, int), char **p, ...)
4144 s = g (p, va_arg (v,int));
4148 int test (int i, double x);
4149 struct s1 {int (*f) (int a);};
4150 struct s2 {int (*f) (double a);};
4151 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4157 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4161 if { (eval echo configure:4162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4163 am_cv_prog_cc_stdc="$ac_arg"; break
4165 echo "configure: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4174 if test -z "$am_cv_prog_cc_stdc"; then
4175 echo "$ac_t""none needed" 1>&6
4177 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4179 case "x$am_cv_prog_cc_stdc" in
4181 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4184 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4185 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4188 # test for make depend flag
4191 if test -z "${MKDEP}"; then
4193 if test -z "${MKDEP_FLAGS}"; then
4194 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4195 echo "configure:4196: checking for ${OL_MKDEP} depend flag" >&5
4196 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4201 for flag in "-M" "-xM"; do
4202 cat > conftest.c <<EOF
4205 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4206 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4208 if test ! -f conftest."${ac_object}" ; then
4210 OL_MKDEP_FLAGS="$flag"
4219 echo "$ac_t""$ol_cv_mkdep" 1>&6
4222 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4227 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4232 if test "${ol_cv_mkdep}" = no ; then
4233 # this will soon become an error
4234 echo "configure: warning: do not know how to generate dependencies" 1>&2
4238 if test $ol_enable_modules != no ; then
4239 for ac_hdr in ltdl.h
4241 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4243 echo "configure:4244: checking for $ac_hdr" >&5
4244 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4245 echo $ac_n "(cached) $ac_c" 1>&6
4247 cat > conftest.$ac_ext <<EOF
4248 #line 4249 "configure"
4249 #include "confdefs.h"
4252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4253 { (eval echo configure:4254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4255 if test -z "$ac_err"; then
4257 eval "ac_cv_header_$ac_safe=yes"
4260 echo "configure: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4263 eval "ac_cv_header_$ac_safe=no"
4267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4268 echo "$ac_t""yes" 1>&6
4269 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4270 cat >> confdefs.h <<EOF
4271 #define $ac_tr_hdr 1
4275 echo "$ac_t""no" 1>&6
4280 if test $ac_cv_header_ltdl_h = no ; then
4281 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4284 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4285 echo "configure:4286: checking for lt_dlinit in -lltdl" >&5
4286 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4287 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 ac_save_LIBS="$LIBS"
4292 cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295 /* Override any gcc2 internal prototype to avoid an error. */
4296 /* We use char because int might match the return type of a gcc2
4297 builtin and then its argument prototype would still apply. */
4304 if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4306 eval "ac_cv_lib_$ac_lib_var=yes"
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4311 eval "ac_cv_lib_$ac_lib_var=no"
4314 LIBS="$ac_save_LIBS"
4317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4318 echo "$ac_t""yes" 1>&6
4321 cat >> confdefs.h <<\EOF
4322 #define HAVE_LIBLTDL 1
4327 echo "$ac_t""no" 1>&6
4331 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4332 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4336 ol_with_bdb2_module=static
4337 ol_with_dnssrv_module=static
4338 ol_with_ldap_module=static
4339 ol_with_ldbm_module=static
4340 ol_with_passwd_module=static
4341 ol_with_perl_module=static
4342 ol_with_shell_module=static
4343 ol_with_tcl_module=static
4344 ol_with_sql_module=static
4348 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4349 echo "configure:4350: checking for EBCDIC" >&5
4350 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4359 #include <__ASCII__/generate_error.h>
4363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4364 { (eval echo configure:4365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4366 if test -z "$ac_err"; then
4368 ol_cv_cpp_ebcdic=yes
4371 echo "configure: failed program was:" >&5
4372 cat conftest.$ac_ext >&5
4379 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4380 if test $ol_cv_cpp_ebcdic = yes ; then
4381 cat >> confdefs.h <<\EOF
4382 #define HAVE_EBCDIC 1
4387 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4388 echo "configure:4389: checking for ANSI C header files" >&5
4389 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4392 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4401 { (eval echo configure:4402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4403 if test -z "$ac_err"; then
4405 ol_cv_header_stdc=yes
4408 echo "configure: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4411 ol_cv_header_stdc=no
4415 if test $ol_cv_header_stdc = yes; then
4416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 egrep "memchr" >/dev/null 2>&1; then
4427 ol_cv_header_stdc=no
4433 if test $ol_cv_header_stdc = yes; then
4434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4435 cat > conftest.$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 egrep "free" >/dev/null 2>&1; then
4445 ol_cv_header_stdc=no
4451 if test $ol_cv_header_stdc = yes; then
4452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4453 if test "$cross_compiling" = yes; then
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4461 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4462 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4464 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4465 || ('j' <= (c) && (c) <= 'r') \
4466 || ('s' <= (c) && (c) <= 'z'))
4467 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470 int main () { int i; for (i = 0; i < 256; i++)
4471 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4475 if { (eval echo configure:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4479 echo "configure: failed program was:" >&5
4480 cat conftest.$ac_ext >&5
4482 ol_cv_header_stdc=no
4490 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4491 if test $ol_cv_header_stdc = yes; then
4492 cat >> confdefs.h <<\EOF
4493 #define STDC_HEADERS 1
4497 ac_cv_header_stdc=disable
4500 if test $ol_cv_header_stdc != yes; then
4501 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4505 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4508 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4509 echo "configure:4510: checking for $ac_hdr that defines DIR" >&5
4510 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4513 cat > conftest.$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4516 #include <sys/types.h>
4522 if { (eval echo configure:4523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4524 eval "ac_cv_header_dirent_$ac_safe=yes"
4526 echo "configure: failed program was:" >&5
4527 cat conftest.$ac_ext >&5
4529 eval "ac_cv_header_dirent_$ac_safe=no"
4533 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4534 echo "$ac_t""yes" 1>&6
4535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4536 cat >> confdefs.h <<EOF
4537 #define $ac_tr_hdr 1
4539 ac_header_dirent=$ac_hdr; break
4541 echo "$ac_t""no" 1>&6
4544 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4545 if test $ac_header_dirent = dirent.h; then
4546 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4547 echo "configure:4548: checking for opendir in -ldir" >&5
4548 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4549 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4552 ac_save_LIBS="$LIBS"
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4557 /* Override any gcc2 internal prototype to avoid an error. */
4558 /* We use char because int might match the return type of a gcc2
4559 builtin and then its argument prototype would still apply. */
4566 if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4568 eval "ac_cv_lib_$ac_lib_var=yes"
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4573 eval "ac_cv_lib_$ac_lib_var=no"
4576 LIBS="$ac_save_LIBS"
4579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4580 echo "$ac_t""yes" 1>&6
4583 echo "$ac_t""no" 1>&6
4587 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4588 echo "configure:4589: checking for opendir in -lx" >&5
4589 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4590 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4593 ac_save_LIBS="$LIBS"
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 /* Override any gcc2 internal prototype to avoid an error. */
4599 /* We use char because int might match the return type of a gcc2
4600 builtin and then its argument prototype would still apply. */
4607 if { (eval echo configure:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4609 eval "ac_cv_lib_$ac_lib_var=yes"
4611 echo "configure: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4614 eval "ac_cv_lib_$ac_lib_var=no"
4617 LIBS="$ac_save_LIBS"
4620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4621 echo "$ac_t""yes" 1>&6
4624 echo "$ac_t""no" 1>&6
4629 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4630 echo "configure:4631: checking for sys/wait.h that is POSIX.1 compatible" >&5
4631 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4632 echo $ac_n "(cached) $ac_c" 1>&6
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4637 #include <sys/types.h>
4638 #include <sys/wait.h>
4640 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4643 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4648 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4651 if { (eval echo configure:4652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4653 ac_cv_header_sys_wait_h=yes
4655 echo "configure: failed program was:" >&5
4656 cat conftest.$ac_ext >&5
4658 ac_cv_header_sys_wait_h=no
4663 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4664 if test $ac_cv_header_sys_wait_h = yes; then
4665 cat >> confdefs.h <<\EOF
4666 #define HAVE_SYS_WAIT_H 1
4671 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4672 echo "configure:4673: checking POSIX termios" >&5
4673 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 #include <sys/types.h>
4681 #include <termios.h>
4683 /* SunOS 4.0.3 has termios.h but not the library calls. */
4687 if { (eval echo configure:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4689 am_cv_sys_posix_termios=yes
4691 echo "configure: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4694 am_cv_sys_posix_termios=no
4699 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4702 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4703 echo "configure:4704: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4704 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4707 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4709 gwinsz_in_termios_h=no
4710 if test $am_cv_sys_posix_termios = yes; then
4711 cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4714 #include <sys/types.h>
4715 # include <termios.h>
4721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4722 egrep "yes" >/dev/null 2>&1; then
4724 gwinsz_in_termios_h=yes
4730 if test $gwinsz_in_termios_h = no; then
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4734 #include <sys/types.h>
4735 # include <sys/ioctl.h>
4741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4742 egrep "yes" >/dev/null 2>&1; then
4744 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4752 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4753 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4754 cat >> confdefs.h <<\EOF
4755 #define GWINSZ_IN_SYS_IOCTL 1
4760 if test $am_cv_sys_posix_termios = yes ; then
4761 cat >> confdefs.h <<\EOF
4762 #define HAVE_POSIX_TERMIOS 1
4813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4815 echo "configure:4816: checking for $ac_hdr" >&5
4816 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4819 cat > conftest.$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4825 { (eval echo configure:4826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4827 if test -z "$ac_err"; then
4829 eval "ac_cv_header_$ac_safe=yes"
4832 echo "configure: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4835 eval "ac_cv_header_$ac_safe=no"
4839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4840 echo "$ac_t""yes" 1>&6
4841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4842 cat >> confdefs.h <<EOF
4843 #define $ac_tr_hdr 1
4847 echo "$ac_t""no" 1>&6
4854 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4855 echo "configure:4856: checking for sigset in -lV3" >&5
4856 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4857 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4858 echo $ac_n "(cached) $ac_c" 1>&6
4860 ac_save_LIBS="$LIBS"
4862 cat > conftest.$ac_ext <<EOF
4863 #line 4864 "configure"
4864 #include "confdefs.h"
4865 /* Override any gcc2 internal prototype to avoid an error. */
4866 /* We use char because int might match the return type of a gcc2
4867 builtin and then its argument prototype would still apply. */
4874 if { (eval echo configure:4875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4876 eval "ac_cv_lib_$ac_lib_var=yes"
4878 echo "configure: failed program was:" >&5
4879 cat conftest.$ac_ext >&5
4881 eval "ac_cv_lib_$ac_lib_var=no"
4884 LIBS="$ac_save_LIBS"
4887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4888 echo "$ac_t""yes" 1>&6
4889 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4890 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4891 cat >> confdefs.h <<EOF
4892 #define $ac_tr_lib 1
4898 echo "$ac_t""no" 1>&6
4902 if test $ac_cv_header_winsock_h = yes; then
4903 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4904 echo "configure:4905: checking for winsock" >&5
4905 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4908 cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4911 #include <winsock.h>
4915 select(0,NULL,NULL,NULL,NULL);
4917 gethostname(NULL,0);
4921 if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4925 echo "configure: failed program was:" >&5
4926 cat conftest.$ac_ext >&5
4933 echo "$ac_t""$ol_cv_winsock" 1>&6
4935 if test $ol_cv_winsock = yes ; then
4936 cat >> confdefs.h <<\EOF
4937 #define HAVE_WINSOCK 1
4940 ac_cv_func_socket=yes
4941 ac_cv_func_select=yes
4942 ac_cv_func_closesocket=yes
4943 ac_cv_func_gethostname=yes
4948 echo $ac_n "checking for socket""... $ac_c" 1>&6
4949 echo "configure:4950: checking for socket" >&5
4950 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4956 /* System header to define __stub macros and hopefully few prototypes,
4957 which can conflict with char socket(); below. */
4959 /* Override any gcc2 internal prototype to avoid an error. */
4960 /* We use char because int might match the return type of a gcc2
4961 builtin and then its argument prototype would still apply. */
4967 /* The GNU C library defines this for functions which it implements
4968 to always fail with ENOSYS. Some functions are actually named
4969 something starting with __ and the normal name is an alias. */
4970 #if defined (__stub_socket) || defined (__stub___socket)
4978 if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4980 eval "ac_cv_func_socket=yes"
4982 echo "configure: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4985 eval "ac_cv_func_socket=no"
4990 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4991 echo "$ac_t""yes" 1>&6
4994 echo "$ac_t""no" 1>&6
4996 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4997 echo "configure:4998: checking for main in -lsocket" >&5
4998 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4999 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 ac_save_LIBS="$LIBS"
5003 LIBS="-lsocket $LIBS"
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5012 if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5014 eval "ac_cv_lib_$ac_lib_var=yes"
5016 echo "configure: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5019 eval "ac_cv_lib_$ac_lib_var=no"
5022 LIBS="$ac_save_LIBS"
5025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5026 echo "$ac_t""yes" 1>&6
5027 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5028 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5029 cat >> confdefs.h <<EOF
5030 #define $ac_tr_lib 1
5033 LIBS="-lsocket $LIBS"
5036 echo "$ac_t""no" 1>&6
5039 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5040 echo "configure:5041: checking for main in -lnet" >&5
5041 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5042 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5043 echo $ac_n "(cached) $ac_c" 1>&6
5045 ac_save_LIBS="$LIBS"
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5055 if { (eval echo configure:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5057 eval "ac_cv_lib_$ac_lib_var=yes"
5059 echo "configure: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5062 eval "ac_cv_lib_$ac_lib_var=no"
5065 LIBS="$ac_save_LIBS"
5068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5069 echo "$ac_t""yes" 1>&6
5070 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5071 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5072 cat >> confdefs.h <<EOF
5073 #define $ac_tr_lib 1
5079 echo "$ac_t""no" 1>&6
5082 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5083 echo "configure:5084: checking for main in -lnsl_s" >&5
5084 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5085 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 ac_save_LIBS="$LIBS"
5089 LIBS="-lnsl_s $LIBS"
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5098 if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5100 eval "ac_cv_lib_$ac_lib_var=yes"
5102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5105 eval "ac_cv_lib_$ac_lib_var=no"
5108 LIBS="$ac_save_LIBS"
5111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5112 echo "$ac_t""yes" 1>&6
5113 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5114 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5115 cat >> confdefs.h <<EOF
5116 #define $ac_tr_lib 1
5119 LIBS="-lnsl_s $LIBS"
5122 echo "$ac_t""no" 1>&6
5125 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5126 echo "configure:5127: checking for main in -lnsl" >&5
5127 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5128 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5129 echo $ac_n "(cached) $ac_c" 1>&6
5131 ac_save_LIBS="$LIBS"
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5141 if { (eval echo configure:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5143 eval "ac_cv_lib_$ac_lib_var=yes"
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5148 eval "ac_cv_lib_$ac_lib_var=no"
5151 LIBS="$ac_save_LIBS"
5154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5155 echo "$ac_t""yes" 1>&6
5156 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5157 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5158 cat >> confdefs.h <<EOF
5159 #define $ac_tr_lib 1
5165 echo "$ac_t""no" 1>&6
5168 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5169 echo "configure:5170: checking for socket in -linet" >&5
5170 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5171 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5174 ac_save_LIBS="$LIBS"
5176 cat > conftest.$ac_ext <<EOF
5177 #line 5178 "configure"
5178 #include "confdefs.h"
5179 /* Override any gcc2 internal prototype to avoid an error. */
5180 /* We use char because int might match the return type of a gcc2
5181 builtin and then its argument prototype would still apply. */
5188 if { (eval echo configure:5189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5190 eval "ac_cv_lib_$ac_lib_var=yes"
5192 echo "configure: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5195 eval "ac_cv_lib_$ac_lib_var=no"
5198 LIBS="$ac_save_LIBS"
5201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5202 echo "$ac_t""yes" 1>&6
5203 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5204 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5205 cat >> confdefs.h <<EOF
5206 #define $ac_tr_lib 1
5212 echo "$ac_t""no" 1>&6
5215 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5216 echo "configure:5217: checking for main in -lgen" >&5
5217 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5218 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5221 ac_save_LIBS="$LIBS"
5223 cat > conftest.$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5231 if { (eval echo configure:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5233 eval "ac_cv_lib_$ac_lib_var=yes"
5235 echo "configure: failed program was:" >&5
5236 cat conftest.$ac_ext >&5
5238 eval "ac_cv_lib_$ac_lib_var=no"
5241 LIBS="$ac_save_LIBS"
5244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5245 echo "$ac_t""yes" 1>&6
5246 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5247 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5248 cat >> confdefs.h <<EOF
5249 #define $ac_tr_lib 1
5255 echo "$ac_t""no" 1>&6
5262 echo $ac_n "checking for select""... $ac_c" 1>&6
5263 echo "configure:5264: checking for select" >&5
5264 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5270 /* System header to define __stub macros and hopefully few prototypes,
5271 which can conflict with char select(); below. */
5273 /* Override any gcc2 internal prototype to avoid an error. */
5274 /* We use char because int might match the return type of a gcc2
5275 builtin and then its argument prototype would still apply. */
5281 /* The GNU C library defines this for functions which it implements
5282 to always fail with ENOSYS. Some functions are actually named
5283 something starting with __ and the normal name is an alias. */
5284 #if defined (__stub_select) || defined (__stub___select)
5292 if { (eval echo configure:5293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5294 eval "ac_cv_func_select=yes"
5296 echo "configure: failed program was:" >&5
5297 cat conftest.$ac_ext >&5
5299 eval "ac_cv_func_select=no"
5304 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5305 echo "$ac_t""yes" 1>&6
5308 echo "$ac_t""no" 1>&6
5309 { echo "configure: error: select() required." 1>&2; exit 1; }
5313 if test "${ac_cv_header_winsock_h}" != yes; then
5314 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5315 echo "configure:5316: checking types of arguments for select()" >&5
5316 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5319 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5325 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5326 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5327 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5331 #ifdef HAVE_SYS_TYPES_H
5332 #include <sys/types.h>
5334 #ifdef HAVE_SYS_TIME_H
5335 #include <sys/time.h>
5337 #ifdef HAVE_SYS_SELECT_H
5338 #include <sys/select.h>
5340 #ifdef HAVE_SYS_SOCKET_H
5341 #include <sys/socket.h>
5343 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);
5348 if { (eval echo configure:5349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5350 ac_not_found=no ; break 3
5352 echo "configure: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5367 if test "$ac_not_found" = yes; then
5368 ac_cv_func_select_arg1=int
5369 ac_cv_func_select_arg234='int *'
5370 ac_cv_func_select_arg5='struct timeval *'
5372 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5373 cat >> confdefs.h <<EOF
5374 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5377 cat >> confdefs.h <<EOF
5378 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5381 cat >> confdefs.h <<EOF
5382 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5389 for ac_hdr in regex.h
5391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5393 echo "configure:5394: checking for $ac_hdr" >&5
5394 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 cat > conftest.$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5403 { (eval echo configure:5404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5405 if test -z "$ac_err"; then
5407 eval "ac_cv_header_$ac_safe=yes"
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5413 eval "ac_cv_header_$ac_safe=no"
5417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5418 echo "$ac_t""yes" 1>&6
5419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5420 cat >> confdefs.h <<EOF
5421 #define $ac_tr_hdr 1
5425 echo "$ac_t""no" 1>&6
5429 if test "$ac_cv_header_regex_h" != yes ; then
5430 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5432 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5433 echo "configure:5434: checking for regfree" >&5
5434 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5435 echo $ac_n "(cached) $ac_c" 1>&6
5437 cat > conftest.$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5440 /* System header to define __stub macros and hopefully few prototypes,
5441 which can conflict with char regfree(); below. */
5443 /* Override any gcc2 internal prototype to avoid an error. */
5444 /* We use char because int might match the return type of a gcc2
5445 builtin and then its argument prototype would still apply. */
5451 /* The GNU C library defines this for functions which it implements
5452 to always fail with ENOSYS. Some functions are actually named
5453 something starting with __ and the normal name is an alias. */
5454 #if defined (__stub_regfree) || defined (__stub___regfree)
5462 if { (eval echo configure:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5464 eval "ac_cv_func_regfree=yes"
5466 echo "configure: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5469 eval "ac_cv_func_regfree=no"
5474 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5475 echo "$ac_t""yes" 1>&6
5478 echo "$ac_t""no" 1>&6
5479 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5484 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5485 echo "configure:5486: checking for compatible POSIX regex" >&5
5486 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
5490 if test "$cross_compiling" = yes; then
5491 ol_cv_c_posix_regex=cross
5493 cat > conftest.$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5497 #include <sys/types.h>
5499 static char *pattern, *string;
5507 if(regcomp(&re, pattern, 0)) {
5511 string = "ALL MATCH";
5513 rc = regexec(&re, string, 0, (void*)0, 0);
5520 if { (eval echo configure:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5522 ol_cv_c_posix_regex=yes
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5527 ol_cv_c_posix_regex=no
5534 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5536 if test "$ol_cv_c_posix_regex" = no ; then
5537 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5540 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5541 echo "configure:5542: checking for res_search" >&5
5542 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5545 cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 /* System header to define __stub macros and hopefully few prototypes,
5549 which can conflict with char res_search(); below. */
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 /* We use char because int might match the return type of a gcc2
5553 builtin and then its argument prototype would still apply. */
5559 /* The GNU C library defines this for functions which it implements
5560 to always fail with ENOSYS. Some functions are actually named
5561 something starting with __ and the normal name is an alias. */
5562 #if defined (__stub_res_search) || defined (__stub___res_search)
5570 if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5572 eval "ac_cv_func_res_search=yes"
5574 echo "configure: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5577 eval "ac_cv_func_res_search=no"
5582 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5583 echo "$ac_t""yes" 1>&6
5586 echo "$ac_t""no" 1>&6
5589 if test $ac_cv_func_res_search = no ; then
5590 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5591 echo "configure:5592: checking for res_search in -lbind" >&5
5592 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5593 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5596 ac_save_LIBS="$LIBS"
5598 cat > conftest.$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 /* Override any gcc2 internal prototype to avoid an error. */
5602 /* We use char because int might match the return type of a gcc2
5603 builtin and then its argument prototype would still apply. */
5610 if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5612 eval "ac_cv_lib_$ac_lib_var=yes"
5614 echo "configure: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5617 eval "ac_cv_lib_$ac_lib_var=no"
5620 LIBS="$ac_save_LIBS"
5623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5624 echo "$ac_t""yes" 1>&6
5625 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5626 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5627 cat >> confdefs.h <<EOF
5628 #define $ac_tr_lib 1
5634 echo "$ac_t""no" 1>&6
5637 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5640 if test $ac_cv_func_res_search = no ; then
5641 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5642 echo "configure:5643: checking for __res_search in -lbind" >&5
5643 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5644 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 ac_save_LIBS="$LIBS"
5649 cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5652 /* Override any gcc2 internal prototype to avoid an error. */
5653 /* We use char because int might match the return type of a gcc2
5654 builtin and then its argument prototype would still apply. */
5655 char __res_search();
5661 if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5663 eval "ac_cv_lib_$ac_lib_var=yes"
5665 echo "configure: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5668 eval "ac_cv_lib_$ac_lib_var=no"
5671 LIBS="$ac_save_LIBS"
5674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5675 echo "$ac_t""yes" 1>&6
5676 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5677 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5678 cat >> confdefs.h <<EOF
5679 #define $ac_tr_lib 1
5685 echo "$ac_t""no" 1>&6
5688 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5691 if test $ac_cv_func_res_search = no ; then
5692 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5693 echo "configure:5694: checking for res_search in -lresolv" >&5
5694 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5695 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5696 echo $ac_n "(cached) $ac_c" 1>&6
5698 ac_save_LIBS="$LIBS"
5699 LIBS="-lresolv $LIBS"
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* Override any gcc2 internal prototype to avoid an error. */
5704 /* We use char because int might match the return type of a gcc2
5705 builtin and then its argument prototype would still apply. */
5712 if { (eval echo configure:5713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5714 eval "ac_cv_lib_$ac_lib_var=yes"
5716 echo "configure: failed program was:" >&5
5717 cat conftest.$ac_ext >&5
5719 eval "ac_cv_lib_$ac_lib_var=no"
5722 LIBS="$ac_save_LIBS"
5725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5726 echo "$ac_t""yes" 1>&6
5727 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5728 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5729 cat >> confdefs.h <<EOF
5730 #define $ac_tr_lib 1
5733 LIBS="-lresolv $LIBS"
5736 echo "$ac_t""no" 1>&6
5739 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5742 if test "$ac_cv_func_res_search" = yes ; then
5743 cat >> confdefs.h <<\EOF
5744 #define HAVE_RES_SEARCH 1
5747 elif test $ol_enable_dns = yes ; then
5748 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5749 elif test $ol_enable_dns != no ; then
5750 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5755 if test $ol_enable_ldapd != no ; then
5756 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5758 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5759 echo "configure:5760: checking for main in -lxtpp" >&5
5760 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5761 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5764 ac_save_LIBS="$LIBS"
5765 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5766 cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5774 if { (eval echo configure:5775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5776 eval "ac_cv_lib_$ac_lib_var=yes"
5778 echo "configure: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5781 eval "ac_cv_lib_$ac_lib_var=no"
5784 LIBS="$ac_save_LIBS"
5787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5788 echo "$ac_t""yes" 1>&6
5791 cat >> confdefs.h <<\EOF
5795 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5798 echo "$ac_t""no" 1>&6
5802 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5803 echo "configure:5804: checking for main in -ldsap" >&5
5804 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5805 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5806 echo $ac_n "(cached) $ac_c" 1>&6
5808 ac_save_LIBS="$LIBS"
5809 LIBS="-ldsap -lisode $LIBS"
5810 cat > conftest.$ac_ext <<EOF
5811 #line 5812 "configure"
5812 #include "confdefs.h"
5818 if { (eval echo configure:5819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5820 eval "ac_cv_lib_$ac_lib_var=yes"
5822 echo "configure: failed program was:" >&5
5823 cat conftest.$ac_ext >&5
5825 eval "ac_cv_lib_$ac_lib_var=no"
5828 LIBS="$ac_save_LIBS"
5831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5832 echo "$ac_t""yes" 1>&6
5835 cat >> confdefs.h <<\EOF
5839 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5842 echo "$ac_t""no" 1>&6
5846 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5847 echo "configure:5848: checking for main in -lisode" >&5
5848 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5849 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5850 echo $ac_n "(cached) $ac_c" 1>&6
5852 ac_save_LIBS="$LIBS"
5853 LIBS="-lisode $LIBS"
5854 cat > conftest.$ac_ext <<EOF
5855 #line 5856 "configure"
5856 #include "confdefs.h"
5862 if { (eval echo configure:5863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5864 eval "ac_cv_lib_$ac_lib_var=yes"
5866 echo "configure: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5869 eval "ac_cv_lib_$ac_lib_var=no"
5872 LIBS="$ac_save_LIBS"
5875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5876 echo "$ac_t""yes" 1>&6
5879 cat >> confdefs.h <<\EOF
5880 #define HAVE_ISODE 1
5883 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5886 echo "$ac_t""no" 1>&6
5892 if test $ol_link_isode != no; then
5893 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5894 echo "configure:5895: checking for main in -lpp" >&5
5895 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5896 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5897 echo $ac_n "(cached) $ac_c" 1>&6
5899 ac_save_LIBS="$LIBS"
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5911 eval "ac_cv_lib_$ac_lib_var=yes"
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5916 eval "ac_cv_lib_$ac_lib_var=no"
5919 LIBS="$ac_save_LIBS"
5922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5923 echo "$ac_t""yes" 1>&6
5925 cat >> confdefs.h <<\EOF
5929 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5932 echo "$ac_t""no" 1>&6
5937 # Extract the first word of "pepsy", so it can be a program name with args.
5938 set dummy pepsy; ac_word=$2
5939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5940 echo "configure:5941: checking for $ac_word" >&5
5941 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5942 echo $ac_n "(cached) $ac_c" 1>&6
5946 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5949 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5954 for ac_dir in $ac_dummy; do
5955 test -z "$ac_dir" && ac_dir=.
5956 if test -f $ac_dir/$ac_word; then
5957 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5965 PEPSY="$ac_cv_path_PEPSY"
5966 if test -n "$PEPSY"; then
5967 echo "$ac_t""$PEPSY" 1>&6
5969 echo "$ac_t""no" 1>&6
5974 if test $ol_enable_quipu != no ; then
5975 for ac_hdr in quipu/commonarg.h
5977 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5979 echo "configure:5980: checking for $ac_hdr" >&5
5980 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5981 echo $ac_n "(cached) $ac_c" 1>&6
5983 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure"
5985 #include "confdefs.h"
5988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5989 { (eval echo configure:5990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5991 if test -z "$ac_err"; then
5993 eval "ac_cv_header_$ac_safe=yes"
5996 echo "configure: failed program was:" >&5
5997 cat conftest.$ac_ext >&5
5999 eval "ac_cv_header_$ac_safe=no"
6003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6004 echo "$ac_t""yes" 1>&6
6005 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6006 cat >> confdefs.h <<EOF
6007 #define $ac_tr_hdr 1
6011 echo "$ac_t""no" 1>&6
6016 if test $ac_cv_header_quipu_commonarg_h = yes ; then
6018 elif test $ol_enable_quipu = auto ; then
6019 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
6021 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
6030 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
6031 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
6033 for ac_hdr in krb5.h
6035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6037 echo "configure:6038: checking for $ac_hdr" >&5
6038 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6039 echo $ac_n "(cached) $ac_c" 1>&6
6041 cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6047 { (eval echo configure:6048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6049 if test -z "$ac_err"; then
6051 eval "ac_cv_header_$ac_safe=yes"
6054 echo "configure: failed program was:" >&5
6055 cat conftest.$ac_ext >&5
6057 eval "ac_cv_header_$ac_safe=no"
6061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6062 echo "$ac_t""yes" 1>&6
6063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6064 cat >> confdefs.h <<EOF
6065 #define $ac_tr_hdr 1
6069 echo "$ac_t""no" 1>&6
6074 if test $ac_cv_header_krb5_h = yes ; then
6075 for ac_hdr in heim_err.h
6077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6079 echo "configure:6080: checking for $ac_hdr" >&5
6080 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6089 { (eval echo configure:6090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6091 if test -z "$ac_err"; then
6093 eval "ac_cv_header_$ac_safe=yes"
6096 echo "configure: failed program was:" >&5
6097 cat conftest.$ac_ext >&5
6099 eval "ac_cv_header_$ac_safe=no"
6103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6104 echo "$ac_t""yes" 1>&6
6105 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6106 cat >> confdefs.h <<EOF
6107 #define $ac_tr_hdr 1
6111 echo "$ac_t""no" 1>&6
6115 if test $ac_cv_header_heim_err_h = yes ; then
6121 if test $krb5_impl = mit; then
6122 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6123 echo "configure:6124: checking for main in -lkrb5" >&5
6124 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6125 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6126 echo $ac_n "(cached) $ac_c" 1>&6
6128 ac_save_LIBS="$LIBS"
6129 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6130 cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure"
6132 #include "confdefs.h"
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6140 eval "ac_cv_lib_$ac_lib_var=yes"
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6145 eval "ac_cv_lib_$ac_lib_var=no"
6148 LIBS="$ac_save_LIBS"
6151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6152 echo "$ac_t""yes" 1>&6
6154 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6156 echo "$ac_t""no" 1>&6
6161 elif test $krb5_impl = heimdal; then
6162 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6163 echo "configure:6164: checking for main in -lkrb5" >&5
6164 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6165 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6168 ac_save_LIBS="$LIBS"
6169 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6170 cat > conftest.$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6178 if { (eval echo configure:6179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6180 eval "ac_cv_lib_$ac_lib_var=yes"
6182 echo "configure: failed program was:" >&5
6183 cat conftest.$ac_ext >&5
6185 eval "ac_cv_lib_$ac_lib_var=no"
6188 LIBS="$ac_save_LIBS"
6191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6192 echo "$ac_t""yes" 1>&6
6194 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6196 echo "$ac_t""no" 1>&6
6201 cat >> confdefs.h <<\EOF
6202 #define HAVE_HEIMDAL_KERBEROS 1
6207 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6210 if test $have_krb5 = yes ; then
6213 cat >> confdefs.h <<\EOF
6218 if test $ol_enable_kpasswd != no ; then
6219 ol_link_kpasswd=yes;
6222 if test $ol_with_kerberos = k5only ; then
6223 ol_with_kerberos=found
6226 elif test $ol_with_kerberos != auto ; then
6227 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6233 if test $ol_link_krb5 = yes -a \
6234 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6236 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6238 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6239 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6240 echo "configure:6241: checking for $ac_hdr" >&5
6241 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6
6244 cat > conftest.$ac_ext <<EOF
6245 #line 6246 "configure"
6246 #include "confdefs.h"
6249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6250 { (eval echo configure:6251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6252 if test -z "$ac_err"; then
6254 eval "ac_cv_header_$ac_safe=yes"
6257 echo "configure: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6260 eval "ac_cv_header_$ac_safe=no"
6264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6265 echo "$ac_t""yes" 1>&6
6266 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6267 cat >> confdefs.h <<EOF
6268 #define $ac_tr_hdr 1
6272 echo "$ac_t""no" 1>&6
6277 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6278 if test $krb5_impl = mit; then
6279 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6280 echo "configure:6281: checking for main in -lkrb4" >&5
6281 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6282 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6
6285 ac_save_LIBS="$LIBS"
6286 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6287 cat > conftest.$ac_ext <<EOF
6288 #line 6289 "configure"
6289 #include "confdefs.h"
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297 eval "ac_cv_lib_$ac_lib_var=yes"
6299 echo "configure: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6302 eval "ac_cv_lib_$ac_lib_var=no"
6305 LIBS="$ac_save_LIBS"
6308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6309 echo "$ac_t""yes" 1>&6
6311 KRB4_LIBS="-lkrb4 -ldes425"
6313 echo "$ac_t""no" 1>&6
6318 elif test $krb5_impl = heimdal; then
6319 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6320 echo "configure:6321: checking for main in -lkrb4" >&5
6321 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6322 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6323 echo $ac_n "(cached) $ac_c" 1>&6
6325 ac_save_LIBS="$LIBS"
6326 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6327 cat > conftest.$ac_ext <<EOF
6328 #line 6329 "configure"
6329 #include "confdefs.h"
6335 if { (eval echo configure:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6337 eval "ac_cv_lib_$ac_lib_var=yes"
6339 echo "configure: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6342 eval "ac_cv_lib_$ac_lib_var=no"
6345 LIBS="$ac_save_LIBS"
6348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6349 echo "$ac_t""yes" 1>&6
6353 echo "$ac_t""no" 1>&6
6360 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6363 if test $have_k425 = yes ; then
6364 ol_with_kerberos=found
6367 cat >> confdefs.h <<\EOF
6368 #define HAVE_KRB425 1
6371 cat >> confdefs.h <<\EOF
6376 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6377 echo "configure:6378: checking for des_debug in Kerberos libraries" >&5
6378 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6383 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6384 cat > conftest.$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6388 #include <kerberosIV/krb.h>
6389 #include <kerberosIV/des.h>
6390 extern int des_debug;
6398 if { (eval echo configure:6399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6400 ol_cv_var_des_debug=yes
6402 echo "configure: failed program was:" >&5
6403 cat conftest.$ac_ext >&5
6405 ol_cv_var_des_debug=no
6412 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6414 if test $ol_cv_var_des_debug = yes ; then
6415 cat >> confdefs.h <<\EOF
6416 #define HAVE_DES_DEBUG 1
6426 if test $ol_link_krb5 = yes ; then
6427 ol_with_kerberos=found
6430 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6431 -o $ol_with_kerberos = kth ; then
6433 for ac_hdr in krb.h des.h krb-archaeology.h
6435 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6437 echo "configure:6438: checking for $ac_hdr" >&5
6438 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6441 cat > conftest.$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6447 { (eval echo configure:6448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6449 if test -z "$ac_err"; then
6451 eval "ac_cv_header_$ac_safe=yes"
6454 echo "configure: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6457 eval "ac_cv_header_$ac_safe=no"
6461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6462 echo "$ac_t""yes" 1>&6
6463 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6464 cat >> confdefs.h <<EOF
6465 #define $ac_tr_hdr 1
6469 echo "$ac_t""no" 1>&6
6474 if test $ac_cv_header_krb_h = yes ; then
6475 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6476 echo "configure:6477: checking for main in -lkrb" >&5
6477 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6478 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6481 ac_save_LIBS="$LIBS"
6482 LIBS="-lkrb -ldes $LIBS"
6483 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6491 if { (eval echo configure:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6493 eval "ac_cv_lib_$ac_lib_var=yes"
6495 echo "configure: failed program was:" >&5
6496 cat conftest.$ac_ext >&5
6498 eval "ac_cv_lib_$ac_lib_var=no"
6501 LIBS="$ac_save_LIBS"
6504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6505 echo "$ac_t""yes" 1>&6
6508 echo "$ac_t""no" 1>&6
6513 if test $have_k4 = yes ; then
6514 ol_with_kerberos=found
6517 cat >> confdefs.h <<\EOF
6522 KRB4_LIBS="-lkrb -ldes"
6524 if test $ac_cv_header_krb_archaeology_h = yes ; then
6525 cat >> confdefs.h <<\EOF
6526 #define HAVE_KTH_KERBEROS 1
6534 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6535 ol_link_kpasswd=yes;
6538 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6539 cat >> confdefs.h <<\EOF
6540 #define HAVE_KERBEROS 1
6544 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6545 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6549 if test $ol_with_tls != no ; then
6551 for ac_hdr in openssl/ssl.h ssl.h
6553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6555 echo "configure:6556: checking for $ac_hdr" >&5
6556 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6557 echo $ac_n "(cached) $ac_c" 1>&6
6559 cat > conftest.$ac_ext <<EOF
6560 #line 6561 "configure"
6561 #include "confdefs.h"
6564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6565 { (eval echo configure:6566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6567 if test -z "$ac_err"; then
6569 eval "ac_cv_header_$ac_safe=yes"
6572 echo "configure: failed program was:" >&5
6573 cat conftest.$ac_ext >&5
6575 eval "ac_cv_header_$ac_safe=no"
6579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6580 echo "$ac_t""yes" 1>&6
6581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6582 cat >> confdefs.h <<EOF
6583 #define $ac_tr_hdr 1
6587 echo "$ac_t""no" 1>&6
6592 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6593 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6594 echo "configure:6595: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6595 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6596 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6599 ac_save_LIBS="$LIBS"
6600 LIBS="-lssl -lcrypto $LIBS"
6601 cat > conftest.$ac_ext <<EOF
6602 #line 6603 "configure"
6603 #include "confdefs.h"
6604 /* Override any gcc2 internal prototype to avoid an error. */
6605 /* We use char because int might match the return type of a gcc2
6606 builtin and then its argument prototype would still apply. */
6607 char SSLeay_add_ssl_algorithms();
6610 SSLeay_add_ssl_algorithms()
6613 if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6615 eval "ac_cv_lib_$ac_lib_var=yes"
6617 echo "configure: failed program was:" >&5
6618 cat conftest.$ac_ext >&5
6620 eval "ac_cv_lib_$ac_lib_var=no"
6623 LIBS="$ac_save_LIBS"
6626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6631 echo "$ac_t""no" 1>&6
6636 if test $have_ssleay = no ; then
6637 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6638 echo "configure:6639: checking for SSL_library_init in -lssl" >&5
6639 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6640 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6641 echo $ac_n "(cached) $ac_c" 1>&6
6643 ac_save_LIBS="$LIBS"
6644 LIBS="-lssl -lcrypto $LIBS"
6645 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6648 /* Override any gcc2 internal prototype to avoid an error. */
6649 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */
6651 char SSL_library_init();
6657 if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6659 eval "ac_cv_lib_$ac_lib_var=yes"
6661 echo "configure: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6664 eval "ac_cv_lib_$ac_lib_var=no"
6667 LIBS="$ac_save_LIBS"
6670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6671 echo "$ac_t""yes" 1>&6
6675 echo "$ac_t""no" 1>&6
6681 if test $have_ssleay = no ; then
6682 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6683 echo "configure:6684: checking for ssl3_accept in -lssl" >&5
6684 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6685 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6688 ac_save_LIBS="$LIBS"
6689 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6690 cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 /* Override any gcc2 internal prototype to avoid an error. */
6694 /* We use char because int might match the return type of a gcc2
6695 builtin and then its argument prototype would still apply. */
6702 if { (eval echo configure:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6704 eval "ac_cv_lib_$ac_lib_var=yes"
6706 echo "configure: failed program was:" >&5
6707 cat conftest.$ac_ext >&5
6709 eval "ac_cv_lib_$ac_lib_var=no"
6712 LIBS="$ac_save_LIBS"
6715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6716 echo "$ac_t""yes" 1>&6
6720 echo "$ac_t""no" 1>&6
6726 if test $have_ssleay = yes ; then
6730 cat >> confdefs.h <<\EOF
6731 #define HAVE_SSLEAY 1
6735 if test $need_rsaref = yes; then
6736 cat >> confdefs.h <<\EOF
6737 #define HAVE_RSAREF 1
6741 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6743 TLS_LIBS="-lssl -lcrypto"
6749 if test $ol_link_tls = yes ; then
6750 cat >> confdefs.h <<\EOF
6758 gethostbyname_r gethostbyaddr_r \
6761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6762 echo "configure:6763: checking for $ac_func" >&5
6763 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6764 echo $ac_n "(cached) $ac_c" 1>&6
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 /* System header to define __stub macros and hopefully few prototypes,
6770 which can conflict with char $ac_func(); below. */
6772 /* Override any gcc2 internal prototype to avoid an error. */
6773 /* We use char because int might match the return type of a gcc2
6774 builtin and then its argument prototype would still apply. */
6780 /* The GNU C library defines this for functions which it implements
6781 to always fail with ENOSYS. Some functions are actually named
6782 something starting with __ and the normal name is an alias. */
6783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6791 if { (eval echo configure:6792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6793 eval "ac_cv_func_$ac_func=yes"
6795 echo "configure: failed program was:" >&5
6796 cat conftest.$ac_ext >&5
6798 eval "ac_cv_func_$ac_func=no"
6803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6804 echo "$ac_t""yes" 1>&6
6805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6806 cat >> confdefs.h <<EOF
6807 #define $ac_tr_func 1
6811 echo "$ac_t""no" 1>&6
6816 if test "$ac_cv_func_ctime_r" = no ; then
6817 ol_cv_func_ctime_r_nargs=0
6819 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6820 echo "configure:6821: checking number of arguments of ctime_r" >&5
6821 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6822 echo $ac_n "(cached) $ac_c" 1>&6
6824 cat > conftest.$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6829 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6832 if { (eval echo configure:6833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6834 ol_cv_func_ctime_r_nargs3=yes
6836 echo "configure: failed program was:" >&5
6837 cat conftest.$ac_ext >&5
6839 ol_cv_func_ctime_r_nargs3=no
6843 cat > conftest.$ac_ext <<EOF
6844 #line 6845 "configure"
6845 #include "confdefs.h"
6848 time_t ti; char *buffer; ctime_r(&ti,buffer);
6851 if { (eval echo configure:6852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6853 ol_cv_func_ctime_r_nargs2=yes
6855 echo "configure: failed program was:" >&5
6856 cat conftest.$ac_ext >&5
6858 ol_cv_func_ctime_r_nargs2=no
6862 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6863 $ol_cv_func_ctime_r_nargs2 = no ; then
6865 ol_cv_func_ctime_r_nargs=3
6867 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6868 $ol_cv_func_ctime_r_nargs2 = yes ; then
6870 ol_cv_func_ctime_r_nargs=2
6873 ol_cv_func_ctime_r_nargs=0
6878 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6880 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6881 cat >> confdefs.h <<EOF
6882 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6889 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6890 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6891 echo "configure:6892: checking number of arguments of gethostbyname_r" >&5
6892 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6893 echo $ac_n "(cached) $ac_c" 1>&6
6895 cat > conftest.$ac_ext <<EOF
6896 #line 6897 "configure"
6897 #include "confdefs.h"
6898 #include <sys/types.h>
6899 #include <sys/socket.h>
6900 #include <netinet/in.h>
6902 #define BUFSIZE (sizeof(struct hostent)+10)
6904 struct hostent hent; char buffer[BUFSIZE];
6905 int bufsize=BUFSIZE;int h_errno;
6906 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6907 buffer, bufsize, &h_errno);
6910 if { (eval echo configure:6911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6912 ol_cv_func_gethostbyname_r_nargs5=yes
6914 echo "configure: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6917 ol_cv_func_gethostbyname_r_nargs5=no
6921 cat > conftest.$ac_ext <<EOF
6922 #line 6923 "configure"
6923 #include "confdefs.h"
6924 #include <sys/types.h>
6925 #include <sys/socket.h>
6926 #include <netinet/in.h>
6928 #define BUFSIZE (sizeof(struct hostent)+10)
6930 struct hostent hent;struct hostent *rhent;
6931 char buffer[BUFSIZE];
6932 int bufsize=BUFSIZE;int h_errno;
6933 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6937 if { (eval echo configure:6938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6939 ol_cv_func_gethostbyname_r_nargs6=yes
6941 echo "configure: failed program was:" >&5
6942 cat conftest.$ac_ext >&5
6944 ol_cv_func_gethostbyname_r_nargs6=no
6948 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6949 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6951 ol_cv_func_gethostbyname_r_nargs=5
6953 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6954 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6956 ol_cv_func_gethostbyname_r_nargs=6
6959 ol_cv_func_gethostbyname_r_nargs=0
6964 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6965 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6966 cat >> confdefs.h <<EOF
6967 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6973 ol_cv_func_gethostbyname_r_nargs=0
6976 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6977 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6978 echo "configure:6979: checking number of arguments of gethostbyaddr_r" >&5
6979 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6980 echo $ac_n "(cached) $ac_c" 1>&6
6982 cat > conftest.$ac_ext <<EOF
6983 #line 6984 "configure"
6984 #include "confdefs.h"
6985 #include <sys/types.h>
6986 #include <sys/socket.h>
6987 #include <netinet/in.h>
6989 #define BUFSIZE (sizeof(struct hostent)+10)
6991 struct hostent hent; char buffer[BUFSIZE];
6993 size_t alen=sizeof(struct in_addr);
6994 int bufsize=BUFSIZE;int h_errno;
6995 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6996 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6999 if { (eval echo configure:7000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7001 ol_cv_func_gethostbyaddr_r_nargs7=yes
7003 echo "configure: failed program was:" >&5
7004 cat conftest.$ac_ext >&5
7006 ol_cv_func_gethostbyaddr_r_nargs7=no
7010 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure"
7012 #include "confdefs.h"
7013 #include <sys/types.h>
7014 #include <sys/socket.h>
7015 #include <netinet/in.h>
7017 #define BUFSIZE (sizeof(struct hostent)+10)
7019 struct hostent hent;
7020 struct hostent *rhent; 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,
7029 if { (eval echo configure:7030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7031 ol_cv_func_gethostbyaddr_r_nargs8=yes
7033 echo "configure: failed program was:" >&5
7034 cat conftest.$ac_ext >&5
7036 ol_cv_func_gethostbyaddr_r_nargs8=no
7040 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7041 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7043 ol_cv_func_gethostbyaddr_r_nargs=7
7045 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7046 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7048 ol_cv_func_gethostbyaddr_r_nargs=8
7051 ol_cv_func_gethostbyaddr_r_nargs=0
7056 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7057 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7058 cat >> confdefs.h <<EOF
7059 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7065 ol_cv_func_gethostbyaddr_r_nargs=0
7068 if test "$ac_cv_func_ctime_r" = yes \
7069 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7070 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7071 -a "$ac_cv_func_gethostbyname_r" = yes \
7072 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7073 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7074 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7075 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7076 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7079 cat >> confdefs.h <<\EOF
7080 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7087 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7088 -o $ol_with_threads = nt ; then
7091 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
7092 echo "configure:7093: checking for NT Threads" >&5
7093 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7097 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7098 echo "configure:7099: checking for _beginthread" >&5
7099 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7100 echo $ac_n "(cached) $ac_c" 1>&6
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7105 /* System header to define __stub macros and hopefully few prototypes,
7106 which can conflict with char _beginthread(); below. */
7108 /* Override any gcc2 internal prototype to avoid an error. */
7109 /* We use char because int might match the return type of a gcc2
7110 builtin and then its argument prototype would still apply. */
7111 char _beginthread();
7116 /* The GNU C library defines this for functions which it implements
7117 to always fail with ENOSYS. Some functions are actually named
7118 something starting with __ and the normal name is an alias. */
7119 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7127 if { (eval echo configure:7128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7129 eval "ac_cv_func__beginthread=yes"
7131 echo "configure: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7134 eval "ac_cv_func__beginthread=no"
7139 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7140 echo "$ac_t""yes" 1>&6
7141 ol_cv_nt_threads=yes
7143 echo "$ac_t""no" 1>&6
7150 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7152 if test $ol_cv_nt_threads = yes ; then
7153 cat >> confdefs.h <<\EOF
7154 #define HAVE_NT_THREADS 1
7160 if test "$ol_cv_nt_threads" = yes ; then
7162 ol_with_threads=found
7163 ol_with_yielding_select=yes
7165 cat >> confdefs.h <<\EOF
7166 #define HAVE_NT_SERVICE_MANAGER 1
7169 cat >> confdefs.h <<\EOF
7170 #define HAVE_NT_EVENT_LOG 1
7175 if test $ol_with_threads = nt ; then
7176 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7180 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7181 -o $ol_with_threads = posix ; then
7183 for ac_hdr in pthread.h
7185 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7186 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7187 echo "configure:7188: checking for $ac_hdr" >&5
7188 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7191 cat > conftest.$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7197 { (eval echo configure:7198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7199 if test -z "$ac_err"; then
7201 eval "ac_cv_header_$ac_safe=yes"
7204 echo "configure: failed program was:" >&5
7205 cat conftest.$ac_ext >&5
7207 eval "ac_cv_header_$ac_safe=no"
7211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7212 echo "$ac_t""yes" 1>&6
7213 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7214 cat >> confdefs.h <<EOF
7215 #define $ac_tr_hdr 1
7219 echo "$ac_t""no" 1>&6
7224 if test $ac_cv_header_pthread_h = yes ; then
7225 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7226 echo "configure:7227: checking POSIX thread version" >&5
7227 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7228 echo $ac_n "(cached) $ac_c" 1>&6
7231 cat > conftest.$ac_ext <<EOF
7232 #line 7233 "configure"
7233 #include "confdefs.h"
7235 # include <pthread.h>
7236 /* this check could be improved */
7237 # ifdef PTHREAD_ONCE_INIT
7238 pthread_version_final;
7242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7243 egrep "pthread_version_final" >/dev/null 2>&1; then
7245 ol_pthread_final=yes
7253 cat > conftest.$ac_ext <<EOF
7254 #line 7255 "configure"
7255 #include "confdefs.h"
7257 # include <pthread.h>
7258 /* this check could be improved */
7259 # ifdef pthread_once_init
7260 pthread_version_draft4;
7264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7265 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7267 ol_pthread_draft4=yes
7270 ol_pthread_draft4=no
7275 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7276 ol_cv_pthread_version=final
7277 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7278 ol_cv_pthread_version=draft4
7280 ol_cv_pthread_version=unknown
7285 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7288 if test $ol_cv_pthread_version = final ; then
7289 cat >> confdefs.h <<\EOF
7290 #define HAVE_PTHREADS_FINAL 1
7293 elif test $ol_cv_pthread_version = draft4 ; then
7294 cat >> confdefs.h <<\EOF
7295 #define HAVE_PTHREADS_D4 1
7299 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7302 # consider threads found
7303 ol_with_threads=found
7306 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7307 echo "configure:7308: checking for LinuxThreads pthread.h" >&5
7308 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7309 echo $ac_n "(cached) $ac_c" 1>&6
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7314 #include <pthread.h>
7316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7317 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7319 ol_cv_header_linux_threads=yes
7322 ol_cv_header_linux_threads=no
7329 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7330 if test $ol_cv_header_linux_threads = yes; then
7331 cat >> confdefs.h <<\EOF
7332 #define HAVE_LINUX_THREADS 1
7338 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7339 echo "configure:7340: checking for GNU Pth pthread.h" >&5
7340 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7341 echo $ac_n "(cached) $ac_c" 1>&6
7343 cat > conftest.$ac_ext <<EOF
7344 #line 7345 "configure"
7345 #include "confdefs.h"
7346 #include <pthread.h>
7347 #ifdef _POSIX_THREAD_IS_GNU_PTH
7352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7353 egrep "__gnu_pth__" >/dev/null 2>&1; then
7355 ol_cv_header_gnu_pth_pthread_h=yes
7358 ol_cv_header_gnu_pth_pthread_h=no
7365 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7368 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7369 for ac_hdr in sched.h
7371 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7372 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7373 echo "configure:7374: checking for $ac_hdr" >&5
7374 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7375 echo $ac_n "(cached) $ac_c" 1>&6
7377 cat > conftest.$ac_ext <<EOF
7378 #line 7379 "configure"
7379 #include "confdefs.h"
7382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7383 { (eval echo configure:7384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7385 if test -z "$ac_err"; then
7387 eval "ac_cv_header_$ac_safe=yes"
7390 echo "configure: failed program was:" >&5
7391 cat conftest.$ac_ext >&5
7393 eval "ac_cv_header_$ac_safe=no"
7397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7398 echo "$ac_t""yes" 1>&6
7399 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7400 cat >> confdefs.h <<EOF
7401 #define $ac_tr_hdr 1
7405 echo "$ac_t""no" 1>&6
7412 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7413 echo "configure:7414: checking for pthread_create in default libraries" >&5
7414 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7415 echo $ac_n "(cached) $ac_c" 1>&6
7418 if test "$cross_compiling" = yes; then
7419 cat > conftest.$ac_ext <<EOF
7420 #line 7421 "configure"
7421 #include "confdefs.h"
7422 /* pthread test headers */
7423 #include <pthread.h>
7425 #define NULL (void*)0
7428 static void *task(p)
7431 return (void *) (p == NULL);
7436 /* pthread test function */
7439 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7440 /* This system (e.g. AIX) defaults detached; must override */
7441 pthread_attr_t attr;
7443 status = pthread_attr_init(&attr);
7444 if( status ) exit( status );
7446 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7447 if( status ) exit( status );
7451 #if HAVE_PTHREADS_D4
7452 #define ATTR pthread_attr_default
7457 /* make sure pthread_create() isn't just a stub */
7458 status = pthread_create(&t, ATTR, task, NULL);
7459 if( status ) exit( status );
7461 /* make sure pthread_detach() isn't just a stub */
7462 #if HAVE_PTHREADS_D4
7463 status = pthread_detach( &t );
7465 status = pthread_detach( t );
7468 #ifdef HAVE_LINUX_THREADS
7469 pthread_kill_other_threads_np();
7476 if { (eval echo configure:7477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7478 ol_cv_pthread_create=yes
7480 echo "configure: failed program was:" >&5
7481 cat conftest.$ac_ext >&5
7483 ol_cv_pthread_create=no
7487 cat > conftest.$ac_ext <<EOF
7488 #line 7489 "configure"
7489 #include "confdefs.h"
7490 /* pthread test headers */
7491 #include <pthread.h>
7493 #define NULL (void*)0
7496 static void *task(p)
7499 return (void *) (p == NULL);
7503 int main(argc, argv)
7508 /* pthread test function */
7511 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7512 /* This system (e.g. AIX) defaults detached; must override */
7513 pthread_attr_t attr;
7515 status = pthread_attr_init(&attr);
7516 if( status ) exit( status );
7518 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7519 if( status ) exit( status );
7523 #if HAVE_PTHREADS_D4
7524 #define ATTR pthread_attr_default
7529 /* make sure pthread_create() isn't just a stub */
7530 status = pthread_create(&t, ATTR, task, NULL);
7531 if( status ) exit( status );
7533 /* make sure pthread_detach() isn't just a stub */
7534 #if HAVE_PTHREADS_D4
7535 status = pthread_detach( &t );
7537 status = pthread_detach( t );
7540 #ifdef HAVE_LINUX_THREADS
7541 pthread_kill_other_threads_np();
7549 if { (eval echo configure:7550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7551 ol_cv_pthread_create=yes
7553 echo "configure: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7556 ol_cv_pthread_create=no
7563 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7565 if test $ol_cv_pthread_create != no ; then
7566 ol_link_threads=posix
7570 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7571 if test "$ol_link_threads" = no ; then
7573 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7574 echo "configure:7575: checking for pthread link with -kthread" >&5
7575 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7576 echo $ac_n "(cached) $ac_c" 1>&6
7581 LIBS="-kthread $LIBS"
7583 if test "$cross_compiling" = yes; then
7584 cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure"
7586 #include "confdefs.h"
7587 /* pthread test headers */
7588 #include <pthread.h>
7590 #define NULL (void*)0
7593 static void *task(p)
7596 return (void *) (p == NULL);
7601 /* pthread test function */
7604 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7605 /* This system (e.g. AIX) defaults detached; must override */
7606 pthread_attr_t attr;
7608 status = pthread_attr_init(&attr);
7609 if( status ) exit( status );
7611 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7612 if( status ) exit( status );
7616 #if HAVE_PTHREADS_D4
7617 #define ATTR pthread_attr_default
7622 /* make sure pthread_create() isn't just a stub */
7623 status = pthread_create(&t, ATTR, task, NULL);
7624 if( status ) exit( status );
7626 /* make sure pthread_detach() isn't just a stub */
7627 #if HAVE_PTHREADS_D4
7628 status = pthread_detach( &t );
7630 status = pthread_detach( t );
7633 #ifdef HAVE_LINUX_THREADS
7634 pthread_kill_other_threads_np();
7641 if { (eval echo configure:7642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7643 ol_cv_pthread_kthread=yes
7645 echo "configure: failed program was:" >&5
7646 cat conftest.$ac_ext >&5
7648 ol_cv_pthread_kthread=no
7652 cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7655 /* pthread test headers */
7656 #include <pthread.h>
7658 #define NULL (void*)0
7661 static void *task(p)
7664 return (void *) (p == NULL);
7668 int main(argc, argv)
7673 /* pthread test function */
7676 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7677 /* This system (e.g. AIX) defaults detached; must override */
7678 pthread_attr_t attr;
7680 status = pthread_attr_init(&attr);
7681 if( status ) exit( status );
7683 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7684 if( status ) exit( status );
7688 #if HAVE_PTHREADS_D4
7689 #define ATTR pthread_attr_default
7694 /* make sure pthread_create() isn't just a stub */
7695 status = pthread_create(&t, ATTR, task, NULL);
7696 if( status ) exit( status );
7698 /* make sure pthread_detach() isn't just a stub */
7699 #if HAVE_PTHREADS_D4
7700 status = pthread_detach( &t );
7702 status = pthread_detach( t );
7705 #ifdef HAVE_LINUX_THREADS
7706 pthread_kill_other_threads_np();
7714 if { (eval echo configure:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7716 ol_cv_pthread_kthread=yes
7718 echo "configure: failed program was:" >&5
7719 cat conftest.$ac_ext >&5
7721 ol_cv_pthread_kthread=no
7732 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7734 if test $ol_cv_pthread_kthread = yes ; then
7735 ol_link_pthreads="-kthread"
7736 ol_link_threads=posix
7740 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7741 if test "$ol_link_threads" = no ; then
7743 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7744 echo "configure:7745: checking for pthread link with -pthread" >&5
7745 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7746 echo $ac_n "(cached) $ac_c" 1>&6
7751 LIBS="-pthread $LIBS"
7753 if test "$cross_compiling" = yes; then
7754 cat > conftest.$ac_ext <<EOF
7755 #line 7756 "configure"
7756 #include "confdefs.h"
7757 /* pthread test headers */
7758 #include <pthread.h>
7760 #define NULL (void*)0
7763 static void *task(p)
7766 return (void *) (p == NULL);
7771 /* pthread test function */
7774 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7775 /* This system (e.g. AIX) defaults detached; must override */
7776 pthread_attr_t attr;
7778 status = pthread_attr_init(&attr);
7779 if( status ) exit( status );
7781 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7782 if( status ) exit( status );
7786 #if HAVE_PTHREADS_D4
7787 #define ATTR pthread_attr_default
7792 /* make sure pthread_create() isn't just a stub */
7793 status = pthread_create(&t, ATTR, task, NULL);
7794 if( status ) exit( status );
7796 /* make sure pthread_detach() isn't just a stub */
7797 #if HAVE_PTHREADS_D4
7798 status = pthread_detach( &t );
7800 status = pthread_detach( t );
7803 #ifdef HAVE_LINUX_THREADS
7804 pthread_kill_other_threads_np();
7811 if { (eval echo configure:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7813 ol_cv_pthread_pthread=yes
7815 echo "configure: failed program was:" >&5
7816 cat conftest.$ac_ext >&5
7818 ol_cv_pthread_pthread=no
7822 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 /* pthread test headers */
7826 #include <pthread.h>
7828 #define NULL (void*)0
7831 static void *task(p)
7834 return (void *) (p == NULL);
7838 int main(argc, argv)
7843 /* pthread test function */
7846 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7847 /* This system (e.g. AIX) defaults detached; must override */
7848 pthread_attr_t attr;
7850 status = pthread_attr_init(&attr);
7851 if( status ) exit( status );
7853 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7854 if( status ) exit( status );
7858 #if HAVE_PTHREADS_D4
7859 #define ATTR pthread_attr_default
7864 /* make sure pthread_create() isn't just a stub */
7865 status = pthread_create(&t, ATTR, task, NULL);
7866 if( status ) exit( status );
7868 /* make sure pthread_detach() isn't just a stub */
7869 #if HAVE_PTHREADS_D4
7870 status = pthread_detach( &t );
7872 status = pthread_detach( t );
7875 #ifdef HAVE_LINUX_THREADS
7876 pthread_kill_other_threads_np();
7884 if { (eval echo configure:7885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7886 ol_cv_pthread_pthread=yes
7888 echo "configure: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7891 ol_cv_pthread_pthread=no
7902 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7904 if test $ol_cv_pthread_pthread = yes ; then
7905 ol_link_pthreads="-pthread"
7906 ol_link_threads=posix
7910 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7911 if test "$ol_link_threads" = no ; then
7913 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7914 echo "configure:7915: checking for pthread link with -pthreads" >&5
7915 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7916 echo $ac_n "(cached) $ac_c" 1>&6
7921 LIBS="-pthreads $LIBS"
7923 if test "$cross_compiling" = yes; then
7924 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure"
7926 #include "confdefs.h"
7927 /* pthread test headers */
7928 #include <pthread.h>
7930 #define NULL (void*)0
7933 static void *task(p)
7936 return (void *) (p == NULL);
7941 /* pthread test function */
7944 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7945 /* This system (e.g. AIX) defaults detached; must override */
7946 pthread_attr_t attr;
7948 status = pthread_attr_init(&attr);
7949 if( status ) exit( status );
7951 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7952 if( status ) exit( status );
7956 #if HAVE_PTHREADS_D4
7957 #define ATTR pthread_attr_default
7962 /* make sure pthread_create() isn't just a stub */
7963 status = pthread_create(&t, ATTR, task, NULL);
7964 if( status ) exit( status );
7966 /* make sure pthread_detach() isn't just a stub */
7967 #if HAVE_PTHREADS_D4
7968 status = pthread_detach( &t );
7970 status = pthread_detach( t );
7973 #ifdef HAVE_LINUX_THREADS
7974 pthread_kill_other_threads_np();
7981 if { (eval echo configure:7982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7983 ol_cv_pthread_pthreads=yes
7985 echo "configure: failed program was:" >&5
7986 cat conftest.$ac_ext >&5
7988 ol_cv_pthread_pthreads=no
7992 cat > conftest.$ac_ext <<EOF
7993 #line 7994 "configure"
7994 #include "confdefs.h"
7995 /* pthread test headers */
7996 #include <pthread.h>
7998 #define NULL (void*)0
8001 static void *task(p)
8004 return (void *) (p == NULL);
8008 int main(argc, argv)
8013 /* pthread test function */
8016 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8017 /* This system (e.g. AIX) defaults detached; must override */
8018 pthread_attr_t attr;
8020 status = pthread_attr_init(&attr);
8021 if( status ) exit( status );
8023 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8024 if( status ) exit( status );
8028 #if HAVE_PTHREADS_D4
8029 #define ATTR pthread_attr_default
8034 /* make sure pthread_create() isn't just a stub */
8035 status = pthread_create(&t, ATTR, task, NULL);
8036 if( status ) exit( status );
8038 /* make sure pthread_detach() isn't just a stub */
8039 #if HAVE_PTHREADS_D4
8040 status = pthread_detach( &t );
8042 status = pthread_detach( t );
8045 #ifdef HAVE_LINUX_THREADS
8046 pthread_kill_other_threads_np();
8054 if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8056 ol_cv_pthread_pthreads=yes
8058 echo "configure: failed program was:" >&5
8059 cat conftest.$ac_ext >&5
8061 ol_cv_pthread_pthreads=no
8072 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8074 if test $ol_cv_pthread_pthreads = yes ; then
8075 ol_link_pthreads="-pthreads"
8076 ol_link_threads=posix
8080 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8081 if test "$ol_link_threads" = no ; then
8083 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8084 echo "configure:8085: checking for pthread link with -mthreads" >&5
8085 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8086 echo $ac_n "(cached) $ac_c" 1>&6
8091 LIBS="-mthreads $LIBS"
8093 if test "$cross_compiling" = yes; then
8094 cat > conftest.$ac_ext <<EOF
8095 #line 8096 "configure"
8096 #include "confdefs.h"
8097 /* pthread test headers */
8098 #include <pthread.h>
8100 #define NULL (void*)0
8103 static void *task(p)
8106 return (void *) (p == NULL);
8111 /* pthread test function */
8114 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8115 /* This system (e.g. AIX) defaults detached; must override */
8116 pthread_attr_t attr;
8118 status = pthread_attr_init(&attr);
8119 if( status ) exit( status );
8121 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8122 if( status ) exit( status );
8126 #if HAVE_PTHREADS_D4
8127 #define ATTR pthread_attr_default
8132 /* make sure pthread_create() isn't just a stub */
8133 status = pthread_create(&t, ATTR, task, NULL);
8134 if( status ) exit( status );
8136 /* make sure pthread_detach() isn't just a stub */
8137 #if HAVE_PTHREADS_D4
8138 status = pthread_detach( &t );
8140 status = pthread_detach( t );
8143 #ifdef HAVE_LINUX_THREADS
8144 pthread_kill_other_threads_np();
8151 if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8153 ol_cv_pthread_mthreads=yes
8155 echo "configure: failed program was:" >&5
8156 cat conftest.$ac_ext >&5
8158 ol_cv_pthread_mthreads=no
8162 cat > conftest.$ac_ext <<EOF
8163 #line 8164 "configure"
8164 #include "confdefs.h"
8165 /* pthread test headers */
8166 #include <pthread.h>
8168 #define NULL (void*)0
8171 static void *task(p)
8174 return (void *) (p == NULL);
8178 int main(argc, argv)
8183 /* pthread test function */
8186 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8187 /* This system (e.g. AIX) defaults detached; must override */
8188 pthread_attr_t attr;
8190 status = pthread_attr_init(&attr);
8191 if( status ) exit( status );
8193 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8194 if( status ) exit( status );
8198 #if HAVE_PTHREADS_D4
8199 #define ATTR pthread_attr_default
8204 /* make sure pthread_create() isn't just a stub */
8205 status = pthread_create(&t, ATTR, task, NULL);
8206 if( status ) exit( status );
8208 /* make sure pthread_detach() isn't just a stub */
8209 #if HAVE_PTHREADS_D4
8210 status = pthread_detach( &t );
8212 status = pthread_detach( t );
8215 #ifdef HAVE_LINUX_THREADS
8216 pthread_kill_other_threads_np();
8224 if { (eval echo configure:8225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8226 ol_cv_pthread_mthreads=yes
8228 echo "configure: failed program was:" >&5
8229 cat conftest.$ac_ext >&5
8231 ol_cv_pthread_mthreads=no
8242 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8244 if test $ol_cv_pthread_mthreads = yes ; then
8245 ol_link_pthreads="-mthreads"
8246 ol_link_threads=posix
8250 # Pthread try link: -thread (ol_cv_pthread_thread)
8251 if test "$ol_link_threads" = no ; then
8253 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8254 echo "configure:8255: checking for pthread link with -thread" >&5
8255 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8256 echo $ac_n "(cached) $ac_c" 1>&6
8261 LIBS="-thread $LIBS"
8263 if test "$cross_compiling" = yes; then
8264 cat > conftest.$ac_ext <<EOF
8265 #line 8266 "configure"
8266 #include "confdefs.h"
8267 /* pthread test headers */
8268 #include <pthread.h>
8270 #define NULL (void*)0
8273 static void *task(p)
8276 return (void *) (p == NULL);
8281 /* pthread test function */
8284 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8285 /* This system (e.g. AIX) defaults detached; must override */
8286 pthread_attr_t attr;
8288 status = pthread_attr_init(&attr);
8289 if( status ) exit( status );
8291 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8292 if( status ) exit( status );
8296 #if HAVE_PTHREADS_D4
8297 #define ATTR pthread_attr_default
8302 /* make sure pthread_create() isn't just a stub */
8303 status = pthread_create(&t, ATTR, task, NULL);
8304 if( status ) exit( status );
8306 /* make sure pthread_detach() isn't just a stub */
8307 #if HAVE_PTHREADS_D4
8308 status = pthread_detach( &t );
8310 status = pthread_detach( t );
8313 #ifdef HAVE_LINUX_THREADS
8314 pthread_kill_other_threads_np();
8321 if { (eval echo configure:8322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8323 ol_cv_pthread_thread=yes
8325 echo "configure: failed program was:" >&5
8326 cat conftest.$ac_ext >&5
8328 ol_cv_pthread_thread=no
8332 cat > conftest.$ac_ext <<EOF
8333 #line 8334 "configure"
8334 #include "confdefs.h"
8335 /* pthread test headers */
8336 #include <pthread.h>
8338 #define NULL (void*)0
8341 static void *task(p)
8344 return (void *) (p == NULL);
8348 int main(argc, argv)
8353 /* pthread test function */
8356 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8357 /* This system (e.g. AIX) defaults detached; must override */
8358 pthread_attr_t attr;
8360 status = pthread_attr_init(&attr);
8361 if( status ) exit( status );
8363 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8364 if( status ) exit( status );
8368 #if HAVE_PTHREADS_D4
8369 #define ATTR pthread_attr_default
8374 /* make sure pthread_create() isn't just a stub */
8375 status = pthread_create(&t, ATTR, task, NULL);
8376 if( status ) exit( status );
8378 /* make sure pthread_detach() isn't just a stub */
8379 #if HAVE_PTHREADS_D4
8380 status = pthread_detach( &t );
8382 status = pthread_detach( t );
8385 #ifdef HAVE_LINUX_THREADS
8386 pthread_kill_other_threads_np();
8394 if { (eval echo configure:8395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8396 ol_cv_pthread_thread=yes
8398 echo "configure: failed program was:" >&5
8399 cat conftest.$ac_ext >&5
8401 ol_cv_pthread_thread=no
8412 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8414 if test $ol_cv_pthread_thread = yes ; then
8415 ol_link_pthreads="-thread"
8416 ol_link_threads=posix
8421 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8422 if test "$ol_link_threads" = no ; then
8423 # try -lpthread -lmach -lexc -lc_r
8424 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8425 echo "configure:8426: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8426 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8427 echo $ac_n "(cached) $ac_c" 1>&6
8432 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8434 if test "$cross_compiling" = yes; then
8435 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8438 /* pthread test headers */
8439 #include <pthread.h>
8441 #define NULL (void*)0
8444 static void *task(p)
8447 return (void *) (p == NULL);
8452 /* pthread test function */
8455 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8456 /* This system (e.g. AIX) defaults detached; must override */
8457 pthread_attr_t attr;
8459 status = pthread_attr_init(&attr);
8460 if( status ) exit( status );
8462 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8463 if( status ) exit( status );
8467 #if HAVE_PTHREADS_D4
8468 #define ATTR pthread_attr_default
8473 /* make sure pthread_create() isn't just a stub */
8474 status = pthread_create(&t, ATTR, task, NULL);
8475 if( status ) exit( status );
8477 /* make sure pthread_detach() isn't just a stub */
8478 #if HAVE_PTHREADS_D4
8479 status = pthread_detach( &t );
8481 status = pthread_detach( t );
8484 #ifdef HAVE_LINUX_THREADS
8485 pthread_kill_other_threads_np();
8492 if { (eval echo configure:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8494 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8496 echo "configure: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8499 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8503 cat > conftest.$ac_ext <<EOF
8504 #line 8505 "configure"
8505 #include "confdefs.h"
8506 /* pthread test headers */
8507 #include <pthread.h>
8509 #define NULL (void*)0
8512 static void *task(p)
8515 return (void *) (p == NULL);
8519 int main(argc, argv)
8524 /* pthread test function */
8527 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8528 /* This system (e.g. AIX) defaults detached; must override */
8529 pthread_attr_t attr;
8531 status = pthread_attr_init(&attr);
8532 if( status ) exit( status );
8534 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8535 if( status ) exit( status );
8539 #if HAVE_PTHREADS_D4
8540 #define ATTR pthread_attr_default
8545 /* make sure pthread_create() isn't just a stub */
8546 status = pthread_create(&t, ATTR, task, NULL);
8547 if( status ) exit( status );
8549 /* make sure pthread_detach() isn't just a stub */
8550 #if HAVE_PTHREADS_D4
8551 status = pthread_detach( &t );
8553 status = pthread_detach( t );
8556 #ifdef HAVE_LINUX_THREADS
8557 pthread_kill_other_threads_np();
8565 if { (eval echo configure:8566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8567 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8569 echo "configure: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8572 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8583 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8585 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8586 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8587 ol_link_threads=posix
8591 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8592 if test "$ol_link_threads" = no ; then
8593 # try -lpthread -lmach -lexc
8594 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8595 echo "configure:8596: checking for pthread link with -lpthread -lmach -lexc" >&5
8596 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8602 LIBS="-lpthread -lmach -lexc $LIBS"
8604 if test "$cross_compiling" = yes; then
8605 cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure"
8607 #include "confdefs.h"
8608 /* pthread test headers */
8609 #include <pthread.h>
8611 #define NULL (void*)0
8614 static void *task(p)
8617 return (void *) (p == NULL);
8622 /* pthread test function */
8625 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8626 /* This system (e.g. AIX) defaults detached; must override */
8627 pthread_attr_t attr;
8629 status = pthread_attr_init(&attr);
8630 if( status ) exit( status );
8632 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8633 if( status ) exit( status );
8637 #if HAVE_PTHREADS_D4
8638 #define ATTR pthread_attr_default
8643 /* make sure pthread_create() isn't just a stub */
8644 status = pthread_create(&t, ATTR, task, NULL);
8645 if( status ) exit( status );
8647 /* make sure pthread_detach() isn't just a stub */
8648 #if HAVE_PTHREADS_D4
8649 status = pthread_detach( &t );
8651 status = pthread_detach( t );
8654 #ifdef HAVE_LINUX_THREADS
8655 pthread_kill_other_threads_np();
8662 if { (eval echo configure:8663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8664 ol_cv_pthread_lpthread_lmach_lexc=yes
8666 echo "configure: failed program was:" >&5
8667 cat conftest.$ac_ext >&5
8669 ol_cv_pthread_lpthread_lmach_lexc=no
8673 cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8676 /* pthread test headers */
8677 #include <pthread.h>
8679 #define NULL (void*)0
8682 static void *task(p)
8685 return (void *) (p == NULL);
8689 int main(argc, argv)
8694 /* pthread test function */
8697 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8698 /* This system (e.g. AIX) defaults detached; must override */
8699 pthread_attr_t attr;
8701 status = pthread_attr_init(&attr);
8702 if( status ) exit( status );
8704 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8705 if( status ) exit( status );
8709 #if HAVE_PTHREADS_D4
8710 #define ATTR pthread_attr_default
8715 /* make sure pthread_create() isn't just a stub */
8716 status = pthread_create(&t, ATTR, task, NULL);
8717 if( status ) exit( status );
8719 /* make sure pthread_detach() isn't just a stub */
8720 #if HAVE_PTHREADS_D4
8721 status = pthread_detach( &t );
8723 status = pthread_detach( t );
8726 #ifdef HAVE_LINUX_THREADS
8727 pthread_kill_other_threads_np();
8735 if { (eval echo configure:8736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8737 ol_cv_pthread_lpthread_lmach_lexc=yes
8739 echo "configure: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8742 ol_cv_pthread_lpthread_lmach_lexc=no
8753 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8755 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8756 ol_link_pthreads="-lpthread -lmach -lexc"
8757 ol_link_threads=posix
8762 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8763 if test "$ol_link_threads" = no ; then
8764 # try -lpthread -Wl,-woff,85
8765 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8766 echo "configure:8767: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8767 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8768 echo $ac_n "(cached) $ac_c" 1>&6
8773 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8775 if test "$cross_compiling" = yes; then
8776 cat > conftest.$ac_ext <<EOF
8777 #line 8778 "configure"
8778 #include "confdefs.h"
8779 /* pthread test headers */
8780 #include <pthread.h>
8782 #define NULL (void*)0
8785 static void *task(p)
8788 return (void *) (p == NULL);
8793 /* pthread test function */
8796 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8797 /* This system (e.g. AIX) defaults detached; must override */
8798 pthread_attr_t attr;
8800 status = pthread_attr_init(&attr);
8801 if( status ) exit( status );
8803 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8804 if( status ) exit( status );
8808 #if HAVE_PTHREADS_D4
8809 #define ATTR pthread_attr_default
8814 /* make sure pthread_create() isn't just a stub */
8815 status = pthread_create(&t, ATTR, task, NULL);
8816 if( status ) exit( status );
8818 /* make sure pthread_detach() isn't just a stub */
8819 #if HAVE_PTHREADS_D4
8820 status = pthread_detach( &t );
8822 status = pthread_detach( t );
8825 #ifdef HAVE_LINUX_THREADS
8826 pthread_kill_other_threads_np();
8833 if { (eval echo configure:8834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8835 ol_cv_pthread_lib_lpthread_woff=yes
8837 echo "configure: failed program was:" >&5
8838 cat conftest.$ac_ext >&5
8840 ol_cv_pthread_lib_lpthread_woff=no
8844 cat > conftest.$ac_ext <<EOF
8845 #line 8846 "configure"
8846 #include "confdefs.h"
8847 /* pthread test headers */
8848 #include <pthread.h>
8850 #define NULL (void*)0
8853 static void *task(p)
8856 return (void *) (p == NULL);
8860 int main(argc, argv)
8865 /* pthread test function */
8868 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8869 /* This system (e.g. AIX) defaults detached; must override */
8870 pthread_attr_t attr;
8872 status = pthread_attr_init(&attr);
8873 if( status ) exit( status );
8875 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8876 if( status ) exit( status );
8880 #if HAVE_PTHREADS_D4
8881 #define ATTR pthread_attr_default
8886 /* make sure pthread_create() isn't just a stub */
8887 status = pthread_create(&t, ATTR, task, NULL);
8888 if( status ) exit( status );
8890 /* make sure pthread_detach() isn't just a stub */
8891 #if HAVE_PTHREADS_D4
8892 status = pthread_detach( &t );
8894 status = pthread_detach( t );
8897 #ifdef HAVE_LINUX_THREADS
8898 pthread_kill_other_threads_np();
8906 if { (eval echo configure:8907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8908 ol_cv_pthread_lib_lpthread_woff=yes
8910 echo "configure: failed program was:" >&5
8911 cat conftest.$ac_ext >&5
8913 ol_cv_pthread_lib_lpthread_woff=no
8924 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8926 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8927 ol_link_pthreads="-lpthread -Wl,-woff,85"
8928 ol_link_threads=posix
8933 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8934 if test "$ol_link_threads" = no ; then
8936 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8937 echo "configure:8938: checking for pthread link with -lpthread" >&5
8938 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8939 echo $ac_n "(cached) $ac_c" 1>&6
8944 LIBS="-lpthread $LIBS"
8946 if test "$cross_compiling" = yes; then
8947 cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8950 /* pthread test headers */
8951 #include <pthread.h>
8953 #define NULL (void*)0
8956 static void *task(p)
8959 return (void *) (p == NULL);
8964 /* pthread test function */
8967 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8968 /* This system (e.g. AIX) defaults detached; must override */
8969 pthread_attr_t attr;
8971 status = pthread_attr_init(&attr);
8972 if( status ) exit( status );
8974 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8975 if( status ) exit( status );
8979 #if HAVE_PTHREADS_D4
8980 #define ATTR pthread_attr_default
8985 /* make sure pthread_create() isn't just a stub */
8986 status = pthread_create(&t, ATTR, task, NULL);
8987 if( status ) exit( status );
8989 /* make sure pthread_detach() isn't just a stub */
8990 #if HAVE_PTHREADS_D4
8991 status = pthread_detach( &t );
8993 status = pthread_detach( t );
8996 #ifdef HAVE_LINUX_THREADS
8997 pthread_kill_other_threads_np();
9004 if { (eval echo configure:9005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9006 ol_cv_pthread_lpthread=yes
9008 echo "configure: failed program was:" >&5
9009 cat conftest.$ac_ext >&5
9011 ol_cv_pthread_lpthread=no
9015 cat > conftest.$ac_ext <<EOF
9016 #line 9017 "configure"
9017 #include "confdefs.h"
9018 /* pthread test headers */
9019 #include <pthread.h>
9021 #define NULL (void*)0
9024 static void *task(p)
9027 return (void *) (p == NULL);
9031 int main(argc, argv)
9036 /* pthread test function */
9039 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9040 /* This system (e.g. AIX) defaults detached; must override */
9041 pthread_attr_t attr;
9043 status = pthread_attr_init(&attr);
9044 if( status ) exit( status );
9046 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9047 if( status ) exit( status );
9051 #if HAVE_PTHREADS_D4
9052 #define ATTR pthread_attr_default
9057 /* make sure pthread_create() isn't just a stub */
9058 status = pthread_create(&t, ATTR, task, NULL);
9059 if( status ) exit( status );
9061 /* make sure pthread_detach() isn't just a stub */
9062 #if HAVE_PTHREADS_D4
9063 status = pthread_detach( &t );
9065 status = pthread_detach( t );
9068 #ifdef HAVE_LINUX_THREADS
9069 pthread_kill_other_threads_np();
9077 if { (eval echo configure:9078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9079 ol_cv_pthread_lpthread=yes
9081 echo "configure: failed program was:" >&5
9082 cat conftest.$ac_ext >&5
9084 ol_cv_pthread_lpthread=no
9095 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9097 if test $ol_cv_pthread_lpthread = yes ; then
9098 ol_link_pthreads="-lpthread"
9099 ol_link_threads=posix
9103 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9104 if test "$ol_link_threads" = no ; then
9106 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9107 echo "configure:9108: checking for pthread link with -lc_r" >&5
9108 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9109 echo $ac_n "(cached) $ac_c" 1>&6
9116 if test "$cross_compiling" = yes; then
9117 cat > conftest.$ac_ext <<EOF
9118 #line 9119 "configure"
9119 #include "confdefs.h"
9120 /* pthread test headers */
9121 #include <pthread.h>
9123 #define NULL (void*)0
9126 static void *task(p)
9129 return (void *) (p == NULL);
9134 /* pthread test function */
9137 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9138 /* This system (e.g. AIX) defaults detached; must override */
9139 pthread_attr_t attr;
9141 status = pthread_attr_init(&attr);
9142 if( status ) exit( status );
9144 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9145 if( status ) exit( status );
9149 #if HAVE_PTHREADS_D4
9150 #define ATTR pthread_attr_default
9155 /* make sure pthread_create() isn't just a stub */
9156 status = pthread_create(&t, ATTR, task, NULL);
9157 if( status ) exit( status );
9159 /* make sure pthread_detach() isn't just a stub */
9160 #if HAVE_PTHREADS_D4
9161 status = pthread_detach( &t );
9163 status = pthread_detach( t );
9166 #ifdef HAVE_LINUX_THREADS
9167 pthread_kill_other_threads_np();
9174 if { (eval echo configure:9175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9176 ol_cv_pthread_lc_r=yes
9178 echo "configure: failed program was:" >&5
9179 cat conftest.$ac_ext >&5
9181 ol_cv_pthread_lc_r=no
9185 cat > conftest.$ac_ext <<EOF
9186 #line 9187 "configure"
9187 #include "confdefs.h"
9188 /* pthread test headers */
9189 #include <pthread.h>
9191 #define NULL (void*)0
9194 static void *task(p)
9197 return (void *) (p == NULL);
9201 int main(argc, argv)
9206 /* pthread test function */
9209 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9210 /* This system (e.g. AIX) defaults detached; must override */
9211 pthread_attr_t attr;
9213 status = pthread_attr_init(&attr);
9214 if( status ) exit( status );
9216 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9217 if( status ) exit( status );
9221 #if HAVE_PTHREADS_D4
9222 #define ATTR pthread_attr_default
9227 /* make sure pthread_create() isn't just a stub */
9228 status = pthread_create(&t, ATTR, task, NULL);
9229 if( status ) exit( status );
9231 /* make sure pthread_detach() isn't just a stub */
9232 #if HAVE_PTHREADS_D4
9233 status = pthread_detach( &t );
9235 status = pthread_detach( t );
9238 #ifdef HAVE_LINUX_THREADS
9239 pthread_kill_other_threads_np();
9247 if { (eval echo configure:9248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9249 ol_cv_pthread_lc_r=yes
9251 echo "configure: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9254 ol_cv_pthread_lc_r=no
9265 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9267 if test $ol_cv_pthread_lc_r = yes ; then
9268 ol_link_pthreads="-lc_r"
9269 ol_link_threads=posix
9274 # Pthread try link: -threads (ol_cv_pthread_threads)
9275 if test "$ol_link_threads" = no ; then
9277 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9278 echo "configure:9279: checking for pthread link with -threads" >&5
9279 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9285 LIBS="-threads $LIBS"
9287 if test "$cross_compiling" = yes; then
9288 cat > conftest.$ac_ext <<EOF
9289 #line 9290 "configure"
9290 #include "confdefs.h"
9291 /* pthread test headers */
9292 #include <pthread.h>
9294 #define NULL (void*)0
9297 static void *task(p)
9300 return (void *) (p == NULL);
9305 /* pthread test function */
9308 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9309 /* This system (e.g. AIX) defaults detached; must override */
9310 pthread_attr_t attr;
9312 status = pthread_attr_init(&attr);
9313 if( status ) exit( status );
9315 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9316 if( status ) exit( status );
9320 #if HAVE_PTHREADS_D4
9321 #define ATTR pthread_attr_default
9326 /* make sure pthread_create() isn't just a stub */
9327 status = pthread_create(&t, ATTR, task, NULL);
9328 if( status ) exit( status );
9330 /* make sure pthread_detach() isn't just a stub */
9331 #if HAVE_PTHREADS_D4
9332 status = pthread_detach( &t );
9334 status = pthread_detach( t );
9337 #ifdef HAVE_LINUX_THREADS
9338 pthread_kill_other_threads_np();
9345 if { (eval echo configure:9346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9347 ol_cv_pthread_threads=yes
9349 echo "configure: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9352 ol_cv_pthread_threads=no
9356 cat > conftest.$ac_ext <<EOF
9357 #line 9358 "configure"
9358 #include "confdefs.h"
9359 /* pthread test headers */
9360 #include <pthread.h>
9362 #define NULL (void*)0
9365 static void *task(p)
9368 return (void *) (p == NULL);
9372 int main(argc, argv)
9377 /* pthread test function */
9380 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9381 /* This system (e.g. AIX) defaults detached; must override */
9382 pthread_attr_t attr;
9384 status = pthread_attr_init(&attr);
9385 if( status ) exit( status );
9387 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9388 if( status ) exit( status );
9392 #if HAVE_PTHREADS_D4
9393 #define ATTR pthread_attr_default
9398 /* make sure pthread_create() isn't just a stub */
9399 status = pthread_create(&t, ATTR, task, NULL);
9400 if( status ) exit( status );
9402 /* make sure pthread_detach() isn't just a stub */
9403 #if HAVE_PTHREADS_D4
9404 status = pthread_detach( &t );
9406 status = pthread_detach( t );
9409 #ifdef HAVE_LINUX_THREADS
9410 pthread_kill_other_threads_np();
9418 if { (eval echo configure:9419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9420 ol_cv_pthread_threads=yes
9422 echo "configure: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9425 ol_cv_pthread_threads=no
9436 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9438 if test $ol_cv_pthread_threads = yes ; then
9439 ol_link_pthreads="-threads"
9440 ol_link_threads=posix
9445 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9446 if test "$ol_link_threads" = no ; then
9447 # try -lpthreads -lmach -lexc -lc_r
9448 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9449 echo "configure:9450: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9450 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9451 echo $ac_n "(cached) $ac_c" 1>&6
9456 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9458 if test "$cross_compiling" = yes; then
9459 cat > conftest.$ac_ext <<EOF
9460 #line 9461 "configure"
9461 #include "confdefs.h"
9462 /* pthread test headers */
9463 #include <pthread.h>
9465 #define NULL (void*)0
9468 static void *task(p)
9471 return (void *) (p == NULL);
9476 /* pthread test function */
9479 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9480 /* This system (e.g. AIX) defaults detached; must override */
9481 pthread_attr_t attr;
9483 status = pthread_attr_init(&attr);
9484 if( status ) exit( status );
9486 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9487 if( status ) exit( status );
9491 #if HAVE_PTHREADS_D4
9492 #define ATTR pthread_attr_default
9497 /* make sure pthread_create() isn't just a stub */
9498 status = pthread_create(&t, ATTR, task, NULL);
9499 if( status ) exit( status );
9501 /* make sure pthread_detach() isn't just a stub */
9502 #if HAVE_PTHREADS_D4
9503 status = pthread_detach( &t );
9505 status = pthread_detach( t );
9508 #ifdef HAVE_LINUX_THREADS
9509 pthread_kill_other_threads_np();
9516 if { (eval echo configure:9517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9518 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9523 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9527 cat > conftest.$ac_ext <<EOF
9528 #line 9529 "configure"
9529 #include "confdefs.h"
9530 /* pthread test headers */
9531 #include <pthread.h>
9533 #define NULL (void*)0
9536 static void *task(p)
9539 return (void *) (p == NULL);
9543 int main(argc, argv)
9548 /* pthread test function */
9551 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9552 /* This system (e.g. AIX) defaults detached; must override */
9553 pthread_attr_t attr;
9555 status = pthread_attr_init(&attr);
9556 if( status ) exit( status );
9558 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9559 if( status ) exit( status );
9563 #if HAVE_PTHREADS_D4
9564 #define ATTR pthread_attr_default
9569 /* make sure pthread_create() isn't just a stub */
9570 status = pthread_create(&t, ATTR, task, NULL);
9571 if( status ) exit( status );
9573 /* make sure pthread_detach() isn't just a stub */
9574 #if HAVE_PTHREADS_D4
9575 status = pthread_detach( &t );
9577 status = pthread_detach( t );
9580 #ifdef HAVE_LINUX_THREADS
9581 pthread_kill_other_threads_np();
9589 if { (eval echo configure:9590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9591 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9593 echo "configure: failed program was:" >&5
9594 cat conftest.$ac_ext >&5
9596 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9607 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9609 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9610 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9611 ol_link_threads=posix
9615 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9616 if test "$ol_link_threads" = no ; then
9617 # try -lpthreads -lmach -lexc
9618 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9619 echo "configure:9620: checking for pthread link with -lpthreads -lmach -lexc" >&5
9620 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9621 echo $ac_n "(cached) $ac_c" 1>&6
9626 LIBS="-lpthreads -lmach -lexc $LIBS"
9628 if test "$cross_compiling" = yes; then
9629 cat > conftest.$ac_ext <<EOF
9630 #line 9631 "configure"
9631 #include "confdefs.h"
9632 /* pthread test headers */
9633 #include <pthread.h>
9635 #define NULL (void*)0
9638 static void *task(p)
9641 return (void *) (p == NULL);
9646 /* pthread test function */
9649 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9650 /* This system (e.g. AIX) defaults detached; must override */
9651 pthread_attr_t attr;
9653 status = pthread_attr_init(&attr);
9654 if( status ) exit( status );
9656 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9657 if( status ) exit( status );
9661 #if HAVE_PTHREADS_D4
9662 #define ATTR pthread_attr_default
9667 /* make sure pthread_create() isn't just a stub */
9668 status = pthread_create(&t, ATTR, task, NULL);
9669 if( status ) exit( status );
9671 /* make sure pthread_detach() isn't just a stub */
9672 #if HAVE_PTHREADS_D4
9673 status = pthread_detach( &t );
9675 status = pthread_detach( t );
9678 #ifdef HAVE_LINUX_THREADS
9679 pthread_kill_other_threads_np();
9686 if { (eval echo configure:9687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9688 ol_cv_pthread_lpthreads_lmach_lexc=yes
9690 echo "configure: failed program was:" >&5
9691 cat conftest.$ac_ext >&5
9693 ol_cv_pthread_lpthreads_lmach_lexc=no
9697 cat > conftest.$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9700 /* pthread test headers */
9701 #include <pthread.h>
9703 #define NULL (void*)0
9706 static void *task(p)
9709 return (void *) (p == NULL);
9713 int main(argc, argv)
9718 /* pthread test function */
9721 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9722 /* This system (e.g. AIX) defaults detached; must override */
9723 pthread_attr_t attr;
9725 status = pthread_attr_init(&attr);
9726 if( status ) exit( status );
9728 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9729 if( status ) exit( status );
9733 #if HAVE_PTHREADS_D4
9734 #define ATTR pthread_attr_default
9739 /* make sure pthread_create() isn't just a stub */
9740 status = pthread_create(&t, ATTR, task, NULL);
9741 if( status ) exit( status );
9743 /* make sure pthread_detach() isn't just a stub */
9744 #if HAVE_PTHREADS_D4
9745 status = pthread_detach( &t );
9747 status = pthread_detach( t );
9750 #ifdef HAVE_LINUX_THREADS
9751 pthread_kill_other_threads_np();
9759 if { (eval echo configure:9760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9761 ol_cv_pthread_lpthreads_lmach_lexc=yes
9763 echo "configure: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9766 ol_cv_pthread_lpthreads_lmach_lexc=no
9777 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9779 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9780 ol_link_pthreads="-lpthreads -lmach -lexc"
9781 ol_link_threads=posix
9785 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9786 if test "$ol_link_threads" = no ; then
9787 # try -lpthreads -lexc
9788 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9789 echo "configure:9790: checking for pthread link with -lpthreads -lexc" >&5
9790 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
9796 LIBS="-lpthreads -lexc $LIBS"
9798 if test "$cross_compiling" = yes; then
9799 cat > conftest.$ac_ext <<EOF
9800 #line 9801 "configure"
9801 #include "confdefs.h"
9802 /* pthread test headers */
9803 #include <pthread.h>
9805 #define NULL (void*)0
9808 static void *task(p)
9811 return (void *) (p == NULL);
9816 /* pthread test function */
9819 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9820 /* This system (e.g. AIX) defaults detached; must override */
9821 pthread_attr_t attr;
9823 status = pthread_attr_init(&attr);
9824 if( status ) exit( status );
9826 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9827 if( status ) exit( status );
9831 #if HAVE_PTHREADS_D4
9832 #define ATTR pthread_attr_default
9837 /* make sure pthread_create() isn't just a stub */
9838 status = pthread_create(&t, ATTR, task, NULL);
9839 if( status ) exit( status );
9841 /* make sure pthread_detach() isn't just a stub */
9842 #if HAVE_PTHREADS_D4
9843 status = pthread_detach( &t );
9845 status = pthread_detach( t );
9848 #ifdef HAVE_LINUX_THREADS
9849 pthread_kill_other_threads_np();
9856 if { (eval echo configure:9857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9858 ol_cv_pthread_lpthreads_lexc=yes
9860 echo "configure: failed program was:" >&5
9861 cat conftest.$ac_ext >&5
9863 ol_cv_pthread_lpthreads_lexc=no
9867 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure"
9869 #include "confdefs.h"
9870 /* pthread test headers */
9871 #include <pthread.h>
9873 #define NULL (void*)0
9876 static void *task(p)
9879 return (void *) (p == NULL);
9883 int main(argc, argv)
9888 /* pthread test function */
9891 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9892 /* This system (e.g. AIX) defaults detached; must override */
9893 pthread_attr_t attr;
9895 status = pthread_attr_init(&attr);
9896 if( status ) exit( status );
9898 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9899 if( status ) exit( status );
9903 #if HAVE_PTHREADS_D4
9904 #define ATTR pthread_attr_default
9909 /* make sure pthread_create() isn't just a stub */
9910 status = pthread_create(&t, ATTR, task, NULL);
9911 if( status ) exit( status );
9913 /* make sure pthread_detach() isn't just a stub */
9914 #if HAVE_PTHREADS_D4
9915 status = pthread_detach( &t );
9917 status = pthread_detach( t );
9920 #ifdef HAVE_LINUX_THREADS
9921 pthread_kill_other_threads_np();
9929 if { (eval echo configure:9930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9931 ol_cv_pthread_lpthreads_lexc=yes
9933 echo "configure: failed program was:" >&5
9934 cat conftest.$ac_ext >&5
9936 ol_cv_pthread_lpthreads_lexc=no
9947 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9949 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9950 ol_link_pthreads="-lpthreads -lexc"
9951 ol_link_threads=posix
9956 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9957 if test "$ol_link_threads" = no ; then
9959 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9960 echo "configure:9961: checking for pthread link with -lpthreads" >&5
9961 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9962 echo $ac_n "(cached) $ac_c" 1>&6
9967 LIBS="-lpthreads $LIBS"
9969 if test "$cross_compiling" = yes; then
9970 cat > conftest.$ac_ext <<EOF
9971 #line 9972 "configure"
9972 #include "confdefs.h"
9973 /* pthread test headers */
9974 #include <pthread.h>
9976 #define NULL (void*)0
9979 static void *task(p)
9982 return (void *) (p == NULL);
9987 /* pthread test function */
9990 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9991 /* This system (e.g. AIX) defaults detached; must override */
9992 pthread_attr_t attr;
9994 status = pthread_attr_init(&attr);
9995 if( status ) exit( status );
9997 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9998 if( status ) exit( status );
10002 #if HAVE_PTHREADS_D4
10003 #define ATTR pthread_attr_default
10008 /* make sure pthread_create() isn't just a stub */
10009 status = pthread_create(&t, ATTR, task, NULL);
10010 if( status ) exit( status );
10012 /* make sure pthread_detach() isn't just a stub */
10013 #if HAVE_PTHREADS_D4
10014 status = pthread_detach( &t );
10016 status = pthread_detach( t );
10019 #ifdef HAVE_LINUX_THREADS
10020 pthread_kill_other_threads_np();
10027 if { (eval echo configure:10028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10029 ol_cv_pthread_lib_lpthreads=yes
10031 echo "configure: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10034 ol_cv_pthread_lib_lpthreads=no
10038 cat > conftest.$ac_ext <<EOF
10039 #line 10040 "configure"
10040 #include "confdefs.h"
10041 /* pthread test headers */
10042 #include <pthread.h>
10044 #define NULL (void*)0
10047 static void *task(p)
10050 return (void *) (p == NULL);
10054 int main(argc, argv)
10059 /* pthread test function */
10062 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10063 /* This system (e.g. AIX) defaults detached; must override */
10064 pthread_attr_t attr;
10066 status = pthread_attr_init(&attr);
10067 if( status ) exit( status );
10069 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10070 if( status ) exit( status );
10074 #if HAVE_PTHREADS_D4
10075 #define ATTR pthread_attr_default
10080 /* make sure pthread_create() isn't just a stub */
10081 status = pthread_create(&t, ATTR, task, NULL);
10082 if( status ) exit( status );
10084 /* make sure pthread_detach() isn't just a stub */
10085 #if HAVE_PTHREADS_D4
10086 status = pthread_detach( &t );
10088 status = pthread_detach( t );
10091 #ifdef HAVE_LINUX_THREADS
10092 pthread_kill_other_threads_np();
10100 if { (eval echo configure:10101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10102 ol_cv_pthread_lib_lpthreads=yes
10104 echo "configure: failed program was:" >&5
10105 cat conftest.$ac_ext >&5
10107 ol_cv_pthread_lib_lpthreads=no
10118 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10120 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10121 ol_link_pthreads="-lpthreads"
10122 ol_link_threads=posix
10127 if test $ol_link_threads != no ; then
10128 cat >> confdefs.h <<\EOF
10129 #define HAVE_PTHREADS 1
10133 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10135 save_CPPFLAGS="$CPPFLAGS"
10137 LIBS="$LTHREAD_LIBS $LIBS"
10139 for ac_func in sched_yield pthread_yield
10141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10142 echo "configure:10143: checking for $ac_func" >&5
10143 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10144 echo $ac_n "(cached) $ac_c" 1>&6
10146 cat > conftest.$ac_ext <<EOF
10147 #line 10148 "configure"
10148 #include "confdefs.h"
10149 /* System header to define __stub macros and hopefully few prototypes,
10150 which can conflict with char $ac_func(); below. */
10151 #include <assert.h>
10152 /* Override any gcc2 internal prototype to avoid an error. */
10153 /* We use char because int might match the return type of a gcc2
10154 builtin and then its argument prototype would still apply. */
10160 /* The GNU C library defines this for functions which it implements
10161 to always fail with ENOSYS. Some functions are actually named
10162 something starting with __ and the normal name is an alias. */
10163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10171 if { (eval echo configure:10172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10173 eval "ac_cv_func_$ac_func=yes"
10175 echo "configure: failed program was:" >&5
10176 cat conftest.$ac_ext >&5
10178 eval "ac_cv_func_$ac_func=no"
10183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10184 echo "$ac_t""yes" 1>&6
10185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10186 cat >> confdefs.h <<EOF
10187 #define $ac_tr_func 1
10191 echo "$ac_t""no" 1>&6
10196 if test $ac_cv_func_sched_yield = no -a \
10197 $ac_cv_func_pthread_yield = no ; then
10198 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10199 echo "configure:10200: checking for sched_yield in -lrt" >&5
10200 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10201 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10202 echo $ac_n "(cached) $ac_c" 1>&6
10204 ac_save_LIBS="$LIBS"
10206 cat > conftest.$ac_ext <<EOF
10207 #line 10208 "configure"
10208 #include "confdefs.h"
10209 /* Override any gcc2 internal prototype to avoid an error. */
10210 /* We use char because int might match the return type of a gcc2
10211 builtin and then its argument prototype would still apply. */
10212 char sched_yield();
10218 if { (eval echo configure:10219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10220 eval "ac_cv_lib_$ac_lib_var=yes"
10222 echo "configure: failed program was:" >&5
10223 cat conftest.$ac_ext >&5
10225 eval "ac_cv_lib_$ac_lib_var=no"
10228 LIBS="$ac_save_LIBS"
10231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10232 echo "$ac_t""yes" 1>&6
10233 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10234 cat >> confdefs.h <<\EOF
10235 #define HAVE_SCHED_YIELD 1
10238 ac_cv_func_sched_yield=yes
10240 echo "$ac_t""no" 1>&6
10241 ac_cv_func_sched_yield=no
10245 if test $ac_cv_func_sched_yield = no -a \
10246 $ac_cv_func_pthread_yield = no ; then
10247 for ac_func in thr_yield
10249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10250 echo "configure:10251: checking for $ac_func" >&5
10251 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10252 echo $ac_n "(cached) $ac_c" 1>&6
10254 cat > conftest.$ac_ext <<EOF
10255 #line 10256 "configure"
10256 #include "confdefs.h"
10257 /* System header to define __stub macros and hopefully few prototypes,
10258 which can conflict with char $ac_func(); below. */
10259 #include <assert.h>
10260 /* Override any gcc2 internal prototype to avoid an error. */
10261 /* We use char because int might match the return type of a gcc2
10262 builtin and then its argument prototype would still apply. */
10268 /* The GNU C library defines this for functions which it implements
10269 to always fail with ENOSYS. Some functions are actually named
10270 something starting with __ and the normal name is an alias. */
10271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10279 if { (eval echo configure:10280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10281 eval "ac_cv_func_$ac_func=yes"
10283 echo "configure: failed program was:" >&5
10284 cat conftest.$ac_ext >&5
10286 eval "ac_cv_func_$ac_func=no"
10291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10292 echo "$ac_t""yes" 1>&6
10293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10294 cat >> confdefs.h <<EOF
10295 #define $ac_tr_func 1
10299 echo "$ac_t""no" 1>&6
10304 if test $ac_cv_func_sched_yield = no -a \
10305 $ac_cv_func_pthread_yield = no -a \
10306 "$ac_cv_func_thr_yield" = no ; then
10307 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10310 for ac_func in pthread_kill
10312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10313 echo "configure:10314: checking for $ac_func" >&5
10314 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10315 echo $ac_n "(cached) $ac_c" 1>&6
10317 cat > conftest.$ac_ext <<EOF
10318 #line 10319 "configure"
10319 #include "confdefs.h"
10320 /* System header to define __stub macros and hopefully few prototypes,
10321 which can conflict with char $ac_func(); below. */
10322 #include <assert.h>
10323 /* Override any gcc2 internal prototype to avoid an error. */
10324 /* We use char because int might match the return type of a gcc2
10325 builtin and then its argument prototype would still apply. */
10331 /* The GNU C library defines this for functions which it implements
10332 to always fail with ENOSYS. Some functions are actually named
10333 something starting with __ and the normal name is an alias. */
10334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10342 if { (eval echo configure:10343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10344 eval "ac_cv_func_$ac_func=yes"
10346 echo "configure: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10349 eval "ac_cv_func_$ac_func=no"
10354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10355 echo "$ac_t""yes" 1>&6
10356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10357 cat >> confdefs.h <<EOF
10358 #define $ac_tr_func 1
10362 echo "$ac_t""no" 1>&6
10367 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10368 echo "configure:10369: checking for pthread_detach with <pthread.h>" >&5
10369 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10370 echo $ac_n "(cached) $ac_c" 1>&6
10373 cat > conftest.$ac_ext <<EOF
10374 #line 10375 "configure"
10375 #include "confdefs.h"
10377 #include <pthread.h>
10379 #define NULL (void*)0
10383 pthread_detach(NULL);
10386 if { (eval echo configure:10387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10388 ol_cv_func_pthread_detach=yes
10390 echo "configure: failed program was:" >&5
10391 cat conftest.$ac_ext >&5
10393 ol_cv_func_pthread_detach=no
10399 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10401 if test $ol_cv_func_pthread_detach = no ; then
10402 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10405 cat >> confdefs.h <<\EOF
10406 #define HAVE_PTHREAD_DETACH 1
10411 pthread_setconcurrency \
10412 pthread_getconcurrency \
10413 thr_setconcurrency \
10414 thr_getconcurrency \
10417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10418 echo "configure:10419: checking for $ac_func" >&5
10419 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10420 echo $ac_n "(cached) $ac_c" 1>&6
10422 cat > conftest.$ac_ext <<EOF
10423 #line 10424 "configure"
10424 #include "confdefs.h"
10425 /* System header to define __stub macros and hopefully few prototypes,
10426 which can conflict with char $ac_func(); below. */
10427 #include <assert.h>
10428 /* Override any gcc2 internal prototype to avoid an error. */
10429 /* We use char because int might match the return type of a gcc2
10430 builtin and then its argument prototype would still apply. */
10436 /* The GNU C library defines this for functions which it implements
10437 to always fail with ENOSYS. Some functions are actually named
10438 something starting with __ and the normal name is an alias. */
10439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10447 if { (eval echo configure:10448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10449 eval "ac_cv_func_$ac_func=yes"
10451 echo "configure: failed program was:" >&5
10452 cat conftest.$ac_ext >&5
10454 eval "ac_cv_func_$ac_func=no"
10459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10460 echo "$ac_t""yes" 1>&6
10461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10462 cat >> confdefs.h <<EOF
10463 #define $ac_tr_func 1
10467 echo "$ac_t""no" 1>&6
10473 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
10474 echo "configure:10475: checking for pthread_kill_other_threads_np" >&5
10475 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
10476 echo $ac_n "(cached) $ac_c" 1>&6
10478 cat > conftest.$ac_ext <<EOF
10479 #line 10480 "configure"
10480 #include "confdefs.h"
10481 /* System header to define __stub macros and hopefully few prototypes,
10482 which can conflict with char pthread_kill_other_threads_np(); below. */
10483 #include <assert.h>
10484 /* Override any gcc2 internal prototype to avoid an error. */
10485 /* We use char because int might match the return type of a gcc2
10486 builtin and then its argument prototype would still apply. */
10487 char pthread_kill_other_threads_np();
10492 /* The GNU C library defines this for functions which it implements
10493 to always fail with ENOSYS. Some functions are actually named
10494 something starting with __ and the normal name is an alias. */
10495 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
10498 f = pthread_kill_other_threads_np;
10503 if { (eval echo configure:10504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10505 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
10507 echo "configure: failed program was:" >&5
10508 cat conftest.$ac_ext >&5
10510 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10515 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10516 echo "$ac_t""yes" 1>&6
10519 echo "$ac_t""no" 1>&6
10522 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10523 echo "configure:10524: checking for LinuxThreads implementation" >&5
10524 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10525 echo $ac_n "(cached) $ac_c" 1>&6
10527 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10530 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10535 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10536 echo "configure:10537: checking for LinuxThreads consistency" >&5
10537 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10538 echo $ac_n "(cached) $ac_c" 1>&6
10541 if test $ol_cv_header_linux_threads = yes -a \
10542 $ol_cv_sys_linux_threads = yes; then
10543 ol_cv_linux_threads=yes
10544 elif test $ol_cv_header_linux_threads = no -a \
10545 $ol_cv_sys_linux_threads = no; then
10546 ol_cv_linux_threads=no
10548 ol_cv_linux_threads=error
10553 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10556 if test $ol_cv_linux_threads = error; then
10557 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10560 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10561 echo "configure:10562: checking if pthread_create() works" >&5
10562 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10563 echo $ac_n "(cached) $ac_c" 1>&6
10566 if test "$cross_compiling" = yes; then
10567 ol_cv_pthread_create_works=yes
10569 cat > conftest.$ac_ext <<EOF
10570 #line 10571 "configure"
10571 #include "confdefs.h"
10572 /* pthread test headers */
10573 #include <pthread.h>
10575 #define NULL (void*)0
10578 static void *task(p)
10581 return (void *) (p == NULL);
10585 int main(argc, argv)
10590 /* pthread test function */
10593 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10594 /* This system (e.g. AIX) defaults detached; must override */
10595 pthread_attr_t attr;
10597 status = pthread_attr_init(&attr);
10598 if( status ) exit( status );
10600 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10601 if( status ) exit( status );
10605 #if HAVE_PTHREADS_D4
10606 #define ATTR pthread_attr_default
10611 /* make sure pthread_create() isn't just a stub */
10612 status = pthread_create(&t, ATTR, task, NULL);
10613 if( status ) exit( status );
10615 /* make sure pthread_detach() isn't just a stub */
10616 #if HAVE_PTHREADS_D4
10617 status = pthread_detach( &t );
10619 status = pthread_detach( t );
10622 #ifdef HAVE_LINUX_THREADS
10623 pthread_kill_other_threads_np();
10631 if { (eval echo configure:10632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10633 ol_cv_pthread_create_works=yes
10635 echo "configure: failed program was:" >&5
10636 cat conftest.$ac_ext >&5
10638 ol_cv_pthread_create_works=no
10645 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10647 if test $ol_cv_pthread_create_works = no ; then
10648 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10651 if test $ol_with_yielding_select = auto ; then
10652 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10653 echo "configure:10654: checking if select yields when using pthreads" >&5
10654 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10655 echo $ac_n "(cached) $ac_c" 1>&6
10658 if test "$cross_compiling" = yes; then
10659 ol_cv_pthread_select_yields=cross
10661 cat > conftest.$ac_ext <<EOF
10662 #line 10663 "configure"
10663 #include "confdefs.h"
10665 #include <sys/types.h>
10666 #include <sys/time.h>
10667 #include <unistd.h>
10668 #include <pthread.h>
10670 #define NULL (void*) 0
10673 static int fildes[2];
10675 static void *task(p)
10687 FD_SET(fildes[0], &rfds);
10689 /* we're not interested in any fds */
10690 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10697 exit(0); /* if we exit here, the select blocked the whole process */
10700 int main(argc, argv)
10706 /* create a pipe to select */
10707 if(pipe(&fildes[0])) {
10712 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10713 (void) pthread_setconcurrency(2);
10715 #ifdef HAVE_THR_SETCONCURRENCY
10716 /* Set Solaris LWP concurrency to 2 */
10717 thr_setconcurrency(2);
10721 #if HAVE_PTHREADS_D4
10722 pthread_create(&t, pthread_attr_default, task, NULL);
10724 pthread_create(&t, NULL, task, NULL);
10727 #if HAVE_SCHED_YIELD
10728 sched_yield(); /* make sure task runs first */
10730 #ifdef HAVE_PTHREAD_YIELD
10731 pthread_yield(); /* make sure task runs first */
10738 if { (eval echo configure:10739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10740 ol_cv_pthread_select_yields=no
10742 echo "configure: failed program was:" >&5
10743 cat conftest.$ac_ext >&5
10745 ol_cv_pthread_select_yields=yes
10752 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10754 if test $ol_cv_pthread_select_yields = cross ; then
10755 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10758 if test $ol_cv_pthread_select_yields = yes ; then
10759 ol_with_yielding_select=yes
10763 CPPFLAGS="$save_CPPFLAGS"
10766 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10770 if test $ol_with_threads = posix ; then
10771 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10775 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10776 -o $ol_with_threads = mach ; then
10778 for ac_hdr in mach/cthreads.h
10780 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10781 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10782 echo "configure:10783: checking for $ac_hdr" >&5
10783 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10784 echo $ac_n "(cached) $ac_c" 1>&6
10786 cat > conftest.$ac_ext <<EOF
10787 #line 10788 "configure"
10788 #include "confdefs.h"
10791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10792 { (eval echo configure:10793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10794 if test -z "$ac_err"; then
10796 eval "ac_cv_header_$ac_safe=yes"
10799 echo "configure: failed program was:" >&5
10800 cat conftest.$ac_ext >&5
10802 eval "ac_cv_header_$ac_safe=no"
10806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10807 echo "$ac_t""yes" 1>&6
10808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10809 cat >> confdefs.h <<EOF
10810 #define $ac_tr_hdr 1
10814 echo "$ac_t""no" 1>&6
10818 if test $ac_cv_header_mach_cthreads_h = yes ; then
10819 ol_with_threads=found
10821 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10822 echo "configure:10823: checking for cthread_fork" >&5
10823 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10824 echo $ac_n "(cached) $ac_c" 1>&6
10826 cat > conftest.$ac_ext <<EOF
10827 #line 10828 "configure"
10828 #include "confdefs.h"
10829 /* System header to define __stub macros and hopefully few prototypes,
10830 which can conflict with char cthread_fork(); below. */
10831 #include <assert.h>
10832 /* Override any gcc2 internal prototype to avoid an error. */
10833 /* We use char because int might match the return type of a gcc2
10834 builtin and then its argument prototype would still apply. */
10835 char cthread_fork();
10840 /* The GNU C library defines this for functions which it implements
10841 to always fail with ENOSYS. Some functions are actually named
10842 something starting with __ and the normal name is an alias. */
10843 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10851 if { (eval echo configure:10852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10853 eval "ac_cv_func_cthread_fork=yes"
10855 echo "configure: failed program was:" >&5
10856 cat conftest.$ac_ext >&5
10858 eval "ac_cv_func_cthread_fork=no"
10863 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10864 echo "$ac_t""yes" 1>&6
10865 ol_link_threads=yes
10867 echo "$ac_t""no" 1>&6
10871 if test $ol_link_threads = no ; then
10872 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10873 echo "configure:10874: checking for cthread_fork with -all_load" >&5
10874 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10875 echo $ac_n "(cached) $ac_c" 1>&6
10879 LIBS="-all_load $LIBS"
10880 cat > conftest.$ac_ext <<EOF
10881 #line 10882 "configure"
10882 #include "confdefs.h"
10883 #include <mach/cthreads.h>
10886 cthread_fork((void *)0, (void *)0);
10890 if { (eval echo configure:10891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10892 ol_cv_cthread_all_load=yes
10894 echo "configure: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10897 ol_cv_cthread_all_load=no
10904 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10906 if test $ol_cv_cthread_all_load = yes ; then
10907 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10908 ol_link_threads=mach
10912 if test $ol_link_threads != no ; then
10913 : check for cthread specific functionality here
10914 cat >> confdefs.h <<\EOF
10915 #define HAVE_MACH_CTHREADS 1
10919 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10923 if test $ol_with_threads = mach ; then
10924 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10928 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10929 -o $ol_with_threads = pth ; then
10931 for ac_hdr in pth.h
10933 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10935 echo "configure:10936: checking for $ac_hdr" >&5
10936 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10937 echo $ac_n "(cached) $ac_c" 1>&6
10939 cat > conftest.$ac_ext <<EOF
10940 #line 10941 "configure"
10941 #include "confdefs.h"
10944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10945 { (eval echo configure:10946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10947 if test -z "$ac_err"; then
10949 eval "ac_cv_header_$ac_safe=yes"
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10955 eval "ac_cv_header_$ac_safe=no"
10959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10960 echo "$ac_t""yes" 1>&6
10961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10962 cat >> confdefs.h <<EOF
10963 #define $ac_tr_hdr 1
10967 echo "$ac_t""no" 1>&6
10972 if test $ac_cv_header_pth_h = yes ; then
10973 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10974 echo "configure:10975: checking for pth_version in -lpth" >&5
10975 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10976 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10979 ac_save_LIBS="$LIBS"
10981 cat > conftest.$ac_ext <<EOF
10982 #line 10983 "configure"
10983 #include "confdefs.h"
10984 /* Override any gcc2 internal prototype to avoid an error. */
10985 /* We use char because int might match the return type of a gcc2
10986 builtin and then its argument prototype would still apply. */
10987 char pth_version();
10993 if { (eval echo configure:10994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10995 eval "ac_cv_lib_$ac_lib_var=yes"
10997 echo "configure: failed program was:" >&5
10998 cat conftest.$ac_ext >&5
11000 eval "ac_cv_lib_$ac_lib_var=no"
11003 LIBS="$ac_save_LIBS"
11006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11007 echo "$ac_t""yes" 1>&6
11010 echo "$ac_t""no" 1>&6
11015 if test $have_pth = yes ; then
11016 cat >> confdefs.h <<\EOF
11017 #define HAVE_GNU_PTH 1
11020 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11021 ol_link_threads=pth
11023 if test $ol_with_yielding_select = auto ; then
11024 ol_with_yielding_select=yes
11030 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11031 -o $ol_with_threads = lwp ; then
11033 for ac_hdr in thread.h synch.h
11035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11037 echo "configure:11038: checking for $ac_hdr" >&5
11038 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11039 echo $ac_n "(cached) $ac_c" 1>&6
11041 cat > conftest.$ac_ext <<EOF
11042 #line 11043 "configure"
11043 #include "confdefs.h"
11046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11047 { (eval echo configure:11048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11049 if test -z "$ac_err"; then
11051 eval "ac_cv_header_$ac_safe=yes"
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11057 eval "ac_cv_header_$ac_safe=no"
11061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11062 echo "$ac_t""yes" 1>&6
11063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11064 cat >> confdefs.h <<EOF
11065 #define $ac_tr_hdr 1
11069 echo "$ac_t""no" 1>&6
11073 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11074 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11075 echo "configure:11076: checking for thr_create in -lthread" >&5
11076 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11077 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11080 ac_save_LIBS="$LIBS"
11081 LIBS="-lthread $LIBS"
11082 cat > conftest.$ac_ext <<EOF
11083 #line 11084 "configure"
11084 #include "confdefs.h"
11085 /* Override any gcc2 internal prototype to avoid an error. */
11086 /* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11094 if { (eval echo configure:11095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11096 eval "ac_cv_lib_$ac_lib_var=yes"
11098 echo "configure: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11101 eval "ac_cv_lib_$ac_lib_var=no"
11104 LIBS="$ac_save_LIBS"
11107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11108 echo "$ac_t""yes" 1>&6
11111 echo "$ac_t""no" 1>&6
11116 if test $have_thr = yes ; then
11117 cat >> confdefs.h <<\EOF
11121 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11122 ol_link_threads=thr
11124 if test $ol_with_yielding_select = auto ; then
11125 ol_with_yielding_select=yes
11129 thr_setconcurrency \
11130 thr_getconcurrency \
11133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11134 echo "configure:11135: checking for $ac_func" >&5
11135 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11136 echo $ac_n "(cached) $ac_c" 1>&6
11138 cat > conftest.$ac_ext <<EOF
11139 #line 11140 "configure"
11140 #include "confdefs.h"
11141 /* System header to define __stub macros and hopefully few prototypes,
11142 which can conflict with char $ac_func(); below. */
11143 #include <assert.h>
11144 /* Override any gcc2 internal prototype to avoid an error. */
11145 /* We use char because int might match the return type of a gcc2
11146 builtin and then its argument prototype would still apply. */
11152 /* The GNU C library defines this for functions which it implements
11153 to always fail with ENOSYS. Some functions are actually named
11154 something starting with __ and the normal name is an alias. */
11155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11163 if { (eval echo configure:11164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11165 eval "ac_cv_func_$ac_func=yes"
11167 echo "configure: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
11170 eval "ac_cv_func_$ac_func=no"
11175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11176 echo "$ac_t""yes" 1>&6
11177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11178 cat >> confdefs.h <<EOF
11179 #define $ac_tr_func 1
11183 echo "$ac_t""no" 1>&6
11190 for ac_hdr in lwp/lwp.h
11192 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11193 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11194 echo "configure:11195: checking for $ac_hdr" >&5
11195 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11196 echo $ac_n "(cached) $ac_c" 1>&6
11198 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure"
11200 #include "confdefs.h"
11203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11204 { (eval echo configure:11205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11206 if test -z "$ac_err"; then
11208 eval "ac_cv_header_$ac_safe=yes"
11211 echo "configure: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11214 eval "ac_cv_header_$ac_safe=no"
11218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11219 echo "$ac_t""yes" 1>&6
11220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11221 cat >> confdefs.h <<EOF
11222 #define $ac_tr_hdr 1
11226 echo "$ac_t""no" 1>&6
11230 if test $ac_cv_header_lwp_lwp_h = yes ; then
11231 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11232 echo "configure:11233: checking for lwp_create in -llwp" >&5
11233 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11234 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11235 echo $ac_n "(cached) $ac_c" 1>&6
11237 ac_save_LIBS="$LIBS"
11239 cat > conftest.$ac_ext <<EOF
11240 #line 11241 "configure"
11241 #include "confdefs.h"
11242 /* Override any gcc2 internal prototype to avoid an error. */
11243 /* We use char because int might match the return type of a gcc2
11244 builtin and then its argument prototype would still apply. */
11251 if { (eval echo configure:11252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11253 eval "ac_cv_lib_$ac_lib_var=yes"
11255 echo "configure: failed program was:" >&5
11256 cat conftest.$ac_ext >&5
11258 eval "ac_cv_lib_$ac_lib_var=no"
11261 LIBS="$ac_save_LIBS"
11264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11265 echo "$ac_t""yes" 1>&6
11268 echo "$ac_t""no" 1>&6
11273 if test $have_lwp = yes ; then
11274 cat >> confdefs.h <<\EOF
11278 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11279 ol_link_threads=lwp
11281 if test $ol_with_yielding_select = auto ; then
11282 ol_with_yielding_select=no
11288 if test $ol_with_yielding_select = yes ; then
11289 cat >> confdefs.h <<\EOF
11290 #define HAVE_YIELDING_SELECT 1
11295 if test $ol_with_threads = manual ; then
11296 ol_link_threads=yes
11298 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11300 for ac_hdr in pthread.h sched.h
11302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11304 echo "configure:11305: checking for $ac_hdr" >&5
11305 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11306 echo $ac_n "(cached) $ac_c" 1>&6
11308 cat > conftest.$ac_ext <<EOF
11309 #line 11310 "configure"
11310 #include "confdefs.h"
11313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11314 { (eval echo configure:11315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11316 if test -z "$ac_err"; then
11318 eval "ac_cv_header_$ac_safe=yes"
11321 echo "configure: failed program was:" >&5
11322 cat conftest.$ac_ext >&5
11324 eval "ac_cv_header_$ac_safe=no"
11328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11329 echo "$ac_t""yes" 1>&6
11330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11331 cat >> confdefs.h <<EOF
11332 #define $ac_tr_hdr 1
11336 echo "$ac_t""no" 1>&6
11340 for ac_func in sched_yield pthread_yield
11342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11343 echo "configure:11344: checking for $ac_func" >&5
11344 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11345 echo $ac_n "(cached) $ac_c" 1>&6
11347 cat > conftest.$ac_ext <<EOF
11348 #line 11349 "configure"
11349 #include "confdefs.h"
11350 /* System header to define __stub macros and hopefully few prototypes,
11351 which can conflict with char $ac_func(); below. */
11352 #include <assert.h>
11353 /* Override any gcc2 internal prototype to avoid an error. */
11354 /* We use char because int might match the return type of a gcc2
11355 builtin and then its argument prototype would still apply. */
11361 /* The GNU C library defines this for functions which it implements
11362 to always fail with ENOSYS. Some functions are actually named
11363 something starting with __ and the normal name is an alias. */
11364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11372 if { (eval echo configure:11373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11374 eval "ac_cv_func_$ac_func=yes"
11376 echo "configure: failed program was:" >&5
11377 cat conftest.$ac_ext >&5
11379 eval "ac_cv_func_$ac_func=no"
11384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11385 echo "$ac_t""yes" 1>&6
11386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11387 cat >> confdefs.h <<EOF
11388 #define $ac_tr_func 1
11392 echo "$ac_t""no" 1>&6
11397 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11398 echo "configure:11399: checking for LinuxThreads pthread.h" >&5
11399 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11400 echo $ac_n "(cached) $ac_c" 1>&6
11402 cat > conftest.$ac_ext <<EOF
11403 #line 11404 "configure"
11404 #include "confdefs.h"
11405 #include <pthread.h>
11407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11408 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11410 ol_cv_header_linux_threads=yes
11413 ol_cv_header_linux_threads=no
11420 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11421 if test $ol_cv_header_linux_threads = yes; then
11422 cat >> confdefs.h <<\EOF
11423 #define HAVE_LINUX_THREADS 1
11429 for ac_hdr in mach/cthreads.h
11431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11433 echo "configure:11434: checking for $ac_hdr" >&5
11434 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11435 echo $ac_n "(cached) $ac_c" 1>&6
11437 cat > conftest.$ac_ext <<EOF
11438 #line 11439 "configure"
11439 #include "confdefs.h"
11442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11443 { (eval echo configure:11444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11445 if test -z "$ac_err"; then
11447 eval "ac_cv_header_$ac_safe=yes"
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11453 eval "ac_cv_header_$ac_safe=no"
11457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11458 echo "$ac_t""yes" 1>&6
11459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11460 cat >> confdefs.h <<EOF
11461 #define $ac_tr_hdr 1
11465 echo "$ac_t""no" 1>&6
11469 for ac_hdr in lwp/lwp.h
11471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11473 echo "configure:11474: checking for $ac_hdr" >&5
11474 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11475 echo $ac_n "(cached) $ac_c" 1>&6
11477 cat > conftest.$ac_ext <<EOF
11478 #line 11479 "configure"
11479 #include "confdefs.h"
11482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11483 { (eval echo configure:11484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11485 if test -z "$ac_err"; then
11487 eval "ac_cv_header_$ac_safe=yes"
11490 echo "configure: failed program was:" >&5
11491 cat conftest.$ac_ext >&5
11493 eval "ac_cv_header_$ac_safe=no"
11497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11498 echo "$ac_t""yes" 1>&6
11499 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11500 cat >> confdefs.h <<EOF
11501 #define $ac_tr_hdr 1
11505 echo "$ac_t""no" 1>&6
11509 for ac_hdr in thread.h synch.h
11511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11513 echo "configure:11514: checking for $ac_hdr" >&5
11514 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11515 echo $ac_n "(cached) $ac_c" 1>&6
11517 cat > conftest.$ac_ext <<EOF
11518 #line 11519 "configure"
11519 #include "confdefs.h"
11522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11523 { (eval echo configure:11524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11525 if test -z "$ac_err"; then
11527 eval "ac_cv_header_$ac_safe=yes"
11530 echo "configure: failed program was:" >&5
11531 cat conftest.$ac_ext >&5
11533 eval "ac_cv_header_$ac_safe=no"
11537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11538 echo "$ac_t""yes" 1>&6
11539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11540 cat >> confdefs.h <<EOF
11541 #define $ac_tr_hdr 1
11545 echo "$ac_t""no" 1>&6
11551 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11552 cat >> confdefs.h <<\EOF
11553 #define REENTRANT 1
11556 cat >> confdefs.h <<\EOF
11557 #define _REENTRANT 1
11560 cat >> confdefs.h <<\EOF
11561 #define THREAD_SAFE 1
11564 cat >> confdefs.h <<\EOF
11565 #define _THREAD_SAFE 1
11568 cat >> confdefs.h <<\EOF
11569 #define THREADSAFE 1
11572 cat >> confdefs.h <<\EOF
11573 #define _THREADSAFE 1
11576 cat >> confdefs.h <<\EOF
11577 #define _SGI_MP_SOURCE 1
11581 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11582 echo "configure:11583: checking for thread specific errno" >&5
11583 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11584 echo $ac_n "(cached) $ac_c" 1>&6
11587 cat > conftest.$ac_ext <<EOF
11588 #line 11589 "configure"
11589 #include "confdefs.h"
11595 if { (eval echo configure:11596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11597 ol_cv_errno_thread_specific=yes
11599 echo "configure: failed program was:" >&5
11600 cat conftest.$ac_ext >&5
11602 ol_cv_errno_thread_specific=no
11608 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11610 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11611 echo "configure:11612: checking for thread specific h_errno" >&5
11612 if eval "test \"\${ol_cv_h_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_h_errno_thread_specific=yes
11628 echo "configure: failed program was:" >&5
11629 cat conftest.$ac_ext >&5
11631 ol_cv_h_errno_thread_specific=no
11637 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11639 if test $ol_cv_errno_thread_specific != yes \
11640 -o $ol_cv_h_errno_thread_specific != yes ; then
11641 LIBS="$LTHREAD_LIBS $LIBS"
11647 if test $ol_link_threads = no ; then
11648 if test $ol_with_threads = yes ; then
11649 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11652 if test $ol_with_threads = auto ; then
11653 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11657 cat >> confdefs.h <<\EOF
11658 #define NO_THREADS 1
11664 if test $ol_link_threads != no ; then
11665 cat >> confdefs.h <<\EOF
11666 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11673 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
11674 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
11675 echo "configure:11676: checking for DB2 library" >&5
11676 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
11677 echo $ac_n "(cached) $ac_c" 1>&6
11680 echo $ac_n "checking for db_appexit in -ldb""... $ac_c" 1>&6
11681 echo "configure:11682: checking for db_appexit in -ldb" >&5
11682 ac_lib_var=`echo db'_'db_appexit | sed 'y%./+-:%__p__%'`
11683 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11684 echo $ac_n "(cached) $ac_c" 1>&6
11686 ac_save_LIBS="$LIBS"
11688 cat > conftest.$ac_ext <<EOF
11689 #line 11690 "configure"
11690 #include "confdefs.h"
11691 /* Override any gcc2 internal prototype to avoid an error. */
11692 /* We use char because int might match the return type of a gcc2
11693 builtin and then its argument prototype would still apply. */
11700 if { (eval echo configure:11701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11702 eval "ac_cv_lib_$ac_lib_var=yes"
11704 echo "configure: failed program was:" >&5
11705 cat conftest.$ac_ext >&5
11707 eval "ac_cv_lib_$ac_lib_var=no"
11710 LIBS="$ac_save_LIBS"
11713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11714 echo "$ac_t""yes" 1>&6
11717 echo "$ac_t""no" 1>&6
11725 echo "$ac_t""$ol_cv_lib_db2" 1>&6
11729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11731 echo "configure:11732: checking for $ac_hdr" >&5
11732 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11733 echo $ac_n "(cached) $ac_c" 1>&6
11735 cat > conftest.$ac_ext <<EOF
11736 #line 11737 "configure"
11737 #include "confdefs.h"
11740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11741 { (eval echo configure:11742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11743 if test -z "$ac_err"; then
11745 eval "ac_cv_header_$ac_safe=yes"
11748 echo "configure: failed program was:" >&5
11749 cat conftest.$ac_ext >&5
11751 eval "ac_cv_header_$ac_safe=no"
11755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11756 echo "$ac_t""yes" 1>&6
11757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11758 cat >> confdefs.h <<EOF
11759 #define $ac_tr_hdr 1
11763 echo "$ac_t""no" 1>&6
11767 if test $ac_cv_header_db_h = yes ; then
11768 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
11769 echo "configure:11770: checking if db.h is DB2" >&5
11770 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
11771 echo $ac_n "(cached) $ac_c" 1>&6
11774 cat > conftest.$ac_ext <<EOF
11775 #line 11776 "configure"
11776 #include "confdefs.h"
11779 /* this check could be improved */
11780 # ifdef DB_VERSION_MAJOR
11781 # if DB_VERSION_MAJOR == 2
11787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11788 egrep "__db_version_2" >/dev/null 2>&1; then
11790 ol_cv_header_db2=yes
11793 ol_cv_header_db2=no
11799 echo "$ac_t""$ol_cv_header_db2" 1>&6
11801 ol_cv_header_db2=no
11806 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
11807 echo "configure:11808: checking for Berkeley DB2" >&5
11808 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
11809 echo $ac_n "(cached) $ac_c" 1>&6
11812 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
11813 ol_cv_berkeley_db2=no
11815 ol_cv_berkeley_db2=yes
11820 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
11821 if test $ol_cv_berkeley_db2 = yes ; then
11822 cat >> confdefs.h <<\EOF
11823 #define HAVE_BERKELEY_DB2 1
11829 if test $ol_cv_berkeley_db2 = yes ; then
11831 ol_with_ldbm_api=db2
11833 if test $ol_with_ldbm_type = hash ; then
11834 cat >> confdefs.h <<\EOF
11835 #define LDBM_USE_DBHASH 1
11839 cat >> confdefs.h <<\EOF
11840 #define LDBM_USE_DBBTREE 1
11845 echo $ac_n "checking for DB_THREAD support""... $ac_c" 1>&6
11846 echo "configure:11847: checking for DB_THREAD support" >&5
11847 if eval "test \"\${ol_cv_berkeley_db2_db_thread+set}\" = set"; then
11848 echo $ac_n "(cached) $ac_c" 1>&6
11852 if test $ol_cv_lib_db2 != yes ; then
11853 LIBS="$ol_cv_lib_db2"
11856 if test "$cross_compiling" = yes; then
11857 ol_cv_berkeley_db2_db_thread=cross
11859 cat > conftest.$ac_ext <<EOF
11860 #line 11861 "configure"
11861 #include "confdefs.h"
11865 #define NULL ((void *)0)
11871 u_int32_t flags = DB_CREATE | DB_THREAD;
11873 memset( &env, '\0', sizeof(env) );
11875 rc = db_appinit( NULL, NULL, &env, flags );
11878 db_appexit( &env );
11884 if { (eval echo configure:11885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11886 ol_cv_berkeley_db2_db_thread=yes
11888 echo "configure: failed program was:" >&5
11889 cat conftest.$ac_ext >&5
11891 ol_cv_berkeley_db2_db_thread=no
11899 if test $ol_cv_berkeley_db2_db_thread != no ; then
11900 cat >> confdefs.h <<\EOF
11901 #define HAVE_BERKELEY_DB2_DB_THREAD 1
11908 echo "$ac_t""$ol_cv_berkeley_db2_db_thread" 1>&6
11910 if test $ol_cv_lib_db2 != yes ; then
11911 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
11917 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
11918 if test $ol_cv_berkeley_db2_db_thread != no ; then
11921 echo "configure: warning: Installed BerkeleyDB does not provide DB_THREAD support." 1>&2
11925 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
11926 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
11927 echo "configure:11928: checking for Berkeley DB library" >&5
11928 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
11929 echo $ac_n "(cached) $ac_c" 1>&6
11932 for ac_hdr in db1/db.h
11934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11936 echo "configure:11937: checking for $ac_hdr" >&5
11937 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11938 echo $ac_n "(cached) $ac_c" 1>&6
11940 cat > conftest.$ac_ext <<EOF
11941 #line 11942 "configure"
11942 #include "confdefs.h"
11945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11946 { (eval echo configure:11947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11948 if test -z "$ac_err"; then
11950 eval "ac_cv_header_$ac_safe=yes"
11953 echo "configure: failed program was:" >&5
11954 cat conftest.$ac_ext >&5
11956 eval "ac_cv_header_$ac_safe=no"
11960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11961 echo "$ac_t""yes" 1>&6
11962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11963 cat >> confdefs.h <<EOF
11964 #define $ac_tr_hdr 1
11968 echo "$ac_t""no" 1>&6
11973 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
11974 echo "configure:11975: checking for dbopen" >&5
11975 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
11976 echo $ac_n "(cached) $ac_c" 1>&6
11978 cat > conftest.$ac_ext <<EOF
11979 #line 11980 "configure"
11980 #include "confdefs.h"
11981 /* System header to define __stub macros and hopefully few prototypes,
11982 which can conflict with char dbopen(); below. */
11983 #include <assert.h>
11984 /* Override any gcc2 internal prototype to avoid an error. */
11985 /* We use char because int might match the return type of a gcc2
11986 builtin and then its argument prototype would still apply. */
11992 /* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995 #if defined (__stub_dbopen) || defined (__stub___dbopen)
12003 if { (eval echo configure:12004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12005 eval "ac_cv_func_dbopen=yes"
12007 echo "configure: failed program was:" >&5
12008 cat conftest.$ac_ext >&5
12010 eval "ac_cv_func_dbopen=no"
12015 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
12016 echo "$ac_t""yes" 1>&6
12019 echo "$ac_t""no" 1>&6
12021 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
12022 echo "configure:12023: checking for dbopen in -ldb1" >&5
12023 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
12024 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12025 echo $ac_n "(cached) $ac_c" 1>&6
12027 ac_save_LIBS="$LIBS"
12029 cat > conftest.$ac_ext <<EOF
12030 #line 12031 "configure"
12031 #include "confdefs.h"
12032 /* Override any gcc2 internal prototype to avoid an error. */
12033 /* We use char because int might match the return type of a gcc2
12034 builtin and then its argument prototype would still apply. */
12041 if { (eval echo configure:12042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12043 eval "ac_cv_lib_$ac_lib_var=yes"
12045 echo "configure: failed program was:" >&5
12046 cat conftest.$ac_ext >&5
12048 eval "ac_cv_lib_$ac_lib_var=no"
12051 LIBS="$ac_save_LIBS"
12054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12055 echo "$ac_t""yes" 1>&6
12058 echo "$ac_t""no" 1>&6
12060 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
12061 echo "configure:12062: checking for dbopen in -ldb" >&5
12062 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
12063 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12064 echo $ac_n "(cached) $ac_c" 1>&6
12066 ac_save_LIBS="$LIBS"
12068 cat > conftest.$ac_ext <<EOF
12069 #line 12070 "configure"
12070 #include "confdefs.h"
12071 /* Override any gcc2 internal prototype to avoid an error. */
12072 /* We use char because int might match the return type of a gcc2
12073 builtin and then its argument prototype would still apply. */
12080 if { (eval echo configure:12081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12082 eval "ac_cv_lib_$ac_lib_var=yes"
12084 echo "configure: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12087 eval "ac_cv_lib_$ac_lib_var=no"
12090 LIBS="$ac_save_LIBS"
12093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12094 echo "$ac_t""yes" 1>&6
12097 echo "$ac_t""no" 1>&6
12111 echo "$ac_t""$ol_cv_lib_db" 1>&6
12114 for ac_hdr in db_185.h
12116 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12117 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12118 echo "configure:12119: checking for $ac_hdr" >&5
12119 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12120 echo $ac_n "(cached) $ac_c" 1>&6
12122 cat > conftest.$ac_ext <<EOF
12123 #line 12124 "configure"
12124 #include "confdefs.h"
12127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12128 { (eval echo configure:12129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12130 if test -z "$ac_err"; then
12132 eval "ac_cv_header_$ac_safe=yes"
12135 echo "configure: failed program was:" >&5
12136 cat conftest.$ac_ext >&5
12138 eval "ac_cv_header_$ac_safe=no"
12142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12143 echo "$ac_t""yes" 1>&6
12144 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12145 cat >> confdefs.h <<EOF
12146 #define $ac_tr_hdr 1
12150 echo "$ac_t""no" 1>&6
12154 if test "$ol_cv_header_db2" = yes ; then
12156 ol_cv_header_db=$ac_cv_header_db_185_h
12158 ol_cv_header_db=$ac_cv_header_db_h
12163 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
12164 echo "configure:12165: checking for Berkeley DB" >&5
12165 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
12166 echo $ac_n "(cached) $ac_c" 1>&6
12169 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
12170 ol_cv_berkeley_db=no
12172 ol_cv_berkeley_db=yes
12177 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
12178 if test $ol_cv_berkeley_db = yes ; then
12179 cat >> confdefs.h <<\EOF
12180 #define HAVE_BERKELEY_DB 1
12186 if test $ol_cv_berkeley_db = yes ; then
12188 ol_with_ldbm_api=db
12190 if test $ol_with_ldbm_type = hash ; then
12191 cat >> confdefs.h <<\EOF
12192 #define LDBM_USE_DBHASH 1
12196 cat >> confdefs.h <<\EOF
12197 #define LDBM_USE_DBBTREE 1
12202 if test $ol_cv_lib_db != yes ; then
12203 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12208 if test $ol_with_ldbm_api = manual ; then
12211 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
12213 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
12215 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12217 echo "configure:12218: checking for $ac_hdr" >&5
12218 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12219 echo $ac_n "(cached) $ac_c" 1>&6
12221 cat > conftest.$ac_ext <<EOF
12222 #line 12223 "configure"
12223 #include "confdefs.h"
12226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12227 { (eval echo configure:12228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12229 if test -z "$ac_err"; then
12231 eval "ac_cv_header_$ac_safe=yes"
12234 echo "configure: failed program was:" >&5
12235 cat conftest.$ac_ext >&5
12237 eval "ac_cv_header_$ac_safe=no"
12241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12242 echo "$ac_t""yes" 1>&6
12243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12244 cat >> confdefs.h <<EOF
12245 #define $ac_tr_hdr 1
12249 echo "$ac_t""no" 1>&6
12255 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12256 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12257 ol_with_ldbm_api=none
12260 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12261 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12262 echo "configure:12263: checking for MDBM library" >&5
12263 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12264 echo $ac_n "(cached) $ac_c" 1>&6
12267 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12268 echo "configure:12269: checking for mdbm_set_chain" >&5
12269 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12270 echo $ac_n "(cached) $ac_c" 1>&6
12272 cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure"
12274 #include "confdefs.h"
12275 /* System header to define __stub macros and hopefully few prototypes,
12276 which can conflict with char mdbm_set_chain(); below. */
12277 #include <assert.h>
12278 /* Override any gcc2 internal prototype to avoid an error. */
12279 /* We use char because int might match the return type of a gcc2
12280 builtin and then its argument prototype would still apply. */
12281 char mdbm_set_chain();
12286 /* The GNU C library defines this for functions which it implements
12287 to always fail with ENOSYS. Some functions are actually named
12288 something starting with __ and the normal name is an alias. */
12289 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12292 f = mdbm_set_chain;
12297 if { (eval echo configure:12298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12299 eval "ac_cv_func_mdbm_set_chain=yes"
12301 echo "configure: failed program was:" >&5
12302 cat conftest.$ac_ext >&5
12304 eval "ac_cv_func_mdbm_set_chain=no"
12309 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12310 echo "$ac_t""yes" 1>&6
12313 echo "$ac_t""no" 1>&6
12315 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12316 echo "configure:12317: checking for mdbm_set_chain in -lmdbm" >&5
12317 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12318 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12319 echo $ac_n "(cached) $ac_c" 1>&6
12321 ac_save_LIBS="$LIBS"
12322 LIBS="-lmdbm $LIBS"
12323 cat > conftest.$ac_ext <<EOF
12324 #line 12325 "configure"
12325 #include "confdefs.h"
12326 /* Override any gcc2 internal prototype to avoid an error. */
12327 /* We use char because int might match the return type of a gcc2
12328 builtin and then its argument prototype would still apply. */
12329 char mdbm_set_chain();
12335 if { (eval echo configure:12336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12337 eval "ac_cv_lib_$ac_lib_var=yes"
12339 echo "configure: failed program was:" >&5
12340 cat conftest.$ac_ext >&5
12342 eval "ac_cv_lib_$ac_lib_var=no"
12345 LIBS="$ac_save_LIBS"
12348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12349 echo "$ac_t""yes" 1>&6
12350 ol_cv_lib_mdbm=-lmdbm
12352 echo "$ac_t""no" 1>&6
12363 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12366 for ac_hdr in mdbm.h
12368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12370 echo "configure:12371: checking for $ac_hdr" >&5
12371 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12372 echo $ac_n "(cached) $ac_c" 1>&6
12374 cat > conftest.$ac_ext <<EOF
12375 #line 12376 "configure"
12376 #include "confdefs.h"
12379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12380 { (eval echo configure:12381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12382 if test -z "$ac_err"; then
12384 eval "ac_cv_header_$ac_safe=yes"
12387 echo "configure: failed program was:" >&5
12388 cat conftest.$ac_ext >&5
12390 eval "ac_cv_header_$ac_safe=no"
12394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12395 echo "$ac_t""yes" 1>&6
12396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12397 cat >> confdefs.h <<EOF
12398 #define $ac_tr_hdr 1
12402 echo "$ac_t""no" 1>&6
12406 echo $ac_n "checking for db""... $ac_c" 1>&6
12407 echo "configure:12408: checking for db" >&5
12408 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12409 echo $ac_n "(cached) $ac_c" 1>&6
12412 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12420 echo "$ac_t""$ol_cv_mdbm" 1>&6
12421 if test $ol_cv_mdbm = yes ; then
12422 cat >> confdefs.h <<\EOF
12423 #define HAVE_MDBM 1
12429 if test $ol_cv_mdbm = yes ; then
12431 ol_with_ldbm_api=mdbm
12432 if test $ol_cv_lib_mdbm != yes ; then
12433 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12438 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12439 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12440 echo "configure:12441: checking for GDBM library" >&5
12441 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12442 echo $ac_n "(cached) $ac_c" 1>&6
12445 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12446 echo "configure:12447: checking for gdbm_open" >&5
12447 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12448 echo $ac_n "(cached) $ac_c" 1>&6
12450 cat > conftest.$ac_ext <<EOF
12451 #line 12452 "configure"
12452 #include "confdefs.h"
12453 /* System header to define __stub macros and hopefully few prototypes,
12454 which can conflict with char gdbm_open(); below. */
12455 #include <assert.h>
12456 /* Override any gcc2 internal prototype to avoid an error. */
12457 /* We use char because int might match the return type of a gcc2
12458 builtin and then its argument prototype would still apply. */
12464 /* The GNU C library defines this for functions which it implements
12465 to always fail with ENOSYS. Some functions are actually named
12466 something starting with __ and the normal name is an alias. */
12467 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12475 if { (eval echo configure:12476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12477 eval "ac_cv_func_gdbm_open=yes"
12479 echo "configure: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12482 eval "ac_cv_func_gdbm_open=no"
12487 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12488 echo "$ac_t""yes" 1>&6
12491 echo "$ac_t""no" 1>&6
12493 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12494 echo "configure:12495: checking for gdbm_open in -lgdbm" >&5
12495 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12496 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12497 echo $ac_n "(cached) $ac_c" 1>&6
12499 ac_save_LIBS="$LIBS"
12500 LIBS="-lgdbm $LIBS"
12501 cat > conftest.$ac_ext <<EOF
12502 #line 12503 "configure"
12503 #include "confdefs.h"
12504 /* Override any gcc2 internal prototype to avoid an error. */
12505 /* We use char because int might match the return type of a gcc2
12506 builtin and then its argument prototype would still apply. */
12513 if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12515 eval "ac_cv_lib_$ac_lib_var=yes"
12517 echo "configure: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12520 eval "ac_cv_lib_$ac_lib_var=no"
12523 LIBS="$ac_save_LIBS"
12526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12527 echo "$ac_t""yes" 1>&6
12528 ol_cv_lib_gdbm=-lgdbm
12530 echo "$ac_t""no" 1>&6
12541 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12544 for ac_hdr in gdbm.h
12546 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12547 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12548 echo "configure:12549: checking for $ac_hdr" >&5
12549 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12550 echo $ac_n "(cached) $ac_c" 1>&6
12552 cat > conftest.$ac_ext <<EOF
12553 #line 12554 "configure"
12554 #include "confdefs.h"
12557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12558 { (eval echo configure:12559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12560 if test -z "$ac_err"; then
12562 eval "ac_cv_header_$ac_safe=yes"
12565 echo "configure: failed program was:" >&5
12566 cat conftest.$ac_ext >&5
12568 eval "ac_cv_header_$ac_safe=no"
12572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12573 echo "$ac_t""yes" 1>&6
12574 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12575 cat >> confdefs.h <<EOF
12576 #define $ac_tr_hdr 1
12580 echo "$ac_t""no" 1>&6
12584 echo $ac_n "checking for db""... $ac_c" 1>&6
12585 echo "configure:12586: checking for db" >&5
12586 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12587 echo $ac_n "(cached) $ac_c" 1>&6
12590 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12598 echo "$ac_t""$ol_cv_gdbm" 1>&6
12599 if test $ol_cv_gdbm = yes ; then
12600 cat >> confdefs.h <<\EOF
12601 #define HAVE_GDBM 1
12607 if test $ol_cv_gdbm = yes ; then
12609 ol_with_ldbm_api=gdbm
12611 if test $ol_cv_lib_gdbm != yes ; then
12612 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12617 if test $ol_with_ldbm_api = ndbm ; then
12618 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12619 echo "configure:12620: checking for NDBM library" >&5
12620 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12621 echo $ac_n "(cached) $ac_c" 1>&6
12624 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12625 echo "configure:12626: checking for dbm_open" >&5
12626 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12627 echo $ac_n "(cached) $ac_c" 1>&6
12629 cat > conftest.$ac_ext <<EOF
12630 #line 12631 "configure"
12631 #include "confdefs.h"
12632 /* System header to define __stub macros and hopefully few prototypes,
12633 which can conflict with char dbm_open(); below. */
12634 #include <assert.h>
12635 /* Override any gcc2 internal prototype to avoid an error. */
12636 /* We use char because int might match the return type of a gcc2
12637 builtin and then its argument prototype would still apply. */
12643 /* The GNU C library defines this for functions which it implements
12644 to always fail with ENOSYS. Some functions are actually named
12645 something starting with __ and the normal name is an alias. */
12646 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12654 if { (eval echo configure:12655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12656 eval "ac_cv_func_dbm_open=yes"
12658 echo "configure: failed program was:" >&5
12659 cat conftest.$ac_ext >&5
12661 eval "ac_cv_func_dbm_open=no"
12666 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12667 echo "$ac_t""yes" 1>&6
12670 echo "$ac_t""no" 1>&6
12672 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12673 echo "configure:12674: checking for dbm_open in -lndbm" >&5
12674 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12675 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12676 echo $ac_n "(cached) $ac_c" 1>&6
12678 ac_save_LIBS="$LIBS"
12679 LIBS="-lndbm $LIBS"
12680 cat > conftest.$ac_ext <<EOF
12681 #line 12682 "configure"
12682 #include "confdefs.h"
12683 /* Override any gcc2 internal prototype to avoid an error. */
12684 /* We use char because int might match the return type of a gcc2
12685 builtin and then its argument prototype would still apply. */
12692 if { (eval echo configure:12693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12694 eval "ac_cv_lib_$ac_lib_var=yes"
12696 echo "configure: failed program was:" >&5
12697 cat conftest.$ac_ext >&5
12699 eval "ac_cv_lib_$ac_lib_var=no"
12702 LIBS="$ac_save_LIBS"
12705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12706 echo "$ac_t""yes" 1>&6
12707 ol_cv_lib_ndbm=-lndbm
12709 echo "$ac_t""no" 1>&6
12711 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12712 echo "configure:12713: checking for dbm_open in -ldbm" >&5
12713 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12714 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12715 echo $ac_n "(cached) $ac_c" 1>&6
12717 ac_save_LIBS="$LIBS"
12719 cat > conftest.$ac_ext <<EOF
12720 #line 12721 "configure"
12721 #include "confdefs.h"
12722 /* Override any gcc2 internal prototype to avoid an error. */
12723 /* We use char because int might match the return type of a gcc2
12724 builtin and then its argument prototype would still apply. */
12731 if { (eval echo configure:12732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12733 eval "ac_cv_lib_$ac_lib_var=yes"
12735 echo "configure: failed program was:" >&5
12736 cat conftest.$ac_ext >&5
12738 eval "ac_cv_lib_$ac_lib_var=no"
12741 LIBS="$ac_save_LIBS"
12744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12745 echo "$ac_t""yes" 1>&6
12746 ol_cv_lib_ndbm=-ldbm
12748 echo "$ac_t""no" 1>&6
12761 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12764 for ac_hdr in ndbm.h
12766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12768 echo "configure:12769: checking for $ac_hdr" >&5
12769 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12770 echo $ac_n "(cached) $ac_c" 1>&6
12772 cat > conftest.$ac_ext <<EOF
12773 #line 12774 "configure"
12774 #include "confdefs.h"
12777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12778 { (eval echo configure:12779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12780 if test -z "$ac_err"; then
12782 eval "ac_cv_header_$ac_safe=yes"
12785 echo "configure: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12788 eval "ac_cv_header_$ac_safe=no"
12792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12793 echo "$ac_t""yes" 1>&6
12794 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12795 cat >> confdefs.h <<EOF
12796 #define $ac_tr_hdr 1
12800 echo "$ac_t""no" 1>&6
12804 echo $ac_n "checking for db""... $ac_c" 1>&6
12805 echo "configure:12806: checking for db" >&5
12806 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12807 echo $ac_n "(cached) $ac_c" 1>&6
12810 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12818 echo "$ac_t""$ol_cv_ndbm" 1>&6
12819 if test $ol_cv_ndbm = yes ; then
12820 cat >> confdefs.h <<\EOF
12821 #define HAVE_NDBM 1
12827 if test $ol_cv_ndbm = yes ; then
12829 ol_with_ldbm_api=ndbm
12831 if test $ol_cv_lib_ndbm != yes ; then
12832 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12837 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12838 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12839 if test $ol_enable_ldbm = yes ; then
12840 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12843 echo "configure: warning: disabling LDBM" 1>&2
12847 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12848 LINK_BINS_DYNAMIC="yes"
12850 LINK_BINS_DYNAMIC="no"
12853 if test $ol_enable_wrappers != no ; then
12854 for ac_hdr in tcpd.h
12856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12858 echo "configure:12859: checking for $ac_hdr" >&5
12859 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12860 echo $ac_n "(cached) $ac_c" 1>&6
12862 cat > conftest.$ac_ext <<EOF
12863 #line 12864 "configure"
12864 #include "confdefs.h"
12867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12868 { (eval echo configure:12869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12870 if test -z "$ac_err"; then
12872 eval "ac_cv_header_$ac_safe=yes"
12875 echo "configure: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12878 eval "ac_cv_header_$ac_safe=no"
12882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12883 echo "$ac_t""yes" 1>&6
12884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12885 cat >> confdefs.h <<EOF
12886 #define $ac_tr_hdr 1
12890 echo "$ac_t""no" 1>&6
12895 if test $ac_cv_header_tcpd_h != yes ; then
12898 cat > conftest.$ac_ext <<EOF
12899 #line 12900 "configure"
12900 #include "confdefs.h"
12902 int allow_severity = 0;
12903 int deny_severity = 0;
12909 if { (eval echo configure:12910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12913 echo "configure: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12921 if test $have_wrappers = yes ; then
12922 cat >> confdefs.h <<\EOF
12923 #define HAVE_TCPD 1
12928 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12929 echo "configure:12930: checking for main in -lnsl" >&5
12930 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12931 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12932 echo $ac_n "(cached) $ac_c" 1>&6
12934 ac_save_LIBS="$LIBS"
12936 cat > conftest.$ac_ext <<EOF
12937 #line 12938 "configure"
12938 #include "confdefs.h"
12944 if { (eval echo configure:12945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12946 eval "ac_cv_lib_$ac_lib_var=yes"
12948 echo "configure: failed program was:" >&5
12949 cat conftest.$ac_ext >&5
12951 eval "ac_cv_lib_$ac_lib_var=no"
12954 LIBS="$ac_save_LIBS"
12957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12958 echo "$ac_t""yes" 1>&6
12959 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12960 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12961 cat >> confdefs.h <<EOF
12962 #define $ac_tr_lib 1
12968 echo "$ac_t""no" 1>&6
12972 echo "configure: warning: could not find -lwrap" 1>&2
12973 if test $ol_enable_wrappers = yes ; then
12974 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12977 echo "configure: warning: disabling wrappers support" 1>&2
12978 ol_enable_wrappers=no
12983 if test $ol_enable_syslog != no ; then
12984 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12985 echo "configure:12986: checking for openlog" >&5
12986 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12987 echo $ac_n "(cached) $ac_c" 1>&6
12989 cat > conftest.$ac_ext <<EOF
12990 #line 12991 "configure"
12991 #include "confdefs.h"
12992 /* System header to define __stub macros and hopefully few prototypes,
12993 which can conflict with char openlog(); below. */
12994 #include <assert.h>
12995 /* Override any gcc2 internal prototype to avoid an error. */
12996 /* We use char because int might match the return type of a gcc2
12997 builtin and then its argument prototype would still apply. */
13003 /* The GNU C library defines this for functions which it implements
13004 to always fail with ENOSYS. Some functions are actually named
13005 something starting with __ and the normal name is an alias. */
13006 #if defined (__stub_openlog) || defined (__stub___openlog)
13014 if { (eval echo configure:13015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13016 eval "ac_cv_func_openlog=yes"
13018 echo "configure: failed program was:" >&5
13019 cat conftest.$ac_ext >&5
13021 eval "ac_cv_func_openlog=no"
13026 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13027 echo "$ac_t""yes" 1>&6
13030 echo "$ac_t""no" 1>&6
13033 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13034 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13036 ol_enable_syslog=$ac_cv_func_openlog
13039 if test $ol_enable_dmalloc != no ; then
13040 for ac_hdr in dmalloc.h
13042 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13044 echo "configure:13045: checking for $ac_hdr" >&5
13045 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13046 echo $ac_n "(cached) $ac_c" 1>&6
13048 cat > conftest.$ac_ext <<EOF
13049 #line 13050 "configure"
13050 #include "confdefs.h"
13053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13054 { (eval echo configure:13055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13056 if test -z "$ac_err"; then
13058 eval "ac_cv_header_$ac_safe=yes"
13061 echo "configure: failed program was:" >&5
13062 cat conftest.$ac_ext >&5
13064 eval "ac_cv_header_$ac_safe=no"
13068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13069 echo "$ac_t""yes" 1>&6
13070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13071 cat >> confdefs.h <<EOF
13072 #define $ac_tr_hdr 1
13076 echo "$ac_t""no" 1>&6
13080 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
13081 echo "configure:13082: checking for dmalloc_shutdown in -ldmalloc" >&5
13082 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
13083 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13084 echo $ac_n "(cached) $ac_c" 1>&6
13086 ac_save_LIBS="$LIBS"
13087 LIBS="-ldmalloc $LIBS"
13088 cat > conftest.$ac_ext <<EOF
13089 #line 13090 "configure"
13090 #include "confdefs.h"
13091 /* Override any gcc2 internal prototype to avoid an error. */
13092 /* We use char because int might match the return type of a gcc2
13093 builtin and then its argument prototype would still apply. */
13094 char dmalloc_shutdown();
13100 if { (eval echo configure:13101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13102 eval "ac_cv_lib_$ac_lib_var=yes"
13104 echo "configure: failed program was:" >&5
13105 cat conftest.$ac_ext >&5
13107 eval "ac_cv_lib_$ac_lib_var=no"
13110 LIBS="$ac_save_LIBS"
13113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13114 echo "$ac_t""yes" 1>&6
13115 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13116 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13117 cat >> confdefs.h <<EOF
13118 #define $ac_tr_lib 1
13121 LIBS="-ldmalloc $LIBS"
13124 echo "$ac_t""no" 1>&6
13129 if test $ol_enable_tcl != no ; then
13130 for ac_hdr in tcl.h
13132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13134 echo "configure:13135: checking for $ac_hdr" >&5
13135 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13136 echo $ac_n "(cached) $ac_c" 1>&6
13138 cat > conftest.$ac_ext <<EOF
13139 #line 13140 "configure"
13140 #include "confdefs.h"
13143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13144 { (eval echo configure:13145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13146 if test -z "$ac_err"; then
13148 eval "ac_cv_header_$ac_safe=yes"
13151 echo "configure: failed program was:" >&5
13152 cat conftest.$ac_ext >&5
13154 eval "ac_cv_header_$ac_safe=no"
13158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13159 echo "$ac_t""yes" 1>&6
13160 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13161 cat >> confdefs.h <<EOF
13162 #define $ac_tr_hdr 1
13166 echo "$ac_t""no" 1>&6
13171 if test $ac_cv_header_tcl_h != yes ; then
13174 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13175 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13176 echo "configure:13177: checking for main in -l$lib" >&5
13177 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13178 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13179 echo $ac_n "(cached) $ac_c" 1>&6
13181 ac_save_LIBS="$LIBS"
13182 LIBS="-l$lib $LIBS"
13183 cat > conftest.$ac_ext <<EOF
13184 #line 13185 "configure"
13185 #include "confdefs.h"
13191 if { (eval echo configure:13192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13193 eval "ac_cv_lib_$ac_lib_var=yes"
13195 echo "configure: failed program was:" >&5
13196 cat conftest.$ac_ext >&5
13198 eval "ac_cv_lib_$ac_lib_var=no"
13201 LIBS="$ac_save_LIBS"
13204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13205 echo "$ac_t""yes" 1>&6
13207 if test x"$ol_with_tcl_module" = "xstatic" ; then
13208 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13210 MOD_TCL_LIB="-l${lib}"
13213 echo "$ac_t""no" 1>&6
13220 if test $have_tcl != yes ; then
13221 echo "configure: warning: could not find -ltcl" 1>&2
13222 if test $ol_enable_tcl = yes ; then
13223 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13231 for ac_hdr in termcap.h ncurses.h
13233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13235 echo "configure:13236: checking for $ac_hdr" >&5
13236 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13237 echo $ac_n "(cached) $ac_c" 1>&6
13239 cat > conftest.$ac_ext <<EOF
13240 #line 13241 "configure"
13241 #include "confdefs.h"
13244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13245 { (eval echo configure:13246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13247 if test -z "$ac_err"; then
13249 eval "ac_cv_header_$ac_safe=yes"
13252 echo "configure: failed program was:" >&5
13253 cat conftest.$ac_ext >&5
13255 eval "ac_cv_header_$ac_safe=no"
13259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13260 echo "$ac_t""yes" 1>&6
13261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13262 cat >> confdefs.h <<EOF
13263 #define $ac_tr_hdr 1
13267 echo "$ac_t""no" 1>&6
13272 if test $ol_link_termcap = no ; then
13273 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13274 echo "configure:13275: checking for tputs in -ltermcap" >&5
13275 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13276 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13277 echo $ac_n "(cached) $ac_c" 1>&6
13279 ac_save_LIBS="$LIBS"
13280 LIBS="-ltermcap $LIBS"
13281 cat > conftest.$ac_ext <<EOF
13282 #line 13283 "configure"
13283 #include "confdefs.h"
13284 /* Override any gcc2 internal prototype to avoid an error. */
13285 /* We use char because int might match the return type of a gcc2
13286 builtin and then its argument prototype would still apply. */
13293 if { (eval echo configure:13294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13295 eval "ac_cv_lib_$ac_lib_var=yes"
13297 echo "configure: failed program was:" >&5
13298 cat conftest.$ac_ext >&5
13300 eval "ac_cv_lib_$ac_lib_var=no"
13303 LIBS="$ac_save_LIBS"
13306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13307 echo "$ac_t""yes" 1>&6
13310 echo "$ac_t""no" 1>&6
13314 if test $have_termcap = yes ; then
13315 cat >> confdefs.h <<\EOF
13316 #define HAVE_TERMCAP 1
13319 ol_link_termcap=yes
13320 TERMCAP_LIBS=-ltermcap
13324 if test $ol_link_termcap = no ; then
13325 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13326 echo "configure:13327: checking for initscr in -lncurses" >&5
13327 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13328 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13329 echo $ac_n "(cached) $ac_c" 1>&6
13331 ac_save_LIBS="$LIBS"
13332 LIBS="-lncurses $LIBS"
13333 cat > conftest.$ac_ext <<EOF
13334 #line 13335 "configure"
13335 #include "confdefs.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. */
13345 if { (eval echo configure:13346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13347 eval "ac_cv_lib_$ac_lib_var=yes"
13349 echo "configure: failed program was:" >&5
13350 cat conftest.$ac_ext >&5
13352 eval "ac_cv_lib_$ac_lib_var=no"
13355 LIBS="$ac_save_LIBS"
13358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13359 echo "$ac_t""yes" 1>&6
13362 echo "$ac_t""no" 1>&6
13366 if test $have_ncurses = yes ; then
13367 cat >> confdefs.h <<\EOF
13368 #define HAVE_NCURSES 1
13371 ol_link_termcap=yes
13372 TERMCAP_LIBS=-lncurses
13376 if test $ol_link_termcap = no ; then
13377 cat >> confdefs.h <<\EOF
13378 #define NO_TERMCAP 1
13385 if test $ol_with_cyrus_sasl != no ; then
13386 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13387 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13388 echo "configure:13389: checking for sasl.h" >&5
13389 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13390 echo $ac_n "(cached) $ac_c" 1>&6
13392 cat > conftest.$ac_ext <<EOF
13393 #line 13394 "configure"
13394 #include "confdefs.h"
13397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13398 { (eval echo configure:13399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13400 if test -z "$ac_err"; then
13402 eval "ac_cv_header_$ac_safe=yes"
13405 echo "configure: failed program was:" >&5
13406 cat conftest.$ac_ext >&5
13408 eval "ac_cv_header_$ac_safe=no"
13412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13413 echo "$ac_t""yes" 1>&6
13416 echo "$ac_t""no" 1>&6
13420 if test $ac_cv_header_sasl_h = yes ; then
13421 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13422 echo "configure:13423: checking for sasl_client_init in -lsasl" >&5
13423 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13424 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13425 echo $ac_n "(cached) $ac_c" 1>&6
13427 ac_save_LIBS="$LIBS"
13428 LIBS="-lsasl $LIBS"
13429 cat > conftest.$ac_ext <<EOF
13430 #line 13431 "configure"
13431 #include "confdefs.h"
13432 /* Override any gcc2 internal prototype to avoid an error. */
13433 /* We use char because int might match the return type of a gcc2
13434 builtin and then its argument prototype would still apply. */
13435 char sasl_client_init();
13441 if { (eval echo configure:13442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13443 eval "ac_cv_lib_$ac_lib_var=yes"
13445 echo "configure: failed program was:" >&5
13446 cat conftest.$ac_ext >&5
13448 eval "ac_cv_lib_$ac_lib_var=no"
13451 LIBS="$ac_save_LIBS"
13454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13455 echo "$ac_t""yes" 1>&6
13456 have_cyrus_sasl=yes
13458 echo "$ac_t""no" 1>&6
13463 if test $have_cyrus_sasl != no ; then
13465 cat >> confdefs.h <<\EOF
13466 #define HAVE_CYRUS_SASL 1
13473 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
13474 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
13478 if test $cross_compiling != yes ; then
13480 if test -r /dev/urandom ; then
13481 dev="/dev/urandom";
13482 elif test -r /idev/urandom ; then
13483 dev="/idev/urandom";
13484 elif test -r /dev/srandom ; then
13485 dev="/dev/srandom";
13486 elif test -r /dev/random ; then
13488 elif test -r /idev/random ; then
13489 dev="/idev/random";
13492 if test $dev != no ; then
13493 cat >> confdefs.h <<EOF
13494 #define URANDOM_DEVICE "$dev"
13501 if test $ol_with_fetch != no ; then
13503 LIBS="-lfetch -lcom_err $LIBS"
13504 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13505 echo "configure:13506: checking fetch(3) library" >&5
13506 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13507 echo $ac_n "(cached) $ac_c" 1>&6
13510 cat > conftest.$ac_ext <<EOF
13511 #line 13512 "configure"
13512 #include "confdefs.h"
13514 #include <sys/param.h>
13518 struct url *u = fetchParseURL("file:///");
13521 if { (eval echo configure:13522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13523 ol_cv_lib_fetch=yes
13525 echo "configure: failed program was:" >&5
13526 cat conftest.$ac_ext >&5
13533 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13535 if test $ol_cv_lib_fetch != no ; then
13536 ol_link_fetch="-lfetch -lcom_err"
13537 cat >> confdefs.h <<\EOF
13538 #define HAVE_FETCH 1
13544 if test $ol_cv_lib_fetch != no ; then
13545 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13546 ol_link_fetch=freebsd
13548 elif test $ol_with_fetch != auto ; then
13549 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13553 ol_link_readline=no
13554 if test $ol_with_readline != no ; then
13555 for ac_hdr in readline/readline.h readline/history.h
13557 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13559 echo "configure:13560: checking for $ac_hdr" >&5
13560 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13561 echo $ac_n "(cached) $ac_c" 1>&6
13563 cat > conftest.$ac_ext <<EOF
13564 #line 13565 "configure"
13565 #include "confdefs.h"
13568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13569 { (eval echo configure:13570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13571 if test -z "$ac_err"; then
13573 eval "ac_cv_header_$ac_safe=yes"
13576 echo "configure: failed program was:" >&5
13577 cat conftest.$ac_ext >&5
13579 eval "ac_cv_header_$ac_safe=no"
13583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13584 echo "$ac_t""yes" 1>&6
13585 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13586 cat >> confdefs.h <<EOF
13587 #define $ac_tr_hdr 1
13591 echo "$ac_t""no" 1>&6
13596 if test $ac_cv_header_readline_readline_h = yes ; then
13598 LIBS="$TERMCAP_LIBS $LIBS"
13599 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13600 echo "configure:13601: checking for readline in -lreadline" >&5
13601 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13602 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13603 echo $ac_n "(cached) $ac_c" 1>&6
13605 ac_save_LIBS="$LIBS"
13606 LIBS="-lreadline $LIBS"
13607 cat > conftest.$ac_ext <<EOF
13608 #line 13609 "configure"
13609 #include "confdefs.h"
13610 /* Override any gcc2 internal prototype to avoid an error. */
13611 /* We use char because int might match the return type of a gcc2
13612 builtin and then its argument prototype would still apply. */
13619 if { (eval echo configure:13620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13621 eval "ac_cv_lib_$ac_lib_var=yes"
13623 echo "configure: failed program was:" >&5
13624 cat conftest.$ac_ext >&5
13626 eval "ac_cv_lib_$ac_lib_var=no"
13629 LIBS="$ac_save_LIBS"
13632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13633 echo "$ac_t""yes" 1>&6
13636 echo "$ac_t""no" 1>&6
13642 if test $have_readline = yes ; then
13643 ol_with_readline=found
13644 ol_link_readline=yes
13646 READLINE_LIBS="-lreadline"
13651 if test $ol_link_readline = yes ; then
13652 cat >> confdefs.h <<\EOF
13653 #define HAVE_READLINE 1
13659 if test $ol_enable_crypt != no ; then
13660 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13661 echo "configure:13662: checking for crypt" >&5
13662 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13663 echo $ac_n "(cached) $ac_c" 1>&6
13665 cat > conftest.$ac_ext <<EOF
13666 #line 13667 "configure"
13667 #include "confdefs.h"
13668 /* System header to define __stub macros and hopefully few prototypes,
13669 which can conflict with char crypt(); below. */
13670 #include <assert.h>
13671 /* Override any gcc2 internal prototype to avoid an error. */
13672 /* We use char because int might match the return type of a gcc2
13673 builtin and then its argument prototype would still apply. */
13679 /* The GNU C library defines this for functions which it implements
13680 to always fail with ENOSYS. Some functions are actually named
13681 something starting with __ and the normal name is an alias. */
13682 #if defined (__stub_crypt) || defined (__stub___crypt)
13690 if { (eval echo configure:13691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13692 eval "ac_cv_func_crypt=yes"
13694 echo "configure: failed program was:" >&5
13695 cat conftest.$ac_ext >&5
13697 eval "ac_cv_func_crypt=no"
13702 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13703 echo "$ac_t""yes" 1>&6
13706 echo "$ac_t""no" 1>&6
13708 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13709 echo "configure:13710: checking for crypt in -lcrypt" >&5
13710 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13711 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13712 echo $ac_n "(cached) $ac_c" 1>&6
13714 ac_save_LIBS="$LIBS"
13715 LIBS="-lcrypt $LIBS"
13716 cat > conftest.$ac_ext <<EOF
13717 #line 13718 "configure"
13718 #include "confdefs.h"
13719 /* Override any gcc2 internal prototype to avoid an error. */
13720 /* We use char because int might match the return type of a gcc2
13721 builtin and then its argument prototype would still apply. */
13728 if { (eval echo configure:13729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13730 eval "ac_cv_lib_$ac_lib_var=yes"
13732 echo "configure: failed program was:" >&5
13733 cat conftest.$ac_ext >&5
13735 eval "ac_cv_lib_$ac_lib_var=no"
13738 LIBS="$ac_save_LIBS"
13741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13742 echo "$ac_t""yes" 1>&6
13743 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13746 echo "$ac_t""no" 1>&6
13753 if test $have_crypt = yes ; then
13754 cat >> confdefs.h <<\EOF
13755 #define HAVE_CRYPT 1
13759 echo "configure: warning: could not find crypt" 1>&2
13760 if test $ol_enable_crypt = yes ; then
13761 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13764 echo "configure: warning: disabling crypt support" 1>&2
13769 if test $ol_enable_proctitle != no ; then
13770 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13771 echo "configure:13772: checking for setproctitle" >&5
13772 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13773 echo $ac_n "(cached) $ac_c" 1>&6
13775 cat > conftest.$ac_ext <<EOF
13776 #line 13777 "configure"
13777 #include "confdefs.h"
13778 /* System header to define __stub macros and hopefully few prototypes,
13779 which can conflict with char setproctitle(); below. */
13780 #include <assert.h>
13781 /* Override any gcc2 internal prototype to avoid an error. */
13782 /* We use char because int might match the return type of a gcc2
13783 builtin and then its argument prototype would still apply. */
13784 char setproctitle();
13789 /* The GNU C library defines this for functions which it implements
13790 to always fail with ENOSYS. Some functions are actually named
13791 something starting with __ and the normal name is an alias. */
13792 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13800 if { (eval echo configure:13801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13802 eval "ac_cv_func_setproctitle=yes"
13804 echo "configure: failed program was:" >&5
13805 cat conftest.$ac_ext >&5
13807 eval "ac_cv_func_setproctitle=no"
13812 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13813 echo "$ac_t""yes" 1>&6
13814 have_setproctitle=yes
13816 echo "$ac_t""no" 1>&6
13818 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13819 echo "configure:13820: checking for setproctitle in -lutil" >&5
13820 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13821 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13822 echo $ac_n "(cached) $ac_c" 1>&6
13824 ac_save_LIBS="$LIBS"
13825 LIBS="-lutil $LIBS"
13826 cat > conftest.$ac_ext <<EOF
13827 #line 13828 "configure"
13828 #include "confdefs.h"
13829 /* Override any gcc2 internal prototype to avoid an error. */
13830 /* We use char because int might match the return type of a gcc2
13831 builtin and then its argument prototype would still apply. */
13832 char setproctitle();
13838 if { (eval echo configure:13839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13840 eval "ac_cv_lib_$ac_lib_var=yes"
13842 echo "configure: failed program was:" >&5
13843 cat conftest.$ac_ext >&5
13845 eval "ac_cv_lib_$ac_lib_var=no"
13848 LIBS="$ac_save_LIBS"
13851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13852 echo "$ac_t""yes" 1>&6
13853 have_setproctitle=yes
13854 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13856 echo "$ac_t""no" 1>&6
13857 have_setproctitle=no
13858 LIBOBJS="$LIBOBJS setproctitle.o"
13859 LIBSRCS="$LIBSRCS setproctitle.c"
13865 if test $have_setproctitle = yes ; then
13866 cat >> confdefs.h <<\EOF
13867 #define HAVE_SETPROCTITLE 1
13873 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13874 echo "configure:13875: checking for ANSI C header files" >&5
13875 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13876 echo $ac_n "(cached) $ac_c" 1>&6
13878 cat > conftest.$ac_ext <<EOF
13879 #line 13880 "configure"
13880 #include "confdefs.h"
13881 #include <stdlib.h>
13882 #include <stdarg.h>
13883 #include <string.h>
13886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13887 { (eval echo configure:13888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13889 if test -z "$ac_err"; then
13891 ac_cv_header_stdc=yes
13894 echo "configure: failed program was:" >&5
13895 cat conftest.$ac_ext >&5
13897 ac_cv_header_stdc=no
13901 if test $ac_cv_header_stdc = yes; then
13902 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13903 cat > conftest.$ac_ext <<EOF
13904 #line 13905 "configure"
13905 #include "confdefs.h"
13906 #include <string.h>
13908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13909 egrep "memchr" >/dev/null 2>&1; then
13913 ac_cv_header_stdc=no
13919 if test $ac_cv_header_stdc = yes; then
13920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13921 cat > conftest.$ac_ext <<EOF
13922 #line 13923 "configure"
13923 #include "confdefs.h"
13924 #include <stdlib.h>
13926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13927 egrep "free" >/dev/null 2>&1; then
13931 ac_cv_header_stdc=no
13937 if test $ac_cv_header_stdc = yes; then
13938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13939 if test "$cross_compiling" = yes; then
13942 cat > conftest.$ac_ext <<EOF
13943 #line 13944 "configure"
13944 #include "confdefs.h"
13946 #if ((' ' & 0x0FF) == 0x020)
13947 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13948 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13950 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13951 || ('j' <= (c) && (c) <= 'r') \
13952 || ('s' <= (c) && (c) <= 'z'))
13953 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13956 int main () { int i; for (i = 0; i < 256; i++)
13957 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13961 if { (eval echo configure:13962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13965 echo "configure: failed program was:" >&5
13966 cat conftest.$ac_ext >&5
13968 ac_cv_header_stdc=no
13976 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13977 if test $ac_cv_header_stdc = yes; then
13978 cat >> confdefs.h <<\EOF
13979 #define STDC_HEADERS 1
13984 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13985 echo "configure:13986: checking for mode_t" >&5
13986 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13987 echo $ac_n "(cached) $ac_c" 1>&6
13989 cat > conftest.$ac_ext <<EOF
13990 #line 13991 "configure"
13991 #include "confdefs.h"
13992 #include <sys/types.h>
13994 #include <stdlib.h>
13995 #include <stddef.h>
13999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14000 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14002 eval "ac_cv_type_mode_t=yes"
14005 eval "ac_cv_type_mode_t=no"
14010 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14011 echo "$ac_t""yes" 1>&6
14013 echo "$ac_t""no" 1>&6
14014 cat >> confdefs.h <<EOF
14020 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14021 echo "configure:14022: checking for off_t" >&5
14022 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14023 echo $ac_n "(cached) $ac_c" 1>&6
14025 cat > conftest.$ac_ext <<EOF
14026 #line 14027 "configure"
14027 #include "confdefs.h"
14028 #include <sys/types.h>
14030 #include <stdlib.h>
14031 #include <stddef.h>
14035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14036 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14038 eval "ac_cv_type_off_t=yes"
14041 eval "ac_cv_type_off_t=no"
14046 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14047 echo "$ac_t""yes" 1>&6
14049 echo "$ac_t""no" 1>&6
14050 cat >> confdefs.h <<EOF
14056 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14057 echo "configure:14058: checking for pid_t" >&5
14058 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14059 echo $ac_n "(cached) $ac_c" 1>&6
14061 cat > conftest.$ac_ext <<EOF
14062 #line 14063 "configure"
14063 #include "confdefs.h"
14064 #include <sys/types.h>
14066 #include <stdlib.h>
14067 #include <stddef.h>
14071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14072 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14074 eval "ac_cv_type_pid_t=yes"
14077 eval "ac_cv_type_pid_t=no"
14082 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14083 echo "$ac_t""yes" 1>&6
14085 echo "$ac_t""no" 1>&6
14086 cat >> confdefs.h <<EOF
14092 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14093 echo "configure:14094: checking for ptrdiff_t" >&5
14094 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14095 echo $ac_n "(cached) $ac_c" 1>&6
14097 cat > conftest.$ac_ext <<EOF
14098 #line 14099 "configure"
14099 #include "confdefs.h"
14100 #include <stddef.h>
14105 if { (eval echo configure:14106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14107 am_cv_type_ptrdiff_t=yes
14109 echo "configure: failed program was:" >&5
14110 cat conftest.$ac_ext >&5
14112 am_cv_type_ptrdiff_t=no
14117 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14118 if test $am_cv_type_ptrdiff_t = yes; then
14119 cat >> confdefs.h <<\EOF
14120 #define HAVE_PTRDIFF_T 1
14125 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14126 echo "configure:14127: checking return type of signal handlers" >&5
14127 if eval "test \"\${ac_cv_type_signal+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 <sys/types.h>
14134 #include <signal.h>
14139 extern "C" void (*signal (int, void (*)(int)))(int);
14141 void (*signal ()) ();
14148 if { (eval echo configure:14149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14150 ac_cv_type_signal=void
14152 echo "configure: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14155 ac_cv_type_signal=int
14160 echo "$ac_t""$ac_cv_type_signal" 1>&6
14161 cat >> confdefs.h <<EOF
14162 #define RETSIGTYPE $ac_cv_type_signal
14166 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14167 echo "configure:14168: checking for size_t" >&5
14168 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14169 echo $ac_n "(cached) $ac_c" 1>&6
14171 cat > conftest.$ac_ext <<EOF
14172 #line 14173 "configure"
14173 #include "confdefs.h"
14174 #include <sys/types.h>
14176 #include <stdlib.h>
14177 #include <stddef.h>
14181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14182 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14184 eval "ac_cv_type_size_t=yes"
14187 eval "ac_cv_type_size_t=no"
14192 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14193 echo "$ac_t""yes" 1>&6
14195 echo "$ac_t""no" 1>&6
14196 cat >> confdefs.h <<EOF
14197 #define size_t unsigned
14203 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14204 echo "configure:14205: checking for ssize_t" >&5
14205 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14206 echo $ac_n "(cached) $ac_c" 1>&6
14208 cat > conftest.$ac_ext <<EOF
14209 #line 14210 "configure"
14210 #include "confdefs.h"
14211 #include <sys/types.h>
14213 #include <stdlib.h>
14214 #include <stddef.h>
14218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14219 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14221 eval "ac_cv_type_ssize_t=yes"
14224 eval "ac_cv_type_ssize_t=no"
14229 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14230 echo "$ac_t""yes" 1>&6
14232 echo "$ac_t""no" 1>&6
14233 cat >> confdefs.h <<EOF
14234 #define ssize_t signed int
14239 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14240 echo "configure:14241: checking for caddr_t" >&5
14241 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14242 echo $ac_n "(cached) $ac_c" 1>&6
14244 cat > conftest.$ac_ext <<EOF
14245 #line 14246 "configure"
14246 #include "confdefs.h"
14247 #include <sys/types.h>
14249 #include <stdlib.h>
14250 #include <stddef.h>
14254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14255 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14257 eval "ac_cv_type_caddr_t=yes"
14260 eval "ac_cv_type_caddr_t=no"
14265 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14266 echo "$ac_t""yes" 1>&6
14268 echo "$ac_t""no" 1>&6
14269 cat >> confdefs.h <<EOF
14270 #define caddr_t char *
14276 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14277 echo "configure:14278: checking for socklen_t" >&5
14278 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14279 echo $ac_n "(cached) $ac_c" 1>&6
14281 cat > conftest.$ac_ext <<EOF
14282 #line 14283 "configure"
14283 #include "confdefs.h"
14285 #ifdef HAVE_SYS_TYPES_H
14286 #include <sys/types.h>
14288 #ifdef HAVE_SYS_SOCKET_H
14289 #include <sys/socket.h>
14296 if { (eval echo configure:14297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14298 ol_cv_type_socklen_t=yes
14300 echo "configure: failed program was:" >&5
14301 cat conftest.$ac_ext >&5
14303 ol_cv_type_socklen_t=no
14308 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14309 if test $ol_cv_type_socklen_t = no; then
14310 cat >> confdefs.h <<\EOF
14311 #define socklen_t int
14316 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14317 echo "configure:14318: checking for member st_blksize in aggregate type struct stat" >&5
14318 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14319 echo $ac_n "(cached) $ac_c" 1>&6
14321 cat > conftest.$ac_ext <<EOF
14322 #line 14323 "configure"
14323 #include "confdefs.h"
14324 #include <sys/types.h>
14325 #include <sys/stat.h>
14327 struct stat foo; foo.st_blksize;
14330 if { (eval echo configure:14331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14332 ac_cv_c_struct_member_st_blksize=yes
14334 echo "configure: failed program was:" >&5
14335 cat conftest.$ac_ext >&5
14337 ac_cv_c_struct_member_st_blksize=no
14342 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14343 st_blksize="$ac_cv_c_struct_member_st_blksize"
14344 if test $ac_cv_c_struct_member_st_blksize = yes; then
14345 cat >> confdefs.h <<\EOF
14346 #define HAVE_ST_BLKSIZE 1
14351 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14352 echo "configure:14353: checking whether time.h and sys/time.h may both be included" >&5
14353 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14354 echo $ac_n "(cached) $ac_c" 1>&6
14356 cat > conftest.$ac_ext <<EOF
14357 #line 14358 "configure"
14358 #include "confdefs.h"
14359 #include <sys/types.h>
14360 #include <sys/time.h>
14366 if { (eval echo configure:14367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14368 ac_cv_header_time=yes
14370 echo "configure: failed program was:" >&5
14371 cat conftest.$ac_ext >&5
14373 ac_cv_header_time=no
14378 echo "$ac_t""$ac_cv_header_time" 1>&6
14379 if test $ac_cv_header_time = yes; then
14380 cat >> confdefs.h <<\EOF
14381 #define TIME_WITH_SYS_TIME 1
14386 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14387 echo "configure:14388: checking whether struct tm is in sys/time.h or time.h" >&5
14388 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14389 echo $ac_n "(cached) $ac_c" 1>&6
14391 cat > conftest.$ac_ext <<EOF
14392 #line 14393 "configure"
14393 #include "confdefs.h"
14394 #include <sys/types.h>
14397 struct tm *tp; tp->tm_sec;
14400 if { (eval echo configure:14401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14402 ac_cv_struct_tm=time.h
14404 echo "configure: failed program was:" >&5
14405 cat conftest.$ac_ext >&5
14407 ac_cv_struct_tm=sys/time.h
14412 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14413 if test $ac_cv_struct_tm = sys/time.h; then
14414 cat >> confdefs.h <<\EOF
14415 #define TM_IN_SYS_TIME 1
14420 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14421 echo "configure:14422: checking for uid_t in sys/types.h" >&5
14422 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14423 echo $ac_n "(cached) $ac_c" 1>&6
14425 cat > conftest.$ac_ext <<EOF
14426 #line 14427 "configure"
14427 #include "confdefs.h"
14428 #include <sys/types.h>
14430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14431 egrep "uid_t" >/dev/null 2>&1; then
14433 ac_cv_type_uid_t=yes
14436 ac_cv_type_uid_t=no
14442 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14443 if test $ac_cv_type_uid_t = no; then
14444 cat >> confdefs.h <<\EOF
14448 cat >> confdefs.h <<\EOF
14454 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14455 echo "configure:14456: checking for sig_atomic_t" >&5
14456 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14457 echo $ac_n "(cached) $ac_c" 1>&6
14459 cat > conftest.$ac_ext <<EOF
14460 #line 14461 "configure"
14461 #include "confdefs.h"
14462 #include <signal.h>
14464 sig_atomic_t atomic;
14467 if { (eval echo configure:14468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14469 ol_cv_type_sig_atomic_t=yes
14471 echo "configure: failed program was:" >&5
14472 cat conftest.$ac_ext >&5
14474 ol_cv_type_sig_atomic_t=no
14479 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14480 if test $ol_cv_type_sig_atomic_t = no; then
14481 cat >> confdefs.h <<\EOF
14482 #define sig_atomic_t int
14489 # test for pw_gecos in struct passwd
14490 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14491 echo "configure:14492: checking struct passwd for pw_gecos" >&5
14492 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14493 echo $ac_n "(cached) $ac_c" 1>&6
14496 cat > conftest.$ac_ext <<EOF
14497 #line 14498 "configure"
14498 #include "confdefs.h"
14503 pwd.pw_gecos = pwd.pw_name;
14507 if { (eval echo configure:14508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14509 ol_cv_struct_passwd_pw_gecos=yes
14511 echo "configure: failed program was:" >&5
14512 cat conftest.$ac_ext >&5
14514 ol_cv_struct_passwd_pw_gecos=no
14519 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14520 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14521 cat >> confdefs.h <<\EOF
14522 #define HAVE_PW_GECOS 1
14527 # test for pw_passwd in struct passwd
14528 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14529 echo "configure:14530: checking struct passwd for pw_passwd" >&5
14530 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14531 echo $ac_n "(cached) $ac_c" 1>&6
14534 cat > conftest.$ac_ext <<EOF
14535 #line 14536 "configure"
14536 #include "confdefs.h"
14541 pwd.pw_passwd = pwd.pw_name;
14545 if { (eval echo configure:14546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14547 ol_cv_struct_passwd_pw_passwd=yes
14549 echo "configure: failed program was:" >&5
14550 cat conftest.$ac_ext >&5
14552 ol_cv_struct_passwd_pw_passwd=no
14557 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14558 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14559 cat >> confdefs.h <<\EOF
14560 #define HAVE_PW_PASSWD 1
14566 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14567 echo "configure:14568: checking if toupper() requires islower()" >&5
14568 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14569 echo $ac_n "(cached) $ac_c" 1>&6
14572 if test "$cross_compiling" = yes; then
14573 ol_cv_c_upper_lower=safe
14575 cat > conftest.$ac_ext <<EOF
14576 #line 14577 "configure"
14577 #include "confdefs.h"
14582 if ('C' == toupper('C'))
14588 if { (eval echo configure:14589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14590 ol_cv_c_upper_lower=no
14592 echo "configure: failed program was:" >&5
14593 cat conftest.$ac_ext >&5
14595 ol_cv_c_upper_lower=yes
14602 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14603 if test $ol_cv_c_upper_lower != no ; then
14604 cat >> confdefs.h <<\EOF
14605 #define C_UPPER_LOWER 1
14610 echo $ac_n "checking for working const""... $ac_c" 1>&6
14611 echo "configure:14612: checking for working const" >&5
14612 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14613 echo $ac_n "(cached) $ac_c" 1>&6
14615 cat > conftest.$ac_ext <<EOF
14616 #line 14617 "configure"
14617 #include "confdefs.h"
14621 /* Ultrix mips cc rejects this. */
14622 typedef int charset[2]; const charset x;
14623 /* SunOS 4.1.1 cc rejects this. */
14624 char const *const *ccp;
14626 /* NEC SVR4.0.2 mips cc rejects this. */
14627 struct point {int x, y;};
14628 static struct point const zero = {0,0};
14629 /* AIX XL C 1.02.0.0 rejects this.
14630 It does not let you subtract one const X* pointer from another in an arm
14631 of an if-expression whose if-part is not a constant expression */
14632 const char *g = "string";
14633 ccp = &g + (g ? g-g : 0);
14634 /* HPUX 7.0 cc rejects these. */
14637 ccp = (char const *const *) p;
14638 { /* SCO 3.2v4 cc rejects this. */
14640 char const *s = 0 ? (char *) 0 : (char const *) 0;
14644 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14645 int x[] = {25, 17};
14646 const int *foo = &x[0];
14649 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14650 typedef const int *iptr;
14654 { /* AIX XL C 1.02.0.0 rejects this saying
14655 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14656 struct s { int j; const int *ap[3]; };
14657 struct s *b; b->j = 5;
14659 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14660 const int foo = 10;
14665 if { (eval echo configure:14666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14669 echo "configure: failed program was:" >&5
14670 cat conftest.$ac_ext >&5
14677 echo "$ac_t""$ac_cv_c_const" 1>&6
14678 if test $ac_cv_c_const = no; then
14679 cat >> confdefs.h <<\EOF
14685 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14686 echo "configure:14687: checking if compiler understands volatile" >&5
14687 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14688 echo $ac_n "(cached) $ac_c" 1>&6
14690 cat > conftest.$ac_ext <<EOF
14691 #line 14692 "configure"
14692 #include "confdefs.h"
14695 volatile int a; int * volatile b = x ? &y : &z;
14696 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14700 if { (eval echo configure:14701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14702 ol_cv_c_volatile=yes
14704 echo "configure: failed program was:" >&5
14705 cat conftest.$ac_ext >&5
14707 ol_cv_c_volatile=no
14712 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14713 if test $ol_cv_c_volatile = yes; then
14716 cat >> confdefs.h <<\EOF
14723 if test $cross_compiling = yes ; then
14724 cat >> confdefs.h <<\EOF
14725 #define CROSS_COMPILING 1
14729 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14730 echo "configure:14731: checking whether byte ordering is bigendian" >&5
14731 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14732 echo $ac_n "(cached) $ac_c" 1>&6
14734 ac_cv_c_bigendian=unknown
14735 # See if sys/param.h defines the BYTE_ORDER macro.
14736 cat > conftest.$ac_ext <<EOF
14737 #line 14738 "configure"
14738 #include "confdefs.h"
14739 #include <sys/types.h>
14740 #include <sys/param.h>
14743 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14744 bogus endian macros
14748 if { (eval echo configure:14749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14750 # It does; now see whether it defined to BIG_ENDIAN or not.
14751 cat > conftest.$ac_ext <<EOF
14752 #line 14753 "configure"
14753 #include "confdefs.h"
14754 #include <sys/types.h>
14755 #include <sys/param.h>
14758 #if BYTE_ORDER != BIG_ENDIAN
14763 if { (eval echo configure:14764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14765 ac_cv_c_bigendian=yes
14767 echo "configure: failed program was:" >&5
14768 cat conftest.$ac_ext >&5
14770 ac_cv_c_bigendian=no
14774 echo "configure: failed program was:" >&5
14775 cat conftest.$ac_ext >&5
14778 if test $ac_cv_c_bigendian = unknown; then
14779 if test "$cross_compiling" = yes; then
14780 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14782 cat > conftest.$ac_ext <<EOF
14783 #line 14784 "configure"
14784 #include "confdefs.h"
14786 /* Are we little or big endian? From Harbison&Steele. */
14790 char c[sizeof (long)];
14793 exit (u.c[sizeof (long) - 1] == 1);
14796 if { (eval echo configure:14797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14798 ac_cv_c_bigendian=no
14800 echo "configure: failed program was:" >&5
14801 cat conftest.$ac_ext >&5
14803 ac_cv_c_bigendian=yes
14811 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14812 if test $ac_cv_c_bigendian = yes; then
14813 cat >> confdefs.h <<\EOF
14814 #define WORDS_BIGENDIAN 1
14821 echo $ac_n "checking size of short""... $ac_c" 1>&6
14822 echo "configure:14823: checking size of short" >&5
14823 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14824 echo $ac_n "(cached) $ac_c" 1>&6
14826 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14827 cat > conftest.$ac_ext <<EOF
14828 #line 14829 "configure"
14829 #include "confdefs.h"
14830 #include "confdefs.h"
14831 #include <sys/types.h>
14835 switch (0) case 0: case (sizeof (short) == $ac_size):;
14838 if { (eval echo configure:14839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14840 ac_cv_sizeof_short=$ac_size
14842 echo "configure: failed program was:" >&5
14843 cat conftest.$ac_ext >&5
14846 if test x$ac_cv_sizeof_short != x ; then break; fi
14851 if test x$ac_cv_sizeof_short = x ; then
14852 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14854 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14855 cat >> confdefs.h <<EOF
14856 #define SIZEOF_SHORT $ac_cv_sizeof_short
14860 echo $ac_n "checking size of int""... $ac_c" 1>&6
14861 echo "configure:14862: checking size of int" >&5
14862 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14863 echo $ac_n "(cached) $ac_c" 1>&6
14865 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14866 cat > conftest.$ac_ext <<EOF
14867 #line 14868 "configure"
14868 #include "confdefs.h"
14869 #include "confdefs.h"
14870 #include <sys/types.h>
14874 switch (0) case 0: case (sizeof (int) == $ac_size):;
14877 if { (eval echo configure:14878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14879 ac_cv_sizeof_int=$ac_size
14881 echo "configure: failed program was:" >&5
14882 cat conftest.$ac_ext >&5
14885 if test x$ac_cv_sizeof_int != x ; then break; fi
14890 if test x$ac_cv_sizeof_int = x ; then
14891 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14893 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14894 cat >> confdefs.h <<EOF
14895 #define SIZEOF_INT $ac_cv_sizeof_int
14899 echo $ac_n "checking size of long""... $ac_c" 1>&6
14900 echo "configure:14901: checking size of long" >&5
14901 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14902 echo $ac_n "(cached) $ac_c" 1>&6
14904 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14905 cat > conftest.$ac_ext <<EOF
14906 #line 14907 "configure"
14907 #include "confdefs.h"
14908 #include "confdefs.h"
14909 #include <sys/types.h>
14913 switch (0) case 0: case (sizeof (long) == $ac_size):;
14916 if { (eval echo configure:14917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14918 ac_cv_sizeof_long=$ac_size
14920 echo "configure: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14924 if test x$ac_cv_sizeof_long != x ; then break; fi
14929 if test x$ac_cv_sizeof_long = x ; then
14930 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14932 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14933 cat >> confdefs.h <<EOF
14934 #define SIZEOF_LONG $ac_cv_sizeof_long
14939 if test "$ac_cv_sizeof_int" -lt 4 ; then
14940 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14942 cat >> confdefs.h <<\EOF
14943 #define LBER_INT_T long
14947 cat >> confdefs.h <<\EOF
14948 #define LBER_INT_T int
14953 cat >> confdefs.h <<\EOF
14954 #define LBER_LEN_T long
14957 cat >> confdefs.h <<\EOF
14958 #define LBER_SOCKET_T int
14961 cat >> confdefs.h <<\EOF
14962 #define LBER_TAG_T long
14966 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14967 echo "configure:14968: checking for 8-bit clean memcmp" >&5
14968 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14969 echo $ac_n "(cached) $ac_c" 1>&6
14971 if test "$cross_compiling" = yes; then
14972 ac_cv_func_memcmp_clean=no
14974 cat > conftest.$ac_ext <<EOF
14975 #line 14976 "configure"
14976 #include "confdefs.h"
14980 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14981 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14985 if { (eval echo configure:14986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14987 ac_cv_func_memcmp_clean=yes
14989 echo "configure: failed program was:" >&5
14990 cat conftest.$ac_ext >&5
14992 ac_cv_func_memcmp_clean=no
14999 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15000 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15002 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15003 echo "configure:15004: checking for strftime" >&5
15004 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15005 echo $ac_n "(cached) $ac_c" 1>&6
15007 cat > conftest.$ac_ext <<EOF
15008 #line 15009 "configure"
15009 #include "confdefs.h"
15010 /* System header to define __stub macros and hopefully few prototypes,
15011 which can conflict with char strftime(); below. */
15012 #include <assert.h>
15013 /* Override any gcc2 internal prototype to avoid an error. */
15014 /* We use char because int might match the return type of a gcc2
15015 builtin and then its argument prototype would still apply. */
15021 /* The GNU C library defines this for functions which it implements
15022 to always fail with ENOSYS. Some functions are actually named
15023 something starting with __ and the normal name is an alias. */
15024 #if defined (__stub_strftime) || defined (__stub___strftime)
15032 if { (eval echo configure:15033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15034 eval "ac_cv_func_strftime=yes"
15036 echo "configure: failed program was:" >&5
15037 cat conftest.$ac_ext >&5
15039 eval "ac_cv_func_strftime=no"
15044 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15045 echo "$ac_t""yes" 1>&6
15046 cat >> confdefs.h <<\EOF
15047 #define HAVE_STRFTIME 1
15051 echo "$ac_t""no" 1>&6
15052 # strftime is in -lintl on SCO UNIX.
15053 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15054 echo "configure:15055: checking for strftime in -lintl" >&5
15055 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15056 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15057 echo $ac_n "(cached) $ac_c" 1>&6
15059 ac_save_LIBS="$LIBS"
15060 LIBS="-lintl $LIBS"
15061 cat > conftest.$ac_ext <<EOF
15062 #line 15063 "configure"
15063 #include "confdefs.h"
15064 /* Override any gcc2 internal prototype to avoid an error. */
15065 /* We use char because int might match the return type of a gcc2
15066 builtin and then its argument prototype would still apply. */
15073 if { (eval echo configure:15074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15075 eval "ac_cv_lib_$ac_lib_var=yes"
15077 echo "configure: failed program was:" >&5
15078 cat conftest.$ac_ext >&5
15080 eval "ac_cv_lib_$ac_lib_var=no"
15083 LIBS="$ac_save_LIBS"
15086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15087 echo "$ac_t""yes" 1>&6
15088 cat >> confdefs.h <<\EOF
15089 #define HAVE_STRFTIME 1
15092 LIBS="-lintl $LIBS"
15094 echo "$ac_t""no" 1>&6
15100 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15101 echo "configure:15102: checking for inet_aton()" >&5
15102 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15103 echo $ac_n "(cached) $ac_c" 1>&6
15105 cat > conftest.$ac_ext <<EOF
15106 #line 15107 "configure"
15107 #include "confdefs.h"
15109 #ifdef HAVE_SYS_TYPES_H
15110 # include <sys/types.h>
15112 #ifdef HAVE_SYS_SOCKET_H
15113 # include <sys/socket.h>
15114 # ifdef HAVE_SYS_SELECT_H
15115 # include <sys/select.h>
15117 # include <netinet/in.h>
15118 # ifdef HAVE_ARPA_INET_H
15119 # include <arpa/inet.h>
15125 int rc = inet_aton( "255.255.255.255", &in );
15128 if { (eval echo configure:15129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15130 ol_cv_func_inet_aton=yes
15132 echo "configure: failed program was:" >&5
15133 cat conftest.$ac_ext >&5
15135 ol_cv_func_inet_aton=no
15140 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15141 if test $ol_cv_func_inet_aton != no; then
15142 cat >> confdefs.h <<\EOF
15143 #define HAVE_INET_ATON 1
15149 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15150 echo "configure:15151: checking for _spawnlp" >&5
15151 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15152 echo $ac_n "(cached) $ac_c" 1>&6
15154 cat > conftest.$ac_ext <<EOF
15155 #line 15156 "configure"
15156 #include "confdefs.h"
15157 /* System header to define __stub macros and hopefully few prototypes,
15158 which can conflict with char _spawnlp(); below. */
15159 #include <assert.h>
15160 /* Override any gcc2 internal prototype to avoid an error. */
15161 /* We use char because int might match the return type of a gcc2
15162 builtin and then its argument prototype would still apply. */
15168 /* The GNU C library defines this for functions which it implements
15169 to always fail with ENOSYS. Some functions are actually named
15170 something starting with __ and the normal name is an alias. */
15171 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15179 if { (eval echo configure:15180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15181 eval "ac_cv_func__spawnlp=yes"
15183 echo "configure: failed program was:" >&5
15184 cat conftest.$ac_ext >&5
15186 eval "ac_cv_func__spawnlp=no"
15191 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15192 echo "$ac_t""yes" 1>&6
15193 cat >> confdefs.h <<\EOF
15194 #define HAVE_SPAWNLP 1
15198 echo "$ac_t""no" 1>&6
15202 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15203 echo "configure:15204: checking for _snprintf" >&5
15204 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15205 echo $ac_n "(cached) $ac_c" 1>&6
15207 cat > conftest.$ac_ext <<EOF
15208 #line 15209 "configure"
15209 #include "confdefs.h"
15210 /* System header to define __stub macros and hopefully few prototypes,
15211 which can conflict with char _snprintf(); below. */
15212 #include <assert.h>
15213 /* Override any gcc2 internal prototype to avoid an error. */
15214 /* We use char because int might match the return type of a gcc2
15215 builtin and then its argument prototype would still apply. */
15221 /* The GNU C library defines this for functions which it implements
15222 to always fail with ENOSYS. Some functions are actually named
15223 something starting with __ and the normal name is an alias. */
15224 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15232 if { (eval echo configure:15233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15234 eval "ac_cv_func__snprintf=yes"
15236 echo "configure: failed program was:" >&5
15237 cat conftest.$ac_ext >&5
15239 eval "ac_cv_func__snprintf=no"
15244 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15245 echo "$ac_t""yes" 1>&6
15246 ac_cv_func_snprintf=yes
15247 cat >> confdefs.h <<\EOF
15248 #define snprintf _snprintf
15253 echo "$ac_t""no" 1>&6
15257 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15258 echo "configure:15259: checking for _vsnprintf" >&5
15259 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15260 echo $ac_n "(cached) $ac_c" 1>&6
15262 cat > conftest.$ac_ext <<EOF
15263 #line 15264 "configure"
15264 #include "confdefs.h"
15265 /* System header to define __stub macros and hopefully few prototypes,
15266 which can conflict with char _vsnprintf(); below. */
15267 #include <assert.h>
15268 /* Override any gcc2 internal prototype to avoid an error. */
15269 /* We use char because int might match the return type of a gcc2
15270 builtin and then its argument prototype would still apply. */
15276 /* The GNU C library defines this for functions which it implements
15277 to always fail with ENOSYS. Some functions are actually named
15278 something starting with __ and the normal name is an alias. */
15279 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15287 if { (eval echo configure:15288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15289 eval "ac_cv_func__vsnprintf=yes"
15291 echo "configure: failed program was:" >&5
15292 cat conftest.$ac_ext >&5
15294 eval "ac_cv_func__vsnprintf=no"
15299 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15300 echo "$ac_t""yes" 1>&6
15301 ac_cv_func_vsnprintf=yes
15302 cat >> confdefs.h <<\EOF
15303 #define vsnprintf _vsnprintf
15308 echo "$ac_t""no" 1>&6
15312 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15313 echo "configure:15314: checking for vprintf" >&5
15314 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15315 echo $ac_n "(cached) $ac_c" 1>&6
15317 cat > conftest.$ac_ext <<EOF
15318 #line 15319 "configure"
15319 #include "confdefs.h"
15320 /* System header to define __stub macros and hopefully few prototypes,
15321 which can conflict with char vprintf(); below. */
15322 #include <assert.h>
15323 /* Override any gcc2 internal prototype to avoid an error. */
15324 /* We use char because int might match the return type of a gcc2
15325 builtin and then its argument prototype would still apply. */
15331 /* The GNU C library defines this for functions which it implements
15332 to always fail with ENOSYS. Some functions are actually named
15333 something starting with __ and the normal name is an alias. */
15334 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15342 if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15344 eval "ac_cv_func_vprintf=yes"
15346 echo "configure: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15349 eval "ac_cv_func_vprintf=no"
15354 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15355 echo "$ac_t""yes" 1>&6
15356 cat >> confdefs.h <<\EOF
15357 #define HAVE_VPRINTF 1
15361 echo "$ac_t""no" 1>&6
15364 if test "$ac_cv_func_vprintf" != yes; then
15365 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15366 echo "configure:15367: checking for _doprnt" >&5
15367 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15368 echo $ac_n "(cached) $ac_c" 1>&6
15370 cat > conftest.$ac_ext <<EOF
15371 #line 15372 "configure"
15372 #include "confdefs.h"
15373 /* System header to define __stub macros and hopefully few prototypes,
15374 which can conflict with char _doprnt(); below. */
15375 #include <assert.h>
15376 /* Override any gcc2 internal prototype to avoid an error. */
15377 /* We use char because int might match the return type of a gcc2
15378 builtin and then its argument prototype would still apply. */
15384 /* The GNU C library defines this for functions which it implements
15385 to always fail with ENOSYS. Some functions are actually named
15386 something starting with __ and the normal name is an alias. */
15387 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15395 if { (eval echo configure:15396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15397 eval "ac_cv_func__doprnt=yes"
15399 echo "configure: failed program was:" >&5
15400 cat conftest.$ac_ext >&5
15402 eval "ac_cv_func__doprnt=no"
15407 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15408 echo "$ac_t""yes" 1>&6
15409 cat >> confdefs.h <<\EOF
15410 #define HAVE_DOPRNT 1
15414 echo "$ac_t""no" 1>&6
15420 if test $ac_cv_func_vprintf = yes ; then
15421 for ac_func in vsnprintf vsprintf
15423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15424 echo "configure:15425: checking for $ac_func" >&5
15425 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15426 echo $ac_n "(cached) $ac_c" 1>&6
15428 cat > conftest.$ac_ext <<EOF
15429 #line 15430 "configure"
15430 #include "confdefs.h"
15431 /* System header to define __stub macros and hopefully few prototypes,
15432 which can conflict with char $ac_func(); below. */
15433 #include <assert.h>
15434 /* Override any gcc2 internal prototype to avoid an error. */
15435 /* We use char because int might match the return type of a gcc2
15436 builtin and then its argument prototype would still apply. */
15442 /* The GNU C library defines this for functions which it implements
15443 to always fail with ENOSYS. Some functions are actually named
15444 something starting with __ and the normal name is an alias. */
15445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15453 if { (eval echo configure:15454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15455 eval "ac_cv_func_$ac_func=yes"
15457 echo "configure: failed program was:" >&5
15458 cat conftest.$ac_ext >&5
15460 eval "ac_cv_func_$ac_func=no"
15465 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15466 echo "$ac_t""yes" 1>&6
15467 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15468 cat >> confdefs.h <<EOF
15469 #define $ac_tr_func 1
15473 echo "$ac_t""no" 1>&6
15529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15530 echo "configure:15531: checking for $ac_func" >&5
15531 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15532 echo $ac_n "(cached) $ac_c" 1>&6
15534 cat > conftest.$ac_ext <<EOF
15535 #line 15536 "configure"
15536 #include "confdefs.h"
15537 /* System header to define __stub macros and hopefully few prototypes,
15538 which can conflict with char $ac_func(); below. */
15539 #include <assert.h>
15540 /* Override any gcc2 internal prototype to avoid an error. */
15541 /* We use char because int might match the return type of a gcc2
15542 builtin and then its argument prototype would still apply. */
15548 /* The GNU C library defines this for functions which it implements
15549 to always fail with ENOSYS. Some functions are actually named
15550 something starting with __ and the normal name is an alias. */
15551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15559 if { (eval echo configure:15560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15561 eval "ac_cv_func_$ac_func=yes"
15563 echo "configure: failed program was:" >&5
15564 cat conftest.$ac_ext >&5
15566 eval "ac_cv_func_$ac_func=no"
15571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15572 echo "$ac_t""yes" 1>&6
15573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15574 cat >> confdefs.h <<EOF
15575 #define $ac_tr_func 1
15579 echo "$ac_t""no" 1>&6
15584 for ac_func in getopt tempnam
15586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15587 echo "configure:15588: checking for $ac_func" >&5
15588 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15589 echo $ac_n "(cached) $ac_c" 1>&6
15591 cat > conftest.$ac_ext <<EOF
15592 #line 15593 "configure"
15593 #include "confdefs.h"
15594 /* System header to define __stub macros and hopefully few prototypes,
15595 which can conflict with char $ac_func(); below. */
15596 #include <assert.h>
15597 /* Override any gcc2 internal prototype to avoid an error. */
15598 /* We use char because int might match the return type of a gcc2
15599 builtin and then its argument prototype would still apply. */
15605 /* The GNU C library defines this for functions which it implements
15606 to always fail with ENOSYS. Some functions are actually named
15607 something starting with __ and the normal name is an alias. */
15608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15616 if { (eval echo configure:15617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15618 eval "ac_cv_func_$ac_func=yes"
15620 echo "configure: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15623 eval "ac_cv_func_$ac_func=no"
15628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15629 echo "$ac_t""yes" 1>&6
15630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15631 cat >> confdefs.h <<EOF
15632 #define $ac_tr_func 1
15636 echo "$ac_t""no" 1>&6
15637 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15643 if test "$ac_cv_func_getopt" != yes; then
15644 LIBSRCS="$LIBSRCS getopt.c"
15647 if test "$ac_cv_func_tempnam" != yes; then
15648 LIBSRCS="$LIBSRCS tempnam.c"
15651 # Check Configuration
15652 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15653 echo "configure:15654: checking declaration of sys_errlist" >&5
15654 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15655 echo $ac_n "(cached) $ac_c" 1>&6
15658 cat > conftest.$ac_ext <<EOF
15659 #line 15660 "configure"
15660 #include "confdefs.h"
15663 #include <sys/types.h>
15666 #include <stdlib.h>
15669 char *c = (char *) *sys_errlist
15672 if { (eval echo configure:15673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15674 ol_cv_dcl_sys_errlist=yes
15675 ol_cv_have_sys_errlist=yes
15677 echo "configure: failed program was:" >&5
15678 cat conftest.$ac_ext >&5
15680 ol_cv_dcl_sys_errlist=no
15685 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15687 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15688 if test $ol_cv_dcl_sys_errlist = no ; then
15689 cat >> confdefs.h <<\EOF
15690 #define DECL_SYS_ERRLIST 1
15694 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15695 echo "configure:15696: checking existence of sys_errlist" >&5
15696 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15697 echo $ac_n "(cached) $ac_c" 1>&6
15700 cat > conftest.$ac_ext <<EOF
15701 #line 15702 "configure"
15702 #include "confdefs.h"
15705 char *c = (char *) *sys_errlist
15708 if { (eval echo configure:15709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15710 ol_cv_have_sys_errlist=yes
15712 echo "configure: failed program was:" >&5
15713 cat conftest.$ac_ext >&5
15715 ol_cv_have_sys_errlist=no
15720 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15722 if test $ol_cv_have_sys_errlist = yes ; then
15723 cat >> confdefs.h <<\EOF
15724 #define HAVE_SYS_ERRLIST 1
15731 if test "$ol_enable_debug" != no ; then
15732 cat >> confdefs.h <<\EOF
15733 #define LDAP_DEBUG 1
15737 if test "$ol_enable_syslog" = yes ; then
15738 cat >> confdefs.h <<\EOF
15739 #define LDAP_SYSLOG 1
15743 if test "$ol_enable_libui" = yes ; then
15744 cat >> confdefs.h <<\EOF
15745 #define LDAP_LIBUI 1
15749 if test "$ol_enable_cache" = no ; then
15750 cat >> confdefs.h <<\EOF
15751 #define LDAP_NOCACHE 1
15755 if test "$ol_link_kbind" != no ; then
15756 cat >> confdefs.h <<\EOF
15757 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15761 if test "$ol_enable_dns" != no ; then
15762 cat >> confdefs.h <<\EOF
15763 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
15767 if test "$ol_enable_proctitle" != no ; then
15768 cat >> confdefs.h <<\EOF
15769 #define LDAP_PROCTITLE 1
15773 if test "$ol_enable_referrals" != no ; then
15774 cat >> confdefs.h <<\EOF
15775 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15779 if test "$ol_enable_cldap" != no ; then
15780 cat >> confdefs.h <<\EOF
15781 #define LDAP_CONNECTIONLESS 1
15785 if test "$ol_enable_ldapi" != no; then
15786 cat >> confdefs.h <<\EOF
15787 #define USE_PF_LOCAL 1
15792 if test "$ol_enable_cleartext" != no ; then
15793 cat >> confdefs.h <<\EOF
15794 #define SLAPD_CLEARTEXT 1
15798 if test "$ol_enable_crypt" != no ; then
15799 cat >> confdefs.h <<\EOF
15800 #define SLAPD_CRYPT 1
15804 if test "$ol_link_kpasswd" != no ; then
15805 cat >> confdefs.h <<\EOF
15806 #define SLAPD_KPASSWD 1
15810 if test "$ol_link_spasswd" != no ; then
15811 cat >> confdefs.h <<\EOF
15812 #define SLAPD_SPASSWD 1
15816 if test "$ol_enable_multimaster" != no ; then
15817 cat >> confdefs.h <<\EOF
15818 #define SLAPD_MULTIMASTER 1
15822 if test "$ol_enable_phonetic" != no ; then
15823 cat >> confdefs.h <<\EOF
15824 #define SLAPD_PHONETIC 1
15828 if test "$ol_enable_rlookups" != no ; then
15829 cat >> confdefs.h <<\EOF
15830 #define SLAPD_RLOOKUPS 1
15834 if test "$ol_enable_aci" != no ; then
15835 cat >> confdefs.h <<\EOF
15836 #define SLAPD_ACI_ENABLED 1
15841 if test "$ol_link_modules" != no ; then
15842 cat >> confdefs.h <<\EOF
15843 #define SLAPD_MODULES 1
15847 SLAPD_MODULES_LDFLAGS="-dlopen self"
15850 if test "$ol_link_bdb2" != no ; then
15851 cat >> confdefs.h <<\EOF
15852 #define SLAPD_BDB2 1
15857 if test "$ol_with_bdb2_module" != static ; then
15858 cat >> confdefs.h <<\EOF
15859 #define SLAPD_BDB2_DYNAMIC 1
15863 BUILD_BDB2_DYNAMIC=shared
15864 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
15868 if test "$ol_enable_dnssrv" != no ; then
15869 cat >> confdefs.h <<\EOF
15870 #define SLAPD_DNSSRV 1
15875 if test "$ol_with_dnssrv_module" != static ; then
15876 cat >> confdefs.h <<\EOF
15877 #define SLAPD_DNSSRV_DYNAMIC 1
15881 BUILD_DNSSRV_DYNAMIC=shared
15882 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15886 if test "$ol_enable_ldap" != no ; then
15887 cat >> confdefs.h <<\EOF
15888 #define SLAPD_LDAP 1
15893 if test "$ol_with_ldap_module" != static ; then
15894 cat >> confdefs.h <<\EOF
15895 #define SLAPD_LDAP_DYNAMIC 1
15899 BUILD_LDAP_DYNAMIC=shared
15900 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15904 if test "$ol_link_ldbm" != no ; then
15905 cat >> confdefs.h <<\EOF
15906 #define SLAPD_LDBM 1
15911 if test "$ol_with_ldbm_module" != static ; then
15912 cat >> confdefs.h <<\EOF
15913 #define SLAPD_LDBM_DYNAMIC 1
15917 BUILD_LDBM_DYNAMIC=shared
15918 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15922 if test "$ol_enable_passwd" != no ; then
15923 cat >> confdefs.h <<\EOF
15924 #define SLAPD_PASSWD 1
15929 if test "$ol_with_passwd_module" != static ; then
15930 cat >> confdefs.h <<\EOF
15931 #define SLAPD_PASSWD_DYNAMIC 1
15935 BUILD_PASSWD_DYNAMIC=shared
15936 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15940 if test "$ol_link_perl" != no ; then
15941 cat >> confdefs.h <<\EOF
15942 #define SLAPD_PERL 1
15947 if test "$ol_with_perl_module" != static ; then
15948 cat >> confdefs.h <<\EOF
15949 #define SLAPD_PERL_DYNAMIC 1
15953 BUILD_PERL_DYNAMIC=shared
15954 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15958 if test "$ol_enable_shell" != no ; then
15959 cat >> confdefs.h <<\EOF
15960 #define SLAPD_SHELL 1
15965 if test "$ol_with_shell_module" != static ; then
15966 cat >> confdefs.h <<\EOF
15967 #define SLAPD_SHELL_DYNAMIC 1
15971 BUILD_SHELL_DYNAMIC=shared
15972 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15976 if test "$ol_enable_tcl" != no ; then
15977 cat >> confdefs.h <<\EOF
15978 #define SLAPD_TCL 1
15983 if test "$ol_with_tcl_module" != static; then
15984 cat >> confdefs.h <<\EOF
15985 #define SLAPD_TCL_DYNAMIC 1
15989 BUILD_TCL_DYNAMIC=shared
15990 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15994 if test "$ol_enable_sql" != no ; then
15995 cat >> confdefs.h <<\EOF
15996 #define SLAPD_SQL 1
16001 SLAPD_SQL_LIBS=-liodbc
16002 if test "$ol_with_sql_module" != static; then
16003 cat >> confdefs.h <<\EOF
16004 #define SLAPD_SQL_DYNAMIC 1
16008 BUILD_SQL_DYNAMIC=shared
16009 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16013 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16014 $BUILD_SLAPD = yes ; then
16018 if test "$ol_link_isode" != no ; then
16023 if test "$LINK_BINS_DYNAMIC" = yes; then
16025 LT_LIB_LINKAGE=shared
16028 LT_LIB_LINKAGE=static
16031 if test "$ac_cv_mingw32" = yes ; then
16104 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16106 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16107 # Let make expand exec_prefix.
16108 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16110 # Any assignment to VPATH causes Sun make to only execute
16111 # the first set of double-colon rules, so remove it if not needed.
16112 # If there is a colon in the path, we need to keep it.
16113 if test "x$srcdir" = x.; then
16114 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16117 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16119 DEFS=-DHAVE_CONFIG_H
16121 # Without the "./", some shells look in PATH for config.status.
16122 : ${CONFIG_STATUS=./config.status}
16124 echo creating $CONFIG_STATUS
16125 rm -f $CONFIG_STATUS
16126 cat > $CONFIG_STATUS <<EOF
16128 # Generated automatically by configure.
16129 # Run this file to recreate the current configuration.
16130 # This directory was configured as follows,
16131 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16133 # $0 $ac_configure_args
16135 # Compiler output produced by configure, useful for debugging
16136 # configure, is in ./config.log if it exists.
16138 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16141 case "\$ac_option" in
16142 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16143 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16144 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16145 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16146 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16148 -help | --help | --hel | --he | --h)
16149 echo "\$ac_cs_usage"; exit 0 ;;
16150 *) echo "\$ac_cs_usage"; exit 1 ;;
16154 ac_given_srcdir=$srcdir
16155 ac_given_INSTALL="$INSTALL"
16157 trap 'rm -fr `echo "\
16158 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16159 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16160 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16161 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16162 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16163 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16164 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16165 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16166 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16167 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16168 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16169 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16170 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16171 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16172 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16173 include/Makefile:build/top.mk:include/Makefile.in \
16174 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16175 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16176 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16177 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16178 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16179 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16180 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16181 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16182 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16183 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16184 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
16185 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16186 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16187 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16188 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16189 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16190 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16191 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16192 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16193 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16194 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16195 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16196 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16197 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16198 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16199 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16200 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16201 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16202 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16203 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16205 cat >> $CONFIG_STATUS <<EOF
16207 # Protect against being on the right side of a sed subst in config.status.
16208 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16209 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16213 s%@CFLAGS@%$CFLAGS%g
16214 s%@CPPFLAGS@%$CPPFLAGS%g
16215 s%@CXXFLAGS@%$CXXFLAGS%g
16216 s%@FFLAGS@%$FFLAGS%g
16218 s%@LDFLAGS@%$LDFLAGS%g
16220 s%@exec_prefix@%$exec_prefix%g
16221 s%@prefix@%$prefix%g
16222 s%@program_transform_name@%$program_transform_name%g
16223 s%@bindir@%$bindir%g
16224 s%@sbindir@%$sbindir%g
16225 s%@libexecdir@%$libexecdir%g
16226 s%@datadir@%$datadir%g
16227 s%@sysconfdir@%$sysconfdir%g
16228 s%@sharedstatedir@%$sharedstatedir%g
16229 s%@localstatedir@%$localstatedir%g
16230 s%@libdir@%$libdir%g
16231 s%@includedir@%$includedir%g
16232 s%@oldincludedir@%$oldincludedir%g
16233 s%@infodir@%$infodir%g
16234 s%@mandir@%$mandir%g
16236 s%@host_alias@%$host_alias%g
16237 s%@host_cpu@%$host_cpu%g
16238 s%@host_vendor@%$host_vendor%g
16239 s%@host_os@%$host_os%g
16240 s%@target@%$target%g
16241 s%@target_alias@%$target_alias%g
16242 s%@target_cpu@%$target_cpu%g
16243 s%@target_vendor@%$target_vendor%g
16244 s%@target_os@%$target_os%g
16246 s%@build_alias@%$build_alias%g
16247 s%@build_cpu@%$build_cpu%g
16248 s%@build_vendor@%$build_vendor%g
16249 s%@build_os@%$build_os%g
16250 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16251 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16252 s%@INSTALL_DATA@%$INSTALL_DATA%g
16253 s%@PACKAGE@%$PACKAGE%g
16254 s%@VERSION@%$VERSION%g
16255 s%@ACLOCAL@%$ACLOCAL%g
16256 s%@AUTOCONF@%$AUTOCONF%g
16257 s%@AUTOMAKE@%$AUTOMAKE%g
16258 s%@AUTOHEADER@%$AUTOHEADER%g
16259 s%@MAKEINFO@%$MAKEINFO%g
16260 s%@install_sh@%$install_sh%g
16263 s%@AMTARFLAGS@%$AMTARFLAGS%g
16264 s%@SET_MAKE@%$SET_MAKE%g
16265 s%@top_builddir@%$top_builddir%g
16266 s%@ldap_subdir@%$ldap_subdir%g
16268 s%@RANLIB@%$RANLIB%g
16272 s%@DLLTOOL@%$DLLTOOL%g
16274 s%@OBJDUMP@%$OBJDUMP%g
16275 s%@LIBTOOL@%$LIBTOOL%g
16277 s%@SENDMAIL@%$SENDMAIL%g
16278 s%@EDITOR@%$EDITOR%g
16279 s%@FINGER@%$FINGER%g
16280 s%@PERLBIN@%$PERLBIN%g
16282 s%@EXEEXT@%$EXEEXT%g
16283 s%@OBJEXT@%$OBJEXT%g
16284 s%@OL_MKDEP@%$OL_MKDEP%g
16285 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16287 s%@LIBOBJS@%$LIBOBJS%g
16288 s%@LIBSRCS@%$LIBSRCS%g
16290 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16291 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16292 s%@DYN_EXT@%$DYN_EXT%g
16293 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
16294 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16295 s%@BUILD_BDB2@%$BUILD_BDB2%g
16296 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16297 s%@BUILD_LDAP@%$BUILD_LDAP%g
16298 s%@BUILD_LDBM@%$BUILD_LDBM%g
16299 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16300 s%@BUILD_PERL@%$BUILD_PERL%g
16301 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
16302 s%@BUILD_SHELL@%$BUILD_SHELL%g
16303 s%@BUILD_SQL@%$BUILD_SQL%g
16304 s%@BUILD_TCL@%$BUILD_TCL%g
16305 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
16306 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16307 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16308 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16309 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16310 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16311 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16312 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16313 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16314 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16315 s%@LDAP_LIBS@%$LDAP_LIBS%g
16316 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
16317 s%@LDIF_LIBS@%$LDIF_LIBS%g
16318 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16319 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16320 s%@LDBM_LIBS@%$LDBM_LIBS%g
16321 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16322 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16323 s%@WRAP_LIBS@%$WRAP_LIBS%g
16324 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16325 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16326 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16327 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16328 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16329 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16330 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16331 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16332 s%@KRB4_LIBS@%$KRB4_LIBS%g
16333 s%@KRB5_LIBS@%$KRB5_LIBS%g
16334 s%@READLINE_LIBS@%$READLINE_LIBS%g
16335 s%@SASL_LIBS@%$SASL_LIBS%g
16336 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16337 s%@TLS_LIBS@%$TLS_LIBS%g
16338 s%@MODULES_LIBS@%$MODULES_LIBS%g
16339 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16340 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16341 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16346 cat >> $CONFIG_STATUS <<\EOF
16348 # Split the substitutions into bite-sized pieces for seds with
16349 # small command number limits, like on Digital OSF/1 and HP-UX.
16350 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16351 ac_file=1 # Number of current file.
16352 ac_beg=1 # First line for current file.
16353 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16356 while $ac_more_lines; do
16357 if test $ac_beg -gt 1; then
16358 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16360 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16362 if test ! -s conftest.s$ac_file; then
16363 ac_more_lines=false
16364 rm -f conftest.s$ac_file
16366 if test -z "$ac_sed_cmds"; then
16367 ac_sed_cmds="sed -f conftest.s$ac_file"
16369 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16371 ac_file=`expr $ac_file + 1`
16373 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16376 if test -z "$ac_sed_cmds"; then
16381 cat >> $CONFIG_STATUS <<EOF
16383 CONFIG_FILES=\${CONFIG_FILES-"\
16384 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16385 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16386 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16387 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16388 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16389 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16390 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16391 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16392 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16393 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16394 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16395 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16396 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16397 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16398 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16399 include/Makefile:build/top.mk:include/Makefile.in \
16400 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16401 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16402 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16403 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16404 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16405 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16406 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16407 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16408 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16409 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16410 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
16411 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16412 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16413 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16414 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16415 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16416 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16417 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16418 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16419 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16420 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16421 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16422 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16423 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16424 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16425 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16426 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16427 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16428 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16431 cat >> $CONFIG_STATUS <<\EOF
16432 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16433 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16435 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16436 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16437 *) ac_file_in="${ac_file}.in" ;;
16440 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16442 # Remove last slash and all that follows it. Not all systems have dirname.
16443 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16444 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16445 # The file is in a subdirectory.
16446 test ! -d "$ac_dir" && mkdir "$ac_dir"
16447 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16448 # A "../" for each directory in $ac_dir_suffix.
16449 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16451 ac_dir_suffix= ac_dots=
16454 case "$ac_given_srcdir" in
16456 if test -z "$ac_dots"; then top_srcdir=.
16457 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16458 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16459 *) # Relative path.
16460 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16461 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16464 case "$ac_given_INSTALL" in
16465 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16466 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16469 echo creating "$ac_file"
16471 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16473 *[Mm]akefile*) ac_comsub="1i\\
16474 # $configure_input" ;;
16478 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16480 s%@configure_input@%$configure_input%g
16481 s%@srcdir@%$srcdir%g
16482 s%@top_srcdir@%$top_srcdir%g
16483 s%@INSTALL@%$INSTALL%g
16484 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16488 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16489 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16491 # ac_d sets the value in "#define NAME VALUE" lines.
16492 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16493 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16496 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16497 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16498 ac_uB='\([ ]\)%\1#\2define\3'
16501 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16502 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16503 ac_eB='$%\1#\2define\3'
16507 if test "${CONFIG_HEADERS+set}" != set; then
16509 cat >> $CONFIG_STATUS <<EOF
16510 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16512 cat >> $CONFIG_STATUS <<\EOF
16514 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16515 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16517 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16518 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16519 *) ac_file_in="${ac_file}.in" ;;
16522 echo creating $ac_file
16524 rm -f conftest.frag conftest.in conftest.out
16525 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16526 cat $ac_file_inputs > conftest.in
16530 # Transform confdefs.h into a sed script conftest.vals that substitutes
16531 # the proper values into config.h.in to produce config.h. And first:
16532 # Protect against being on the right side of a sed subst in config.status.
16533 # Protect against being in an unquoted here document in config.status.
16534 rm -f conftest.vals
16535 cat > conftest.hdr <<\EOF
16538 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16542 sed -n -f conftest.hdr confdefs.h > conftest.vals
16545 # This sed command replaces #undef with comments. This is necessary, for
16546 # example, in the case of _POSIX_SOURCE, which is predefined and required
16547 # on some systems where configure will not decide to define it.
16548 cat >> conftest.vals <<\EOF
16549 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16552 # Break up conftest.vals because some shells have a limit on
16553 # the size of here documents, and old seds have small limits too.
16555 rm -f conftest.tail
16558 ac_lines=`grep -c . conftest.vals`
16559 # grep -c gives empty output for an empty file on some AIX systems.
16560 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16561 # Write a limited-size here document to conftest.frag.
16562 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16563 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16565 sed -f conftest.frag conftest.in > conftest.out
16567 mv conftest.out conftest.in
16568 ' >> $CONFIG_STATUS
16569 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16570 rm -f conftest.vals
16571 mv conftest.tail conftest.vals
16573 rm -f conftest.vals
16575 cat >> $CONFIG_STATUS <<\EOF
16576 rm -f conftest.frag conftest.h
16577 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16578 cat conftest.in >> conftest.h
16580 if cmp -s $ac_file conftest.h 2>/dev/null; then
16581 echo "$ac_file is unchanged"
16584 # Remove last slash and all that follows it. Not all systems have dirname.
16585 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16586 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16587 # The file is in a subdirectory.
16588 test ! -d "$ac_dir" && mkdir "$ac_dir"
16591 mv conftest.h $ac_file
16596 cat >> $CONFIG_STATUS <<EOF
16599 cat >> $CONFIG_STATUS <<\EOF
16602 echo Please \"make depend\" to build dependencies
16606 chmod +x $CONFIG_STATUS
16607 rm -fr confdefs* $ac_clean_files
16608 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1