3 # from OpenLDAP: pkg/ldap/configure.in,v 1.300 2000/05/11 08:10:53 hyc 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; }
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=
2625 cat >> confdefs.h <<\EOF
2626 #define HAVE_MKVERSION 1
2634 *-*-aix*) if test -z "$CC" ; then
2635 case "$ol_with_threads" in
2636 auto | yes | posix) ol_aix_threads=yes ;;
2642 if test $ol_aix_threads = yes ; then
2643 if test -z "${CC}" ; then
2644 for ac_prog in cc_r xlc_r cc
2646 # Extract the first word of "$ac_prog", so it can be a program name with args.
2647 set dummy $ac_prog; ac_word=$2
2648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2649 echo "configure:2650: checking for $ac_word" >&5
2650 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2658 for ac_dir in $ac_dummy; do
2659 test -z "$ac_dir" && ac_dir=.
2660 if test -f $ac_dir/$ac_word; then
2661 ac_cv_prog_CC="$ac_prog"
2669 if test -n "$CC"; then
2670 echo "$ac_t""$CC" 1>&6
2672 echo "$ac_t""no" 1>&6
2675 test -n "$CC" && break
2679 if test "$CC" = cc ; then
2680 if test $ol_with_threads != auto ; then
2681 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2683 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2689 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2690 ol_with_threads=posix
2691 ol_cv_pthread_create=yes
2695 if test -z "${CC}"; then
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2701 echo "configure:2702: checking for $ac_word" >&5
2702 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2705 if test -n "$CC"; then
2706 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2710 for ac_dir in $ac_dummy; do
2711 test -z "$ac_dir" && ac_dir=.
2712 if test -f $ac_dir/$ac_word; then
2713 ac_cv_prog_CC="$ac_prog"
2721 if test -n "$CC"; then
2722 echo "$ac_t""$CC" 1>&6
2724 echo "$ac_t""no" 1>&6
2727 test -n "$CC" && break
2735 # Check whether --enable-fast-install or --disable-fast-install was given.
2736 if test "${enable_fast_install+set}" = set; then
2737 enableval="$enable_fast_install"
2738 p=${PACKAGE-default}
2739 case "$enableval" in
2740 yes) enable_fast_install=yes ;;
2741 no) enable_fast_install=no ;;
2743 enable_fast_install=no
2744 # Look at the argument we got. We use all the common list separators.
2745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2746 for pkg in $enableval; do
2747 if test "X$pkg" = "X$p"; then
2748 enable_fast_install=yes
2755 enable_fast_install=yes
2758 # Extract the first word of "ranlib", so it can be a program name with args.
2759 set dummy ranlib; ac_word=$2
2760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2761 echo "configure:2762: checking for $ac_word" >&5
2762 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 if test -n "$RANLIB"; then
2766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2770 for ac_dir in $ac_dummy; do
2771 test -z "$ac_dir" && ac_dir=.
2772 if test -f $ac_dir/$ac_word; then
2773 ac_cv_prog_RANLIB="ranlib"
2778 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2781 RANLIB="$ac_cv_prog_RANLIB"
2782 if test -n "$RANLIB"; then
2783 echo "$ac_t""$RANLIB" 1>&6
2785 echo "$ac_t""no" 1>&6
2788 # Extract the first word of "gcc", so it can be a program name with args.
2789 set dummy gcc; ac_word=$2
2790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2791 echo "configure:2792: checking for $ac_word" >&5
2792 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2800 for ac_dir in $ac_dummy; do
2801 test -z "$ac_dir" && ac_dir=.
2802 if test -f $ac_dir/$ac_word; then
2811 if test -n "$CC"; then
2812 echo "$ac_t""$CC" 1>&6
2814 echo "$ac_t""no" 1>&6
2817 if test -z "$CC"; then
2818 # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc; ac_word=$2
2820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2821 echo "configure:2822: checking for $ac_word" >&5
2822 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC="$CC" # Let the user override the test.
2828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2831 for ac_dir in $ac_dummy; do
2832 test -z "$ac_dir" && ac_dir=.
2833 if test -f $ac_dir/$ac_word; then
2834 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2835 ac_prog_rejected=yes
2843 if test $ac_prog_rejected = yes; then
2844 # We found a bogon in the path, so make sure we never use it.
2845 set dummy $ac_cv_prog_CC
2847 if test $# -gt 0; then
2848 # We chose a different compiler from the bogus one.
2849 # However, it has the same basename, so the bogon will be chosen
2850 # first if we set CC to just the basename; use the full file name.
2852 set dummy "$ac_dir/$ac_word" "$@"
2860 if test -n "$CC"; then
2861 echo "$ac_t""$CC" 1>&6
2863 echo "$ac_t""no" 1>&6
2866 if test -z "$CC"; then
2867 case "`uname -s`" in
2868 *win32* | *WIN32* | *CYGWIN*)
2869 # Extract the first word of "cl", so it can be a program name with args.
2870 set dummy cl; ac_word=$2
2871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2872 echo "configure:2873: checking for $ac_word" >&5
2873 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2881 for ac_dir in $ac_dummy; do
2882 test -z "$ac_dir" && ac_dir=.
2883 if test -f $ac_dir/$ac_word; then
2892 if test -n "$CC"; then
2893 echo "$ac_t""$CC" 1>&6
2895 echo "$ac_t""no" 1>&6
2900 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2903 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2904 echo "configure:2905: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2907 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2910 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2911 cross_compiling=$ac_cv_prog_cc_cross
2913 cat > conftest.$ac_ext << EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2920 if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2921 ac_cv_prog_cc_works=yes
2922 # If we can't run a trivial program, we are probably using a cross compiler.
2923 if (./conftest; exit) 2>/dev/null; then
2924 ac_cv_prog_cc_cross=no
2926 ac_cv_prog_cc_cross=yes
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2931 ac_cv_prog_cc_works=no
2935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2936 ac_cpp='$CPP $CPPFLAGS'
2937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2939 cross_compiling=$ac_cv_prog_cc_cross
2941 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2942 if test $ac_cv_prog_cc_works = no; then
2943 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2945 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2946 echo "configure:2947: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2947 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2948 cross_compiling=$ac_cv_prog_cc_cross
2950 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2951 echo "configure:2952: checking whether we are using GNU C" >&5
2952 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 cat > conftest.c <<EOF
2960 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2967 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2969 if test $ac_cv_prog_gcc = yes; then
2975 ac_test_CFLAGS="${CFLAGS+set}"
2976 ac_save_CFLAGS="$CFLAGS"
2978 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2979 echo "configure:2980: checking whether ${CC-cc} accepts -g" >&5
2980 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 echo 'void f(){}' > conftest.c
2984 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2993 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2994 if test "$ac_test_CFLAGS" = set; then
2995 CFLAGS="$ac_save_CFLAGS"
2996 elif test $ac_cv_prog_cc_g = yes; then
2997 if test "$GCC" = yes; then
3003 if test "$GCC" = yes; then
3010 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3011 if test "${with_gnu_ld+set}" = set; then
3012 withval="$with_gnu_ld"
3013 test "$withval" = no || with_gnu_ld=yes
3019 if test "$ac_cv_prog_gcc" = yes; then
3020 # Check if gcc -print-prog-name=ld gives a path.
3021 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3022 echo "configure:3023: checking for ld used by GCC" >&5
3023 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3025 # Accept absolute paths.
3026 [\\/]* | [A-Za-z]:[\\/]*)
3027 re_direlt='/[^/][^/]*/\.\./'
3028 # Canonicalize the path of ld
3029 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3030 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3031 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3033 test -z "$LD" && LD="$ac_prog"
3036 # If it fails, then pretend we aren't using GCC.
3040 # If it is relative, then search for the first ld in PATH.
3044 elif test "$with_gnu_ld" = yes; then
3045 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3046 echo "configure:3047: checking for GNU ld" >&5
3048 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3049 echo "configure:3050: checking for non-GNU ld" >&5
3051 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 if test -z "$LD"; then
3055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3056 for ac_dir in $PATH; do
3057 test -z "$ac_dir" && ac_dir=.
3058 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3059 ac_cv_path_LD="$ac_dir/$ac_prog"
3060 # Check to see if the program is GNU ld. I'd rather use --version,
3061 # but apparently some GNU ld's only accept -v.
3062 # Break only if it was the GNU/non-GNU ld that we prefer.
3063 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3064 test "$with_gnu_ld" != no && break
3066 test "$with_gnu_ld" != yes && break
3072 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3077 if test -n "$LD"; then
3078 echo "$ac_t""$LD" 1>&6
3080 echo "$ac_t""no" 1>&6
3082 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3084 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3085 echo "configure:3086: checking if the linker ($LD) is GNU ld" >&5
3086 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3089 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3090 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3091 ac_cv_prog_gnu_ld=yes
3093 ac_cv_prog_gnu_ld=no
3097 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3100 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3101 echo "configure:3102: checking for BSD-compatible nm" >&5
3102 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 if test -n "$NM"; then
3106 # Let the user override the test.
3109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3110 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3111 test -z "$ac_dir" && ac_dir=.
3112 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3113 # Check to see if the nm accepts a BSD-compat flag.
3114 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3115 # nm: unknown option "B" ignored
3116 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3117 ac_cv_path_NM="$ac_dir/nm -B"
3119 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3120 ac_cv_path_NM="$ac_dir/nm -p"
3123 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3124 continue # so that we can try to find one that supports BSD flags
3129 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3134 echo "$ac_t""$NM" 1>&6
3137 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3138 echo "configure:3139: checking whether ln -s works" >&5
3139 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3143 if ln -s X conftestdata 2>/dev/null
3146 ac_cv_prog_LN_S="ln -s"
3151 LN_S="$ac_cv_prog_LN_S"
3152 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3153 echo "$ac_t""yes" 1>&6
3155 echo "$ac_t""no" 1>&6
3158 if test $host != $build; then
3159 ac_tool_prefix=${host_alias}-
3165 # Check for any special flags to pass to ltconfig.
3166 libtool_flags="--cache-file=$cache_file"
3167 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3168 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3169 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3170 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3171 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3172 libtool_flags="$libtool_flags --enable-dlopen"
3173 libtool_flags="$libtool_flags --enable-win32-dll"
3174 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3175 if test "${enable_libtool_lock+set}" = set; then
3176 enableval="$enable_libtool_lock"
3180 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3181 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3183 # Some flags need to be propagated to the compiler or linker for good
3187 # Find out which ABI we are using.
3188 echo '#line 3189 "configure"' > conftest.$ac_ext
3189 if { (eval echo configure:3190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3190 case "`/usr/bin/file conftest.o`" in
3206 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3207 SAVE_CFLAGS="$CFLAGS"
3208 CFLAGS="$CFLAGS -belf"
3209 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3210 echo "configure:3211: checking whether the C compiler needs -belf" >&5
3211 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3214 cat > conftest.$ac_ext <<EOF
3215 #line 3216 "configure"
3216 #include "confdefs.h"
3222 if { (eval echo configure:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3224 lt_cv_cc_needs_belf=yes
3226 echo "configure: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3229 lt_cv_cc_needs_belf=no
3234 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3235 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3236 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3237 CFLAGS="$SAVE_CFLAGS"
3241 *-*-cygwin* | *-*-mingw*)
3242 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3245 echo "configure:3246: checking for $ac_word" >&5
3246 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 if test -n "$DLLTOOL"; then
3250 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3254 for ac_dir in $ac_dummy; do
3255 test -z "$ac_dir" && ac_dir=.
3256 if test -f $ac_dir/$ac_word; then
3257 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3264 DLLTOOL="$ac_cv_prog_DLLTOOL"
3265 if test -n "$DLLTOOL"; then
3266 echo "$ac_t""$DLLTOOL" 1>&6
3268 echo "$ac_t""no" 1>&6
3272 if test -z "$ac_cv_prog_DLLTOOL"; then
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "dlltool", so it can be a program name with args.
3275 set dummy dlltool; ac_word=$2
3276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3277 echo "configure:3278: checking for $ac_word" >&5
3278 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3281 if test -n "$DLLTOOL"; then
3282 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3286 for ac_dir in $ac_dummy; do
3287 test -z "$ac_dir" && ac_dir=.
3288 if test -f $ac_dir/$ac_word; then
3289 ac_cv_prog_DLLTOOL="dlltool"
3294 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3297 DLLTOOL="$ac_cv_prog_DLLTOOL"
3298 if test -n "$DLLTOOL"; then
3299 echo "$ac_t""$DLLTOOL" 1>&6
3301 echo "$ac_t""no" 1>&6
3309 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}as; ac_word=$2
3311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3312 echo "configure:3313: checking for $ac_word" >&5
3313 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3316 if test -n "$AS"; then
3317 ac_cv_prog_AS="$AS" # Let the user override the test.
3319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3321 for ac_dir in $ac_dummy; do
3322 test -z "$ac_dir" && ac_dir=.
3323 if test -f $ac_dir/$ac_word; then
3324 ac_cv_prog_AS="${ac_tool_prefix}as"
3332 if test -n "$AS"; then
3333 echo "$ac_t""$AS" 1>&6
3335 echo "$ac_t""no" 1>&6
3339 if test -z "$ac_cv_prog_AS"; then
3340 if test -n "$ac_tool_prefix"; then
3341 # Extract the first word of "as", so it can be a program name with args.
3342 set dummy as; ac_word=$2
3343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3344 echo "configure:3345: checking for $ac_word" >&5
3345 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 if test -n "$AS"; then
3349 ac_cv_prog_AS="$AS" # Let the user override the test.
3351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3353 for ac_dir in $ac_dummy; do
3354 test -z "$ac_dir" && ac_dir=.
3355 if test -f $ac_dir/$ac_word; then
3361 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3365 if test -n "$AS"; then
3366 echo "$ac_t""$AS" 1>&6
3368 echo "$ac_t""no" 1>&6
3376 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3377 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3379 echo "configure:3380: checking for $ac_word" >&5
3380 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 if test -n "$OBJDUMP"; then
3384 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3386 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3388 for ac_dir in $ac_dummy; do
3389 test -z "$ac_dir" && ac_dir=.
3390 if test -f $ac_dir/$ac_word; then
3391 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3398 OBJDUMP="$ac_cv_prog_OBJDUMP"
3399 if test -n "$OBJDUMP"; then
3400 echo "$ac_t""$OBJDUMP" 1>&6
3402 echo "$ac_t""no" 1>&6
3406 if test -z "$ac_cv_prog_OBJDUMP"; then
3407 if test -n "$ac_tool_prefix"; then
3408 # Extract the first word of "objdump", so it can be a program name with args.
3409 set dummy objdump; ac_word=$2
3410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3411 echo "configure:3412: checking for $ac_word" >&5
3412 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3415 if test -n "$OBJDUMP"; then
3416 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3420 for ac_dir in $ac_dummy; do
3421 test -z "$ac_dir" && ac_dir=.
3422 if test -f $ac_dir/$ac_word; then
3423 ac_cv_prog_OBJDUMP="objdump"
3428 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3431 OBJDUMP="$ac_cv_prog_OBJDUMP"
3432 if test -n "$OBJDUMP"; then
3433 echo "$ac_t""$OBJDUMP" 1>&6
3435 echo "$ac_t""no" 1>&6
3448 # Save cache, so that ltconfig can load it
3451 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3452 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3453 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3454 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3455 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3456 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3457 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3458 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3460 # Reload cache, that may have been modified by ltconfig
3463 # This can be used to rebuild libtool when needed
3464 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3466 # Always use our own libtool.
3467 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3469 # Redirect the config.log output again, so that the ltconfig log is not
3470 # clobbered by the next message.
3471 exec 5>>./config.log
3474 for ac_prog in mawk gawk nawk awk
3476 # Extract the first word of "$ac_prog", so it can be a program name with args.
3477 set dummy $ac_prog; ac_word=$2
3478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3479 echo "configure:3480: checking for $ac_word" >&5
3480 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3483 if test -n "$AWK"; then
3484 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3488 for ac_dir in $ac_dummy; do
3489 test -z "$ac_dir" && ac_dir=.
3490 if test -f $ac_dir/$ac_word; then
3491 ac_cv_prog_AWK="$ac_prog"
3498 AWK="$ac_cv_prog_AWK"
3499 if test -n "$AWK"; then
3500 echo "$ac_t""$AWK" 1>&6
3502 echo "$ac_t""no" 1>&6
3505 test -n "$AWK" && break
3508 # test for ln hardlink support
3509 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3510 echo "configure:3511: checking whether ln works" >&5
3511 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 rm -f conftest.src conftest.dst
3515 echo "conftest" > conftest.src
3516 if ln conftest.src conftest.dst 2>/dev/null
3518 ol_cv_prog_LN_H="ln"
3520 ol_cv_prog_LN_H="cp"
3522 rm -f conftest.src conftest.dst
3525 LN_H="$ol_cv_prog_LN_H"
3526 if test "$ol_cv_prog_LN_H" = "ln"; then
3527 echo "$ac_t""yes" 1>&6
3529 echo "$ac_t""no" 1>&6
3532 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3533 echo "configure:3534: checking whether ln -s works" >&5
3534 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
3538 if ln -s X conftestdata 2>/dev/null
3541 ac_cv_prog_LN_S="ln -s"
3546 LN_S="$ac_cv_prog_LN_S"
3547 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3548 echo "$ac_t""yes" 1>&6
3550 echo "$ac_t""no" 1>&6
3554 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3558 # Extract the first word of "sendmail", so it can be a program name with args.
3559 set dummy sendmail; ac_word=$2
3560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3561 echo "configure:3562: checking for $ac_word" >&5
3562 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3567 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3570 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3574 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3575 for ac_dir in $ac_dummy; do
3576 test -z "$ac_dir" && ac_dir=.
3577 if test -f $ac_dir/$ac_word; then
3578 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3583 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3587 SENDMAIL="$ac_cv_path_SENDMAIL"
3588 if test -n "$SENDMAIL"; then
3589 echo "$ac_t""$SENDMAIL" 1>&6
3591 echo "$ac_t""no" 1>&6
3594 # Extract the first word of "vi", so it can be a program name with args.
3595 set dummy vi; ac_word=$2
3596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3597 echo "configure:3598: checking for $ac_word" >&5
3598 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3603 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3606 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3610 ac_dummy="$PATH:/usr/ucb"
3611 for ac_dir in $ac_dummy; do
3612 test -z "$ac_dir" && ac_dir=.
3613 if test -f $ac_dir/$ac_word; then
3614 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3619 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3623 EDITOR="$ac_cv_path_EDITOR"
3624 if test -n "$EDITOR"; then
3625 echo "$ac_t""$EDITOR" 1>&6
3627 echo "$ac_t""no" 1>&6
3630 # Extract the first word of "finger", so it can be a program name with args.
3631 set dummy finger; ac_word=$2
3632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3633 echo "configure:3634: checking for $ac_word" >&5
3634 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3639 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3642 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3646 ac_dummy="$PATH:/usr/ucb"
3647 for ac_dir in $ac_dummy; do
3648 test -z "$ac_dir" && ac_dir=.
3649 if test -f $ac_dir/$ac_word; then
3650 ac_cv_path_FINGER="$ac_dir/$ac_word"
3655 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3659 FINGER="$ac_cv_path_FINGER"
3660 if test -n "$FINGER"; then
3661 echo "$ac_t""$FINGER" 1>&6
3663 echo "$ac_t""no" 1>&6
3668 if test $ol_enable_perl != no ; then
3669 # Extract the first word of "perl", so it can be a program name with args.
3670 set dummy perl; ac_word=$2
3671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3672 echo "configure:3673: checking for $ac_word" >&5
3673 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3678 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3681 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3686 for ac_dir in $ac_dummy; do
3687 test -z "$ac_dir" && ac_dir=.
3688 if test -f $ac_dir/$ac_word; then
3689 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3694 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3698 PERLBIN="$ac_cv_path_PERLBIN"
3699 if test -n "$PERLBIN"; then
3700 echo "$ac_t""$PERLBIN" 1>&6
3702 echo "$ac_t""no" 1>&6
3706 if test "no$PERLBIN" = "no" ; then
3707 if test $ol_enable_perl = yes ; then
3708 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3712 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3713 if test x"$ol_with_perl_module" = "xstatic" ; then
3714 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3716 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3722 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3723 echo "configure:3724: checking how to run the C preprocessor" >&5
3724 # On Suns, sometimes $CPP names a directory.
3725 if test -n "$CPP" && test -d "$CPP"; then
3728 if test -z "$CPP"; then
3729 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3732 # This must be in double quotes, not single quotes, because CPP may get
3733 # substituted into the Makefile and "${CC-cc}" will confuse make.
3735 # On the NeXT, cc -E runs the code through the compiler's parser,
3736 # not just through cpp.
3737 cat > conftest.$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3744 { (eval echo configure:3745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3746 if test -z "$ac_err"; then
3750 echo "configure: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3753 CPP="${CC-cc} -E -traditional-cpp"
3754 cat > conftest.$ac_ext <<EOF
3755 #line 3756 "configure"
3756 #include "confdefs.h"
3760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3761 { (eval echo configure:3762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3763 if test -z "$ac_err"; then
3767 echo "configure: failed program was:" >&5
3768 cat conftest.$ac_ext >&5
3770 CPP="${CC-cc} -nologo -E"
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3778 { (eval echo configure:3779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3780 if test -z "$ac_err"; then
3784 echo "configure: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3794 ac_cv_prog_CPP="$CPP"
3796 CPP="$ac_cv_prog_CPP"
3798 ac_cv_prog_CPP="$CPP"
3800 echo "$ac_t""$CPP" 1>&6
3803 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3804 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3806 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3807 echo "configure: warning: programs compiled here do run here..." 1>&2
3808 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3810 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3811 echo "configure: warning: programs compiled here do not run here..." 1>&2
3812 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3815 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3816 echo "configure:3817: checking for AIX" >&5
3817 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3826 egrep "yes" >/dev/null 2>&1; then
3828 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3829 #define _ALL_SOURCE 1
3834 echo "$ac_t""no" 1>&6
3839 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3840 echo "configure:3841: checking for POSIXized ISC" >&5
3841 if test -d /etc/conf/kconfig.d &&
3842 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3844 echo "$ac_t""yes" 1>&6
3845 ISC=yes # If later tests want to check for ISC.
3846 cat >> confdefs.h <<\EOF
3847 #define _POSIX_SOURCE 1
3850 if test "$GCC" = yes; then
3856 echo "$ac_t""no" 1>&6
3860 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3861 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3862 echo "configure:3863: checking for minix/config.h" >&5
3863 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3866 cat > conftest.$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3869 #include <minix/config.h>
3871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3872 { (eval echo configure:3873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3874 if test -z "$ac_err"; then
3876 eval "ac_cv_header_$ac_safe=yes"
3879 echo "configure: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3882 eval "ac_cv_header_$ac_safe=no"
3886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3887 echo "$ac_t""yes" 1>&6
3890 echo "$ac_t""no" 1>&6
3894 if test "$MINIX" = yes; then
3895 cat >> confdefs.h <<\EOF
3896 #define _POSIX_SOURCE 1
3899 cat >> confdefs.h <<\EOF
3900 #define _POSIX_1_SOURCE 2
3903 cat >> confdefs.h <<\EOF
3910 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3911 echo "configure:3912: checking for Cygwin environment" >&5
3912 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3922 #define __CYGWIN__ __CYGWIN32__
3927 if { (eval echo configure:3928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3939 echo "$ac_t""$ac_cv_cygwin" 1>&6
3941 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3942 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3943 echo "configure:3944: checking for mingw32 environment" >&5
3944 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3955 if { (eval echo configure:3956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3959 echo "configure: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3967 echo "$ac_t""$ac_cv_mingw32" 1>&6
3969 test "$ac_cv_mingw32" = yes && MINGW32=yes
3970 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3971 echo "configure:3972: checking for EMX OS/2 environment" >&5
3972 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3973 echo $ac_n "(cached) $ac_c" 1>&6
3975 cat > conftest.$ac_ext <<EOF
3976 #line 3977 "configure"
3977 #include "confdefs.h"
3983 if { (eval echo configure:3984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3987 echo "configure: failed program was:" >&5
3988 cat conftest.$ac_ext >&5
3995 echo "$ac_t""$ac_cv_emxos2" 1>&6
3997 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4001 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4002 echo "configure:4003: checking for executable suffix" >&5
4003 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4004 echo $ac_n "(cached) $ac_c" 1>&6
4006 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4010 echo 'int main () { return 0; }' > conftest.$ac_ext
4012 if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4013 for file in conftest.*; do
4015 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4016 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4020 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4023 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4028 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4029 echo "$ac_t""${ac_cv_exeext}" 1>&6
4032 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4033 echo "configure:4034: checking for object suffix" >&5
4034 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4038 echo 'int i = 1;' > conftest.$ac_ext
4039 if { (eval echo configure:4040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4040 for ac_file in conftest.*; do
4043 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4047 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4052 echo "$ac_t""$ac_cv_objext" 1>&6
4053 OBJEXT=$ac_cv_objext
4054 ac_objext=$ac_cv_objext
4057 cat >> confdefs.h <<EOF
4058 #define EXEEXT "${EXEEXT}"
4062 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4063 echo "configure:4064: checking for be_app in -lbe" >&5
4064 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4065 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4068 ac_save_LIBS="$LIBS"
4069 LIBS="-lbe -lroot -lnet $LIBS"
4070 cat > conftest.$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4073 /* Override any gcc2 internal prototype to avoid an error. */
4074 /* We use char because int might match the return type of a gcc2
4075 builtin and then its argument prototype would still apply. */
4082 if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4084 eval "ac_cv_lib_$ac_lib_var=yes"
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4089 eval "ac_cv_lib_$ac_lib_var=no"
4092 LIBS="$ac_save_LIBS"
4095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4096 echo "$ac_t""yes" 1>&6
4097 LIBS="$LIBS -lbe -lroot -lnet"
4099 echo "$ac_t""no" 1>&6
4107 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4108 echo "configure:4109: checking for ${CC-cc} option to accept ANSI C" >&5
4109 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6
4112 am_cv_prog_cc_stdc=no
4114 # Don't try gcc -ansi; that turns off useful extensions and
4115 # breaks some systems' header files.
4116 # AIX -qlanglvl=ansi
4117 # Ultrix and OSF/1 -std1
4118 # HP-UX 10.20 and later -Ae
4119 # HP-UX older versions -Aa -D_HPUX_SOURCE
4120 # SVR4 -Xc -D__EXTENSIONS__
4121 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4123 CC="$ac_save_CC $ac_arg"
4124 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4129 #include <sys/types.h>
4130 #include <sys/stat.h>
4131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4132 struct buf { int x; };
4133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4134 static char *e (p, i)
4140 static char *f (char * (*g) (char **, int), char **p, ...)
4145 s = g (p, va_arg (v,int));
4149 int test (int i, double x);
4150 struct s1 {int (*f) (int a);};
4151 struct s2 {int (*f) (double a);};
4152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4162 if { (eval echo configure:4163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4164 am_cv_prog_cc_stdc="$ac_arg"; break
4166 echo "configure: failed program was:" >&5
4167 cat conftest.$ac_ext >&5
4175 if test -z "$am_cv_prog_cc_stdc"; then
4176 echo "$ac_t""none needed" 1>&6
4178 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4180 case "x$am_cv_prog_cc_stdc" in
4182 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4185 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4186 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4189 # test for make depend flag
4192 if test -z "${MKDEP}"; then
4194 if test -z "${MKDEP_FLAGS}"; then
4195 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4196 echo "configure:4197: checking for ${OL_MKDEP} depend flag" >&5
4197 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4202 for flag in "-M" "-xM"; do
4203 cat > conftest.c <<EOF
4206 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4207 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4209 if test ! -f conftest."${ac_object}" ; then
4211 OL_MKDEP_FLAGS="$flag"
4220 echo "$ac_t""$ol_cv_mkdep" 1>&6
4223 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4228 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4233 if test "${ol_cv_mkdep}" = no ; then
4234 # this will soon become an error
4235 echo "configure: warning: do not know how to generate dependencies" 1>&2
4238 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4239 echo "configure:4240: checking for afopen in -ls" >&5
4240 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4241 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4244 ac_save_LIBS="$LIBS"
4246 cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4249 /* Override any gcc2 internal prototype to avoid an error. */
4250 /* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4258 if { (eval echo configure:4259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4260 eval "ac_cv_lib_$ac_lib_var=yes"
4262 echo "configure: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4265 eval "ac_cv_lib_$ac_lib_var=no"
4268 LIBS="$ac_save_LIBS"
4271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4275 cat >> confdefs.h <<\EOF
4276 #define HAVE_AIX_SECURITY 1
4281 echo "$ac_t""no" 1>&6
4286 if test $ol_enable_modules != no ; then
4287 for ac_hdr in ltdl.h
4289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4291 echo "configure:4292: checking for $ac_hdr" >&5
4292 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4301 { (eval echo configure:4302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4303 if test -z "$ac_err"; then
4305 eval "ac_cv_header_$ac_safe=yes"
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4311 eval "ac_cv_header_$ac_safe=no"
4315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4316 echo "$ac_t""yes" 1>&6
4317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4318 cat >> confdefs.h <<EOF
4319 #define $ac_tr_hdr 1
4323 echo "$ac_t""no" 1>&6
4328 if test $ac_cv_header_ltdl_h = no ; then
4329 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4332 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4333 echo "configure:4334: checking for lt_dlinit in -lltdl" >&5
4334 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4335 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 ac_save_LIBS="$LIBS"
4340 cat > conftest.$ac_ext <<EOF
4341 #line 4342 "configure"
4342 #include "confdefs.h"
4343 /* Override any gcc2 internal prototype to avoid an error. */
4344 /* We use char because int might match the return type of a gcc2
4345 builtin and then its argument prototype would still apply. */
4352 if { (eval echo configure:4353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4354 eval "ac_cv_lib_$ac_lib_var=yes"
4356 echo "configure: failed program was:" >&5
4357 cat conftest.$ac_ext >&5
4359 eval "ac_cv_lib_$ac_lib_var=no"
4362 LIBS="$ac_save_LIBS"
4365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4366 echo "$ac_t""yes" 1>&6
4369 cat >> confdefs.h <<\EOF
4370 #define HAVE_LIBLTDL 1
4375 echo "$ac_t""no" 1>&6
4379 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4380 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4384 ol_with_bdb2_module=static
4385 ol_with_dnssrv_module=static
4386 ol_with_ldap_module=static
4387 ol_with_ldbm_module=static
4388 ol_with_passwd_module=static
4389 ol_with_perl_module=static
4390 ol_with_shell_module=static
4391 ol_with_tcl_module=static
4392 ol_with_sql_module=static
4396 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4397 echo "configure:4398: checking for EBCDIC" >&5
4398 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4402 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4407 #include <__ASCII__/generate_error.h>
4411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4412 { (eval echo configure:4413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4414 if test -z "$ac_err"; then
4416 ol_cv_cpp_ebcdic=yes
4419 echo "configure: failed program was:" >&5
4420 cat conftest.$ac_ext >&5
4427 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4428 if test $ol_cv_cpp_ebcdic = yes ; then
4429 cat >> confdefs.h <<\EOF
4430 #define HAVE_EBCDIC 1
4435 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4436 echo "configure:4437: checking for ANSI C header files" >&5
4437 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4449 { (eval echo configure:4450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4450 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4451 if test -z "$ac_err"; then
4453 ol_cv_header_stdc=yes
4456 echo "configure: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4459 ol_cv_header_stdc=no
4463 if test $ol_cv_header_stdc = yes; then
4464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4471 egrep "memchr" >/dev/null 2>&1; then
4475 ol_cv_header_stdc=no
4481 if test $ol_cv_header_stdc = yes; then
4482 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4483 cat > conftest.$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4489 egrep "free" >/dev/null 2>&1; then
4493 ol_cv_header_stdc=no
4499 if test $ol_cv_header_stdc = yes; then
4500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4501 if test "$cross_compiling" = yes; then
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4509 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4510 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4512 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4513 || ('j' <= (c) && (c) <= 'r') \
4514 || ('s' <= (c) && (c) <= 'z'))
4515 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4517 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4518 int main () { int i; for (i = 0; i < 256; i++)
4519 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4527 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4530 ol_cv_header_stdc=no
4538 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4539 if test $ol_cv_header_stdc = yes; then
4540 cat >> confdefs.h <<\EOF
4541 #define STDC_HEADERS 1
4545 ac_cv_header_stdc=disable
4548 if test $ol_cv_header_stdc != yes; then
4549 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4553 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4556 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4557 echo "configure:4558: checking for $ac_hdr that defines DIR" >&5
4558 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 #include <sys/types.h>
4570 if { (eval echo configure:4571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4572 eval "ac_cv_header_dirent_$ac_safe=yes"
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4577 eval "ac_cv_header_dirent_$ac_safe=no"
4581 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4582 echo "$ac_t""yes" 1>&6
4583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4584 cat >> confdefs.h <<EOF
4585 #define $ac_tr_hdr 1
4587 ac_header_dirent=$ac_hdr; break
4589 echo "$ac_t""no" 1>&6
4592 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4593 if test $ac_header_dirent = dirent.h; then
4594 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4595 echo "configure:4596: checking for opendir in -ldir" >&5
4596 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4597 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4600 ac_save_LIBS="$LIBS"
4602 cat > conftest.$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4605 /* Override any gcc2 internal prototype to avoid an error. */
4606 /* We use char because int might match the return type of a gcc2
4607 builtin and then its argument prototype would still apply. */
4614 if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4616 eval "ac_cv_lib_$ac_lib_var=yes"
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4621 eval "ac_cv_lib_$ac_lib_var=no"
4624 LIBS="$ac_save_LIBS"
4627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4628 echo "$ac_t""yes" 1>&6
4631 echo "$ac_t""no" 1>&6
4635 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4636 echo "configure:4637: checking for opendir in -lx" >&5
4637 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4638 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4641 ac_save_LIBS="$LIBS"
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 /* Override any gcc2 internal prototype to avoid an error. */
4647 /* We use char because int might match the return type of a gcc2
4648 builtin and then its argument prototype would still apply. */
4655 if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4657 eval "ac_cv_lib_$ac_lib_var=yes"
4659 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4662 eval "ac_cv_lib_$ac_lib_var=no"
4665 LIBS="$ac_save_LIBS"
4668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6
4672 echo "$ac_t""no" 1>&6
4677 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4678 echo "configure:4679: checking for sys/wait.h that is POSIX.1 compatible" >&5
4679 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 #include <sys/types.h>
4686 #include <sys/wait.h>
4688 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4691 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4696 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4699 if { (eval echo configure:4700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4701 ac_cv_header_sys_wait_h=yes
4703 echo "configure: failed program was:" >&5
4704 cat conftest.$ac_ext >&5
4706 ac_cv_header_sys_wait_h=no
4711 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4712 if test $ac_cv_header_sys_wait_h = yes; then
4713 cat >> confdefs.h <<\EOF
4714 #define HAVE_SYS_WAIT_H 1
4719 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4720 echo "configure:4721: checking POSIX termios" >&5
4721 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4724 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4727 #include <sys/types.h>
4729 #include <termios.h>
4731 /* SunOS 4.0.3 has termios.h but not the library calls. */
4735 if { (eval echo configure:4736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4737 am_cv_sys_posix_termios=yes
4739 echo "configure: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4742 am_cv_sys_posix_termios=no
4747 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4750 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4751 echo "configure:4752: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4752 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4757 gwinsz_in_termios_h=no
4758 if test $am_cv_sys_posix_termios = yes; then
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4762 #include <sys/types.h>
4763 # include <termios.h>
4769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4770 egrep "yes" >/dev/null 2>&1; then
4772 gwinsz_in_termios_h=yes
4778 if test $gwinsz_in_termios_h = no; then
4779 cat > conftest.$ac_ext <<EOF
4780 #line 4781 "configure"
4781 #include "confdefs.h"
4782 #include <sys/types.h>
4783 # include <sys/ioctl.h>
4789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4790 egrep "yes" >/dev/null 2>&1; then
4792 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4800 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4801 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4802 cat >> confdefs.h <<\EOF
4803 #define GWINSZ_IN_SYS_IOCTL 1
4808 if test $am_cv_sys_posix_termios = yes ; then
4809 cat >> confdefs.h <<\EOF
4810 #define HAVE_POSIX_TERMIOS 1
4861 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4862 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4863 echo "configure:4864: checking for $ac_hdr" >&5
4864 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4873 { (eval echo configure:4874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4875 if test -z "$ac_err"; then
4877 eval "ac_cv_header_$ac_safe=yes"
4880 echo "configure: failed program was:" >&5
4881 cat conftest.$ac_ext >&5
4883 eval "ac_cv_header_$ac_safe=no"
4887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4888 echo "$ac_t""yes" 1>&6
4889 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4890 cat >> confdefs.h <<EOF
4891 #define $ac_tr_hdr 1
4895 echo "$ac_t""no" 1>&6
4902 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4903 echo "configure:4904: checking for sigset in -lV3" >&5
4904 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4905 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4908 ac_save_LIBS="$LIBS"
4910 cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 /* Override any gcc2 internal prototype to avoid an error. */
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4922 if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4924 eval "ac_cv_lib_$ac_lib_var=yes"
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4929 eval "ac_cv_lib_$ac_lib_var=no"
4932 LIBS="$ac_save_LIBS"
4935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4937 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4938 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4939 cat >> confdefs.h <<EOF
4940 #define $ac_tr_lib 1
4946 echo "$ac_t""no" 1>&6
4950 if test $ac_cv_header_winsock_h = yes; then
4951 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4952 echo "configure:4953: checking for winsock" >&5
4953 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4954 echo $ac_n "(cached) $ac_c" 1>&6
4956 cat > conftest.$ac_ext <<EOF
4957 #line 4958 "configure"
4958 #include "confdefs.h"
4959 #include <winsock.h>
4963 select(0,NULL,NULL,NULL,NULL);
4965 gethostname(NULL,0);
4969 if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4973 echo "configure: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4981 echo "$ac_t""$ol_cv_winsock" 1>&6
4983 if test $ol_cv_winsock = yes ; then
4984 cat >> confdefs.h <<\EOF
4985 #define HAVE_WINSOCK 1
4988 ac_cv_func_socket=yes
4989 ac_cv_func_select=yes
4990 ac_cv_func_closesocket=yes
4991 ac_cv_func_gethostname=yes
4996 echo $ac_n "checking for socket""... $ac_c" 1>&6
4997 echo "configure:4998: checking for socket" >&5
4998 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4999 echo $ac_n "(cached) $ac_c" 1>&6
5001 cat > conftest.$ac_ext <<EOF
5002 #line 5003 "configure"
5003 #include "confdefs.h"
5004 /* System header to define __stub macros and hopefully few prototypes,
5005 which can conflict with char socket(); below. */
5007 /* Override any gcc2 internal prototype to avoid an error. */
5008 /* We use char because int might match the return type of a gcc2
5009 builtin and then its argument prototype would still apply. */
5015 /* The GNU C library defines this for functions which it implements
5016 to always fail with ENOSYS. Some functions are actually named
5017 something starting with __ and the normal name is an alias. */
5018 #if defined (__stub_socket) || defined (__stub___socket)
5026 if { (eval echo configure:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5028 eval "ac_cv_func_socket=yes"
5030 echo "configure: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5033 eval "ac_cv_func_socket=no"
5038 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5039 echo "$ac_t""yes" 1>&6
5042 echo "$ac_t""no" 1>&6
5044 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5045 echo "configure:5046: checking for main in -lsocket" >&5
5046 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5047 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5050 ac_save_LIBS="$LIBS"
5051 LIBS="-lsocket $LIBS"
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5062 eval "ac_cv_lib_$ac_lib_var=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 eval "ac_cv_lib_$ac_lib_var=no"
5070 LIBS="$ac_save_LIBS"
5073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5074 echo "$ac_t""yes" 1>&6
5075 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5077 cat >> confdefs.h <<EOF
5078 #define $ac_tr_lib 1
5081 LIBS="-lsocket $LIBS"
5084 echo "$ac_t""no" 1>&6
5087 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5088 echo "configure:5089: checking for main in -lnet" >&5
5089 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5090 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5093 ac_save_LIBS="$LIBS"
5095 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure"
5097 #include "confdefs.h"
5103 if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5105 eval "ac_cv_lib_$ac_lib_var=yes"
5107 echo "configure: failed program was:" >&5
5108 cat conftest.$ac_ext >&5
5110 eval "ac_cv_lib_$ac_lib_var=no"
5113 LIBS="$ac_save_LIBS"
5116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5117 echo "$ac_t""yes" 1>&6
5118 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5119 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5120 cat >> confdefs.h <<EOF
5121 #define $ac_tr_lib 1
5127 echo "$ac_t""no" 1>&6
5130 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5131 echo "configure:5132: checking for main in -lnsl_s" >&5
5132 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5133 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5136 ac_save_LIBS="$LIBS"
5137 LIBS="-lnsl_s $LIBS"
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5148 eval "ac_cv_lib_$ac_lib_var=yes"
5150 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5153 eval "ac_cv_lib_$ac_lib_var=no"
5156 LIBS="$ac_save_LIBS"
5159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5160 echo "$ac_t""yes" 1>&6
5161 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5162 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5163 cat >> confdefs.h <<EOF
5164 #define $ac_tr_lib 1
5167 LIBS="-lnsl_s $LIBS"
5170 echo "$ac_t""no" 1>&6
5173 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5174 echo "configure:5175: checking for main in -lnsl" >&5
5175 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5176 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5177 echo $ac_n "(cached) $ac_c" 1>&6
5179 ac_save_LIBS="$LIBS"
5181 cat > conftest.$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5191 eval "ac_cv_lib_$ac_lib_var=yes"
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5196 eval "ac_cv_lib_$ac_lib_var=no"
5199 LIBS="$ac_save_LIBS"
5202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5203 echo "$ac_t""yes" 1>&6
5204 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5205 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5206 cat >> confdefs.h <<EOF
5207 #define $ac_tr_lib 1
5213 echo "$ac_t""no" 1>&6
5216 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5217 echo "configure:5218: checking for socket in -linet" >&5
5218 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5219 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5220 echo $ac_n "(cached) $ac_c" 1>&6
5222 ac_save_LIBS="$LIBS"
5224 cat > conftest.$ac_ext <<EOF
5225 #line 5226 "configure"
5226 #include "confdefs.h"
5227 /* Override any gcc2 internal prototype to avoid an error. */
5228 /* We use char because int might match the return type of a gcc2
5229 builtin and then its argument prototype would still apply. */
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5238 eval "ac_cv_lib_$ac_lib_var=yes"
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5243 eval "ac_cv_lib_$ac_lib_var=no"
5246 LIBS="$ac_save_LIBS"
5249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5250 echo "$ac_t""yes" 1>&6
5251 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5252 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5253 cat >> confdefs.h <<EOF
5254 #define $ac_tr_lib 1
5260 echo "$ac_t""no" 1>&6
5263 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5264 echo "configure:5265: checking for main in -lgen" >&5
5265 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5266 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 ac_save_LIBS="$LIBS"
5271 cat > conftest.$ac_ext <<EOF
5272 #line 5273 "configure"
5273 #include "confdefs.h"
5279 if { (eval echo configure:5280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5281 eval "ac_cv_lib_$ac_lib_var=yes"
5283 echo "configure: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5286 eval "ac_cv_lib_$ac_lib_var=no"
5289 LIBS="$ac_save_LIBS"
5292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5293 echo "$ac_t""yes" 1>&6
5294 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5295 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5296 cat >> confdefs.h <<EOF
5297 #define $ac_tr_lib 1
5303 echo "$ac_t""no" 1>&6
5310 echo $ac_n "checking for select""... $ac_c" 1>&6
5311 echo "configure:5312: checking for select" >&5
5312 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5315 cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5318 /* System header to define __stub macros and hopefully few prototypes,
5319 which can conflict with char select(); below. */
5321 /* Override any gcc2 internal prototype to avoid an error. */
5322 /* We use char because int might match the return type of a gcc2
5323 builtin and then its argument prototype would still apply. */
5329 /* The GNU C library defines this for functions which it implements
5330 to always fail with ENOSYS. Some functions are actually named
5331 something starting with __ and the normal name is an alias. */
5332 #if defined (__stub_select) || defined (__stub___select)
5340 if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5342 eval "ac_cv_func_select=yes"
5344 echo "configure: failed program was:" >&5
5345 cat conftest.$ac_ext >&5
5347 eval "ac_cv_func_select=no"
5352 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5353 echo "$ac_t""yes" 1>&6
5356 echo "$ac_t""no" 1>&6
5357 { echo "configure: error: select() required." 1>&2; exit 1; }
5361 if test "${ac_cv_header_winsock_h}" != yes; then
5362 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5363 echo "configure:5364: checking types of arguments for select()" >&5
5364 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5365 echo $ac_n "(cached) $ac_c" 1>&6
5367 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5368 echo $ac_n "(cached) $ac_c" 1>&6
5370 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5374 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5375 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5379 #ifdef HAVE_SYS_TYPES_H
5380 #include <sys/types.h>
5382 #ifdef HAVE_SYS_TIME_H
5383 #include <sys/time.h>
5385 #ifdef HAVE_SYS_SELECT_H
5386 #include <sys/select.h>
5388 #ifdef HAVE_SYS_SOCKET_H
5389 #include <sys/socket.h>
5391 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);
5396 if { (eval echo configure:5397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5398 ac_not_found=no ; break 3
5400 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5415 if test "$ac_not_found" = yes; then
5416 ac_cv_func_select_arg1=int
5417 ac_cv_func_select_arg234='int *'
5418 ac_cv_func_select_arg5='struct timeval *'
5420 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5421 cat >> confdefs.h <<EOF
5422 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5425 cat >> confdefs.h <<EOF
5426 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5429 cat >> confdefs.h <<EOF
5430 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5437 for ac_hdr in regex.h
5439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5441 echo "configure:5442: checking for $ac_hdr" >&5
5442 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6
5445 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure"
5447 #include "confdefs.h"
5450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5451 { (eval echo configure:5452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5453 if test -z "$ac_err"; then
5455 eval "ac_cv_header_$ac_safe=yes"
5458 echo "configure: failed program was:" >&5
5459 cat conftest.$ac_ext >&5
5461 eval "ac_cv_header_$ac_safe=no"
5465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5466 echo "$ac_t""yes" 1>&6
5467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5468 cat >> confdefs.h <<EOF
5469 #define $ac_tr_hdr 1
5473 echo "$ac_t""no" 1>&6
5477 if test "$ac_cv_header_regex_h" != yes ; then
5478 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5480 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5481 echo "configure:5482: checking for regfree" >&5
5482 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5485 cat > conftest.$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5488 /* System header to define __stub macros and hopefully few prototypes,
5489 which can conflict with char regfree(); below. */
5491 /* Override any gcc2 internal prototype to avoid an error. */
5492 /* We use char because int might match the return type of a gcc2
5493 builtin and then its argument prototype would still apply. */
5499 /* The GNU C library defines this for functions which it implements
5500 to always fail with ENOSYS. Some functions are actually named
5501 something starting with __ and the normal name is an alias. */
5502 #if defined (__stub_regfree) || defined (__stub___regfree)
5510 if { (eval echo configure:5511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5512 eval "ac_cv_func_regfree=yes"
5514 echo "configure: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5517 eval "ac_cv_func_regfree=no"
5522 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5523 echo "$ac_t""yes" 1>&6
5526 echo "$ac_t""no" 1>&6
5527 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5532 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5533 echo "configure:5534: checking for compatible POSIX regex" >&5
5534 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5538 if test "$cross_compiling" = yes; then
5539 ol_cv_c_posix_regex=cross
5541 cat > conftest.$ac_ext <<EOF
5542 #line 5543 "configure"
5543 #include "confdefs.h"
5545 #include <sys/types.h>
5547 static char *pattern, *string;
5555 if(regcomp(&re, pattern, 0)) {
5559 string = "ALL MATCH";
5561 rc = regexec(&re, string, 0, (void*)0, 0);
5568 if { (eval echo configure:5569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5570 ol_cv_c_posix_regex=yes
5572 echo "configure: failed program was:" >&5
5573 cat conftest.$ac_ext >&5
5575 ol_cv_c_posix_regex=no
5582 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5584 if test "$ol_cv_c_posix_regex" = no ; then
5585 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5588 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5589 echo "configure:5590: checking for res_search" >&5
5590 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5591 echo $ac_n "(cached) $ac_c" 1>&6
5593 cat > conftest.$ac_ext <<EOF
5594 #line 5595 "configure"
5595 #include "confdefs.h"
5596 /* System header to define __stub macros and hopefully few prototypes,
5597 which can conflict with char res_search(); below. */
5599 /* Override any gcc2 internal prototype to avoid an error. */
5600 /* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */
5607 /* The GNU C library defines this for functions which it implements
5608 to always fail with ENOSYS. Some functions are actually named
5609 something starting with __ and the normal name is an alias. */
5610 #if defined (__stub_res_search) || defined (__stub___res_search)
5618 if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5620 eval "ac_cv_func_res_search=yes"
5622 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5625 eval "ac_cv_func_res_search=no"
5630 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5631 echo "$ac_t""yes" 1>&6
5634 echo "$ac_t""no" 1>&6
5637 if test $ac_cv_func_res_search = no ; then
5638 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5639 echo "configure:5640: checking for res_search in -lbind" >&5
5640 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5641 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5642 echo $ac_n "(cached) $ac_c" 1>&6
5644 ac_save_LIBS="$LIBS"
5646 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure"
5648 #include "confdefs.h"
5649 /* Override any gcc2 internal prototype to avoid an error. */
5650 /* We use char because int might match the return type of a gcc2
5651 builtin and then its argument prototype would still apply. */
5658 if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5660 eval "ac_cv_lib_$ac_lib_var=yes"
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5665 eval "ac_cv_lib_$ac_lib_var=no"
5668 LIBS="$ac_save_LIBS"
5671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5672 echo "$ac_t""yes" 1>&6
5673 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5674 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5675 cat >> confdefs.h <<EOF
5676 #define $ac_tr_lib 1
5682 echo "$ac_t""no" 1>&6
5685 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5688 if test $ac_cv_func_res_search = no ; then
5689 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5690 echo "configure:5691: checking for __res_search in -lbind" >&5
5691 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5692 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5693 echo $ac_n "(cached) $ac_c" 1>&6
5695 ac_save_LIBS="$LIBS"
5697 cat > conftest.$ac_ext <<EOF
5698 #line 5699 "configure"
5699 #include "confdefs.h"
5700 /* Override any gcc2 internal prototype to avoid an error. */
5701 /* We use char because int might match the return type of a gcc2
5702 builtin and then its argument prototype would still apply. */
5703 char __res_search();
5709 if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5711 eval "ac_cv_lib_$ac_lib_var=yes"
5713 echo "configure: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5716 eval "ac_cv_lib_$ac_lib_var=no"
5719 LIBS="$ac_save_LIBS"
5722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5723 echo "$ac_t""yes" 1>&6
5724 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5725 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5726 cat >> confdefs.h <<EOF
5727 #define $ac_tr_lib 1
5733 echo "$ac_t""no" 1>&6
5736 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5739 if test $ac_cv_func_res_search = no ; then
5740 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5741 echo "configure:5742: checking for res_search in -lresolv" >&5
5742 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5743 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5744 echo $ac_n "(cached) $ac_c" 1>&6
5746 ac_save_LIBS="$LIBS"
5747 LIBS="-lresolv $LIBS"
5748 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5751 /* Override any gcc2 internal prototype to avoid an error. */
5752 /* We use char because int might match the return type of a gcc2
5753 builtin and then its argument prototype would still apply. */
5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5762 eval "ac_cv_lib_$ac_lib_var=yes"
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5767 eval "ac_cv_lib_$ac_lib_var=no"
5770 LIBS="$ac_save_LIBS"
5773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5774 echo "$ac_t""yes" 1>&6
5775 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5776 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5777 cat >> confdefs.h <<EOF
5778 #define $ac_tr_lib 1
5781 LIBS="-lresolv $LIBS"
5784 echo "$ac_t""no" 1>&6
5787 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5790 if test "$ac_cv_func_res_search" = yes ; then
5791 cat >> confdefs.h <<\EOF
5792 #define HAVE_RES_SEARCH 1
5795 elif test $ol_enable_dns = yes ; then
5796 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5797 elif test $ol_enable_dns != no ; then
5798 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5803 if test $ol_enable_ldapd != no ; then
5804 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5806 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5807 echo "configure:5808: checking for main in -lxtpp" >&5
5808 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5809 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5810 echo $ac_n "(cached) $ac_c" 1>&6
5812 ac_save_LIBS="$LIBS"
5813 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5814 cat > conftest.$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5822 if { (eval echo configure:5823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5824 eval "ac_cv_lib_$ac_lib_var=yes"
5826 echo "configure: failed program was:" >&5
5827 cat conftest.$ac_ext >&5
5829 eval "ac_cv_lib_$ac_lib_var=no"
5832 LIBS="$ac_save_LIBS"
5835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5836 echo "$ac_t""yes" 1>&6
5839 cat >> confdefs.h <<\EOF
5843 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5846 echo "$ac_t""no" 1>&6
5850 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5851 echo "configure:5852: checking for main in -ldsap" >&5
5852 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5853 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5856 ac_save_LIBS="$LIBS"
5857 LIBS="-ldsap -lisode $LIBS"
5858 cat > conftest.$ac_ext <<EOF
5859 #line 5860 "configure"
5860 #include "confdefs.h"
5866 if { (eval echo configure:5867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5868 eval "ac_cv_lib_$ac_lib_var=yes"
5870 echo "configure: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5873 eval "ac_cv_lib_$ac_lib_var=no"
5876 LIBS="$ac_save_LIBS"
5879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5880 echo "$ac_t""yes" 1>&6
5883 cat >> confdefs.h <<\EOF
5887 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5890 echo "$ac_t""no" 1>&6
5894 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5895 echo "configure:5896: checking for main in -lisode" >&5
5896 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5897 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5898 echo $ac_n "(cached) $ac_c" 1>&6
5900 ac_save_LIBS="$LIBS"
5901 LIBS="-lisode $LIBS"
5902 cat > conftest.$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5910 if { (eval echo configure:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5912 eval "ac_cv_lib_$ac_lib_var=yes"
5914 echo "configure: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5917 eval "ac_cv_lib_$ac_lib_var=no"
5920 LIBS="$ac_save_LIBS"
5923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5924 echo "$ac_t""yes" 1>&6
5927 cat >> confdefs.h <<\EOF
5928 #define HAVE_ISODE 1
5931 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5934 echo "$ac_t""no" 1>&6
5940 if test $ol_link_isode != no; then
5941 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5942 echo "configure:5943: checking for main in -lpp" >&5
5943 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5944 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5945 echo $ac_n "(cached) $ac_c" 1>&6
5947 ac_save_LIBS="$LIBS"
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5959 eval "ac_cv_lib_$ac_lib_var=yes"
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5964 eval "ac_cv_lib_$ac_lib_var=no"
5967 LIBS="$ac_save_LIBS"
5970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5971 echo "$ac_t""yes" 1>&6
5973 cat >> confdefs.h <<\EOF
5977 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5980 echo "$ac_t""no" 1>&6
5985 # Extract the first word of "pepsy", so it can be a program name with args.
5986 set dummy pepsy; ac_word=$2
5987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5988 echo "configure:5989: checking for $ac_word" >&5
5989 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5994 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5997 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
6000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6002 for ac_dir in $ac_dummy; do
6003 test -z "$ac_dir" && ac_dir=.
6004 if test -f $ac_dir/$ac_word; then
6005 ac_cv_path_PEPSY="$ac_dir/$ac_word"
6013 PEPSY="$ac_cv_path_PEPSY"
6014 if test -n "$PEPSY"; then
6015 echo "$ac_t""$PEPSY" 1>&6
6017 echo "$ac_t""no" 1>&6
6022 if test $ol_enable_quipu != no ; then
6023 for ac_hdr in quipu/commonarg.h
6025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6027 echo "configure:6028: checking for $ac_hdr" >&5
6028 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6031 cat > conftest.$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6037 { (eval echo configure:6038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6039 if test -z "$ac_err"; then
6041 eval "ac_cv_header_$ac_safe=yes"
6044 echo "configure: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6047 eval "ac_cv_header_$ac_safe=no"
6051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6052 echo "$ac_t""yes" 1>&6
6053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6054 cat >> confdefs.h <<EOF
6055 #define $ac_tr_hdr 1
6059 echo "$ac_t""no" 1>&6
6064 if test $ac_cv_header_quipu_commonarg_h = yes ; then
6066 elif test $ol_enable_quipu = auto ; then
6067 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
6069 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
6078 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
6079 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
6081 for ac_hdr in krb5.h
6083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6085 echo "configure:6086: checking for $ac_hdr" >&5
6086 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6087 echo $ac_n "(cached) $ac_c" 1>&6
6089 cat > conftest.$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6095 { (eval echo configure:6096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6097 if test -z "$ac_err"; then
6099 eval "ac_cv_header_$ac_safe=yes"
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6105 eval "ac_cv_header_$ac_safe=no"
6109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6110 echo "$ac_t""yes" 1>&6
6111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6112 cat >> confdefs.h <<EOF
6113 #define $ac_tr_hdr 1
6117 echo "$ac_t""no" 1>&6
6122 if test $ac_cv_header_krb5_h = yes ; then
6123 for ac_hdr in heim_err.h
6125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6127 echo "configure:6128: checking for $ac_hdr" >&5
6128 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6129 echo $ac_n "(cached) $ac_c" 1>&6
6131 cat > conftest.$ac_ext <<EOF
6132 #line 6133 "configure"
6133 #include "confdefs.h"
6136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6137 { (eval echo configure:6138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6139 if test -z "$ac_err"; then
6141 eval "ac_cv_header_$ac_safe=yes"
6144 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6147 eval "ac_cv_header_$ac_safe=no"
6151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6152 echo "$ac_t""yes" 1>&6
6153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6154 cat >> confdefs.h <<EOF
6155 #define $ac_tr_hdr 1
6159 echo "$ac_t""no" 1>&6
6163 if test $ac_cv_header_heim_err_h = yes ; then
6169 if test $krb5_impl = mit; then
6170 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6171 echo "configure:6172: checking for main in -lkrb5" >&5
6172 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6173 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6174 echo $ac_n "(cached) $ac_c" 1>&6
6176 ac_save_LIBS="$LIBS"
6177 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6186 if { (eval echo configure:6187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6188 eval "ac_cv_lib_$ac_lib_var=yes"
6190 echo "configure: failed program was:" >&5
6191 cat conftest.$ac_ext >&5
6193 eval "ac_cv_lib_$ac_lib_var=no"
6196 LIBS="$ac_save_LIBS"
6199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6200 echo "$ac_t""yes" 1>&6
6202 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6204 echo "$ac_t""no" 1>&6
6209 elif test $krb5_impl = heimdal; then
6210 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6211 echo "configure:6212: checking for main in -lkrb5" >&5
6212 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6213 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6216 ac_save_LIBS="$LIBS"
6217 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6218 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure"
6220 #include "confdefs.h"
6226 if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6228 eval "ac_cv_lib_$ac_lib_var=yes"
6230 echo "configure: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6233 eval "ac_cv_lib_$ac_lib_var=no"
6236 LIBS="$ac_save_LIBS"
6239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6240 echo "$ac_t""yes" 1>&6
6242 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6244 echo "$ac_t""no" 1>&6
6249 cat >> confdefs.h <<\EOF
6250 #define HAVE_HEIMDAL_KERBEROS 1
6255 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6258 if test $have_krb5 = yes ; then
6261 cat >> confdefs.h <<\EOF
6266 if test $ol_enable_kpasswd != no ; then
6267 ol_link_kpasswd=yes;
6270 if test $ol_with_kerberos = k5only ; then
6271 ol_with_kerberos=found
6274 elif test $ol_with_kerberos != auto ; then
6275 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6281 if test $ol_link_krb5 = yes -a \
6282 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6284 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6286 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6287 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6288 echo "configure:6289: checking for $ac_hdr" >&5
6289 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6292 cat > conftest.$ac_ext <<EOF
6293 #line 6294 "configure"
6294 #include "confdefs.h"
6297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6298 { (eval echo configure:6299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6300 if test -z "$ac_err"; then
6302 eval "ac_cv_header_$ac_safe=yes"
6305 echo "configure: failed program was:" >&5
6306 cat conftest.$ac_ext >&5
6308 eval "ac_cv_header_$ac_safe=no"
6312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6313 echo "$ac_t""yes" 1>&6
6314 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6315 cat >> confdefs.h <<EOF
6316 #define $ac_tr_hdr 1
6320 echo "$ac_t""no" 1>&6
6325 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6326 if test $krb5_impl = mit; then
6327 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6328 echo "configure:6329: checking for main in -lkrb4" >&5
6329 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6330 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6333 ac_save_LIBS="$LIBS"
6334 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6335 cat > conftest.$ac_ext <<EOF
6336 #line 6337 "configure"
6337 #include "confdefs.h"
6343 if { (eval echo configure:6344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6345 eval "ac_cv_lib_$ac_lib_var=yes"
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6350 eval "ac_cv_lib_$ac_lib_var=no"
6353 LIBS="$ac_save_LIBS"
6356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6357 echo "$ac_t""yes" 1>&6
6359 KRB4_LIBS="-lkrb4 -ldes425"
6361 echo "$ac_t""no" 1>&6
6366 elif test $krb5_impl = heimdal; then
6367 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6368 echo "configure:6369: checking for main in -lkrb4" >&5
6369 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6370 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6373 ac_save_LIBS="$LIBS"
6374 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6375 cat > conftest.$ac_ext <<EOF
6376 #line 6377 "configure"
6377 #include "confdefs.h"
6383 if { (eval echo configure:6384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6385 eval "ac_cv_lib_$ac_lib_var=yes"
6387 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6390 eval "ac_cv_lib_$ac_lib_var=no"
6393 LIBS="$ac_save_LIBS"
6396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6397 echo "$ac_t""yes" 1>&6
6401 echo "$ac_t""no" 1>&6
6408 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6411 if test $have_k425 = yes ; then
6412 ol_with_kerberos=found
6415 cat >> confdefs.h <<\EOF
6416 #define HAVE_KRB425 1
6419 cat >> confdefs.h <<\EOF
6424 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6425 echo "configure:6426: checking for des_debug in Kerberos libraries" >&5
6426 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6427 echo $ac_n "(cached) $ac_c" 1>&6
6431 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6432 cat > conftest.$ac_ext <<EOF
6433 #line 6434 "configure"
6434 #include "confdefs.h"
6436 #include <kerberosIV/krb.h>
6437 #include <kerberosIV/des.h>
6438 extern int des_debug;
6446 if { (eval echo configure:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6448 ol_cv_var_des_debug=yes
6450 echo "configure: failed program was:" >&5
6451 cat conftest.$ac_ext >&5
6453 ol_cv_var_des_debug=no
6460 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6462 if test $ol_cv_var_des_debug = yes ; then
6463 cat >> confdefs.h <<\EOF
6464 #define HAVE_DES_DEBUG 1
6474 if test $ol_link_krb5 = yes ; then
6475 ol_with_kerberos=found
6478 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6479 -o $ol_with_kerberos = kth ; then
6481 for ac_hdr in krb.h des.h krb-archaeology.h
6483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6485 echo "configure:6486: checking for $ac_hdr" >&5
6486 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6487 echo $ac_n "(cached) $ac_c" 1>&6
6489 cat > conftest.$ac_ext <<EOF
6490 #line 6491 "configure"
6491 #include "confdefs.h"
6494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6495 { (eval echo configure:6496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6497 if test -z "$ac_err"; then
6499 eval "ac_cv_header_$ac_safe=yes"
6502 echo "configure: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6505 eval "ac_cv_header_$ac_safe=no"
6509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6510 echo "$ac_t""yes" 1>&6
6511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6512 cat >> confdefs.h <<EOF
6513 #define $ac_tr_hdr 1
6517 echo "$ac_t""no" 1>&6
6522 if test $ac_cv_header_krb_h = yes ; then
6523 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6524 echo "configure:6525: checking for main in -lkrb" >&5
6525 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6526 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6529 ac_save_LIBS="$LIBS"
6530 LIBS="-lkrb -ldes $LIBS"
6531 cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6539 if { (eval echo configure:6540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6541 eval "ac_cv_lib_$ac_lib_var=yes"
6543 echo "configure: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6546 eval "ac_cv_lib_$ac_lib_var=no"
6549 LIBS="$ac_save_LIBS"
6552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6553 echo "$ac_t""yes" 1>&6
6556 echo "$ac_t""no" 1>&6
6561 if test $have_k4 = yes ; then
6562 ol_with_kerberos=found
6565 cat >> confdefs.h <<\EOF
6570 KRB4_LIBS="-lkrb -ldes"
6572 if test $ac_cv_header_krb_archaeology_h = yes ; then
6573 cat >> confdefs.h <<\EOF
6574 #define HAVE_KTH_KERBEROS 1
6582 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6583 ol_link_kpasswd=yes;
6586 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6587 cat >> confdefs.h <<\EOF
6588 #define HAVE_KERBEROS 1
6592 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6593 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6597 if test $ol_with_tls != no ; then
6599 for ac_hdr in openssl/ssl.h ssl.h
6601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6603 echo "configure:6604: checking for $ac_hdr" >&5
6604 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6605 echo $ac_n "(cached) $ac_c" 1>&6
6607 cat > conftest.$ac_ext <<EOF
6608 #line 6609 "configure"
6609 #include "confdefs.h"
6612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6613 { (eval echo configure:6614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6615 if test -z "$ac_err"; then
6617 eval "ac_cv_header_$ac_safe=yes"
6620 echo "configure: failed program was:" >&5
6621 cat conftest.$ac_ext >&5
6623 eval "ac_cv_header_$ac_safe=no"
6627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6628 echo "$ac_t""yes" 1>&6
6629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6630 cat >> confdefs.h <<EOF
6631 #define $ac_tr_hdr 1
6635 echo "$ac_t""no" 1>&6
6640 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6641 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6642 echo "configure:6643: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6643 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6644 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6
6647 ac_save_LIBS="$LIBS"
6648 LIBS="-lssl -lcrypto $LIBS"
6649 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6652 /* Override any gcc2 internal prototype to avoid an error. */
6653 /* We use char because int might match the return type of a gcc2
6654 builtin and then its argument prototype would still apply. */
6655 char SSLeay_add_ssl_algorithms();
6658 SSLeay_add_ssl_algorithms()
6661 if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6663 eval "ac_cv_lib_$ac_lib_var=yes"
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 eval "ac_cv_lib_$ac_lib_var=no"
6671 LIBS="$ac_save_LIBS"
6674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6675 echo "$ac_t""yes" 1>&6
6679 echo "$ac_t""no" 1>&6
6684 if test $have_ssleay = no ; then
6685 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6686 echo "configure:6687: checking for SSL_library_init in -lssl" >&5
6687 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6688 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6689 echo $ac_n "(cached) $ac_c" 1>&6
6691 ac_save_LIBS="$LIBS"
6692 LIBS="-lssl -lcrypto $LIBS"
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6696 /* Override any gcc2 internal prototype to avoid an error. */
6697 /* We use char because int might match the return type of a gcc2
6698 builtin and then its argument prototype would still apply. */
6699 char SSL_library_init();
6705 if { (eval echo configure:6706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6707 eval "ac_cv_lib_$ac_lib_var=yes"
6709 echo "configure: failed program was:" >&5
6710 cat conftest.$ac_ext >&5
6712 eval "ac_cv_lib_$ac_lib_var=no"
6715 LIBS="$ac_save_LIBS"
6718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6719 echo "$ac_t""yes" 1>&6
6723 echo "$ac_t""no" 1>&6
6729 if test $have_ssleay = no ; then
6730 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6731 echo "configure:6732: checking for ssl3_accept in -lssl" >&5
6732 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6733 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6734 echo $ac_n "(cached) $ac_c" 1>&6
6736 ac_save_LIBS="$LIBS"
6737 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6738 cat > conftest.$ac_ext <<EOF
6739 #line 6740 "configure"
6740 #include "confdefs.h"
6741 /* Override any gcc2 internal prototype to avoid an error. */
6742 /* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */
6750 if { (eval echo configure:6751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6752 eval "ac_cv_lib_$ac_lib_var=yes"
6754 echo "configure: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6757 eval "ac_cv_lib_$ac_lib_var=no"
6760 LIBS="$ac_save_LIBS"
6763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6764 echo "$ac_t""yes" 1>&6
6768 echo "$ac_t""no" 1>&6
6774 if test $have_ssleay = yes ; then
6778 cat >> confdefs.h <<\EOF
6779 #define HAVE_SSLEAY 1
6783 if test $need_rsaref = yes; then
6784 cat >> confdefs.h <<\EOF
6785 #define HAVE_RSAREF 1
6789 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6791 TLS_LIBS="-lssl -lcrypto"
6797 if test $ol_link_tls = yes ; then
6798 cat >> confdefs.h <<\EOF
6806 gethostbyname_r gethostbyaddr_r \
6809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6810 echo "configure:6811: checking for $ac_func" >&5
6811 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6812 echo $ac_n "(cached) $ac_c" 1>&6
6814 cat > conftest.$ac_ext <<EOF
6815 #line 6816 "configure"
6816 #include "confdefs.h"
6817 /* System header to define __stub macros and hopefully few prototypes,
6818 which can conflict with char $ac_func(); below. */
6820 /* Override any gcc2 internal prototype to avoid an error. */
6821 /* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
6828 /* The GNU C library defines this for functions which it implements
6829 to always fail with ENOSYS. Some functions are actually named
6830 something starting with __ and the normal name is an alias. */
6831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6839 if { (eval echo configure:6840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6841 eval "ac_cv_func_$ac_func=yes"
6843 echo "configure: failed program was:" >&5
6844 cat conftest.$ac_ext >&5
6846 eval "ac_cv_func_$ac_func=no"
6851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6852 echo "$ac_t""yes" 1>&6
6853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6854 cat >> confdefs.h <<EOF
6855 #define $ac_tr_func 1
6859 echo "$ac_t""no" 1>&6
6864 if test "$ac_cv_func_ctime_r" = no ; then
6865 ol_cv_func_ctime_r_nargs=0
6867 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6868 echo "configure:6869: checking number of arguments of ctime_r" >&5
6869 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6870 echo $ac_n "(cached) $ac_c" 1>&6
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6877 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6880 if { (eval echo configure:6881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6882 ol_cv_func_ctime_r_nargs3=yes
6884 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6887 ol_cv_func_ctime_r_nargs3=no
6891 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6896 time_t ti; char *buffer; ctime_r(&ti,buffer);
6899 if { (eval echo configure:6900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6901 ol_cv_func_ctime_r_nargs2=yes
6903 echo "configure: failed program was:" >&5
6904 cat conftest.$ac_ext >&5
6906 ol_cv_func_ctime_r_nargs2=no
6910 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6911 $ol_cv_func_ctime_r_nargs2 = no ; then
6913 ol_cv_func_ctime_r_nargs=3
6915 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6916 $ol_cv_func_ctime_r_nargs2 = yes ; then
6918 ol_cv_func_ctime_r_nargs=2
6921 ol_cv_func_ctime_r_nargs=0
6926 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6928 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6929 cat >> confdefs.h <<EOF
6930 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6937 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6938 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6939 echo "configure:6940: checking number of arguments of gethostbyname_r" >&5
6940 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6941 echo $ac_n "(cached) $ac_c" 1>&6
6943 cat > conftest.$ac_ext <<EOF
6944 #line 6945 "configure"
6945 #include "confdefs.h"
6946 #include <sys/types.h>
6947 #include <sys/socket.h>
6948 #include <netinet/in.h>
6950 #define BUFSIZE (sizeof(struct hostent)+10)
6952 struct hostent hent; char buffer[BUFSIZE];
6953 int bufsize=BUFSIZE;int h_errno;
6954 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6955 buffer, bufsize, &h_errno);
6958 if { (eval echo configure:6959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6960 ol_cv_func_gethostbyname_r_nargs5=yes
6962 echo "configure: failed program was:" >&5
6963 cat conftest.$ac_ext >&5
6965 ol_cv_func_gethostbyname_r_nargs5=no
6969 cat > conftest.$ac_ext <<EOF
6970 #line 6971 "configure"
6971 #include "confdefs.h"
6972 #include <sys/types.h>
6973 #include <sys/socket.h>
6974 #include <netinet/in.h>
6976 #define BUFSIZE (sizeof(struct hostent)+10)
6978 struct hostent hent;struct hostent *rhent;
6979 char buffer[BUFSIZE];
6980 int bufsize=BUFSIZE;int h_errno;
6981 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6985 if { (eval echo configure:6986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6987 ol_cv_func_gethostbyname_r_nargs6=yes
6989 echo "configure: failed program was:" >&5
6990 cat conftest.$ac_ext >&5
6992 ol_cv_func_gethostbyname_r_nargs6=no
6996 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6997 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6999 ol_cv_func_gethostbyname_r_nargs=5
7001 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
7002 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
7004 ol_cv_func_gethostbyname_r_nargs=6
7007 ol_cv_func_gethostbyname_r_nargs=0
7012 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7013 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7014 cat >> confdefs.h <<EOF
7015 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7021 ol_cv_func_gethostbyname_r_nargs=0
7024 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7025 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7026 echo "configure:7027: checking number of arguments of gethostbyaddr_r" >&5
7027 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7033 #include <sys/types.h>
7034 #include <sys/socket.h>
7035 #include <netinet/in.h>
7037 #define BUFSIZE (sizeof(struct hostent)+10)
7039 struct hostent hent; char buffer[BUFSIZE];
7041 size_t alen=sizeof(struct in_addr);
7042 int bufsize=BUFSIZE;int h_errno;
7043 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7044 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7047 if { (eval echo configure:7048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7049 ol_cv_func_gethostbyaddr_r_nargs7=yes
7051 echo "configure: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7054 ol_cv_func_gethostbyaddr_r_nargs7=no
7058 cat > conftest.$ac_ext <<EOF
7059 #line 7060 "configure"
7060 #include "confdefs.h"
7061 #include <sys/types.h>
7062 #include <sys/socket.h>
7063 #include <netinet/in.h>
7065 #define BUFSIZE (sizeof(struct hostent)+10)
7067 struct hostent hent;
7068 struct hostent *rhent; char buffer[BUFSIZE];
7070 size_t alen=sizeof(struct in_addr);
7071 int bufsize=BUFSIZE;int h_errno;
7072 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7073 alen, AF_INET, &hent, buffer, bufsize,
7077 if { (eval echo configure:7078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7079 ol_cv_func_gethostbyaddr_r_nargs8=yes
7081 echo "configure: failed program was:" >&5
7082 cat conftest.$ac_ext >&5
7084 ol_cv_func_gethostbyaddr_r_nargs8=no
7088 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7089 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7091 ol_cv_func_gethostbyaddr_r_nargs=7
7093 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7094 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7096 ol_cv_func_gethostbyaddr_r_nargs=8
7099 ol_cv_func_gethostbyaddr_r_nargs=0
7104 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7105 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7106 cat >> confdefs.h <<EOF
7107 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7113 ol_cv_func_gethostbyaddr_r_nargs=0
7116 if test "$ac_cv_func_ctime_r" = yes \
7117 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7118 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7119 -a "$ac_cv_func_gethostbyname_r" = yes \
7120 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7121 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7122 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7123 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7124 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7127 cat >> confdefs.h <<\EOF
7128 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7135 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7136 -o $ol_with_threads = nt ; then
7139 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
7140 echo "configure:7141: checking for NT Threads" >&5
7141 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
7142 echo $ac_n "(cached) $ac_c" 1>&6
7145 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7146 echo "configure:7147: checking for _beginthread" >&5
7147 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7148 echo $ac_n "(cached) $ac_c" 1>&6
7150 cat > conftest.$ac_ext <<EOF
7151 #line 7152 "configure"
7152 #include "confdefs.h"
7153 /* System header to define __stub macros and hopefully few prototypes,
7154 which can conflict with char _beginthread(); below. */
7156 /* Override any gcc2 internal prototype to avoid an error. */
7157 /* We use char because int might match the return type of a gcc2
7158 builtin and then its argument prototype would still apply. */
7159 char _beginthread();
7164 /* The GNU C library defines this for functions which it implements
7165 to always fail with ENOSYS. Some functions are actually named
7166 something starting with __ and the normal name is an alias. */
7167 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7175 if { (eval echo configure:7176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7177 eval "ac_cv_func__beginthread=yes"
7179 echo "configure: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7182 eval "ac_cv_func__beginthread=no"
7187 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7188 echo "$ac_t""yes" 1>&6
7189 ol_cv_nt_threads=yes
7191 echo "$ac_t""no" 1>&6
7198 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7200 if test $ol_cv_nt_threads = yes ; then
7201 cat >> confdefs.h <<\EOF
7202 #define HAVE_NT_THREADS 1
7208 if test "$ol_cv_nt_threads" = yes ; then
7210 ol_with_threads=found
7211 ol_with_yielding_select=yes
7213 cat >> confdefs.h <<\EOF
7214 #define HAVE_NT_SERVICE_MANAGER 1
7217 cat >> confdefs.h <<\EOF
7218 #define HAVE_NT_EVENT_LOG 1
7223 if test $ol_with_threads = nt ; then
7224 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7228 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7229 -o $ol_with_threads = posix ; then
7231 for ac_hdr in pthread.h
7233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7235 echo "configure:7236: checking for $ac_hdr" >&5
7236 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7237 echo $ac_n "(cached) $ac_c" 1>&6
7239 cat > conftest.$ac_ext <<EOF
7240 #line 7241 "configure"
7241 #include "confdefs.h"
7244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7245 { (eval echo configure:7246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7247 if test -z "$ac_err"; then
7249 eval "ac_cv_header_$ac_safe=yes"
7252 echo "configure: failed program was:" >&5
7253 cat conftest.$ac_ext >&5
7255 eval "ac_cv_header_$ac_safe=no"
7259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7260 echo "$ac_t""yes" 1>&6
7261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7262 cat >> confdefs.h <<EOF
7263 #define $ac_tr_hdr 1
7267 echo "$ac_t""no" 1>&6
7272 if test $ac_cv_header_pthread_h = yes ; then
7273 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7274 echo "configure:7275: checking POSIX thread version" >&5
7275 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7276 echo $ac_n "(cached) $ac_c" 1>&6
7279 cat > conftest.$ac_ext <<EOF
7280 #line 7281 "configure"
7281 #include "confdefs.h"
7283 # include <pthread.h>
7284 /* this check could be improved */
7285 # ifdef PTHREAD_ONCE_INIT
7286 pthread_version_final;
7290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7291 egrep "pthread_version_final" >/dev/null 2>&1; then
7293 ol_pthread_final=yes
7301 cat > conftest.$ac_ext <<EOF
7302 #line 7303 "configure"
7303 #include "confdefs.h"
7305 # include <pthread.h>
7306 /* this check could be improved */
7307 # ifdef pthread_once_init
7308 pthread_version_draft4;
7312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7313 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7315 ol_pthread_draft4=yes
7318 ol_pthread_draft4=no
7323 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7324 ol_cv_pthread_version=final
7325 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7326 ol_cv_pthread_version=draft4
7328 ol_cv_pthread_version=unknown
7333 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7336 if test $ol_cv_pthread_version = final ; then
7337 cat >> confdefs.h <<\EOF
7338 #define HAVE_PTHREADS_FINAL 1
7341 elif test $ol_cv_pthread_version = draft4 ; then
7342 cat >> confdefs.h <<\EOF
7343 #define HAVE_PTHREADS_D4 1
7347 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7350 # consider threads found
7351 ol_with_threads=found
7354 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7355 echo "configure:7356: checking for LinuxThreads pthread.h" >&5
7356 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7357 echo $ac_n "(cached) $ac_c" 1>&6
7359 cat > conftest.$ac_ext <<EOF
7360 #line 7361 "configure"
7361 #include "confdefs.h"
7362 #include <pthread.h>
7364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7365 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7367 ol_cv_header_linux_threads=yes
7370 ol_cv_header_linux_threads=no
7377 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7378 if test $ol_cv_header_linux_threads = yes; then
7379 cat >> confdefs.h <<\EOF
7380 #define HAVE_LINUX_THREADS 1
7386 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7387 echo "configure:7388: checking for GNU Pth pthread.h" >&5
7388 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7389 echo $ac_n "(cached) $ac_c" 1>&6
7391 cat > conftest.$ac_ext <<EOF
7392 #line 7393 "configure"
7393 #include "confdefs.h"
7394 #include <pthread.h>
7395 #ifdef _POSIX_THREAD_IS_GNU_PTH
7400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7401 egrep "__gnu_pth__" >/dev/null 2>&1; then
7403 ol_cv_header_gnu_pth_pthread_h=yes
7406 ol_cv_header_gnu_pth_pthread_h=no
7413 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7416 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7417 for ac_hdr in sched.h
7419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7421 echo "configure:7422: checking for $ac_hdr" >&5
7422 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7423 echo $ac_n "(cached) $ac_c" 1>&6
7425 cat > conftest.$ac_ext <<EOF
7426 #line 7427 "configure"
7427 #include "confdefs.h"
7430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7431 { (eval echo configure:7432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7433 if test -z "$ac_err"; then
7435 eval "ac_cv_header_$ac_safe=yes"
7438 echo "configure: failed program was:" >&5
7439 cat conftest.$ac_ext >&5
7441 eval "ac_cv_header_$ac_safe=no"
7445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7446 echo "$ac_t""yes" 1>&6
7447 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7448 cat >> confdefs.h <<EOF
7449 #define $ac_tr_hdr 1
7453 echo "$ac_t""no" 1>&6
7460 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7461 echo "configure:7462: checking for pthread_create in default libraries" >&5
7462 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6
7466 if test "$cross_compiling" = yes; then
7467 cat > conftest.$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7470 /* pthread test headers */
7471 #include <pthread.h>
7473 #define NULL (void*)0
7476 static void *task(p)
7479 return (void *) (p == NULL);
7484 /* pthread test function */
7487 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7488 /* This system (e.g. AIX) defaults detached; must override */
7489 pthread_attr_t attr;
7491 status = pthread_attr_init(&attr);
7492 if( status ) exit( status );
7494 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7495 if( status ) exit( status );
7499 #if HAVE_PTHREADS_D4
7500 #define ATTR pthread_attr_default
7505 /* make sure pthread_create() isn't just a stub */
7506 status = pthread_create(&t, ATTR, task, NULL);
7507 if( status ) exit( status );
7509 /* make sure pthread_detach() isn't just a stub */
7510 #if HAVE_PTHREADS_D4
7511 status = pthread_detach( &t );
7513 status = pthread_detach( t );
7516 #ifdef HAVE_LINUX_THREADS
7517 pthread_kill_other_threads_np();
7524 if { (eval echo configure:7525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7526 ol_cv_pthread_create=yes
7528 echo "configure: failed program was:" >&5
7529 cat conftest.$ac_ext >&5
7531 ol_cv_pthread_create=no
7535 cat > conftest.$ac_ext <<EOF
7536 #line 7537 "configure"
7537 #include "confdefs.h"
7538 /* pthread test headers */
7539 #include <pthread.h>
7541 #define NULL (void*)0
7544 static void *task(p)
7547 return (void *) (p == NULL);
7551 int main(argc, argv)
7556 /* pthread test function */
7559 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7560 /* This system (e.g. AIX) defaults detached; must override */
7561 pthread_attr_t attr;
7563 status = pthread_attr_init(&attr);
7564 if( status ) exit( status );
7566 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7567 if( status ) exit( status );
7571 #if HAVE_PTHREADS_D4
7572 #define ATTR pthread_attr_default
7577 /* make sure pthread_create() isn't just a stub */
7578 status = pthread_create(&t, ATTR, task, NULL);
7579 if( status ) exit( status );
7581 /* make sure pthread_detach() isn't just a stub */
7582 #if HAVE_PTHREADS_D4
7583 status = pthread_detach( &t );
7585 status = pthread_detach( t );
7588 #ifdef HAVE_LINUX_THREADS
7589 pthread_kill_other_threads_np();
7597 if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7599 ol_cv_pthread_create=yes
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7604 ol_cv_pthread_create=no
7611 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7613 if test $ol_cv_pthread_create != no ; then
7614 ol_link_threads=posix
7618 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7619 if test "$ol_link_threads" = no ; then
7621 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7622 echo "configure:7623: checking for pthread link with -kthread" >&5
7623 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7629 LIBS="-kthread $LIBS"
7631 if test "$cross_compiling" = yes; then
7632 cat > conftest.$ac_ext <<EOF
7633 #line 7634 "configure"
7634 #include "confdefs.h"
7635 /* pthread test headers */
7636 #include <pthread.h>
7638 #define NULL (void*)0
7641 static void *task(p)
7644 return (void *) (p == NULL);
7649 /* pthread test function */
7652 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7653 /* This system (e.g. AIX) defaults detached; must override */
7654 pthread_attr_t attr;
7656 status = pthread_attr_init(&attr);
7657 if( status ) exit( status );
7659 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7660 if( status ) exit( status );
7664 #if HAVE_PTHREADS_D4
7665 #define ATTR pthread_attr_default
7670 /* make sure pthread_create() isn't just a stub */
7671 status = pthread_create(&t, ATTR, task, NULL);
7672 if( status ) exit( status );
7674 /* make sure pthread_detach() isn't just a stub */
7675 #if HAVE_PTHREADS_D4
7676 status = pthread_detach( &t );
7678 status = pthread_detach( t );
7681 #ifdef HAVE_LINUX_THREADS
7682 pthread_kill_other_threads_np();
7689 if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7691 ol_cv_pthread_kthread=yes
7693 echo "configure: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7696 ol_cv_pthread_kthread=no
7700 cat > conftest.$ac_ext <<EOF
7701 #line 7702 "configure"
7702 #include "confdefs.h"
7703 /* pthread test headers */
7704 #include <pthread.h>
7706 #define NULL (void*)0
7709 static void *task(p)
7712 return (void *) (p == NULL);
7716 int main(argc, argv)
7721 /* pthread test function */
7724 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7725 /* This system (e.g. AIX) defaults detached; must override */
7726 pthread_attr_t attr;
7728 status = pthread_attr_init(&attr);
7729 if( status ) exit( status );
7731 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7732 if( status ) exit( status );
7736 #if HAVE_PTHREADS_D4
7737 #define ATTR pthread_attr_default
7742 /* make sure pthread_create() isn't just a stub */
7743 status = pthread_create(&t, ATTR, task, NULL);
7744 if( status ) exit( status );
7746 /* make sure pthread_detach() isn't just a stub */
7747 #if HAVE_PTHREADS_D4
7748 status = pthread_detach( &t );
7750 status = pthread_detach( t );
7753 #ifdef HAVE_LINUX_THREADS
7754 pthread_kill_other_threads_np();
7762 if { (eval echo configure:7763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7764 ol_cv_pthread_kthread=yes
7766 echo "configure: failed program was:" >&5
7767 cat conftest.$ac_ext >&5
7769 ol_cv_pthread_kthread=no
7780 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7782 if test $ol_cv_pthread_kthread = yes ; then
7783 ol_link_pthreads="-kthread"
7784 ol_link_threads=posix
7788 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7789 if test "$ol_link_threads" = no ; then
7791 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7792 echo "configure:7793: checking for pthread link with -pthread" >&5
7793 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7794 echo $ac_n "(cached) $ac_c" 1>&6
7799 LIBS="-pthread $LIBS"
7801 if test "$cross_compiling" = yes; then
7802 cat > conftest.$ac_ext <<EOF
7803 #line 7804 "configure"
7804 #include "confdefs.h"
7805 /* pthread test headers */
7806 #include <pthread.h>
7808 #define NULL (void*)0
7811 static void *task(p)
7814 return (void *) (p == NULL);
7819 /* pthread test function */
7822 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7823 /* This system (e.g. AIX) defaults detached; must override */
7824 pthread_attr_t attr;
7826 status = pthread_attr_init(&attr);
7827 if( status ) exit( status );
7829 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7830 if( status ) exit( status );
7834 #if HAVE_PTHREADS_D4
7835 #define ATTR pthread_attr_default
7840 /* make sure pthread_create() isn't just a stub */
7841 status = pthread_create(&t, ATTR, task, NULL);
7842 if( status ) exit( status );
7844 /* make sure pthread_detach() isn't just a stub */
7845 #if HAVE_PTHREADS_D4
7846 status = pthread_detach( &t );
7848 status = pthread_detach( t );
7851 #ifdef HAVE_LINUX_THREADS
7852 pthread_kill_other_threads_np();
7859 if { (eval echo configure:7860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7861 ol_cv_pthread_pthread=yes
7863 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7866 ol_cv_pthread_pthread=no
7870 cat > conftest.$ac_ext <<EOF
7871 #line 7872 "configure"
7872 #include "confdefs.h"
7873 /* pthread test headers */
7874 #include <pthread.h>
7876 #define NULL (void*)0
7879 static void *task(p)
7882 return (void *) (p == NULL);
7886 int main(argc, argv)
7891 /* pthread test function */
7894 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7895 /* This system (e.g. AIX) defaults detached; must override */
7896 pthread_attr_t attr;
7898 status = pthread_attr_init(&attr);
7899 if( status ) exit( status );
7901 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7902 if( status ) exit( status );
7906 #if HAVE_PTHREADS_D4
7907 #define ATTR pthread_attr_default
7912 /* make sure pthread_create() isn't just a stub */
7913 status = pthread_create(&t, ATTR, task, NULL);
7914 if( status ) exit( status );
7916 /* make sure pthread_detach() isn't just a stub */
7917 #if HAVE_PTHREADS_D4
7918 status = pthread_detach( &t );
7920 status = pthread_detach( t );
7923 #ifdef HAVE_LINUX_THREADS
7924 pthread_kill_other_threads_np();
7932 if { (eval echo configure:7933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7934 ol_cv_pthread_pthread=yes
7936 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7939 ol_cv_pthread_pthread=no
7950 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7952 if test $ol_cv_pthread_pthread = yes ; then
7953 ol_link_pthreads="-pthread"
7954 ol_link_threads=posix
7958 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7959 if test "$ol_link_threads" = no ; then
7961 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7962 echo "configure:7963: checking for pthread link with -pthreads" >&5
7963 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7964 echo $ac_n "(cached) $ac_c" 1>&6
7969 LIBS="-pthreads $LIBS"
7971 if test "$cross_compiling" = yes; then
7972 cat > conftest.$ac_ext <<EOF
7973 #line 7974 "configure"
7974 #include "confdefs.h"
7975 /* pthread test headers */
7976 #include <pthread.h>
7978 #define NULL (void*)0
7981 static void *task(p)
7984 return (void *) (p == NULL);
7989 /* pthread test function */
7992 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7993 /* This system (e.g. AIX) defaults detached; must override */
7994 pthread_attr_t attr;
7996 status = pthread_attr_init(&attr);
7997 if( status ) exit( status );
7999 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8000 if( status ) exit( status );
8004 #if HAVE_PTHREADS_D4
8005 #define ATTR pthread_attr_default
8010 /* make sure pthread_create() isn't just a stub */
8011 status = pthread_create(&t, ATTR, task, NULL);
8012 if( status ) exit( status );
8014 /* make sure pthread_detach() isn't just a stub */
8015 #if HAVE_PTHREADS_D4
8016 status = pthread_detach( &t );
8018 status = pthread_detach( t );
8021 #ifdef HAVE_LINUX_THREADS
8022 pthread_kill_other_threads_np();
8029 if { (eval echo configure:8030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8031 ol_cv_pthread_pthreads=yes
8033 echo "configure: failed program was:" >&5
8034 cat conftest.$ac_ext >&5
8036 ol_cv_pthread_pthreads=no
8040 cat > conftest.$ac_ext <<EOF
8041 #line 8042 "configure"
8042 #include "confdefs.h"
8043 /* pthread test headers */
8044 #include <pthread.h>
8046 #define NULL (void*)0
8049 static void *task(p)
8052 return (void *) (p == NULL);
8056 int main(argc, argv)
8061 /* pthread test function */
8064 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8065 /* This system (e.g. AIX) defaults detached; must override */
8066 pthread_attr_t attr;
8068 status = pthread_attr_init(&attr);
8069 if( status ) exit( status );
8071 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8072 if( status ) exit( status );
8076 #if HAVE_PTHREADS_D4
8077 #define ATTR pthread_attr_default
8082 /* make sure pthread_create() isn't just a stub */
8083 status = pthread_create(&t, ATTR, task, NULL);
8084 if( status ) exit( status );
8086 /* make sure pthread_detach() isn't just a stub */
8087 #if HAVE_PTHREADS_D4
8088 status = pthread_detach( &t );
8090 status = pthread_detach( t );
8093 #ifdef HAVE_LINUX_THREADS
8094 pthread_kill_other_threads_np();
8102 if { (eval echo configure:8103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8104 ol_cv_pthread_pthreads=yes
8106 echo "configure: failed program was:" >&5
8107 cat conftest.$ac_ext >&5
8109 ol_cv_pthread_pthreads=no
8120 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8122 if test $ol_cv_pthread_pthreads = yes ; then
8123 ol_link_pthreads="-pthreads"
8124 ol_link_threads=posix
8128 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8129 if test "$ol_link_threads" = no ; then
8131 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8132 echo "configure:8133: checking for pthread link with -mthreads" >&5
8133 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8134 echo $ac_n "(cached) $ac_c" 1>&6
8139 LIBS="-mthreads $LIBS"
8141 if test "$cross_compiling" = yes; then
8142 cat > conftest.$ac_ext <<EOF
8143 #line 8144 "configure"
8144 #include "confdefs.h"
8145 /* pthread test headers */
8146 #include <pthread.h>
8148 #define NULL (void*)0
8151 static void *task(p)
8154 return (void *) (p == NULL);
8159 /* pthread test function */
8162 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8163 /* This system (e.g. AIX) defaults detached; must override */
8164 pthread_attr_t attr;
8166 status = pthread_attr_init(&attr);
8167 if( status ) exit( status );
8169 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8170 if( status ) exit( status );
8174 #if HAVE_PTHREADS_D4
8175 #define ATTR pthread_attr_default
8180 /* make sure pthread_create() isn't just a stub */
8181 status = pthread_create(&t, ATTR, task, NULL);
8182 if( status ) exit( status );
8184 /* make sure pthread_detach() isn't just a stub */
8185 #if HAVE_PTHREADS_D4
8186 status = pthread_detach( &t );
8188 status = pthread_detach( t );
8191 #ifdef HAVE_LINUX_THREADS
8192 pthread_kill_other_threads_np();
8199 if { (eval echo configure:8200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8201 ol_cv_pthread_mthreads=yes
8203 echo "configure: failed program was:" >&5
8204 cat conftest.$ac_ext >&5
8206 ol_cv_pthread_mthreads=no
8210 cat > conftest.$ac_ext <<EOF
8211 #line 8212 "configure"
8212 #include "confdefs.h"
8213 /* pthread test headers */
8214 #include <pthread.h>
8216 #define NULL (void*)0
8219 static void *task(p)
8222 return (void *) (p == NULL);
8226 int main(argc, argv)
8231 /* pthread test function */
8234 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8235 /* This system (e.g. AIX) defaults detached; must override */
8236 pthread_attr_t attr;
8238 status = pthread_attr_init(&attr);
8239 if( status ) exit( status );
8241 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8242 if( status ) exit( status );
8246 #if HAVE_PTHREADS_D4
8247 #define ATTR pthread_attr_default
8252 /* make sure pthread_create() isn't just a stub */
8253 status = pthread_create(&t, ATTR, task, NULL);
8254 if( status ) exit( status );
8256 /* make sure pthread_detach() isn't just a stub */
8257 #if HAVE_PTHREADS_D4
8258 status = pthread_detach( &t );
8260 status = pthread_detach( t );
8263 #ifdef HAVE_LINUX_THREADS
8264 pthread_kill_other_threads_np();
8272 if { (eval echo configure:8273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8274 ol_cv_pthread_mthreads=yes
8276 echo "configure: failed program was:" >&5
8277 cat conftest.$ac_ext >&5
8279 ol_cv_pthread_mthreads=no
8290 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8292 if test $ol_cv_pthread_mthreads = yes ; then
8293 ol_link_pthreads="-mthreads"
8294 ol_link_threads=posix
8298 # Pthread try link: -thread (ol_cv_pthread_thread)
8299 if test "$ol_link_threads" = no ; then
8301 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8302 echo "configure:8303: checking for pthread link with -thread" >&5
8303 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8304 echo $ac_n "(cached) $ac_c" 1>&6
8309 LIBS="-thread $LIBS"
8311 if test "$cross_compiling" = yes; then
8312 cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure"
8314 #include "confdefs.h"
8315 /* pthread test headers */
8316 #include <pthread.h>
8318 #define NULL (void*)0
8321 static void *task(p)
8324 return (void *) (p == NULL);
8329 /* pthread test function */
8332 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8333 /* This system (e.g. AIX) defaults detached; must override */
8334 pthread_attr_t attr;
8336 status = pthread_attr_init(&attr);
8337 if( status ) exit( status );
8339 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8340 if( status ) exit( status );
8344 #if HAVE_PTHREADS_D4
8345 #define ATTR pthread_attr_default
8350 /* make sure pthread_create() isn't just a stub */
8351 status = pthread_create(&t, ATTR, task, NULL);
8352 if( status ) exit( status );
8354 /* make sure pthread_detach() isn't just a stub */
8355 #if HAVE_PTHREADS_D4
8356 status = pthread_detach( &t );
8358 status = pthread_detach( t );
8361 #ifdef HAVE_LINUX_THREADS
8362 pthread_kill_other_threads_np();
8369 if { (eval echo configure:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8371 ol_cv_pthread_thread=yes
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8376 ol_cv_pthread_thread=no
8380 cat > conftest.$ac_ext <<EOF
8381 #line 8382 "configure"
8382 #include "confdefs.h"
8383 /* pthread test headers */
8384 #include <pthread.h>
8386 #define NULL (void*)0
8389 static void *task(p)
8392 return (void *) (p == NULL);
8396 int main(argc, argv)
8401 /* pthread test function */
8404 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8405 /* This system (e.g. AIX) defaults detached; must override */
8406 pthread_attr_t attr;
8408 status = pthread_attr_init(&attr);
8409 if( status ) exit( status );
8411 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8412 if( status ) exit( status );
8416 #if HAVE_PTHREADS_D4
8417 #define ATTR pthread_attr_default
8422 /* make sure pthread_create() isn't just a stub */
8423 status = pthread_create(&t, ATTR, task, NULL);
8424 if( status ) exit( status );
8426 /* make sure pthread_detach() isn't just a stub */
8427 #if HAVE_PTHREADS_D4
8428 status = pthread_detach( &t );
8430 status = pthread_detach( t );
8433 #ifdef HAVE_LINUX_THREADS
8434 pthread_kill_other_threads_np();
8442 if { (eval echo configure:8443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8444 ol_cv_pthread_thread=yes
8446 echo "configure: failed program was:" >&5
8447 cat conftest.$ac_ext >&5
8449 ol_cv_pthread_thread=no
8460 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8462 if test $ol_cv_pthread_thread = yes ; then
8463 ol_link_pthreads="-thread"
8464 ol_link_threads=posix
8469 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8470 if test "$ol_link_threads" = no ; then
8471 # try -lpthread -lmach -lexc -lc_r
8472 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8473 echo "configure:8474: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8474 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8475 echo $ac_n "(cached) $ac_c" 1>&6
8480 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8482 if test "$cross_compiling" = yes; then
8483 cat > conftest.$ac_ext <<EOF
8484 #line 8485 "configure"
8485 #include "confdefs.h"
8486 /* pthread test headers */
8487 #include <pthread.h>
8489 #define NULL (void*)0
8492 static void *task(p)
8495 return (void *) (p == NULL);
8500 /* pthread test function */
8503 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8504 /* This system (e.g. AIX) defaults detached; must override */
8505 pthread_attr_t attr;
8507 status = pthread_attr_init(&attr);
8508 if( status ) exit( status );
8510 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8511 if( status ) exit( status );
8515 #if HAVE_PTHREADS_D4
8516 #define ATTR pthread_attr_default
8521 /* make sure pthread_create() isn't just a stub */
8522 status = pthread_create(&t, ATTR, task, NULL);
8523 if( status ) exit( status );
8525 /* make sure pthread_detach() isn't just a stub */
8526 #if HAVE_PTHREADS_D4
8527 status = pthread_detach( &t );
8529 status = pthread_detach( t );
8532 #ifdef HAVE_LINUX_THREADS
8533 pthread_kill_other_threads_np();
8540 if { (eval echo configure:8541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8542 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8544 echo "configure: failed program was:" >&5
8545 cat conftest.$ac_ext >&5
8547 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8551 cat > conftest.$ac_ext <<EOF
8552 #line 8553 "configure"
8553 #include "confdefs.h"
8554 /* pthread test headers */
8555 #include <pthread.h>
8557 #define NULL (void*)0
8560 static void *task(p)
8563 return (void *) (p == NULL);
8567 int main(argc, argv)
8572 /* pthread test function */
8575 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8576 /* This system (e.g. AIX) defaults detached; must override */
8577 pthread_attr_t attr;
8579 status = pthread_attr_init(&attr);
8580 if( status ) exit( status );
8582 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8583 if( status ) exit( status );
8587 #if HAVE_PTHREADS_D4
8588 #define ATTR pthread_attr_default
8593 /* make sure pthread_create() isn't just a stub */
8594 status = pthread_create(&t, ATTR, task, NULL);
8595 if( status ) exit( status );
8597 /* make sure pthread_detach() isn't just a stub */
8598 #if HAVE_PTHREADS_D4
8599 status = pthread_detach( &t );
8601 status = pthread_detach( t );
8604 #ifdef HAVE_LINUX_THREADS
8605 pthread_kill_other_threads_np();
8613 if { (eval echo configure:8614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8615 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8617 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8620 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8631 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8633 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8634 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8635 ol_link_threads=posix
8639 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8640 if test "$ol_link_threads" = no ; then
8641 # try -lpthread -lmach -lexc
8642 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8643 echo "configure:8644: checking for pthread link with -lpthread -lmach -lexc" >&5
8644 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8645 echo $ac_n "(cached) $ac_c" 1>&6
8650 LIBS="-lpthread -lmach -lexc $LIBS"
8652 if test "$cross_compiling" = yes; then
8653 cat > conftest.$ac_ext <<EOF
8654 #line 8655 "configure"
8655 #include "confdefs.h"
8656 /* pthread test headers */
8657 #include <pthread.h>
8659 #define NULL (void*)0
8662 static void *task(p)
8665 return (void *) (p == NULL);
8670 /* pthread test function */
8673 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8674 /* This system (e.g. AIX) defaults detached; must override */
8675 pthread_attr_t attr;
8677 status = pthread_attr_init(&attr);
8678 if( status ) exit( status );
8680 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8681 if( status ) exit( status );
8685 #if HAVE_PTHREADS_D4
8686 #define ATTR pthread_attr_default
8691 /* make sure pthread_create() isn't just a stub */
8692 status = pthread_create(&t, ATTR, task, NULL);
8693 if( status ) exit( status );
8695 /* make sure pthread_detach() isn't just a stub */
8696 #if HAVE_PTHREADS_D4
8697 status = pthread_detach( &t );
8699 status = pthread_detach( t );
8702 #ifdef HAVE_LINUX_THREADS
8703 pthread_kill_other_threads_np();
8710 if { (eval echo configure:8711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8712 ol_cv_pthread_lpthread_lmach_lexc=yes
8714 echo "configure: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8717 ol_cv_pthread_lpthread_lmach_lexc=no
8721 cat > conftest.$ac_ext <<EOF
8722 #line 8723 "configure"
8723 #include "confdefs.h"
8724 /* pthread test headers */
8725 #include <pthread.h>
8727 #define NULL (void*)0
8730 static void *task(p)
8733 return (void *) (p == NULL);
8737 int main(argc, argv)
8742 /* pthread test function */
8745 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8746 /* This system (e.g. AIX) defaults detached; must override */
8747 pthread_attr_t attr;
8749 status = pthread_attr_init(&attr);
8750 if( status ) exit( status );
8752 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8753 if( status ) exit( status );
8757 #if HAVE_PTHREADS_D4
8758 #define ATTR pthread_attr_default
8763 /* make sure pthread_create() isn't just a stub */
8764 status = pthread_create(&t, ATTR, task, NULL);
8765 if( status ) exit( status );
8767 /* make sure pthread_detach() isn't just a stub */
8768 #if HAVE_PTHREADS_D4
8769 status = pthread_detach( &t );
8771 status = pthread_detach( t );
8774 #ifdef HAVE_LINUX_THREADS
8775 pthread_kill_other_threads_np();
8783 if { (eval echo configure:8784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8785 ol_cv_pthread_lpthread_lmach_lexc=yes
8787 echo "configure: failed program was:" >&5
8788 cat conftest.$ac_ext >&5
8790 ol_cv_pthread_lpthread_lmach_lexc=no
8801 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8803 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8804 ol_link_pthreads="-lpthread -lmach -lexc"
8805 ol_link_threads=posix
8810 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8811 if test "$ol_link_threads" = no ; then
8812 # try -lpthread -Wl,-woff,85
8813 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8814 echo "configure:8815: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8815 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8816 echo $ac_n "(cached) $ac_c" 1>&6
8821 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8823 if test "$cross_compiling" = yes; then
8824 cat > conftest.$ac_ext <<EOF
8825 #line 8826 "configure"
8826 #include "confdefs.h"
8827 /* pthread test headers */
8828 #include <pthread.h>
8830 #define NULL (void*)0
8833 static void *task(p)
8836 return (void *) (p == NULL);
8841 /* pthread test function */
8844 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8845 /* This system (e.g. AIX) defaults detached; must override */
8846 pthread_attr_t attr;
8848 status = pthread_attr_init(&attr);
8849 if( status ) exit( status );
8851 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8852 if( status ) exit( status );
8856 #if HAVE_PTHREADS_D4
8857 #define ATTR pthread_attr_default
8862 /* make sure pthread_create() isn't just a stub */
8863 status = pthread_create(&t, ATTR, task, NULL);
8864 if( status ) exit( status );
8866 /* make sure pthread_detach() isn't just a stub */
8867 #if HAVE_PTHREADS_D4
8868 status = pthread_detach( &t );
8870 status = pthread_detach( t );
8873 #ifdef HAVE_LINUX_THREADS
8874 pthread_kill_other_threads_np();
8881 if { (eval echo configure:8882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8883 ol_cv_pthread_lib_lpthread_woff=yes
8885 echo "configure: failed program was:" >&5
8886 cat conftest.$ac_ext >&5
8888 ol_cv_pthread_lib_lpthread_woff=no
8892 cat > conftest.$ac_ext <<EOF
8893 #line 8894 "configure"
8894 #include "confdefs.h"
8895 /* pthread test headers */
8896 #include <pthread.h>
8898 #define NULL (void*)0
8901 static void *task(p)
8904 return (void *) (p == NULL);
8908 int main(argc, argv)
8913 /* pthread test function */
8916 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8917 /* This system (e.g. AIX) defaults detached; must override */
8918 pthread_attr_t attr;
8920 status = pthread_attr_init(&attr);
8921 if( status ) exit( status );
8923 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8924 if( status ) exit( status );
8928 #if HAVE_PTHREADS_D4
8929 #define ATTR pthread_attr_default
8934 /* make sure pthread_create() isn't just a stub */
8935 status = pthread_create(&t, ATTR, task, NULL);
8936 if( status ) exit( status );
8938 /* make sure pthread_detach() isn't just a stub */
8939 #if HAVE_PTHREADS_D4
8940 status = pthread_detach( &t );
8942 status = pthread_detach( t );
8945 #ifdef HAVE_LINUX_THREADS
8946 pthread_kill_other_threads_np();
8954 if { (eval echo configure:8955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8956 ol_cv_pthread_lib_lpthread_woff=yes
8958 echo "configure: failed program was:" >&5
8959 cat conftest.$ac_ext >&5
8961 ol_cv_pthread_lib_lpthread_woff=no
8972 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8974 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8975 ol_link_pthreads="-lpthread -Wl,-woff,85"
8976 ol_link_threads=posix
8981 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8982 if test "$ol_link_threads" = no ; then
8984 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8985 echo "configure:8986: checking for pthread link with -lpthread" >&5
8986 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8992 LIBS="-lpthread $LIBS"
8994 if test "$cross_compiling" = yes; then
8995 cat > conftest.$ac_ext <<EOF
8996 #line 8997 "configure"
8997 #include "confdefs.h"
8998 /* pthread test headers */
8999 #include <pthread.h>
9001 #define NULL (void*)0
9004 static void *task(p)
9007 return (void *) (p == NULL);
9012 /* pthread test function */
9015 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9016 /* This system (e.g. AIX) defaults detached; must override */
9017 pthread_attr_t attr;
9019 status = pthread_attr_init(&attr);
9020 if( status ) exit( status );
9022 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9023 if( status ) exit( status );
9027 #if HAVE_PTHREADS_D4
9028 #define ATTR pthread_attr_default
9033 /* make sure pthread_create() isn't just a stub */
9034 status = pthread_create(&t, ATTR, task, NULL);
9035 if( status ) exit( status );
9037 /* make sure pthread_detach() isn't just a stub */
9038 #if HAVE_PTHREADS_D4
9039 status = pthread_detach( &t );
9041 status = pthread_detach( t );
9044 #ifdef HAVE_LINUX_THREADS
9045 pthread_kill_other_threads_np();
9052 if { (eval echo configure:9053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9054 ol_cv_pthread_lpthread=yes
9056 echo "configure: failed program was:" >&5
9057 cat conftest.$ac_ext >&5
9059 ol_cv_pthread_lpthread=no
9063 cat > conftest.$ac_ext <<EOF
9064 #line 9065 "configure"
9065 #include "confdefs.h"
9066 /* pthread test headers */
9067 #include <pthread.h>
9069 #define NULL (void*)0
9072 static void *task(p)
9075 return (void *) (p == NULL);
9079 int main(argc, argv)
9084 /* pthread test function */
9087 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9088 /* This system (e.g. AIX) defaults detached; must override */
9089 pthread_attr_t attr;
9091 status = pthread_attr_init(&attr);
9092 if( status ) exit( status );
9094 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9095 if( status ) exit( status );
9099 #if HAVE_PTHREADS_D4
9100 #define ATTR pthread_attr_default
9105 /* make sure pthread_create() isn't just a stub */
9106 status = pthread_create(&t, ATTR, task, NULL);
9107 if( status ) exit( status );
9109 /* make sure pthread_detach() isn't just a stub */
9110 #if HAVE_PTHREADS_D4
9111 status = pthread_detach( &t );
9113 status = pthread_detach( t );
9116 #ifdef HAVE_LINUX_THREADS
9117 pthread_kill_other_threads_np();
9125 if { (eval echo configure:9126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9127 ol_cv_pthread_lpthread=yes
9129 echo "configure: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9132 ol_cv_pthread_lpthread=no
9143 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9145 if test $ol_cv_pthread_lpthread = yes ; then
9146 ol_link_pthreads="-lpthread"
9147 ol_link_threads=posix
9151 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9152 if test "$ol_link_threads" = no ; then
9154 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9155 echo "configure:9156: checking for pthread link with -lc_r" >&5
9156 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9157 echo $ac_n "(cached) $ac_c" 1>&6
9164 if test "$cross_compiling" = yes; then
9165 cat > conftest.$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9168 /* pthread test headers */
9169 #include <pthread.h>
9171 #define NULL (void*)0
9174 static void *task(p)
9177 return (void *) (p == NULL);
9182 /* pthread test function */
9185 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9186 /* This system (e.g. AIX) defaults detached; must override */
9187 pthread_attr_t attr;
9189 status = pthread_attr_init(&attr);
9190 if( status ) exit( status );
9192 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9193 if( status ) exit( status );
9197 #if HAVE_PTHREADS_D4
9198 #define ATTR pthread_attr_default
9203 /* make sure pthread_create() isn't just a stub */
9204 status = pthread_create(&t, ATTR, task, NULL);
9205 if( status ) exit( status );
9207 /* make sure pthread_detach() isn't just a stub */
9208 #if HAVE_PTHREADS_D4
9209 status = pthread_detach( &t );
9211 status = pthread_detach( t );
9214 #ifdef HAVE_LINUX_THREADS
9215 pthread_kill_other_threads_np();
9222 if { (eval echo configure:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9224 ol_cv_pthread_lc_r=yes
9226 echo "configure: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9229 ol_cv_pthread_lc_r=no
9233 cat > conftest.$ac_ext <<EOF
9234 #line 9235 "configure"
9235 #include "confdefs.h"
9236 /* pthread test headers */
9237 #include <pthread.h>
9239 #define NULL (void*)0
9242 static void *task(p)
9245 return (void *) (p == NULL);
9249 int main(argc, argv)
9254 /* pthread test function */
9257 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9258 /* This system (e.g. AIX) defaults detached; must override */
9259 pthread_attr_t attr;
9261 status = pthread_attr_init(&attr);
9262 if( status ) exit( status );
9264 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9265 if( status ) exit( status );
9269 #if HAVE_PTHREADS_D4
9270 #define ATTR pthread_attr_default
9275 /* make sure pthread_create() isn't just a stub */
9276 status = pthread_create(&t, ATTR, task, NULL);
9277 if( status ) exit( status );
9279 /* make sure pthread_detach() isn't just a stub */
9280 #if HAVE_PTHREADS_D4
9281 status = pthread_detach( &t );
9283 status = pthread_detach( t );
9286 #ifdef HAVE_LINUX_THREADS
9287 pthread_kill_other_threads_np();
9295 if { (eval echo configure:9296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9297 ol_cv_pthread_lc_r=yes
9299 echo "configure: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9302 ol_cv_pthread_lc_r=no
9313 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9315 if test $ol_cv_pthread_lc_r = yes ; then
9316 ol_link_pthreads="-lc_r"
9317 ol_link_threads=posix
9322 # Pthread try link: -threads (ol_cv_pthread_threads)
9323 if test "$ol_link_threads" = no ; then
9325 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9326 echo "configure:9327: checking for pthread link with -threads" >&5
9327 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9333 LIBS="-threads $LIBS"
9335 if test "$cross_compiling" = yes; then
9336 cat > conftest.$ac_ext <<EOF
9337 #line 9338 "configure"
9338 #include "confdefs.h"
9339 /* pthread test headers */
9340 #include <pthread.h>
9342 #define NULL (void*)0
9345 static void *task(p)
9348 return (void *) (p == NULL);
9353 /* pthread test function */
9356 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9357 /* This system (e.g. AIX) defaults detached; must override */
9358 pthread_attr_t attr;
9360 status = pthread_attr_init(&attr);
9361 if( status ) exit( status );
9363 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9364 if( status ) exit( status );
9368 #if HAVE_PTHREADS_D4
9369 #define ATTR pthread_attr_default
9374 /* make sure pthread_create() isn't just a stub */
9375 status = pthread_create(&t, ATTR, task, NULL);
9376 if( status ) exit( status );
9378 /* make sure pthread_detach() isn't just a stub */
9379 #if HAVE_PTHREADS_D4
9380 status = pthread_detach( &t );
9382 status = pthread_detach( t );
9385 #ifdef HAVE_LINUX_THREADS
9386 pthread_kill_other_threads_np();
9393 if { (eval echo configure:9394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9395 ol_cv_pthread_threads=yes
9397 echo "configure: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9400 ol_cv_pthread_threads=no
9404 cat > conftest.$ac_ext <<EOF
9405 #line 9406 "configure"
9406 #include "confdefs.h"
9407 /* pthread test headers */
9408 #include <pthread.h>
9410 #define NULL (void*)0
9413 static void *task(p)
9416 return (void *) (p == NULL);
9420 int main(argc, argv)
9425 /* pthread test function */
9428 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9429 /* This system (e.g. AIX) defaults detached; must override */
9430 pthread_attr_t attr;
9432 status = pthread_attr_init(&attr);
9433 if( status ) exit( status );
9435 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9436 if( status ) exit( status );
9440 #if HAVE_PTHREADS_D4
9441 #define ATTR pthread_attr_default
9446 /* make sure pthread_create() isn't just a stub */
9447 status = pthread_create(&t, ATTR, task, NULL);
9448 if( status ) exit( status );
9450 /* make sure pthread_detach() isn't just a stub */
9451 #if HAVE_PTHREADS_D4
9452 status = pthread_detach( &t );
9454 status = pthread_detach( t );
9457 #ifdef HAVE_LINUX_THREADS
9458 pthread_kill_other_threads_np();
9466 if { (eval echo configure:9467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9468 ol_cv_pthread_threads=yes
9470 echo "configure: failed program was:" >&5
9471 cat conftest.$ac_ext >&5
9473 ol_cv_pthread_threads=no
9484 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9486 if test $ol_cv_pthread_threads = yes ; then
9487 ol_link_pthreads="-threads"
9488 ol_link_threads=posix
9493 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9494 if test "$ol_link_threads" = no ; then
9495 # try -lpthreads -lmach -lexc -lc_r
9496 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9497 echo "configure:9498: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9498 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9499 echo $ac_n "(cached) $ac_c" 1>&6
9504 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9506 if test "$cross_compiling" = yes; then
9507 cat > conftest.$ac_ext <<EOF
9508 #line 9509 "configure"
9509 #include "confdefs.h"
9510 /* pthread test headers */
9511 #include <pthread.h>
9513 #define NULL (void*)0
9516 static void *task(p)
9519 return (void *) (p == NULL);
9524 /* pthread test function */
9527 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9528 /* This system (e.g. AIX) defaults detached; must override */
9529 pthread_attr_t attr;
9531 status = pthread_attr_init(&attr);
9532 if( status ) exit( status );
9534 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9535 if( status ) exit( status );
9539 #if HAVE_PTHREADS_D4
9540 #define ATTR pthread_attr_default
9545 /* make sure pthread_create() isn't just a stub */
9546 status = pthread_create(&t, ATTR, task, NULL);
9547 if( status ) exit( status );
9549 /* make sure pthread_detach() isn't just a stub */
9550 #if HAVE_PTHREADS_D4
9551 status = pthread_detach( &t );
9553 status = pthread_detach( t );
9556 #ifdef HAVE_LINUX_THREADS
9557 pthread_kill_other_threads_np();
9564 if { (eval echo configure:9565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9566 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9571 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9575 cat > conftest.$ac_ext <<EOF
9576 #line 9577 "configure"
9577 #include "confdefs.h"
9578 /* pthread test headers */
9579 #include <pthread.h>
9581 #define NULL (void*)0
9584 static void *task(p)
9587 return (void *) (p == NULL);
9591 int main(argc, argv)
9596 /* pthread test function */
9599 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9600 /* This system (e.g. AIX) defaults detached; must override */
9601 pthread_attr_t attr;
9603 status = pthread_attr_init(&attr);
9604 if( status ) exit( status );
9606 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9607 if( status ) exit( status );
9611 #if HAVE_PTHREADS_D4
9612 #define ATTR pthread_attr_default
9617 /* make sure pthread_create() isn't just a stub */
9618 status = pthread_create(&t, ATTR, task, NULL);
9619 if( status ) exit( status );
9621 /* make sure pthread_detach() isn't just a stub */
9622 #if HAVE_PTHREADS_D4
9623 status = pthread_detach( &t );
9625 status = pthread_detach( t );
9628 #ifdef HAVE_LINUX_THREADS
9629 pthread_kill_other_threads_np();
9637 if { (eval echo configure:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9639 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9641 echo "configure: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9644 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9655 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9657 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9658 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9659 ol_link_threads=posix
9663 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9664 if test "$ol_link_threads" = no ; then
9665 # try -lpthreads -lmach -lexc
9666 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9667 echo "configure:9668: checking for pthread link with -lpthreads -lmach -lexc" >&5
9668 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9669 echo $ac_n "(cached) $ac_c" 1>&6
9674 LIBS="-lpthreads -lmach -lexc $LIBS"
9676 if test "$cross_compiling" = yes; then
9677 cat > conftest.$ac_ext <<EOF
9678 #line 9679 "configure"
9679 #include "confdefs.h"
9680 /* pthread test headers */
9681 #include <pthread.h>
9683 #define NULL (void*)0
9686 static void *task(p)
9689 return (void *) (p == NULL);
9694 /* pthread test function */
9697 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9698 /* This system (e.g. AIX) defaults detached; must override */
9699 pthread_attr_t attr;
9701 status = pthread_attr_init(&attr);
9702 if( status ) exit( status );
9704 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9705 if( status ) exit( status );
9709 #if HAVE_PTHREADS_D4
9710 #define ATTR pthread_attr_default
9715 /* make sure pthread_create() isn't just a stub */
9716 status = pthread_create(&t, ATTR, task, NULL);
9717 if( status ) exit( status );
9719 /* make sure pthread_detach() isn't just a stub */
9720 #if HAVE_PTHREADS_D4
9721 status = pthread_detach( &t );
9723 status = pthread_detach( t );
9726 #ifdef HAVE_LINUX_THREADS
9727 pthread_kill_other_threads_np();
9734 if { (eval echo configure:9735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9736 ol_cv_pthread_lpthreads_lmach_lexc=yes
9738 echo "configure: failed program was:" >&5
9739 cat conftest.$ac_ext >&5
9741 ol_cv_pthread_lpthreads_lmach_lexc=no
9745 cat > conftest.$ac_ext <<EOF
9746 #line 9747 "configure"
9747 #include "confdefs.h"
9748 /* pthread test headers */
9749 #include <pthread.h>
9751 #define NULL (void*)0
9754 static void *task(p)
9757 return (void *) (p == NULL);
9761 int main(argc, argv)
9766 /* pthread test function */
9769 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9770 /* This system (e.g. AIX) defaults detached; must override */
9771 pthread_attr_t attr;
9773 status = pthread_attr_init(&attr);
9774 if( status ) exit( status );
9776 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9777 if( status ) exit( status );
9781 #if HAVE_PTHREADS_D4
9782 #define ATTR pthread_attr_default
9787 /* make sure pthread_create() isn't just a stub */
9788 status = pthread_create(&t, ATTR, task, NULL);
9789 if( status ) exit( status );
9791 /* make sure pthread_detach() isn't just a stub */
9792 #if HAVE_PTHREADS_D4
9793 status = pthread_detach( &t );
9795 status = pthread_detach( t );
9798 #ifdef HAVE_LINUX_THREADS
9799 pthread_kill_other_threads_np();
9807 if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9809 ol_cv_pthread_lpthreads_lmach_lexc=yes
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9814 ol_cv_pthread_lpthreads_lmach_lexc=no
9825 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9827 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9828 ol_link_pthreads="-lpthreads -lmach -lexc"
9829 ol_link_threads=posix
9833 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9834 if test "$ol_link_threads" = no ; then
9835 # try -lpthreads -lexc
9836 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9837 echo "configure:9838: checking for pthread link with -lpthreads -lexc" >&5
9838 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9839 echo $ac_n "(cached) $ac_c" 1>&6
9844 LIBS="-lpthreads -lexc $LIBS"
9846 if test "$cross_compiling" = yes; then
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 /* pthread test headers */
9851 #include <pthread.h>
9853 #define NULL (void*)0
9856 static void *task(p)
9859 return (void *) (p == NULL);
9864 /* pthread test function */
9867 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9868 /* This system (e.g. AIX) defaults detached; must override */
9869 pthread_attr_t attr;
9871 status = pthread_attr_init(&attr);
9872 if( status ) exit( status );
9874 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9875 if( status ) exit( status );
9879 #if HAVE_PTHREADS_D4
9880 #define ATTR pthread_attr_default
9885 /* make sure pthread_create() isn't just a stub */
9886 status = pthread_create(&t, ATTR, task, NULL);
9887 if( status ) exit( status );
9889 /* make sure pthread_detach() isn't just a stub */
9890 #if HAVE_PTHREADS_D4
9891 status = pthread_detach( &t );
9893 status = pthread_detach( t );
9896 #ifdef HAVE_LINUX_THREADS
9897 pthread_kill_other_threads_np();
9904 if { (eval echo configure:9905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9906 ol_cv_pthread_lpthreads_lexc=yes
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9911 ol_cv_pthread_lpthreads_lexc=no
9915 cat > conftest.$ac_ext <<EOF
9916 #line 9917 "configure"
9917 #include "confdefs.h"
9918 /* pthread test headers */
9919 #include <pthread.h>
9921 #define NULL (void*)0
9924 static void *task(p)
9927 return (void *) (p == NULL);
9931 int main(argc, argv)
9936 /* pthread test function */
9939 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9940 /* This system (e.g. AIX) defaults detached; must override */
9941 pthread_attr_t attr;
9943 status = pthread_attr_init(&attr);
9944 if( status ) exit( status );
9946 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9947 if( status ) exit( status );
9951 #if HAVE_PTHREADS_D4
9952 #define ATTR pthread_attr_default
9957 /* make sure pthread_create() isn't just a stub */
9958 status = pthread_create(&t, ATTR, task, NULL);
9959 if( status ) exit( status );
9961 /* make sure pthread_detach() isn't just a stub */
9962 #if HAVE_PTHREADS_D4
9963 status = pthread_detach( &t );
9965 status = pthread_detach( t );
9968 #ifdef HAVE_LINUX_THREADS
9969 pthread_kill_other_threads_np();
9977 if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9979 ol_cv_pthread_lpthreads_lexc=yes
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9984 ol_cv_pthread_lpthreads_lexc=no
9995 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9997 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9998 ol_link_pthreads="-lpthreads -lexc"
9999 ol_link_threads=posix
10004 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10005 if test "$ol_link_threads" = no ; then
10007 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10008 echo "configure:10009: checking for pthread link with -lpthreads" >&5
10009 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10010 echo $ac_n "(cached) $ac_c" 1>&6
10015 LIBS="-lpthreads $LIBS"
10017 if test "$cross_compiling" = yes; then
10018 cat > conftest.$ac_ext <<EOF
10019 #line 10020 "configure"
10020 #include "confdefs.h"
10021 /* pthread test headers */
10022 #include <pthread.h>
10024 #define NULL (void*)0
10027 static void *task(p)
10030 return (void *) (p == NULL);
10035 /* pthread test function */
10038 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10039 /* This system (e.g. AIX) defaults detached; must override */
10040 pthread_attr_t attr;
10042 status = pthread_attr_init(&attr);
10043 if( status ) exit( status );
10045 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10046 if( status ) exit( status );
10050 #if HAVE_PTHREADS_D4
10051 #define ATTR pthread_attr_default
10056 /* make sure pthread_create() isn't just a stub */
10057 status = pthread_create(&t, ATTR, task, NULL);
10058 if( status ) exit( status );
10060 /* make sure pthread_detach() isn't just a stub */
10061 #if HAVE_PTHREADS_D4
10062 status = pthread_detach( &t );
10064 status = pthread_detach( t );
10067 #ifdef HAVE_LINUX_THREADS
10068 pthread_kill_other_threads_np();
10075 if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10077 ol_cv_pthread_lib_lpthreads=yes
10079 echo "configure: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10082 ol_cv_pthread_lib_lpthreads=no
10086 cat > conftest.$ac_ext <<EOF
10087 #line 10088 "configure"
10088 #include "confdefs.h"
10089 /* pthread test headers */
10090 #include <pthread.h>
10092 #define NULL (void*)0
10095 static void *task(p)
10098 return (void *) (p == NULL);
10102 int main(argc, argv)
10107 /* pthread test function */
10110 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10111 /* This system (e.g. AIX) defaults detached; must override */
10112 pthread_attr_t attr;
10114 status = pthread_attr_init(&attr);
10115 if( status ) exit( status );
10117 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10118 if( status ) exit( status );
10122 #if HAVE_PTHREADS_D4
10123 #define ATTR pthread_attr_default
10128 /* make sure pthread_create() isn't just a stub */
10129 status = pthread_create(&t, ATTR, task, NULL);
10130 if( status ) exit( status );
10132 /* make sure pthread_detach() isn't just a stub */
10133 #if HAVE_PTHREADS_D4
10134 status = pthread_detach( &t );
10136 status = pthread_detach( t );
10139 #ifdef HAVE_LINUX_THREADS
10140 pthread_kill_other_threads_np();
10148 if { (eval echo configure:10149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10150 ol_cv_pthread_lib_lpthreads=yes
10152 echo "configure: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10155 ol_cv_pthread_lib_lpthreads=no
10166 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10168 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10169 ol_link_pthreads="-lpthreads"
10170 ol_link_threads=posix
10175 if test $ol_link_threads != no ; then
10176 cat >> confdefs.h <<\EOF
10177 #define HAVE_PTHREADS 1
10181 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10183 save_CPPFLAGS="$CPPFLAGS"
10185 LIBS="$LTHREAD_LIBS $LIBS"
10187 for ac_func in sched_yield pthread_yield
10189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10190 echo "configure:10191: checking for $ac_func" >&5
10191 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10192 echo $ac_n "(cached) $ac_c" 1>&6
10194 cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure"
10196 #include "confdefs.h"
10197 /* System header to define __stub macros and hopefully few prototypes,
10198 which can conflict with char $ac_func(); below. */
10199 #include <assert.h>
10200 /* Override any gcc2 internal prototype to avoid an error. */
10201 /* We use char because int might match the return type of a gcc2
10202 builtin and then its argument prototype would still apply. */
10208 /* The GNU C library defines this for functions which it implements
10209 to always fail with ENOSYS. Some functions are actually named
10210 something starting with __ and the normal name is an alias. */
10211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10219 if { (eval echo configure:10220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10221 eval "ac_cv_func_$ac_func=yes"
10223 echo "configure: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10226 eval "ac_cv_func_$ac_func=no"
10231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10232 echo "$ac_t""yes" 1>&6
10233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10234 cat >> confdefs.h <<EOF
10235 #define $ac_tr_func 1
10239 echo "$ac_t""no" 1>&6
10244 if test $ac_cv_func_sched_yield = no -a \
10245 $ac_cv_func_pthread_yield = no ; then
10246 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10247 echo "configure:10248: checking for sched_yield in -lrt" >&5
10248 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10249 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10252 ac_save_LIBS="$LIBS"
10254 cat > conftest.$ac_ext <<EOF
10255 #line 10256 "configure"
10256 #include "confdefs.h"
10257 /* Override any gcc2 internal prototype to avoid an error. */
10258 /* We use char because int might match the return type of a gcc2
10259 builtin and then its argument prototype would still apply. */
10260 char sched_yield();
10266 if { (eval echo configure:10267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10268 eval "ac_cv_lib_$ac_lib_var=yes"
10270 echo "configure: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10273 eval "ac_cv_lib_$ac_lib_var=no"
10276 LIBS="$ac_save_LIBS"
10279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10280 echo "$ac_t""yes" 1>&6
10281 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10282 cat >> confdefs.h <<\EOF
10283 #define HAVE_SCHED_YIELD 1
10286 ac_cv_func_sched_yield=yes
10288 echo "$ac_t""no" 1>&6
10289 ac_cv_func_sched_yield=no
10293 if test $ac_cv_func_sched_yield = no -a \
10294 $ac_cv_func_pthread_yield = no ; then
10295 for ac_func in thr_yield
10297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10298 echo "configure:10299: checking for $ac_func" >&5
10299 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10300 echo $ac_n "(cached) $ac_c" 1>&6
10302 cat > conftest.$ac_ext <<EOF
10303 #line 10304 "configure"
10304 #include "confdefs.h"
10305 /* System header to define __stub macros and hopefully few prototypes,
10306 which can conflict with char $ac_func(); below. */
10307 #include <assert.h>
10308 /* Override any gcc2 internal prototype to avoid an error. */
10309 /* We use char because int might match the return type of a gcc2
10310 builtin and then its argument prototype would still apply. */
10316 /* The GNU C library defines this for functions which it implements
10317 to always fail with ENOSYS. Some functions are actually named
10318 something starting with __ and the normal name is an alias. */
10319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10327 if { (eval echo configure:10328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10329 eval "ac_cv_func_$ac_func=yes"
10331 echo "configure: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10334 eval "ac_cv_func_$ac_func=no"
10339 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10340 echo "$ac_t""yes" 1>&6
10341 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10342 cat >> confdefs.h <<EOF
10343 #define $ac_tr_func 1
10347 echo "$ac_t""no" 1>&6
10352 if test $ac_cv_func_sched_yield = no -a \
10353 $ac_cv_func_pthread_yield = no -a \
10354 "$ac_cv_func_thr_yield" = no ; then
10355 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10358 for ac_func in pthread_kill
10360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10361 echo "configure:10362: checking for $ac_func" >&5
10362 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10363 echo $ac_n "(cached) $ac_c" 1>&6
10365 cat > conftest.$ac_ext <<EOF
10366 #line 10367 "configure"
10367 #include "confdefs.h"
10368 /* System header to define __stub macros and hopefully few prototypes,
10369 which can conflict with char $ac_func(); below. */
10370 #include <assert.h>
10371 /* Override any gcc2 internal prototype to avoid an error. */
10372 /* We use char because int might match the return type of a gcc2
10373 builtin and then its argument prototype would still apply. */
10379 /* The GNU C library defines this for functions which it implements
10380 to always fail with ENOSYS. Some functions are actually named
10381 something starting with __ and the normal name is an alias. */
10382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10390 if { (eval echo configure:10391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10392 eval "ac_cv_func_$ac_func=yes"
10394 echo "configure: failed program was:" >&5
10395 cat conftest.$ac_ext >&5
10397 eval "ac_cv_func_$ac_func=no"
10402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10403 echo "$ac_t""yes" 1>&6
10404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10405 cat >> confdefs.h <<EOF
10406 #define $ac_tr_func 1
10410 echo "$ac_t""no" 1>&6
10415 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10416 echo "configure:10417: checking for pthread_detach with <pthread.h>" >&5
10417 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10418 echo $ac_n "(cached) $ac_c" 1>&6
10421 cat > conftest.$ac_ext <<EOF
10422 #line 10423 "configure"
10423 #include "confdefs.h"
10425 #include <pthread.h>
10427 #define NULL (void*)0
10431 pthread_detach(NULL);
10434 if { (eval echo configure:10435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10436 ol_cv_func_pthread_detach=yes
10438 echo "configure: failed program was:" >&5
10439 cat conftest.$ac_ext >&5
10441 ol_cv_func_pthread_detach=no
10447 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10449 if test $ol_cv_func_pthread_detach = no ; then
10450 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10453 cat >> confdefs.h <<\EOF
10454 #define HAVE_PTHREAD_DETACH 1
10459 pthread_setconcurrency \
10460 pthread_getconcurrency \
10461 thr_setconcurrency \
10462 thr_getconcurrency \
10465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10466 echo "configure:10467: checking for $ac_func" >&5
10467 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10468 echo $ac_n "(cached) $ac_c" 1>&6
10470 cat > conftest.$ac_ext <<EOF
10471 #line 10472 "configure"
10472 #include "confdefs.h"
10473 /* System header to define __stub macros and hopefully few prototypes,
10474 which can conflict with char $ac_func(); below. */
10475 #include <assert.h>
10476 /* Override any gcc2 internal prototype to avoid an error. */
10477 /* We use char because int might match the return type of a gcc2
10478 builtin and then its argument prototype would still apply. */
10484 /* The GNU C library defines this for functions which it implements
10485 to always fail with ENOSYS. Some functions are actually named
10486 something starting with __ and the normal name is an alias. */
10487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10495 if { (eval echo configure:10496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10497 eval "ac_cv_func_$ac_func=yes"
10499 echo "configure: failed program was:" >&5
10500 cat conftest.$ac_ext >&5
10502 eval "ac_cv_func_$ac_func=no"
10507 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10508 echo "$ac_t""yes" 1>&6
10509 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10510 cat >> confdefs.h <<EOF
10511 #define $ac_tr_func 1
10515 echo "$ac_t""no" 1>&6
10521 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
10522 echo "configure:10523: checking for pthread_kill_other_threads_np" >&5
10523 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
10524 echo $ac_n "(cached) $ac_c" 1>&6
10526 cat > conftest.$ac_ext <<EOF
10527 #line 10528 "configure"
10528 #include "confdefs.h"
10529 /* System header to define __stub macros and hopefully few prototypes,
10530 which can conflict with char pthread_kill_other_threads_np(); below. */
10531 #include <assert.h>
10532 /* Override any gcc2 internal prototype to avoid an error. */
10533 /* We use char because int might match the return type of a gcc2
10534 builtin and then its argument prototype would still apply. */
10535 char pthread_kill_other_threads_np();
10540 /* The GNU C library defines this for functions which it implements
10541 to always fail with ENOSYS. Some functions are actually named
10542 something starting with __ and the normal name is an alias. */
10543 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
10546 f = pthread_kill_other_threads_np;
10551 if { (eval echo configure:10552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10553 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
10555 echo "configure: failed program was:" >&5
10556 cat conftest.$ac_ext >&5
10558 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10563 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10564 echo "$ac_t""yes" 1>&6
10567 echo "$ac_t""no" 1>&6
10570 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10571 echo "configure:10572: checking for LinuxThreads implementation" >&5
10572 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10573 echo $ac_n "(cached) $ac_c" 1>&6
10575 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10578 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10583 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10584 echo "configure:10585: checking for LinuxThreads consistency" >&5
10585 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10586 echo $ac_n "(cached) $ac_c" 1>&6
10589 if test $ol_cv_header_linux_threads = yes -a \
10590 $ol_cv_sys_linux_threads = yes; then
10591 ol_cv_linux_threads=yes
10592 elif test $ol_cv_header_linux_threads = no -a \
10593 $ol_cv_sys_linux_threads = no; then
10594 ol_cv_linux_threads=no
10596 ol_cv_linux_threads=error
10601 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10604 if test $ol_cv_linux_threads = error; then
10605 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10608 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10609 echo "configure:10610: checking if pthread_create() works" >&5
10610 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10611 echo $ac_n "(cached) $ac_c" 1>&6
10614 if test "$cross_compiling" = yes; then
10615 ol_cv_pthread_create_works=yes
10617 cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10620 /* pthread test headers */
10621 #include <pthread.h>
10623 #define NULL (void*)0
10626 static void *task(p)
10629 return (void *) (p == NULL);
10633 int main(argc, argv)
10638 /* pthread test function */
10641 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10642 /* This system (e.g. AIX) defaults detached; must override */
10643 pthread_attr_t attr;
10645 status = pthread_attr_init(&attr);
10646 if( status ) exit( status );
10648 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10649 if( status ) exit( status );
10653 #if HAVE_PTHREADS_D4
10654 #define ATTR pthread_attr_default
10659 /* make sure pthread_create() isn't just a stub */
10660 status = pthread_create(&t, ATTR, task, NULL);
10661 if( status ) exit( status );
10663 /* make sure pthread_detach() isn't just a stub */
10664 #if HAVE_PTHREADS_D4
10665 status = pthread_detach( &t );
10667 status = pthread_detach( t );
10670 #ifdef HAVE_LINUX_THREADS
10671 pthread_kill_other_threads_np();
10679 if { (eval echo configure:10680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10681 ol_cv_pthread_create_works=yes
10683 echo "configure: failed program was:" >&5
10684 cat conftest.$ac_ext >&5
10686 ol_cv_pthread_create_works=no
10693 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10695 if test $ol_cv_pthread_create_works = no ; then
10696 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10699 if test $ol_with_yielding_select = auto ; then
10700 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10701 echo "configure:10702: checking if select yields when using pthreads" >&5
10702 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10703 echo $ac_n "(cached) $ac_c" 1>&6
10706 if test "$cross_compiling" = yes; then
10707 ol_cv_pthread_select_yields=cross
10709 cat > conftest.$ac_ext <<EOF
10710 #line 10711 "configure"
10711 #include "confdefs.h"
10713 #include <sys/types.h>
10714 #include <sys/time.h>
10715 #include <unistd.h>
10716 #include <pthread.h>
10718 #define NULL (void*) 0
10721 static int fildes[2];
10723 static void *task(p)
10735 FD_SET(fildes[0], &rfds);
10737 /* we're not interested in any fds */
10738 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10745 exit(0); /* if we exit here, the select blocked the whole process */
10748 int main(argc, argv)
10754 /* create a pipe to select */
10755 if(pipe(&fildes[0])) {
10760 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10761 (void) pthread_setconcurrency(2);
10763 #ifdef HAVE_THR_SETCONCURRENCY
10764 /* Set Solaris LWP concurrency to 2 */
10765 thr_setconcurrency(2);
10769 #if HAVE_PTHREADS_D4
10770 pthread_create(&t, pthread_attr_default, task, NULL);
10772 pthread_create(&t, NULL, task, NULL);
10775 #if HAVE_SCHED_YIELD
10776 sched_yield(); /* make sure task runs first */
10778 #ifdef HAVE_PTHREAD_YIELD
10779 pthread_yield(); /* make sure task runs first */
10786 if { (eval echo configure:10787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10788 ol_cv_pthread_select_yields=no
10790 echo "configure: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10793 ol_cv_pthread_select_yields=yes
10800 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10802 if test $ol_cv_pthread_select_yields = cross ; then
10803 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10806 if test $ol_cv_pthread_select_yields = yes ; then
10807 ol_with_yielding_select=yes
10811 CPPFLAGS="$save_CPPFLAGS"
10814 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10818 if test $ol_with_threads = posix ; then
10819 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10823 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10824 -o $ol_with_threads = mach ; then
10826 for ac_hdr in mach/cthreads.h
10828 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10830 echo "configure:10831: checking for $ac_hdr" >&5
10831 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10834 cat > conftest.$ac_ext <<EOF
10835 #line 10836 "configure"
10836 #include "confdefs.h"
10839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10840 { (eval echo configure:10841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10842 if test -z "$ac_err"; then
10844 eval "ac_cv_header_$ac_safe=yes"
10847 echo "configure: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10850 eval "ac_cv_header_$ac_safe=no"
10854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10855 echo "$ac_t""yes" 1>&6
10856 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10857 cat >> confdefs.h <<EOF
10858 #define $ac_tr_hdr 1
10862 echo "$ac_t""no" 1>&6
10866 if test $ac_cv_header_mach_cthreads_h = yes ; then
10867 ol_with_threads=found
10869 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10870 echo "configure:10871: checking for cthread_fork" >&5
10871 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10872 echo $ac_n "(cached) $ac_c" 1>&6
10874 cat > conftest.$ac_ext <<EOF
10875 #line 10876 "configure"
10876 #include "confdefs.h"
10877 /* System header to define __stub macros and hopefully few prototypes,
10878 which can conflict with char cthread_fork(); below. */
10879 #include <assert.h>
10880 /* Override any gcc2 internal prototype to avoid an error. */
10881 /* We use char because int might match the return type of a gcc2
10882 builtin and then its argument prototype would still apply. */
10883 char cthread_fork();
10888 /* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10899 if { (eval echo configure:10900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10901 eval "ac_cv_func_cthread_fork=yes"
10903 echo "configure: failed program was:" >&5
10904 cat conftest.$ac_ext >&5
10906 eval "ac_cv_func_cthread_fork=no"
10911 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10912 echo "$ac_t""yes" 1>&6
10913 ol_link_threads=yes
10915 echo "$ac_t""no" 1>&6
10919 if test $ol_link_threads = no ; then
10920 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10921 echo "configure:10922: checking for cthread_fork with -all_load" >&5
10922 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10923 echo $ac_n "(cached) $ac_c" 1>&6
10927 LIBS="-all_load $LIBS"
10928 cat > conftest.$ac_ext <<EOF
10929 #line 10930 "configure"
10930 #include "confdefs.h"
10931 #include <mach/cthreads.h>
10934 cthread_fork((void *)0, (void *)0);
10938 if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10940 ol_cv_cthread_all_load=yes
10942 echo "configure: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10945 ol_cv_cthread_all_load=no
10952 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10954 if test $ol_cv_cthread_all_load = yes ; then
10955 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10956 ol_link_threads=mach
10960 if test $ol_link_threads != no ; then
10961 : check for cthread specific functionality here
10962 cat >> confdefs.h <<\EOF
10963 #define HAVE_MACH_CTHREADS 1
10967 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10971 if test $ol_with_threads = mach ; then
10972 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10976 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10977 -o $ol_with_threads = pth ; then
10979 for ac_hdr in pth.h
10981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10983 echo "configure:10984: checking for $ac_hdr" >&5
10984 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10985 echo $ac_n "(cached) $ac_c" 1>&6
10987 cat > conftest.$ac_ext <<EOF
10988 #line 10989 "configure"
10989 #include "confdefs.h"
10992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10993 { (eval echo configure:10994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10995 if test -z "$ac_err"; then
10997 eval "ac_cv_header_$ac_safe=yes"
11000 echo "configure: failed program was:" >&5
11001 cat conftest.$ac_ext >&5
11003 eval "ac_cv_header_$ac_safe=no"
11007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11008 echo "$ac_t""yes" 1>&6
11009 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11010 cat >> confdefs.h <<EOF
11011 #define $ac_tr_hdr 1
11015 echo "$ac_t""no" 1>&6
11020 if test $ac_cv_header_pth_h = yes ; then
11021 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11022 echo "configure:11023: checking for pth_version in -lpth" >&5
11023 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11024 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11025 echo $ac_n "(cached) $ac_c" 1>&6
11027 ac_save_LIBS="$LIBS"
11029 cat > conftest.$ac_ext <<EOF
11030 #line 11031 "configure"
11031 #include "confdefs.h"
11032 /* Override any gcc2 internal prototype to avoid an error. */
11033 /* We use char because int might match the return type of a gcc2
11034 builtin and then its argument prototype would still apply. */
11035 char pth_version();
11041 if { (eval echo configure:11042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11043 eval "ac_cv_lib_$ac_lib_var=yes"
11045 echo "configure: failed program was:" >&5
11046 cat conftest.$ac_ext >&5
11048 eval "ac_cv_lib_$ac_lib_var=no"
11051 LIBS="$ac_save_LIBS"
11054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11055 echo "$ac_t""yes" 1>&6
11058 echo "$ac_t""no" 1>&6
11063 if test $have_pth = yes ; then
11064 cat >> confdefs.h <<\EOF
11065 #define HAVE_GNU_PTH 1
11068 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11069 ol_link_threads=pth
11071 if test $ol_with_yielding_select = auto ; then
11072 ol_with_yielding_select=yes
11078 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11079 -o $ol_with_threads = lwp ; then
11081 for ac_hdr in thread.h synch.h
11083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11085 echo "configure:11086: checking for $ac_hdr" >&5
11086 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11087 echo $ac_n "(cached) $ac_c" 1>&6
11089 cat > conftest.$ac_ext <<EOF
11090 #line 11091 "configure"
11091 #include "confdefs.h"
11094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11095 { (eval echo configure:11096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11097 if test -z "$ac_err"; then
11099 eval "ac_cv_header_$ac_safe=yes"
11102 echo "configure: failed program was:" >&5
11103 cat conftest.$ac_ext >&5
11105 eval "ac_cv_header_$ac_safe=no"
11109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11110 echo "$ac_t""yes" 1>&6
11111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11112 cat >> confdefs.h <<EOF
11113 #define $ac_tr_hdr 1
11117 echo "$ac_t""no" 1>&6
11121 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11122 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11123 echo "configure:11124: checking for thr_create in -lthread" >&5
11124 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11125 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11126 echo $ac_n "(cached) $ac_c" 1>&6
11128 ac_save_LIBS="$LIBS"
11129 LIBS="-lthread $LIBS"
11130 cat > conftest.$ac_ext <<EOF
11131 #line 11132 "configure"
11132 #include "confdefs.h"
11133 /* Override any gcc2 internal prototype to avoid an error. */
11134 /* We use char because int might match the return type of a gcc2
11135 builtin and then its argument prototype would still apply. */
11142 if { (eval echo configure:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11144 eval "ac_cv_lib_$ac_lib_var=yes"
11146 echo "configure: failed program was:" >&5
11147 cat conftest.$ac_ext >&5
11149 eval "ac_cv_lib_$ac_lib_var=no"
11152 LIBS="$ac_save_LIBS"
11155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11156 echo "$ac_t""yes" 1>&6
11159 echo "$ac_t""no" 1>&6
11164 if test $have_thr = yes ; then
11165 cat >> confdefs.h <<\EOF
11169 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11170 ol_link_threads=thr
11172 if test $ol_with_yielding_select = auto ; then
11173 ol_with_yielding_select=yes
11177 thr_setconcurrency \
11178 thr_getconcurrency \
11181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11182 echo "configure:11183: checking for $ac_func" >&5
11183 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11184 echo $ac_n "(cached) $ac_c" 1>&6
11186 cat > conftest.$ac_ext <<EOF
11187 #line 11188 "configure"
11188 #include "confdefs.h"
11189 /* System header to define __stub macros and hopefully few prototypes,
11190 which can conflict with char $ac_func(); below. */
11191 #include <assert.h>
11192 /* Override any gcc2 internal prototype to avoid an error. */
11193 /* We use char because int might match the return type of a gcc2
11194 builtin and then its argument prototype would still apply. */
11200 /* The GNU C library defines this for functions which it implements
11201 to always fail with ENOSYS. Some functions are actually named
11202 something starting with __ and the normal name is an alias. */
11203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11211 if { (eval echo configure:11212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11213 eval "ac_cv_func_$ac_func=yes"
11215 echo "configure: failed program was:" >&5
11216 cat conftest.$ac_ext >&5
11218 eval "ac_cv_func_$ac_func=no"
11223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11224 echo "$ac_t""yes" 1>&6
11225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11226 cat >> confdefs.h <<EOF
11227 #define $ac_tr_func 1
11231 echo "$ac_t""no" 1>&6
11238 for ac_hdr in lwp/lwp.h
11240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11242 echo "configure:11243: checking for $ac_hdr" >&5
11243 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11244 echo $ac_n "(cached) $ac_c" 1>&6
11246 cat > conftest.$ac_ext <<EOF
11247 #line 11248 "configure"
11248 #include "confdefs.h"
11251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11252 { (eval echo configure:11253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11254 if test -z "$ac_err"; then
11256 eval "ac_cv_header_$ac_safe=yes"
11259 echo "configure: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11262 eval "ac_cv_header_$ac_safe=no"
11266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11267 echo "$ac_t""yes" 1>&6
11268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11269 cat >> confdefs.h <<EOF
11270 #define $ac_tr_hdr 1
11274 echo "$ac_t""no" 1>&6
11278 if test $ac_cv_header_lwp_lwp_h = yes ; then
11279 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11280 echo "configure:11281: checking for lwp_create in -llwp" >&5
11281 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11282 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11283 echo $ac_n "(cached) $ac_c" 1>&6
11285 ac_save_LIBS="$LIBS"
11287 cat > conftest.$ac_ext <<EOF
11288 #line 11289 "configure"
11289 #include "confdefs.h"
11290 /* Override any gcc2 internal prototype to avoid an error. */
11291 /* We use char because int might match the return type of a gcc2
11292 builtin and then its argument prototype would still apply. */
11299 if { (eval echo configure:11300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11301 eval "ac_cv_lib_$ac_lib_var=yes"
11303 echo "configure: failed program was:" >&5
11304 cat conftest.$ac_ext >&5
11306 eval "ac_cv_lib_$ac_lib_var=no"
11309 LIBS="$ac_save_LIBS"
11312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11313 echo "$ac_t""yes" 1>&6
11316 echo "$ac_t""no" 1>&6
11321 if test $have_lwp = yes ; then
11322 cat >> confdefs.h <<\EOF
11326 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11327 ol_link_threads=lwp
11329 if test $ol_with_yielding_select = auto ; then
11330 ol_with_yielding_select=no
11336 if test $ol_with_yielding_select = yes ; then
11337 cat >> confdefs.h <<\EOF
11338 #define HAVE_YIELDING_SELECT 1
11343 if test $ol_with_threads = manual ; then
11344 ol_link_threads=yes
11346 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11348 for ac_hdr in pthread.h sched.h
11350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11352 echo "configure:11353: checking for $ac_hdr" >&5
11353 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11354 echo $ac_n "(cached) $ac_c" 1>&6
11356 cat > conftest.$ac_ext <<EOF
11357 #line 11358 "configure"
11358 #include "confdefs.h"
11361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11362 { (eval echo configure:11363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11364 if test -z "$ac_err"; then
11366 eval "ac_cv_header_$ac_safe=yes"
11369 echo "configure: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11372 eval "ac_cv_header_$ac_safe=no"
11376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11377 echo "$ac_t""yes" 1>&6
11378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11379 cat >> confdefs.h <<EOF
11380 #define $ac_tr_hdr 1
11384 echo "$ac_t""no" 1>&6
11388 for ac_func in sched_yield pthread_yield
11390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11391 echo "configure:11392: checking for $ac_func" >&5
11392 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11393 echo $ac_n "(cached) $ac_c" 1>&6
11395 cat > conftest.$ac_ext <<EOF
11396 #line 11397 "configure"
11397 #include "confdefs.h"
11398 /* System header to define __stub macros and hopefully few prototypes,
11399 which can conflict with char $ac_func(); below. */
11400 #include <assert.h>
11401 /* Override any gcc2 internal prototype to avoid an error. */
11402 /* We use char because int might match the return type of a gcc2
11403 builtin and then its argument prototype would still apply. */
11409 /* The GNU C library defines this for functions which it implements
11410 to always fail with ENOSYS. Some functions are actually named
11411 something starting with __ and the normal name is an alias. */
11412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11420 if { (eval echo configure:11421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11422 eval "ac_cv_func_$ac_func=yes"
11424 echo "configure: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11427 eval "ac_cv_func_$ac_func=no"
11432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11433 echo "$ac_t""yes" 1>&6
11434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11435 cat >> confdefs.h <<EOF
11436 #define $ac_tr_func 1
11440 echo "$ac_t""no" 1>&6
11445 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11446 echo "configure:11447: checking for LinuxThreads pthread.h" >&5
11447 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11448 echo $ac_n "(cached) $ac_c" 1>&6
11450 cat > conftest.$ac_ext <<EOF
11451 #line 11452 "configure"
11452 #include "confdefs.h"
11453 #include <pthread.h>
11455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11456 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11458 ol_cv_header_linux_threads=yes
11461 ol_cv_header_linux_threads=no
11468 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11469 if test $ol_cv_header_linux_threads = yes; then
11470 cat >> confdefs.h <<\EOF
11471 #define HAVE_LINUX_THREADS 1
11477 for ac_hdr in mach/cthreads.h
11479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11481 echo "configure:11482: checking for $ac_hdr" >&5
11482 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11483 echo $ac_n "(cached) $ac_c" 1>&6
11485 cat > conftest.$ac_ext <<EOF
11486 #line 11487 "configure"
11487 #include "confdefs.h"
11490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11491 { (eval echo configure:11492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11493 if test -z "$ac_err"; then
11495 eval "ac_cv_header_$ac_safe=yes"
11498 echo "configure: failed program was:" >&5
11499 cat conftest.$ac_ext >&5
11501 eval "ac_cv_header_$ac_safe=no"
11505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11506 echo "$ac_t""yes" 1>&6
11507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11508 cat >> confdefs.h <<EOF
11509 #define $ac_tr_hdr 1
11513 echo "$ac_t""no" 1>&6
11517 for ac_hdr in lwp/lwp.h
11519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11521 echo "configure:11522: checking for $ac_hdr" >&5
11522 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11523 echo $ac_n "(cached) $ac_c" 1>&6
11525 cat > conftest.$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11531 { (eval echo configure:11532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11533 if test -z "$ac_err"; then
11535 eval "ac_cv_header_$ac_safe=yes"
11538 echo "configure: failed program was:" >&5
11539 cat conftest.$ac_ext >&5
11541 eval "ac_cv_header_$ac_safe=no"
11545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11546 echo "$ac_t""yes" 1>&6
11547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11548 cat >> confdefs.h <<EOF
11549 #define $ac_tr_hdr 1
11553 echo "$ac_t""no" 1>&6
11557 for ac_hdr in thread.h synch.h
11559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11561 echo "configure:11562: checking for $ac_hdr" >&5
11562 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11563 echo $ac_n "(cached) $ac_c" 1>&6
11565 cat > conftest.$ac_ext <<EOF
11566 #line 11567 "configure"
11567 #include "confdefs.h"
11570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11571 { (eval echo configure:11572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11573 if test -z "$ac_err"; then
11575 eval "ac_cv_header_$ac_safe=yes"
11578 echo "configure: failed program was:" >&5
11579 cat conftest.$ac_ext >&5
11581 eval "ac_cv_header_$ac_safe=no"
11585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11586 echo "$ac_t""yes" 1>&6
11587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11588 cat >> confdefs.h <<EOF
11589 #define $ac_tr_hdr 1
11593 echo "$ac_t""no" 1>&6
11599 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11600 cat >> confdefs.h <<\EOF
11601 #define REENTRANT 1
11604 cat >> confdefs.h <<\EOF
11605 #define _REENTRANT 1
11608 cat >> confdefs.h <<\EOF
11609 #define THREAD_SAFE 1
11612 cat >> confdefs.h <<\EOF
11613 #define _THREAD_SAFE 1
11616 cat >> confdefs.h <<\EOF
11617 #define THREADSAFE 1
11620 cat >> confdefs.h <<\EOF
11621 #define _THREADSAFE 1
11624 cat >> confdefs.h <<\EOF
11625 #define _SGI_MP_SOURCE 1
11629 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11630 echo "configure:11631: checking for thread specific errno" >&5
11631 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11632 echo $ac_n "(cached) $ac_c" 1>&6
11635 cat > conftest.$ac_ext <<EOF
11636 #line 11637 "configure"
11637 #include "confdefs.h"
11643 if { (eval echo configure:11644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11645 ol_cv_errno_thread_specific=yes
11647 echo "configure: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11650 ol_cv_errno_thread_specific=no
11656 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11658 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11659 echo "configure:11660: checking for thread specific h_errno" >&5
11660 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11661 echo $ac_n "(cached) $ac_c" 1>&6
11664 cat > conftest.$ac_ext <<EOF
11665 #line 11666 "configure"
11666 #include "confdefs.h"
11672 if { (eval echo configure:11673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11674 ol_cv_h_errno_thread_specific=yes
11676 echo "configure: failed program was:" >&5
11677 cat conftest.$ac_ext >&5
11679 ol_cv_h_errno_thread_specific=no
11685 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11687 if test $ol_cv_errno_thread_specific != yes \
11688 -o $ol_cv_h_errno_thread_specific != yes ; then
11689 LIBS="$LTHREAD_LIBS $LIBS"
11695 if test $ol_link_threads = no ; then
11696 if test $ol_with_threads = yes ; then
11697 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11700 if test $ol_with_threads = auto ; then
11701 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11705 cat >> confdefs.h <<\EOF
11706 #define NO_THREADS 1
11712 if test $ol_link_threads != no ; then
11713 cat >> confdefs.h <<\EOF
11714 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11721 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
11722 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
11723 echo "configure:11724: checking for DB2 library" >&5
11724 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
11725 echo $ac_n "(cached) $ac_c" 1>&6
11728 echo $ac_n "checking for db_appexit in -ldb""... $ac_c" 1>&6
11729 echo "configure:11730: checking for db_appexit in -ldb" >&5
11730 ac_lib_var=`echo db'_'db_appexit | sed 'y%./+-:%__p__%'`
11731 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11732 echo $ac_n "(cached) $ac_c" 1>&6
11734 ac_save_LIBS="$LIBS"
11736 cat > conftest.$ac_ext <<EOF
11737 #line 11738 "configure"
11738 #include "confdefs.h"
11739 /* Override any gcc2 internal prototype to avoid an error. */
11740 /* We use char because int might match the return type of a gcc2
11741 builtin and then its argument prototype would still apply. */
11748 if { (eval echo configure:11749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11750 eval "ac_cv_lib_$ac_lib_var=yes"
11752 echo "configure: failed program was:" >&5
11753 cat conftest.$ac_ext >&5
11755 eval "ac_cv_lib_$ac_lib_var=no"
11758 LIBS="$ac_save_LIBS"
11761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11762 echo "$ac_t""yes" 1>&6
11765 echo "$ac_t""no" 1>&6
11773 echo "$ac_t""$ol_cv_lib_db2" 1>&6
11777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11779 echo "configure:11780: checking for $ac_hdr" >&5
11780 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11781 echo $ac_n "(cached) $ac_c" 1>&6
11783 cat > conftest.$ac_ext <<EOF
11784 #line 11785 "configure"
11785 #include "confdefs.h"
11788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11789 { (eval echo configure:11790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11791 if test -z "$ac_err"; then
11793 eval "ac_cv_header_$ac_safe=yes"
11796 echo "configure: failed program was:" >&5
11797 cat conftest.$ac_ext >&5
11799 eval "ac_cv_header_$ac_safe=no"
11803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11804 echo "$ac_t""yes" 1>&6
11805 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11806 cat >> confdefs.h <<EOF
11807 #define $ac_tr_hdr 1
11811 echo "$ac_t""no" 1>&6
11815 if test $ac_cv_header_db_h = yes ; then
11816 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
11817 echo "configure:11818: checking if db.h is DB2" >&5
11818 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
11819 echo $ac_n "(cached) $ac_c" 1>&6
11822 cat > conftest.$ac_ext <<EOF
11823 #line 11824 "configure"
11824 #include "confdefs.h"
11827 /* this check could be improved */
11828 # ifdef DB_VERSION_MAJOR
11829 # if DB_VERSION_MAJOR == 2
11835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11836 egrep "__db_version_2" >/dev/null 2>&1; then
11838 ol_cv_header_db2=yes
11841 ol_cv_header_db2=no
11847 echo "$ac_t""$ol_cv_header_db2" 1>&6
11849 ol_cv_header_db2=no
11854 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
11855 echo "configure:11856: checking for Berkeley DB2" >&5
11856 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
11857 echo $ac_n "(cached) $ac_c" 1>&6
11860 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
11861 ol_cv_berkeley_db2=no
11863 ol_cv_berkeley_db2=yes
11868 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
11869 if test $ol_cv_berkeley_db2 = yes ; then
11870 cat >> confdefs.h <<\EOF
11871 #define HAVE_BERKELEY_DB2 1
11877 if test $ol_cv_berkeley_db2 = yes ; then
11879 ol_with_ldbm_api=db2
11881 if test $ol_with_ldbm_type = hash ; then
11882 cat >> confdefs.h <<\EOF
11883 #define LDBM_USE_DBHASH 1
11887 cat >> confdefs.h <<\EOF
11888 #define LDBM_USE_DBBTREE 1
11893 echo $ac_n "checking for DB_THREAD support""... $ac_c" 1>&6
11894 echo "configure:11895: checking for DB_THREAD support" >&5
11895 if eval "test \"\${ol_cv_berkeley_db2_db_thread+set}\" = set"; then
11896 echo $ac_n "(cached) $ac_c" 1>&6
11900 if test $ol_cv_lib_db2 != yes ; then
11901 LIBS="$ol_cv_lib_db2"
11904 if test "$cross_compiling" = yes; then
11905 ol_cv_berkeley_db2_db_thread=cross
11907 cat > conftest.$ac_ext <<EOF
11908 #line 11909 "configure"
11909 #include "confdefs.h"
11913 #define NULL ((void *)0)
11919 u_int32_t flags = DB_CREATE | DB_THREAD;
11921 memset( &env, '\0', sizeof(env) );
11923 rc = db_appinit( NULL, NULL, &env, flags );
11926 db_appexit( &env );
11932 if { (eval echo configure:11933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11934 ol_cv_berkeley_db2_db_thread=yes
11936 echo "configure: failed program was:" >&5
11937 cat conftest.$ac_ext >&5
11939 ol_cv_berkeley_db2_db_thread=no
11947 if test $ol_cv_berkeley_db2_db_thread != no ; then
11948 cat >> confdefs.h <<\EOF
11949 #define HAVE_BERKELEY_DB2_DB_THREAD 1
11956 echo "$ac_t""$ol_cv_berkeley_db2_db_thread" 1>&6
11958 if test $ol_cv_lib_db2 != yes ; then
11959 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
11965 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
11966 if test $ol_cv_berkeley_db2_db_thread != no ; then
11969 echo "configure: warning: Installed BerkeleyDB does not provide DB_THREAD support." 1>&2
11973 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
11974 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
11975 echo "configure:11976: checking for Berkeley DB library" >&5
11976 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
11977 echo $ac_n "(cached) $ac_c" 1>&6
11980 for ac_hdr in db1/db.h
11982 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11983 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11984 echo "configure:11985: checking for $ac_hdr" >&5
11985 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11986 echo $ac_n "(cached) $ac_c" 1>&6
11988 cat > conftest.$ac_ext <<EOF
11989 #line 11990 "configure"
11990 #include "confdefs.h"
11993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11994 { (eval echo configure:11995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11996 if test -z "$ac_err"; then
11998 eval "ac_cv_header_$ac_safe=yes"
12001 echo "configure: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12004 eval "ac_cv_header_$ac_safe=no"
12008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12009 echo "$ac_t""yes" 1>&6
12010 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12011 cat >> confdefs.h <<EOF
12012 #define $ac_tr_hdr 1
12016 echo "$ac_t""no" 1>&6
12021 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
12022 echo "configure:12023: checking for dbopen" >&5
12023 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
12024 echo $ac_n "(cached) $ac_c" 1>&6
12026 cat > conftest.$ac_ext <<EOF
12027 #line 12028 "configure"
12028 #include "confdefs.h"
12029 /* System header to define __stub macros and hopefully few prototypes,
12030 which can conflict with char dbopen(); below. */
12031 #include <assert.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. */
12040 /* The GNU C library defines this for functions which it implements
12041 to always fail with ENOSYS. Some functions are actually named
12042 something starting with __ and the normal name is an alias. */
12043 #if defined (__stub_dbopen) || defined (__stub___dbopen)
12051 if { (eval echo configure:12052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12053 eval "ac_cv_func_dbopen=yes"
12055 echo "configure: failed program was:" >&5
12056 cat conftest.$ac_ext >&5
12058 eval "ac_cv_func_dbopen=no"
12063 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
12064 echo "$ac_t""yes" 1>&6
12067 echo "$ac_t""no" 1>&6
12069 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
12070 echo "configure:12071: checking for dbopen in -ldb1" >&5
12071 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
12072 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12073 echo $ac_n "(cached) $ac_c" 1>&6
12075 ac_save_LIBS="$LIBS"
12077 cat > conftest.$ac_ext <<EOF
12078 #line 12079 "configure"
12079 #include "confdefs.h"
12080 /* Override any gcc2 internal prototype to avoid an error. */
12081 /* We use char because int might match the return type of a gcc2
12082 builtin and then its argument prototype would still apply. */
12089 if { (eval echo configure:12090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12091 eval "ac_cv_lib_$ac_lib_var=yes"
12093 echo "configure: failed program was:" >&5
12094 cat conftest.$ac_ext >&5
12096 eval "ac_cv_lib_$ac_lib_var=no"
12099 LIBS="$ac_save_LIBS"
12102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12103 echo "$ac_t""yes" 1>&6
12106 echo "$ac_t""no" 1>&6
12108 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
12109 echo "configure:12110: checking for dbopen in -ldb" >&5
12110 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
12111 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12112 echo $ac_n "(cached) $ac_c" 1>&6
12114 ac_save_LIBS="$LIBS"
12116 cat > conftest.$ac_ext <<EOF
12117 #line 12118 "configure"
12118 #include "confdefs.h"
12119 /* Override any gcc2 internal prototype to avoid an error. */
12120 /* We use char because int might match the return type of a gcc2
12121 builtin and then its argument prototype would still apply. */
12128 if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12130 eval "ac_cv_lib_$ac_lib_var=yes"
12132 echo "configure: failed program was:" >&5
12133 cat conftest.$ac_ext >&5
12135 eval "ac_cv_lib_$ac_lib_var=no"
12138 LIBS="$ac_save_LIBS"
12141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12142 echo "$ac_t""yes" 1>&6
12145 echo "$ac_t""no" 1>&6
12159 echo "$ac_t""$ol_cv_lib_db" 1>&6
12162 for ac_hdr in db_185.h
12164 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12165 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12166 echo "configure:12167: checking for $ac_hdr" >&5
12167 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12168 echo $ac_n "(cached) $ac_c" 1>&6
12170 cat > conftest.$ac_ext <<EOF
12171 #line 12172 "configure"
12172 #include "confdefs.h"
12175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12176 { (eval echo configure:12177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12178 if test -z "$ac_err"; then
12180 eval "ac_cv_header_$ac_safe=yes"
12183 echo "configure: failed program was:" >&5
12184 cat conftest.$ac_ext >&5
12186 eval "ac_cv_header_$ac_safe=no"
12190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12191 echo "$ac_t""yes" 1>&6
12192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12193 cat >> confdefs.h <<EOF
12194 #define $ac_tr_hdr 1
12198 echo "$ac_t""no" 1>&6
12202 if test "$ol_cv_header_db2" = yes ; then
12204 ol_cv_header_db=$ac_cv_header_db_185_h
12206 ol_cv_header_db=$ac_cv_header_db_h
12211 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
12212 echo "configure:12213: checking for Berkeley DB" >&5
12213 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
12214 echo $ac_n "(cached) $ac_c" 1>&6
12217 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
12218 ol_cv_berkeley_db=no
12220 ol_cv_berkeley_db=yes
12225 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
12226 if test $ol_cv_berkeley_db = yes ; then
12227 cat >> confdefs.h <<\EOF
12228 #define HAVE_BERKELEY_DB 1
12234 if test $ol_cv_berkeley_db = yes ; then
12236 ol_with_ldbm_api=db
12238 if test $ol_with_ldbm_type = hash ; then
12239 cat >> confdefs.h <<\EOF
12240 #define LDBM_USE_DBHASH 1
12244 cat >> confdefs.h <<\EOF
12245 #define LDBM_USE_DBBTREE 1
12250 if test $ol_cv_lib_db != yes ; then
12251 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12256 if test $ol_with_ldbm_api = manual ; then
12259 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
12261 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
12263 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12265 echo "configure:12266: checking for $ac_hdr" >&5
12266 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12267 echo $ac_n "(cached) $ac_c" 1>&6
12269 cat > conftest.$ac_ext <<EOF
12270 #line 12271 "configure"
12271 #include "confdefs.h"
12274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12275 { (eval echo configure:12276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12277 if test -z "$ac_err"; then
12279 eval "ac_cv_header_$ac_safe=yes"
12282 echo "configure: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12285 eval "ac_cv_header_$ac_safe=no"
12289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12290 echo "$ac_t""yes" 1>&6
12291 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12292 cat >> confdefs.h <<EOF
12293 #define $ac_tr_hdr 1
12297 echo "$ac_t""no" 1>&6
12303 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12304 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12305 ol_with_ldbm_api=none
12308 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12309 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12310 echo "configure:12311: checking for MDBM library" >&5
12311 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12312 echo $ac_n "(cached) $ac_c" 1>&6
12315 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12316 echo "configure:12317: checking for mdbm_set_chain" >&5
12317 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12318 echo $ac_n "(cached) $ac_c" 1>&6
12320 cat > conftest.$ac_ext <<EOF
12321 #line 12322 "configure"
12322 #include "confdefs.h"
12323 /* System header to define __stub macros and hopefully few prototypes,
12324 which can conflict with char mdbm_set_chain(); below. */
12325 #include <assert.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();
12334 /* The GNU C library defines this for functions which it implements
12335 to always fail with ENOSYS. Some functions are actually named
12336 something starting with __ and the normal name is an alias. */
12337 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12340 f = mdbm_set_chain;
12345 if { (eval echo configure:12346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12347 eval "ac_cv_func_mdbm_set_chain=yes"
12349 echo "configure: failed program was:" >&5
12350 cat conftest.$ac_ext >&5
12352 eval "ac_cv_func_mdbm_set_chain=no"
12357 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12358 echo "$ac_t""yes" 1>&6
12361 echo "$ac_t""no" 1>&6
12363 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12364 echo "configure:12365: checking for mdbm_set_chain in -lmdbm" >&5
12365 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12366 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12367 echo $ac_n "(cached) $ac_c" 1>&6
12369 ac_save_LIBS="$LIBS"
12370 LIBS="-lmdbm $LIBS"
12371 cat > conftest.$ac_ext <<EOF
12372 #line 12373 "configure"
12373 #include "confdefs.h"
12374 /* Override any gcc2 internal prototype to avoid an error. */
12375 /* We use char because int might match the return type of a gcc2
12376 builtin and then its argument prototype would still apply. */
12377 char mdbm_set_chain();
12383 if { (eval echo configure:12384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12385 eval "ac_cv_lib_$ac_lib_var=yes"
12387 echo "configure: failed program was:" >&5
12388 cat conftest.$ac_ext >&5
12390 eval "ac_cv_lib_$ac_lib_var=no"
12393 LIBS="$ac_save_LIBS"
12396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12397 echo "$ac_t""yes" 1>&6
12398 ol_cv_lib_mdbm=-lmdbm
12400 echo "$ac_t""no" 1>&6
12411 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12414 for ac_hdr in mdbm.h
12416 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12417 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12418 echo "configure:12419: checking for $ac_hdr" >&5
12419 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12420 echo $ac_n "(cached) $ac_c" 1>&6
12422 cat > conftest.$ac_ext <<EOF
12423 #line 12424 "configure"
12424 #include "confdefs.h"
12427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12428 { (eval echo configure:12429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12430 if test -z "$ac_err"; then
12432 eval "ac_cv_header_$ac_safe=yes"
12435 echo "configure: failed program was:" >&5
12436 cat conftest.$ac_ext >&5
12438 eval "ac_cv_header_$ac_safe=no"
12442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12443 echo "$ac_t""yes" 1>&6
12444 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12445 cat >> confdefs.h <<EOF
12446 #define $ac_tr_hdr 1
12450 echo "$ac_t""no" 1>&6
12454 echo $ac_n "checking for db""... $ac_c" 1>&6
12455 echo "configure:12456: checking for db" >&5
12456 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12457 echo $ac_n "(cached) $ac_c" 1>&6
12460 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12468 echo "$ac_t""$ol_cv_mdbm" 1>&6
12469 if test $ol_cv_mdbm = yes ; then
12470 cat >> confdefs.h <<\EOF
12471 #define HAVE_MDBM 1
12477 if test $ol_cv_mdbm = yes ; then
12479 ol_with_ldbm_api=mdbm
12480 if test $ol_cv_lib_mdbm != yes ; then
12481 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12486 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12487 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12488 echo "configure:12489: checking for GDBM library" >&5
12489 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12490 echo $ac_n "(cached) $ac_c" 1>&6
12493 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12494 echo "configure:12495: checking for gdbm_open" >&5
12495 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12496 echo $ac_n "(cached) $ac_c" 1>&6
12498 cat > conftest.$ac_ext <<EOF
12499 #line 12500 "configure"
12500 #include "confdefs.h"
12501 /* System header to define __stub macros and hopefully few prototypes,
12502 which can conflict with char gdbm_open(); below. */
12503 #include <assert.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. */
12512 /* The GNU C library defines this for functions which it implements
12513 to always fail with ENOSYS. Some functions are actually named
12514 something starting with __ and the normal name is an alias. */
12515 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12523 if { (eval echo configure:12524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12525 eval "ac_cv_func_gdbm_open=yes"
12527 echo "configure: failed program was:" >&5
12528 cat conftest.$ac_ext >&5
12530 eval "ac_cv_func_gdbm_open=no"
12535 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12536 echo "$ac_t""yes" 1>&6
12539 echo "$ac_t""no" 1>&6
12541 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12542 echo "configure:12543: checking for gdbm_open in -lgdbm" >&5
12543 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12544 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12545 echo $ac_n "(cached) $ac_c" 1>&6
12547 ac_save_LIBS="$LIBS"
12548 LIBS="-lgdbm $LIBS"
12549 cat > conftest.$ac_ext <<EOF
12550 #line 12551 "configure"
12551 #include "confdefs.h"
12552 /* Override any gcc2 internal prototype to avoid an error. */
12553 /* We use char because int might match the return type of a gcc2
12554 builtin and then its argument prototype would still apply. */
12561 if { (eval echo configure:12562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12563 eval "ac_cv_lib_$ac_lib_var=yes"
12565 echo "configure: failed program was:" >&5
12566 cat conftest.$ac_ext >&5
12568 eval "ac_cv_lib_$ac_lib_var=no"
12571 LIBS="$ac_save_LIBS"
12574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12575 echo "$ac_t""yes" 1>&6
12576 ol_cv_lib_gdbm=-lgdbm
12578 echo "$ac_t""no" 1>&6
12589 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12592 for ac_hdr in gdbm.h
12594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12596 echo "configure:12597: checking for $ac_hdr" >&5
12597 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12598 echo $ac_n "(cached) $ac_c" 1>&6
12600 cat > conftest.$ac_ext <<EOF
12601 #line 12602 "configure"
12602 #include "confdefs.h"
12605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12606 { (eval echo configure:12607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12608 if test -z "$ac_err"; then
12610 eval "ac_cv_header_$ac_safe=yes"
12613 echo "configure: failed program was:" >&5
12614 cat conftest.$ac_ext >&5
12616 eval "ac_cv_header_$ac_safe=no"
12620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12621 echo "$ac_t""yes" 1>&6
12622 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12623 cat >> confdefs.h <<EOF
12624 #define $ac_tr_hdr 1
12628 echo "$ac_t""no" 1>&6
12632 echo $ac_n "checking for db""... $ac_c" 1>&6
12633 echo "configure:12634: checking for db" >&5
12634 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12635 echo $ac_n "(cached) $ac_c" 1>&6
12638 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12646 echo "$ac_t""$ol_cv_gdbm" 1>&6
12647 if test $ol_cv_gdbm = yes ; then
12648 cat >> confdefs.h <<\EOF
12649 #define HAVE_GDBM 1
12655 if test $ol_cv_gdbm = yes ; then
12657 ol_with_ldbm_api=gdbm
12659 if test $ol_cv_lib_gdbm != yes ; then
12660 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12665 if test $ol_with_ldbm_api = ndbm ; then
12666 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12667 echo "configure:12668: checking for NDBM library" >&5
12668 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12669 echo $ac_n "(cached) $ac_c" 1>&6
12672 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12673 echo "configure:12674: checking for dbm_open" >&5
12674 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12675 echo $ac_n "(cached) $ac_c" 1>&6
12677 cat > conftest.$ac_ext <<EOF
12678 #line 12679 "configure"
12679 #include "confdefs.h"
12680 /* System header to define __stub macros and hopefully few prototypes,
12681 which can conflict with char dbm_open(); below. */
12682 #include <assert.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. */
12691 /* The GNU C library defines this for functions which it implements
12692 to always fail with ENOSYS. Some functions are actually named
12693 something starting with __ and the normal name is an alias. */
12694 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12702 if { (eval echo configure:12703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12704 eval "ac_cv_func_dbm_open=yes"
12706 echo "configure: failed program was:" >&5
12707 cat conftest.$ac_ext >&5
12709 eval "ac_cv_func_dbm_open=no"
12714 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12715 echo "$ac_t""yes" 1>&6
12718 echo "$ac_t""no" 1>&6
12720 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12721 echo "configure:12722: checking for dbm_open in -lndbm" >&5
12722 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12723 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12724 echo $ac_n "(cached) $ac_c" 1>&6
12726 ac_save_LIBS="$LIBS"
12727 LIBS="-lndbm $LIBS"
12728 cat > conftest.$ac_ext <<EOF
12729 #line 12730 "configure"
12730 #include "confdefs.h"
12731 /* Override any gcc2 internal prototype to avoid an error. */
12732 /* We use char because int might match the return type of a gcc2
12733 builtin and then its argument prototype would still apply. */
12740 if { (eval echo configure:12741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12742 eval "ac_cv_lib_$ac_lib_var=yes"
12744 echo "configure: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12747 eval "ac_cv_lib_$ac_lib_var=no"
12750 LIBS="$ac_save_LIBS"
12753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12754 echo "$ac_t""yes" 1>&6
12755 ol_cv_lib_ndbm=-lndbm
12757 echo "$ac_t""no" 1>&6
12759 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12760 echo "configure:12761: checking for dbm_open in -ldbm" >&5
12761 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12762 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12763 echo $ac_n "(cached) $ac_c" 1>&6
12765 ac_save_LIBS="$LIBS"
12767 cat > conftest.$ac_ext <<EOF
12768 #line 12769 "configure"
12769 #include "confdefs.h"
12770 /* Override any gcc2 internal prototype to avoid an error. */
12771 /* We use char because int might match the return type of a gcc2
12772 builtin and then its argument prototype would still apply. */
12779 if { (eval echo configure:12780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12781 eval "ac_cv_lib_$ac_lib_var=yes"
12783 echo "configure: failed program was:" >&5
12784 cat conftest.$ac_ext >&5
12786 eval "ac_cv_lib_$ac_lib_var=no"
12789 LIBS="$ac_save_LIBS"
12792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12793 echo "$ac_t""yes" 1>&6
12794 ol_cv_lib_ndbm=-ldbm
12796 echo "$ac_t""no" 1>&6
12809 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12812 for ac_hdr in ndbm.h
12814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12816 echo "configure:12817: checking for $ac_hdr" >&5
12817 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12818 echo $ac_n "(cached) $ac_c" 1>&6
12820 cat > conftest.$ac_ext <<EOF
12821 #line 12822 "configure"
12822 #include "confdefs.h"
12825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12826 { (eval echo configure:12827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12828 if test -z "$ac_err"; then
12830 eval "ac_cv_header_$ac_safe=yes"
12833 echo "configure: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12836 eval "ac_cv_header_$ac_safe=no"
12840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12841 echo "$ac_t""yes" 1>&6
12842 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12843 cat >> confdefs.h <<EOF
12844 #define $ac_tr_hdr 1
12848 echo "$ac_t""no" 1>&6
12852 echo $ac_n "checking for db""... $ac_c" 1>&6
12853 echo "configure:12854: checking for db" >&5
12854 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12855 echo $ac_n "(cached) $ac_c" 1>&6
12858 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12866 echo "$ac_t""$ol_cv_ndbm" 1>&6
12867 if test $ol_cv_ndbm = yes ; then
12868 cat >> confdefs.h <<\EOF
12869 #define HAVE_NDBM 1
12875 if test $ol_cv_ndbm = yes ; then
12877 ol_with_ldbm_api=ndbm
12879 if test $ol_cv_lib_ndbm != yes ; then
12880 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12885 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12886 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12887 if test $ol_enable_ldbm = yes ; then
12888 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12891 echo "configure: warning: disabling LDBM" 1>&2
12895 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12896 LINK_BINS_DYNAMIC="yes"
12898 LINK_BINS_DYNAMIC="no"
12901 if test $ol_enable_wrappers != no ; then
12902 for ac_hdr in tcpd.h
12904 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12905 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12906 echo "configure:12907: checking for $ac_hdr" >&5
12907 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12908 echo $ac_n "(cached) $ac_c" 1>&6
12910 cat > conftest.$ac_ext <<EOF
12911 #line 12912 "configure"
12912 #include "confdefs.h"
12915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12916 { (eval echo configure:12917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12918 if test -z "$ac_err"; then
12920 eval "ac_cv_header_$ac_safe=yes"
12923 echo "configure: failed program was:" >&5
12924 cat conftest.$ac_ext >&5
12926 eval "ac_cv_header_$ac_safe=no"
12930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12931 echo "$ac_t""yes" 1>&6
12932 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12933 cat >> confdefs.h <<EOF
12934 #define $ac_tr_hdr 1
12938 echo "$ac_t""no" 1>&6
12943 if test $ac_cv_header_tcpd_h != yes ; then
12946 cat > conftest.$ac_ext <<EOF
12947 #line 12948 "configure"
12948 #include "confdefs.h"
12950 int allow_severity = 0;
12951 int deny_severity = 0;
12957 if { (eval echo configure:12958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12961 echo "configure: failed program was:" >&5
12962 cat conftest.$ac_ext >&5
12969 if test $have_wrappers = yes ; then
12970 cat >> confdefs.h <<\EOF
12971 #define HAVE_TCPD 1
12976 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12977 echo "configure:12978: checking for main in -lnsl" >&5
12978 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12979 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12980 echo $ac_n "(cached) $ac_c" 1>&6
12982 ac_save_LIBS="$LIBS"
12984 cat > conftest.$ac_ext <<EOF
12985 #line 12986 "configure"
12986 #include "confdefs.h"
12992 if { (eval echo configure:12993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12994 eval "ac_cv_lib_$ac_lib_var=yes"
12996 echo "configure: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12999 eval "ac_cv_lib_$ac_lib_var=no"
13002 LIBS="$ac_save_LIBS"
13005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13006 echo "$ac_t""yes" 1>&6
13007 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13008 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13009 cat >> confdefs.h <<EOF
13010 #define $ac_tr_lib 1
13016 echo "$ac_t""no" 1>&6
13020 echo "configure: warning: could not find -lwrap" 1>&2
13021 if test $ol_enable_wrappers = yes ; then
13022 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13025 echo "configure: warning: disabling wrappers support" 1>&2
13026 ol_enable_wrappers=no
13031 if test $ol_enable_syslog != no ; then
13032 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13033 echo "configure:13034: checking for openlog" >&5
13034 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13035 echo $ac_n "(cached) $ac_c" 1>&6
13037 cat > conftest.$ac_ext <<EOF
13038 #line 13039 "configure"
13039 #include "confdefs.h"
13040 /* System header to define __stub macros and hopefully few prototypes,
13041 which can conflict with char openlog(); below. */
13042 #include <assert.h>
13043 /* Override any gcc2 internal prototype to avoid an error. */
13044 /* We use char because int might match the return type of a gcc2
13045 builtin and then its argument prototype would still apply. */
13051 /* The GNU C library defines this for functions which it implements
13052 to always fail with ENOSYS. Some functions are actually named
13053 something starting with __ and the normal name is an alias. */
13054 #if defined (__stub_openlog) || defined (__stub___openlog)
13062 if { (eval echo configure:13063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13064 eval "ac_cv_func_openlog=yes"
13066 echo "configure: failed program was:" >&5
13067 cat conftest.$ac_ext >&5
13069 eval "ac_cv_func_openlog=no"
13074 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13075 echo "$ac_t""yes" 1>&6
13078 echo "$ac_t""no" 1>&6
13081 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13082 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13084 ol_enable_syslog=$ac_cv_func_openlog
13087 if test $ol_enable_dmalloc != no ; then
13088 for ac_hdr in dmalloc.h
13090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13092 echo "configure:13093: checking for $ac_hdr" >&5
13093 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13094 echo $ac_n "(cached) $ac_c" 1>&6
13096 cat > conftest.$ac_ext <<EOF
13097 #line 13098 "configure"
13098 #include "confdefs.h"
13101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13102 { (eval echo configure:13103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13104 if test -z "$ac_err"; then
13106 eval "ac_cv_header_$ac_safe=yes"
13109 echo "configure: failed program was:" >&5
13110 cat conftest.$ac_ext >&5
13112 eval "ac_cv_header_$ac_safe=no"
13116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13117 echo "$ac_t""yes" 1>&6
13118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13119 cat >> confdefs.h <<EOF
13120 #define $ac_tr_hdr 1
13124 echo "$ac_t""no" 1>&6
13128 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
13129 echo "configure:13130: checking for dmalloc_shutdown in -ldmalloc" >&5
13130 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
13131 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13132 echo $ac_n "(cached) $ac_c" 1>&6
13134 ac_save_LIBS="$LIBS"
13135 LIBS="-ldmalloc $LIBS"
13136 cat > conftest.$ac_ext <<EOF
13137 #line 13138 "configure"
13138 #include "confdefs.h"
13139 /* Override any gcc2 internal prototype to avoid an error. */
13140 /* We use char because int might match the return type of a gcc2
13141 builtin and then its argument prototype would still apply. */
13142 char dmalloc_shutdown();
13148 if { (eval echo configure:13149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13150 eval "ac_cv_lib_$ac_lib_var=yes"
13152 echo "configure: failed program was:" >&5
13153 cat conftest.$ac_ext >&5
13155 eval "ac_cv_lib_$ac_lib_var=no"
13158 LIBS="$ac_save_LIBS"
13161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13162 echo "$ac_t""yes" 1>&6
13163 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13164 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13165 cat >> confdefs.h <<EOF
13166 #define $ac_tr_lib 1
13169 LIBS="-ldmalloc $LIBS"
13172 echo "$ac_t""no" 1>&6
13177 if test $ol_enable_tcl != no ; then
13178 for ac_hdr in tcl.h
13180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13182 echo "configure:13183: checking for $ac_hdr" >&5
13183 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13184 echo $ac_n "(cached) $ac_c" 1>&6
13186 cat > conftest.$ac_ext <<EOF
13187 #line 13188 "configure"
13188 #include "confdefs.h"
13191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13192 { (eval echo configure:13193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13194 if test -z "$ac_err"; then
13196 eval "ac_cv_header_$ac_safe=yes"
13199 echo "configure: failed program was:" >&5
13200 cat conftest.$ac_ext >&5
13202 eval "ac_cv_header_$ac_safe=no"
13206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13207 echo "$ac_t""yes" 1>&6
13208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13209 cat >> confdefs.h <<EOF
13210 #define $ac_tr_hdr 1
13214 echo "$ac_t""no" 1>&6
13219 if test $ac_cv_header_tcl_h != yes ; then
13222 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13223 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13224 echo "configure:13225: checking for main in -l$lib" >&5
13225 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13226 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13227 echo $ac_n "(cached) $ac_c" 1>&6
13229 ac_save_LIBS="$LIBS"
13230 LIBS="-l$lib $LIBS"
13231 cat > conftest.$ac_ext <<EOF
13232 #line 13233 "configure"
13233 #include "confdefs.h"
13239 if { (eval echo configure:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13241 eval "ac_cv_lib_$ac_lib_var=yes"
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13246 eval "ac_cv_lib_$ac_lib_var=no"
13249 LIBS="$ac_save_LIBS"
13252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13253 echo "$ac_t""yes" 1>&6
13255 if test x"$ol_with_tcl_module" = "xstatic" ; then
13256 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13258 MOD_TCL_LIB="-l${lib}"
13261 echo "$ac_t""no" 1>&6
13268 if test $have_tcl != yes ; then
13269 echo "configure: warning: could not find -ltcl" 1>&2
13270 if test $ol_enable_tcl = yes ; then
13271 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13279 for ac_hdr in termcap.h ncurses.h
13281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13283 echo "configure:13284: checking for $ac_hdr" >&5
13284 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13287 cat > conftest.$ac_ext <<EOF
13288 #line 13289 "configure"
13289 #include "confdefs.h"
13292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13293 { (eval echo configure:13294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13295 if test -z "$ac_err"; then
13297 eval "ac_cv_header_$ac_safe=yes"
13300 echo "configure: failed program was:" >&5
13301 cat conftest.$ac_ext >&5
13303 eval "ac_cv_header_$ac_safe=no"
13307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13308 echo "$ac_t""yes" 1>&6
13309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13310 cat >> confdefs.h <<EOF
13311 #define $ac_tr_hdr 1
13315 echo "$ac_t""no" 1>&6
13320 if test $ol_link_termcap = no ; then
13321 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13322 echo "configure:13323: checking for tputs in -ltermcap" >&5
13323 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13324 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13325 echo $ac_n "(cached) $ac_c" 1>&6
13327 ac_save_LIBS="$LIBS"
13328 LIBS="-ltermcap $LIBS"
13329 cat > conftest.$ac_ext <<EOF
13330 #line 13331 "configure"
13331 #include "confdefs.h"
13332 /* Override any gcc2 internal prototype to avoid an error. */
13333 /* We use char because int might match the return type of a gcc2
13334 builtin and then its argument prototype would still apply. */
13341 if { (eval echo configure:13342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13343 eval "ac_cv_lib_$ac_lib_var=yes"
13345 echo "configure: failed program was:" >&5
13346 cat conftest.$ac_ext >&5
13348 eval "ac_cv_lib_$ac_lib_var=no"
13351 LIBS="$ac_save_LIBS"
13354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13355 echo "$ac_t""yes" 1>&6
13358 echo "$ac_t""no" 1>&6
13362 if test $have_termcap = yes ; then
13363 cat >> confdefs.h <<\EOF
13364 #define HAVE_TERMCAP 1
13367 ol_link_termcap=yes
13368 TERMCAP_LIBS=-ltermcap
13372 if test $ol_link_termcap = no ; then
13373 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13374 echo "configure:13375: checking for initscr in -lncurses" >&5
13375 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13376 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13377 echo $ac_n "(cached) $ac_c" 1>&6
13379 ac_save_LIBS="$LIBS"
13380 LIBS="-lncurses $LIBS"
13381 cat > conftest.$ac_ext <<EOF
13382 #line 13383 "configure"
13383 #include "confdefs.h"
13384 /* Override any gcc2 internal prototype to avoid an error. */
13385 /* We use char because int might match the return type of a gcc2
13386 builtin and then its argument prototype would still apply. */
13393 if { (eval echo configure:13394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13395 eval "ac_cv_lib_$ac_lib_var=yes"
13397 echo "configure: failed program was:" >&5
13398 cat conftest.$ac_ext >&5
13400 eval "ac_cv_lib_$ac_lib_var=no"
13403 LIBS="$ac_save_LIBS"
13406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13407 echo "$ac_t""yes" 1>&6
13410 echo "$ac_t""no" 1>&6
13414 if test $have_ncurses = yes ; then
13415 cat >> confdefs.h <<\EOF
13416 #define HAVE_NCURSES 1
13419 ol_link_termcap=yes
13420 TERMCAP_LIBS=-lncurses
13424 if test $ol_link_termcap = no ; then
13425 cat >> confdefs.h <<\EOF
13426 #define NO_TERMCAP 1
13434 if test $ol_with_cyrus_sasl != no ; then
13435 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13436 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13437 echo "configure:13438: checking for sasl.h" >&5
13438 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13439 echo $ac_n "(cached) $ac_c" 1>&6
13441 cat > conftest.$ac_ext <<EOF
13442 #line 13443 "configure"
13443 #include "confdefs.h"
13446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13447 { (eval echo configure:13448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13449 if test -z "$ac_err"; then
13451 eval "ac_cv_header_$ac_safe=yes"
13454 echo "configure: failed program was:" >&5
13455 cat conftest.$ac_ext >&5
13457 eval "ac_cv_header_$ac_safe=no"
13461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13462 echo "$ac_t""yes" 1>&6
13465 echo "$ac_t""no" 1>&6
13469 if test $ac_cv_header_sasl_h = yes ; then
13470 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13471 echo "configure:13472: checking for sasl_client_init in -lsasl" >&5
13472 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13473 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13474 echo $ac_n "(cached) $ac_c" 1>&6
13476 ac_save_LIBS="$LIBS"
13477 LIBS="-lsasl $LIBS"
13478 cat > conftest.$ac_ext <<EOF
13479 #line 13480 "configure"
13480 #include "confdefs.h"
13481 /* Override any gcc2 internal prototype to avoid an error. */
13482 /* We use char because int might match the return type of a gcc2
13483 builtin and then its argument prototype would still apply. */
13484 char sasl_client_init();
13490 if { (eval echo configure:13491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13492 eval "ac_cv_lib_$ac_lib_var=yes"
13494 echo "configure: failed program was:" >&5
13495 cat conftest.$ac_ext >&5
13497 eval "ac_cv_lib_$ac_lib_var=no"
13500 LIBS="$ac_save_LIBS"
13503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13504 echo "$ac_t""yes" 1>&6
13505 have_cyrus_sasl=yes
13507 echo "$ac_t""no" 1>&6
13512 if test $have_cyrus_sasl != no ; then
13514 cat >> confdefs.h <<\EOF
13515 #define HAVE_CYRUS_SASL 1
13522 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
13523 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
13527 if test $cross_compiling != yes ; then
13529 if test -r /dev/urandom ; then
13530 dev="/dev/urandom";
13531 elif test -r /idev/urandom ; then
13532 dev="/idev/urandom";
13533 elif test -r /dev/srandom ; then
13534 dev="/dev/srandom";
13535 elif test -r /dev/random ; then
13537 elif test -r /idev/random ; then
13538 dev="/idev/random";
13541 if test $dev != no ; then
13542 cat >> confdefs.h <<EOF
13543 #define URANDOM_DEVICE "$dev"
13550 if test $ol_with_fetch != no ; then
13552 LIBS="-lfetch -lcom_err $LIBS"
13553 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13554 echo "configure:13555: checking fetch(3) library" >&5
13555 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13556 echo $ac_n "(cached) $ac_c" 1>&6
13559 cat > conftest.$ac_ext <<EOF
13560 #line 13561 "configure"
13561 #include "confdefs.h"
13563 #include <sys/param.h>
13567 struct url *u = fetchParseURL("file:///");
13570 if { (eval echo configure:13571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13572 ol_cv_lib_fetch=yes
13574 echo "configure: failed program was:" >&5
13575 cat conftest.$ac_ext >&5
13582 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13584 if test $ol_cv_lib_fetch != no ; then
13585 ol_link_fetch="-lfetch -lcom_err"
13586 cat >> confdefs.h <<\EOF
13587 #define HAVE_FETCH 1
13593 if test $ol_cv_lib_fetch != no ; then
13594 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13595 ol_link_fetch=freebsd
13597 elif test $ol_with_fetch != auto ; then
13598 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13602 ol_link_readline=no
13603 if test $ol_with_readline != no ; then
13604 for ac_hdr in readline/readline.h readline/history.h
13606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13608 echo "configure:13609: checking for $ac_hdr" >&5
13609 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13610 echo $ac_n "(cached) $ac_c" 1>&6
13612 cat > conftest.$ac_ext <<EOF
13613 #line 13614 "configure"
13614 #include "confdefs.h"
13617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13618 { (eval echo configure:13619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13620 if test -z "$ac_err"; then
13622 eval "ac_cv_header_$ac_safe=yes"
13625 echo "configure: failed program was:" >&5
13626 cat conftest.$ac_ext >&5
13628 eval "ac_cv_header_$ac_safe=no"
13632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13633 echo "$ac_t""yes" 1>&6
13634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13635 cat >> confdefs.h <<EOF
13636 #define $ac_tr_hdr 1
13640 echo "$ac_t""no" 1>&6
13645 if test $ac_cv_header_readline_readline_h = yes ; then
13647 LIBS="$TERMCAP_LIBS $LIBS"
13648 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13649 echo "configure:13650: checking for readline in -lreadline" >&5
13650 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13651 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13652 echo $ac_n "(cached) $ac_c" 1>&6
13654 ac_save_LIBS="$LIBS"
13655 LIBS="-lreadline $LIBS"
13656 cat > conftest.$ac_ext <<EOF
13657 #line 13658 "configure"
13658 #include "confdefs.h"
13659 /* Override any gcc2 internal prototype to avoid an error. */
13660 /* We use char because int might match the return type of a gcc2
13661 builtin and then its argument prototype would still apply. */
13668 if { (eval echo configure:13669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13670 eval "ac_cv_lib_$ac_lib_var=yes"
13672 echo "configure: failed program was:" >&5
13673 cat conftest.$ac_ext >&5
13675 eval "ac_cv_lib_$ac_lib_var=no"
13678 LIBS="$ac_save_LIBS"
13681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13682 echo "$ac_t""yes" 1>&6
13685 echo "$ac_t""no" 1>&6
13691 if test $have_readline = yes ; then
13692 ol_with_readline=found
13693 ol_link_readline=yes
13695 READLINE_LIBS="-lreadline"
13700 if test $ol_link_readline = yes ; then
13701 cat >> confdefs.h <<\EOF
13702 #define HAVE_READLINE 1
13708 if test $ol_enable_crypt != no ; then
13709 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13710 echo "configure:13711: checking for crypt" >&5
13711 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13712 echo $ac_n "(cached) $ac_c" 1>&6
13714 cat > conftest.$ac_ext <<EOF
13715 #line 13716 "configure"
13716 #include "confdefs.h"
13717 /* System header to define __stub macros and hopefully few prototypes,
13718 which can conflict with char crypt(); below. */
13719 #include <assert.h>
13720 /* Override any gcc2 internal prototype to avoid an error. */
13721 /* We use char because int might match the return type of a gcc2
13722 builtin and then its argument prototype would still apply. */
13728 /* The GNU C library defines this for functions which it implements
13729 to always fail with ENOSYS. Some functions are actually named
13730 something starting with __ and the normal name is an alias. */
13731 #if defined (__stub_crypt) || defined (__stub___crypt)
13739 if { (eval echo configure:13740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13741 eval "ac_cv_func_crypt=yes"
13743 echo "configure: failed program was:" >&5
13744 cat conftest.$ac_ext >&5
13746 eval "ac_cv_func_crypt=no"
13751 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13752 echo "$ac_t""yes" 1>&6
13755 echo "$ac_t""no" 1>&6
13757 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13758 echo "configure:13759: checking for crypt in -lcrypt" >&5
13759 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13760 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13761 echo $ac_n "(cached) $ac_c" 1>&6
13763 ac_save_LIBS="$LIBS"
13764 LIBS="-lcrypt $LIBS"
13765 cat > conftest.$ac_ext <<EOF
13766 #line 13767 "configure"
13767 #include "confdefs.h"
13768 /* Override any gcc2 internal prototype to avoid an error. */
13769 /* We use char because int might match the return type of a gcc2
13770 builtin and then its argument prototype would still apply. */
13777 if { (eval echo configure:13778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13779 eval "ac_cv_lib_$ac_lib_var=yes"
13781 echo "configure: failed program was:" >&5
13782 cat conftest.$ac_ext >&5
13784 eval "ac_cv_lib_$ac_lib_var=no"
13787 LIBS="$ac_save_LIBS"
13790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13791 echo "$ac_t""yes" 1>&6
13792 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13795 echo "$ac_t""no" 1>&6
13802 if test $have_crypt = yes ; then
13803 cat >> confdefs.h <<\EOF
13804 #define HAVE_CRYPT 1
13808 echo "configure: warning: could not find crypt" 1>&2
13809 if test $ol_enable_crypt = yes ; then
13810 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13813 echo "configure: warning: disabling crypt support" 1>&2
13818 if test $ol_enable_proctitle != no ; then
13819 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13820 echo "configure:13821: checking for setproctitle" >&5
13821 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13822 echo $ac_n "(cached) $ac_c" 1>&6
13824 cat > conftest.$ac_ext <<EOF
13825 #line 13826 "configure"
13826 #include "confdefs.h"
13827 /* System header to define __stub macros and hopefully few prototypes,
13828 which can conflict with char setproctitle(); below. */
13829 #include <assert.h>
13830 /* Override any gcc2 internal prototype to avoid an error. */
13831 /* We use char because int might match the return type of a gcc2
13832 builtin and then its argument prototype would still apply. */
13833 char setproctitle();
13838 /* The GNU C library defines this for functions which it implements
13839 to always fail with ENOSYS. Some functions are actually named
13840 something starting with __ and the normal name is an alias. */
13841 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13849 if { (eval echo configure:13850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13851 eval "ac_cv_func_setproctitle=yes"
13853 echo "configure: failed program was:" >&5
13854 cat conftest.$ac_ext >&5
13856 eval "ac_cv_func_setproctitle=no"
13861 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13862 echo "$ac_t""yes" 1>&6
13863 have_setproctitle=yes
13865 echo "$ac_t""no" 1>&6
13867 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13868 echo "configure:13869: checking for setproctitle in -lutil" >&5
13869 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13870 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13871 echo $ac_n "(cached) $ac_c" 1>&6
13873 ac_save_LIBS="$LIBS"
13874 LIBS="-lutil $LIBS"
13875 cat > conftest.$ac_ext <<EOF
13876 #line 13877 "configure"
13877 #include "confdefs.h"
13878 /* Override any gcc2 internal prototype to avoid an error. */
13879 /* We use char because int might match the return type of a gcc2
13880 builtin and then its argument prototype would still apply. */
13881 char setproctitle();
13887 if { (eval echo configure:13888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13889 eval "ac_cv_lib_$ac_lib_var=yes"
13891 echo "configure: failed program was:" >&5
13892 cat conftest.$ac_ext >&5
13894 eval "ac_cv_lib_$ac_lib_var=no"
13897 LIBS="$ac_save_LIBS"
13900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13901 echo "$ac_t""yes" 1>&6
13902 have_setproctitle=yes
13903 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13905 echo "$ac_t""no" 1>&6
13906 have_setproctitle=no
13907 LIBOBJS="$LIBOBJS setproctitle.o"
13908 LIBSRCS="$LIBSRCS setproctitle.c"
13914 if test $have_setproctitle = yes ; then
13915 cat >> confdefs.h <<\EOF
13916 #define HAVE_SETPROCTITLE 1
13922 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13923 echo "configure:13924: checking for ANSI C header files" >&5
13924 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13925 echo $ac_n "(cached) $ac_c" 1>&6
13927 cat > conftest.$ac_ext <<EOF
13928 #line 13929 "configure"
13929 #include "confdefs.h"
13930 #include <stdlib.h>
13931 #include <stdarg.h>
13932 #include <string.h>
13935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13936 { (eval echo configure:13937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13938 if test -z "$ac_err"; then
13940 ac_cv_header_stdc=yes
13943 echo "configure: failed program was:" >&5
13944 cat conftest.$ac_ext >&5
13946 ac_cv_header_stdc=no
13950 if test $ac_cv_header_stdc = yes; then
13951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13952 cat > conftest.$ac_ext <<EOF
13953 #line 13954 "configure"
13954 #include "confdefs.h"
13955 #include <string.h>
13957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13958 egrep "memchr" >/dev/null 2>&1; then
13962 ac_cv_header_stdc=no
13968 if test $ac_cv_header_stdc = yes; then
13969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13970 cat > conftest.$ac_ext <<EOF
13971 #line 13972 "configure"
13972 #include "confdefs.h"
13973 #include <stdlib.h>
13975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13976 egrep "free" >/dev/null 2>&1; then
13980 ac_cv_header_stdc=no
13986 if test $ac_cv_header_stdc = yes; then
13987 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13988 if test "$cross_compiling" = yes; then
13991 cat > conftest.$ac_ext <<EOF
13992 #line 13993 "configure"
13993 #include "confdefs.h"
13995 #if ((' ' & 0x0FF) == 0x020)
13996 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13997 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13999 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14000 || ('j' <= (c) && (c) <= 'r') \
14001 || ('s' <= (c) && (c) <= 'z'))
14002 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14005 int main () { int i; for (i = 0; i < 256; i++)
14006 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14010 if { (eval echo configure:14011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14014 echo "configure: failed program was:" >&5
14015 cat conftest.$ac_ext >&5
14017 ac_cv_header_stdc=no
14025 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14026 if test $ac_cv_header_stdc = yes; then
14027 cat >> confdefs.h <<\EOF
14028 #define STDC_HEADERS 1
14033 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14034 echo "configure:14035: checking for mode_t" >&5
14035 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14036 echo $ac_n "(cached) $ac_c" 1>&6
14038 cat > conftest.$ac_ext <<EOF
14039 #line 14040 "configure"
14040 #include "confdefs.h"
14041 #include <sys/types.h>
14043 #include <stdlib.h>
14044 #include <stddef.h>
14048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14049 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14051 eval "ac_cv_type_mode_t=yes"
14054 eval "ac_cv_type_mode_t=no"
14059 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14060 echo "$ac_t""yes" 1>&6
14062 echo "$ac_t""no" 1>&6
14063 cat >> confdefs.h <<EOF
14069 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14070 echo "configure:14071: checking for off_t" >&5
14071 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14072 echo $ac_n "(cached) $ac_c" 1>&6
14074 cat > conftest.$ac_ext <<EOF
14075 #line 14076 "configure"
14076 #include "confdefs.h"
14077 #include <sys/types.h>
14079 #include <stdlib.h>
14080 #include <stddef.h>
14084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14085 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14087 eval "ac_cv_type_off_t=yes"
14090 eval "ac_cv_type_off_t=no"
14095 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14096 echo "$ac_t""yes" 1>&6
14098 echo "$ac_t""no" 1>&6
14099 cat >> confdefs.h <<EOF
14105 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14106 echo "configure:14107: checking for pid_t" >&5
14107 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14108 echo $ac_n "(cached) $ac_c" 1>&6
14110 cat > conftest.$ac_ext <<EOF
14111 #line 14112 "configure"
14112 #include "confdefs.h"
14113 #include <sys/types.h>
14115 #include <stdlib.h>
14116 #include <stddef.h>
14120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14121 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14123 eval "ac_cv_type_pid_t=yes"
14126 eval "ac_cv_type_pid_t=no"
14131 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14132 echo "$ac_t""yes" 1>&6
14134 echo "$ac_t""no" 1>&6
14135 cat >> confdefs.h <<EOF
14141 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14142 echo "configure:14143: checking for ptrdiff_t" >&5
14143 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14144 echo $ac_n "(cached) $ac_c" 1>&6
14146 cat > conftest.$ac_ext <<EOF
14147 #line 14148 "configure"
14148 #include "confdefs.h"
14149 #include <stddef.h>
14154 if { (eval echo configure:14155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14156 am_cv_type_ptrdiff_t=yes
14158 echo "configure: failed program was:" >&5
14159 cat conftest.$ac_ext >&5
14161 am_cv_type_ptrdiff_t=no
14166 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14167 if test $am_cv_type_ptrdiff_t = yes; then
14168 cat >> confdefs.h <<\EOF
14169 #define HAVE_PTRDIFF_T 1
14174 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14175 echo "configure:14176: checking return type of signal handlers" >&5
14176 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14177 echo $ac_n "(cached) $ac_c" 1>&6
14179 cat > conftest.$ac_ext <<EOF
14180 #line 14181 "configure"
14181 #include "confdefs.h"
14182 #include <sys/types.h>
14183 #include <signal.h>
14188 extern "C" void (*signal (int, void (*)(int)))(int);
14190 void (*signal ()) ();
14197 if { (eval echo configure:14198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14199 ac_cv_type_signal=void
14201 echo "configure: failed program was:" >&5
14202 cat conftest.$ac_ext >&5
14204 ac_cv_type_signal=int
14209 echo "$ac_t""$ac_cv_type_signal" 1>&6
14210 cat >> confdefs.h <<EOF
14211 #define RETSIGTYPE $ac_cv_type_signal
14215 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14216 echo "configure:14217: checking for size_t" >&5
14217 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14218 echo $ac_n "(cached) $ac_c" 1>&6
14220 cat > conftest.$ac_ext <<EOF
14221 #line 14222 "configure"
14222 #include "confdefs.h"
14223 #include <sys/types.h>
14225 #include <stdlib.h>
14226 #include <stddef.h>
14230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14231 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14233 eval "ac_cv_type_size_t=yes"
14236 eval "ac_cv_type_size_t=no"
14241 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14242 echo "$ac_t""yes" 1>&6
14244 echo "$ac_t""no" 1>&6
14245 cat >> confdefs.h <<EOF
14246 #define size_t unsigned
14252 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14253 echo "configure:14254: checking for ssize_t" >&5
14254 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14255 echo $ac_n "(cached) $ac_c" 1>&6
14257 cat > conftest.$ac_ext <<EOF
14258 #line 14259 "configure"
14259 #include "confdefs.h"
14260 #include <sys/types.h>
14262 #include <stdlib.h>
14263 #include <stddef.h>
14267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14268 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14270 eval "ac_cv_type_ssize_t=yes"
14273 eval "ac_cv_type_ssize_t=no"
14278 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14279 echo "$ac_t""yes" 1>&6
14281 echo "$ac_t""no" 1>&6
14282 cat >> confdefs.h <<EOF
14283 #define ssize_t signed int
14288 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14289 echo "configure:14290: checking for caddr_t" >&5
14290 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14291 echo $ac_n "(cached) $ac_c" 1>&6
14293 cat > conftest.$ac_ext <<EOF
14294 #line 14295 "configure"
14295 #include "confdefs.h"
14296 #include <sys/types.h>
14298 #include <stdlib.h>
14299 #include <stddef.h>
14303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14304 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14306 eval "ac_cv_type_caddr_t=yes"
14309 eval "ac_cv_type_caddr_t=no"
14314 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14315 echo "$ac_t""yes" 1>&6
14317 echo "$ac_t""no" 1>&6
14318 cat >> confdefs.h <<EOF
14319 #define caddr_t char *
14325 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14326 echo "configure:14327: checking for socklen_t" >&5
14327 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14328 echo $ac_n "(cached) $ac_c" 1>&6
14330 cat > conftest.$ac_ext <<EOF
14331 #line 14332 "configure"
14332 #include "confdefs.h"
14334 #ifdef HAVE_SYS_TYPES_H
14335 #include <sys/types.h>
14337 #ifdef HAVE_SYS_SOCKET_H
14338 #include <sys/socket.h>
14345 if { (eval echo configure:14346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14347 ol_cv_type_socklen_t=yes
14349 echo "configure: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14352 ol_cv_type_socklen_t=no
14357 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14358 if test $ol_cv_type_socklen_t = no; then
14359 cat >> confdefs.h <<\EOF
14360 #define socklen_t int
14365 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14366 echo "configure:14367: checking for member st_blksize in aggregate type struct stat" >&5
14367 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14368 echo $ac_n "(cached) $ac_c" 1>&6
14370 cat > conftest.$ac_ext <<EOF
14371 #line 14372 "configure"
14372 #include "confdefs.h"
14373 #include <sys/types.h>
14374 #include <sys/stat.h>
14376 struct stat foo; foo.st_blksize;
14379 if { (eval echo configure:14380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14381 ac_cv_c_struct_member_st_blksize=yes
14383 echo "configure: failed program was:" >&5
14384 cat conftest.$ac_ext >&5
14386 ac_cv_c_struct_member_st_blksize=no
14391 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14392 st_blksize="$ac_cv_c_struct_member_st_blksize"
14393 if test $ac_cv_c_struct_member_st_blksize = yes; then
14394 cat >> confdefs.h <<\EOF
14395 #define HAVE_ST_BLKSIZE 1
14400 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14401 echo "configure:14402: checking whether time.h and sys/time.h may both be included" >&5
14402 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14403 echo $ac_n "(cached) $ac_c" 1>&6
14405 cat > conftest.$ac_ext <<EOF
14406 #line 14407 "configure"
14407 #include "confdefs.h"
14408 #include <sys/types.h>
14409 #include <sys/time.h>
14415 if { (eval echo configure:14416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14417 ac_cv_header_time=yes
14419 echo "configure: failed program was:" >&5
14420 cat conftest.$ac_ext >&5
14422 ac_cv_header_time=no
14427 echo "$ac_t""$ac_cv_header_time" 1>&6
14428 if test $ac_cv_header_time = yes; then
14429 cat >> confdefs.h <<\EOF
14430 #define TIME_WITH_SYS_TIME 1
14435 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14436 echo "configure:14437: checking whether struct tm is in sys/time.h or time.h" >&5
14437 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14438 echo $ac_n "(cached) $ac_c" 1>&6
14440 cat > conftest.$ac_ext <<EOF
14441 #line 14442 "configure"
14442 #include "confdefs.h"
14443 #include <sys/types.h>
14446 struct tm *tp; tp->tm_sec;
14449 if { (eval echo configure:14450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14451 ac_cv_struct_tm=time.h
14453 echo "configure: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14456 ac_cv_struct_tm=sys/time.h
14461 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14462 if test $ac_cv_struct_tm = sys/time.h; then
14463 cat >> confdefs.h <<\EOF
14464 #define TM_IN_SYS_TIME 1
14469 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14470 echo "configure:14471: checking for uid_t in sys/types.h" >&5
14471 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14472 echo $ac_n "(cached) $ac_c" 1>&6
14474 cat > conftest.$ac_ext <<EOF
14475 #line 14476 "configure"
14476 #include "confdefs.h"
14477 #include <sys/types.h>
14479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14480 egrep "uid_t" >/dev/null 2>&1; then
14482 ac_cv_type_uid_t=yes
14485 ac_cv_type_uid_t=no
14491 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14492 if test $ac_cv_type_uid_t = no; then
14493 cat >> confdefs.h <<\EOF
14497 cat >> confdefs.h <<\EOF
14503 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14504 echo "configure:14505: checking for sig_atomic_t" >&5
14505 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14506 echo $ac_n "(cached) $ac_c" 1>&6
14508 cat > conftest.$ac_ext <<EOF
14509 #line 14510 "configure"
14510 #include "confdefs.h"
14511 #include <signal.h>
14513 sig_atomic_t atomic;
14516 if { (eval echo configure:14517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14518 ol_cv_type_sig_atomic_t=yes
14520 echo "configure: failed program was:" >&5
14521 cat conftest.$ac_ext >&5
14523 ol_cv_type_sig_atomic_t=no
14528 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14529 if test $ol_cv_type_sig_atomic_t = no; then
14530 cat >> confdefs.h <<\EOF
14531 #define sig_atomic_t int
14538 # test for pw_gecos in struct passwd
14539 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14540 echo "configure:14541: checking struct passwd for pw_gecos" >&5
14541 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14542 echo $ac_n "(cached) $ac_c" 1>&6
14545 cat > conftest.$ac_ext <<EOF
14546 #line 14547 "configure"
14547 #include "confdefs.h"
14552 pwd.pw_gecos = pwd.pw_name;
14556 if { (eval echo configure:14557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14558 ol_cv_struct_passwd_pw_gecos=yes
14560 echo "configure: failed program was:" >&5
14561 cat conftest.$ac_ext >&5
14563 ol_cv_struct_passwd_pw_gecos=no
14568 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14569 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14570 cat >> confdefs.h <<\EOF
14571 #define HAVE_PW_GECOS 1
14576 # test for pw_passwd in struct passwd
14577 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14578 echo "configure:14579: checking struct passwd for pw_passwd" >&5
14579 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14580 echo $ac_n "(cached) $ac_c" 1>&6
14583 cat > conftest.$ac_ext <<EOF
14584 #line 14585 "configure"
14585 #include "confdefs.h"
14590 pwd.pw_passwd = pwd.pw_name;
14594 if { (eval echo configure:14595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14596 ol_cv_struct_passwd_pw_passwd=yes
14598 echo "configure: failed program was:" >&5
14599 cat conftest.$ac_ext >&5
14601 ol_cv_struct_passwd_pw_passwd=no
14606 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14607 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14608 cat >> confdefs.h <<\EOF
14609 #define HAVE_PW_PASSWD 1
14615 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14616 echo "configure:14617: checking if toupper() requires islower()" >&5
14617 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14618 echo $ac_n "(cached) $ac_c" 1>&6
14621 if test "$cross_compiling" = yes; then
14622 ol_cv_c_upper_lower=safe
14624 cat > conftest.$ac_ext <<EOF
14625 #line 14626 "configure"
14626 #include "confdefs.h"
14631 if ('C' == toupper('C'))
14637 if { (eval echo configure:14638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14639 ol_cv_c_upper_lower=no
14641 echo "configure: failed program was:" >&5
14642 cat conftest.$ac_ext >&5
14644 ol_cv_c_upper_lower=yes
14651 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14652 if test $ol_cv_c_upper_lower != no ; then
14653 cat >> confdefs.h <<\EOF
14654 #define C_UPPER_LOWER 1
14659 echo $ac_n "checking for working const""... $ac_c" 1>&6
14660 echo "configure:14661: checking for working const" >&5
14661 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14662 echo $ac_n "(cached) $ac_c" 1>&6
14664 cat > conftest.$ac_ext <<EOF
14665 #line 14666 "configure"
14666 #include "confdefs.h"
14670 /* Ultrix mips cc rejects this. */
14671 typedef int charset[2]; const charset x;
14672 /* SunOS 4.1.1 cc rejects this. */
14673 char const *const *ccp;
14675 /* NEC SVR4.0.2 mips cc rejects this. */
14676 struct point {int x, y;};
14677 static struct point const zero = {0,0};
14678 /* AIX XL C 1.02.0.0 rejects this.
14679 It does not let you subtract one const X* pointer from another in an arm
14680 of an if-expression whose if-part is not a constant expression */
14681 const char *g = "string";
14682 ccp = &g + (g ? g-g : 0);
14683 /* HPUX 7.0 cc rejects these. */
14686 ccp = (char const *const *) p;
14687 { /* SCO 3.2v4 cc rejects this. */
14689 char const *s = 0 ? (char *) 0 : (char const *) 0;
14693 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14694 int x[] = {25, 17};
14695 const int *foo = &x[0];
14698 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14699 typedef const int *iptr;
14703 { /* AIX XL C 1.02.0.0 rejects this saying
14704 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14705 struct s { int j; const int *ap[3]; };
14706 struct s *b; b->j = 5;
14708 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14709 const int foo = 10;
14714 if { (eval echo configure:14715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14718 echo "configure: failed program was:" >&5
14719 cat conftest.$ac_ext >&5
14726 echo "$ac_t""$ac_cv_c_const" 1>&6
14727 if test $ac_cv_c_const = no; then
14728 cat >> confdefs.h <<\EOF
14734 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14735 echo "configure:14736: checking if compiler understands volatile" >&5
14736 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14737 echo $ac_n "(cached) $ac_c" 1>&6
14739 cat > conftest.$ac_ext <<EOF
14740 #line 14741 "configure"
14741 #include "confdefs.h"
14744 volatile int a; int * volatile b = x ? &y : &z;
14745 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14749 if { (eval echo configure:14750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14751 ol_cv_c_volatile=yes
14753 echo "configure: failed program was:" >&5
14754 cat conftest.$ac_ext >&5
14756 ol_cv_c_volatile=no
14761 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14762 if test $ol_cv_c_volatile = yes; then
14765 cat >> confdefs.h <<\EOF
14772 if test $cross_compiling = yes ; then
14773 cat >> confdefs.h <<\EOF
14774 #define CROSS_COMPILING 1
14778 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14779 echo "configure:14780: checking whether byte ordering is bigendian" >&5
14780 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14781 echo $ac_n "(cached) $ac_c" 1>&6
14783 ac_cv_c_bigendian=unknown
14784 # See if sys/param.h defines the BYTE_ORDER macro.
14785 cat > conftest.$ac_ext <<EOF
14786 #line 14787 "configure"
14787 #include "confdefs.h"
14788 #include <sys/types.h>
14789 #include <sys/param.h>
14792 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14793 bogus endian macros
14797 if { (eval echo configure:14798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14799 # It does; now see whether it defined to BIG_ENDIAN or not.
14800 cat > conftest.$ac_ext <<EOF
14801 #line 14802 "configure"
14802 #include "confdefs.h"
14803 #include <sys/types.h>
14804 #include <sys/param.h>
14807 #if BYTE_ORDER != BIG_ENDIAN
14812 if { (eval echo configure:14813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14814 ac_cv_c_bigendian=yes
14816 echo "configure: failed program was:" >&5
14817 cat conftest.$ac_ext >&5
14819 ac_cv_c_bigendian=no
14823 echo "configure: failed program was:" >&5
14824 cat conftest.$ac_ext >&5
14827 if test $ac_cv_c_bigendian = unknown; then
14828 if test "$cross_compiling" = yes; then
14829 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14831 cat > conftest.$ac_ext <<EOF
14832 #line 14833 "configure"
14833 #include "confdefs.h"
14835 /* Are we little or big endian? From Harbison&Steele. */
14839 char c[sizeof (long)];
14842 exit (u.c[sizeof (long) - 1] == 1);
14845 if { (eval echo configure:14846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14847 ac_cv_c_bigendian=no
14849 echo "configure: failed program was:" >&5
14850 cat conftest.$ac_ext >&5
14852 ac_cv_c_bigendian=yes
14860 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14861 if test $ac_cv_c_bigendian = yes; then
14862 cat >> confdefs.h <<\EOF
14863 #define WORDS_BIGENDIAN 1
14870 echo $ac_n "checking size of short""... $ac_c" 1>&6
14871 echo "configure:14872: checking size of short" >&5
14872 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14873 echo $ac_n "(cached) $ac_c" 1>&6
14875 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14876 cat > conftest.$ac_ext <<EOF
14877 #line 14878 "configure"
14878 #include "confdefs.h"
14879 #include "confdefs.h"
14880 #include <sys/types.h>
14884 switch (0) case 0: case (sizeof (short) == $ac_size):;
14887 if { (eval echo configure:14888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14889 ac_cv_sizeof_short=$ac_size
14891 echo "configure: failed program was:" >&5
14892 cat conftest.$ac_ext >&5
14895 if test x$ac_cv_sizeof_short != x ; then break; fi
14900 if test x$ac_cv_sizeof_short = x ; then
14901 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14903 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14904 cat >> confdefs.h <<EOF
14905 #define SIZEOF_SHORT $ac_cv_sizeof_short
14909 echo $ac_n "checking size of int""... $ac_c" 1>&6
14910 echo "configure:14911: checking size of int" >&5
14911 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14912 echo $ac_n "(cached) $ac_c" 1>&6
14914 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14915 cat > conftest.$ac_ext <<EOF
14916 #line 14917 "configure"
14917 #include "confdefs.h"
14918 #include "confdefs.h"
14919 #include <sys/types.h>
14923 switch (0) case 0: case (sizeof (int) == $ac_size):;
14926 if { (eval echo configure:14927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14928 ac_cv_sizeof_int=$ac_size
14930 echo "configure: failed program was:" >&5
14931 cat conftest.$ac_ext >&5
14934 if test x$ac_cv_sizeof_int != x ; then break; fi
14939 if test x$ac_cv_sizeof_int = x ; then
14940 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14942 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14943 cat >> confdefs.h <<EOF
14944 #define SIZEOF_INT $ac_cv_sizeof_int
14948 echo $ac_n "checking size of long""... $ac_c" 1>&6
14949 echo "configure:14950: checking size of long" >&5
14950 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14951 echo $ac_n "(cached) $ac_c" 1>&6
14953 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14954 cat > conftest.$ac_ext <<EOF
14955 #line 14956 "configure"
14956 #include "confdefs.h"
14957 #include "confdefs.h"
14958 #include <sys/types.h>
14962 switch (0) case 0: case (sizeof (long) == $ac_size):;
14965 if { (eval echo configure:14966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14967 ac_cv_sizeof_long=$ac_size
14969 echo "configure: failed program was:" >&5
14970 cat conftest.$ac_ext >&5
14973 if test x$ac_cv_sizeof_long != x ; then break; fi
14978 if test x$ac_cv_sizeof_long = x ; then
14979 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14981 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14982 cat >> confdefs.h <<EOF
14983 #define SIZEOF_LONG $ac_cv_sizeof_long
14988 if test "$ac_cv_sizeof_int" -lt 4 ; then
14989 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14991 cat >> confdefs.h <<\EOF
14992 #define LBER_INT_T long
14996 cat >> confdefs.h <<\EOF
14997 #define LBER_INT_T int
15002 cat >> confdefs.h <<\EOF
15003 #define LBER_LEN_T long
15006 cat >> confdefs.h <<\EOF
15007 #define LBER_SOCKET_T int
15010 cat >> confdefs.h <<\EOF
15011 #define LBER_TAG_T long
15015 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15016 echo "configure:15017: checking for 8-bit clean memcmp" >&5
15017 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15018 echo $ac_n "(cached) $ac_c" 1>&6
15020 if test "$cross_compiling" = yes; then
15021 ac_cv_func_memcmp_clean=no
15023 cat > conftest.$ac_ext <<EOF
15024 #line 15025 "configure"
15025 #include "confdefs.h"
15029 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15030 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15034 if { (eval echo configure:15035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15036 ac_cv_func_memcmp_clean=yes
15038 echo "configure: failed program was:" >&5
15039 cat conftest.$ac_ext >&5
15041 ac_cv_func_memcmp_clean=no
15048 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15049 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15051 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15052 echo "configure:15053: checking for strftime" >&5
15053 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15054 echo $ac_n "(cached) $ac_c" 1>&6
15056 cat > conftest.$ac_ext <<EOF
15057 #line 15058 "configure"
15058 #include "confdefs.h"
15059 /* System header to define __stub macros and hopefully few prototypes,
15060 which can conflict with char strftime(); below. */
15061 #include <assert.h>
15062 /* Override any gcc2 internal prototype to avoid an error. */
15063 /* We use char because int might match the return type of a gcc2
15064 builtin and then its argument prototype would still apply. */
15070 /* The GNU C library defines this for functions which it implements
15071 to always fail with ENOSYS. Some functions are actually named
15072 something starting with __ and the normal name is an alias. */
15073 #if defined (__stub_strftime) || defined (__stub___strftime)
15081 if { (eval echo configure:15082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15083 eval "ac_cv_func_strftime=yes"
15085 echo "configure: failed program was:" >&5
15086 cat conftest.$ac_ext >&5
15088 eval "ac_cv_func_strftime=no"
15093 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15094 echo "$ac_t""yes" 1>&6
15095 cat >> confdefs.h <<\EOF
15096 #define HAVE_STRFTIME 1
15100 echo "$ac_t""no" 1>&6
15101 # strftime is in -lintl on SCO UNIX.
15102 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15103 echo "configure:15104: checking for strftime in -lintl" >&5
15104 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15105 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15106 echo $ac_n "(cached) $ac_c" 1>&6
15108 ac_save_LIBS="$LIBS"
15109 LIBS="-lintl $LIBS"
15110 cat > conftest.$ac_ext <<EOF
15111 #line 15112 "configure"
15112 #include "confdefs.h"
15113 /* Override any gcc2 internal prototype to avoid an error. */
15114 /* We use char because int might match the return type of a gcc2
15115 builtin and then its argument prototype would still apply. */
15122 if { (eval echo configure:15123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15124 eval "ac_cv_lib_$ac_lib_var=yes"
15126 echo "configure: failed program was:" >&5
15127 cat conftest.$ac_ext >&5
15129 eval "ac_cv_lib_$ac_lib_var=no"
15132 LIBS="$ac_save_LIBS"
15135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15136 echo "$ac_t""yes" 1>&6
15137 cat >> confdefs.h <<\EOF
15138 #define HAVE_STRFTIME 1
15141 LIBS="-lintl $LIBS"
15143 echo "$ac_t""no" 1>&6
15149 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15150 echo "configure:15151: checking for inet_aton()" >&5
15151 if eval "test \"\${ol_cv_func_inet_aton+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"
15158 #ifdef HAVE_SYS_TYPES_H
15159 # include <sys/types.h>
15161 #ifdef HAVE_SYS_SOCKET_H
15162 # include <sys/socket.h>
15163 # ifdef HAVE_SYS_SELECT_H
15164 # include <sys/select.h>
15166 # include <netinet/in.h>
15167 # ifdef HAVE_ARPA_INET_H
15168 # include <arpa/inet.h>
15174 int rc = inet_aton( "255.255.255.255", &in );
15177 if { (eval echo configure:15178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15179 ol_cv_func_inet_aton=yes
15181 echo "configure: failed program was:" >&5
15182 cat conftest.$ac_ext >&5
15184 ol_cv_func_inet_aton=no
15189 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15190 if test $ol_cv_func_inet_aton != no; then
15191 cat >> confdefs.h <<\EOF
15192 #define HAVE_INET_ATON 1
15198 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15199 echo "configure:15200: checking for _spawnlp" >&5
15200 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15201 echo $ac_n "(cached) $ac_c" 1>&6
15203 cat > conftest.$ac_ext <<EOF
15204 #line 15205 "configure"
15205 #include "confdefs.h"
15206 /* System header to define __stub macros and hopefully few prototypes,
15207 which can conflict with char _spawnlp(); below. */
15208 #include <assert.h>
15209 /* Override any gcc2 internal prototype to avoid an error. */
15210 /* We use char because int might match the return type of a gcc2
15211 builtin and then its argument prototype would still apply. */
15217 /* The GNU C library defines this for functions which it implements
15218 to always fail with ENOSYS. Some functions are actually named
15219 something starting with __ and the normal name is an alias. */
15220 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15228 if { (eval echo configure:15229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15230 eval "ac_cv_func__spawnlp=yes"
15232 echo "configure: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15235 eval "ac_cv_func__spawnlp=no"
15240 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15241 echo "$ac_t""yes" 1>&6
15242 cat >> confdefs.h <<\EOF
15243 #define HAVE_SPAWNLP 1
15247 echo "$ac_t""no" 1>&6
15251 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15252 echo "configure:15253: checking for _snprintf" >&5
15253 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15254 echo $ac_n "(cached) $ac_c" 1>&6
15256 cat > conftest.$ac_ext <<EOF
15257 #line 15258 "configure"
15258 #include "confdefs.h"
15259 /* System header to define __stub macros and hopefully few prototypes,
15260 which can conflict with char _snprintf(); below. */
15261 #include <assert.h>
15262 /* Override any gcc2 internal prototype to avoid an error. */
15263 /* We use char because int might match the return type of a gcc2
15264 builtin and then its argument prototype would still apply. */
15270 /* The GNU C library defines this for functions which it implements
15271 to always fail with ENOSYS. Some functions are actually named
15272 something starting with __ and the normal name is an alias. */
15273 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15281 if { (eval echo configure:15282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15283 eval "ac_cv_func__snprintf=yes"
15285 echo "configure: failed program was:" >&5
15286 cat conftest.$ac_ext >&5
15288 eval "ac_cv_func__snprintf=no"
15293 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15294 echo "$ac_t""yes" 1>&6
15295 ac_cv_func_snprintf=yes
15296 cat >> confdefs.h <<\EOF
15297 #define snprintf _snprintf
15302 echo "$ac_t""no" 1>&6
15306 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15307 echo "configure:15308: checking for _vsnprintf" >&5
15308 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15309 echo $ac_n "(cached) $ac_c" 1>&6
15311 cat > conftest.$ac_ext <<EOF
15312 #line 15313 "configure"
15313 #include "confdefs.h"
15314 /* System header to define __stub macros and hopefully few prototypes,
15315 which can conflict with char _vsnprintf(); below. */
15316 #include <assert.h>
15317 /* Override any gcc2 internal prototype to avoid an error. */
15318 /* We use char because int might match the return type of a gcc2
15319 builtin and then its argument prototype would still apply. */
15325 /* The GNU C library defines this for functions which it implements
15326 to always fail with ENOSYS. Some functions are actually named
15327 something starting with __ and the normal name is an alias. */
15328 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15336 if { (eval echo configure:15337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15338 eval "ac_cv_func__vsnprintf=yes"
15340 echo "configure: failed program was:" >&5
15341 cat conftest.$ac_ext >&5
15343 eval "ac_cv_func__vsnprintf=no"
15348 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15349 echo "$ac_t""yes" 1>&6
15350 ac_cv_func_vsnprintf=yes
15351 cat >> confdefs.h <<\EOF
15352 #define vsnprintf _vsnprintf
15357 echo "$ac_t""no" 1>&6
15361 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15362 echo "configure:15363: checking for vprintf" >&5
15363 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15364 echo $ac_n "(cached) $ac_c" 1>&6
15366 cat > conftest.$ac_ext <<EOF
15367 #line 15368 "configure"
15368 #include "confdefs.h"
15369 /* System header to define __stub macros and hopefully few prototypes,
15370 which can conflict with char vprintf(); below. */
15371 #include <assert.h>
15372 /* Override any gcc2 internal prototype to avoid an error. */
15373 /* We use char because int might match the return type of a gcc2
15374 builtin and then its argument prototype would still apply. */
15380 /* The GNU C library defines this for functions which it implements
15381 to always fail with ENOSYS. Some functions are actually named
15382 something starting with __ and the normal name is an alias. */
15383 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15391 if { (eval echo configure:15392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15393 eval "ac_cv_func_vprintf=yes"
15395 echo "configure: failed program was:" >&5
15396 cat conftest.$ac_ext >&5
15398 eval "ac_cv_func_vprintf=no"
15403 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15404 echo "$ac_t""yes" 1>&6
15405 cat >> confdefs.h <<\EOF
15406 #define HAVE_VPRINTF 1
15410 echo "$ac_t""no" 1>&6
15413 if test "$ac_cv_func_vprintf" != yes; then
15414 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15415 echo "configure:15416: checking for _doprnt" >&5
15416 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15417 echo $ac_n "(cached) $ac_c" 1>&6
15419 cat > conftest.$ac_ext <<EOF
15420 #line 15421 "configure"
15421 #include "confdefs.h"
15422 /* System header to define __stub macros and hopefully few prototypes,
15423 which can conflict with char _doprnt(); below. */
15424 #include <assert.h>
15425 /* Override any gcc2 internal prototype to avoid an error. */
15426 /* We use char because int might match the return type of a gcc2
15427 builtin and then its argument prototype would still apply. */
15433 /* The GNU C library defines this for functions which it implements
15434 to always fail with ENOSYS. Some functions are actually named
15435 something starting with __ and the normal name is an alias. */
15436 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15444 if { (eval echo configure:15445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15446 eval "ac_cv_func__doprnt=yes"
15448 echo "configure: failed program was:" >&5
15449 cat conftest.$ac_ext >&5
15451 eval "ac_cv_func__doprnt=no"
15456 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15457 echo "$ac_t""yes" 1>&6
15458 cat >> confdefs.h <<\EOF
15459 #define HAVE_DOPRNT 1
15463 echo "$ac_t""no" 1>&6
15469 if test $ac_cv_func_vprintf = yes ; then
15470 for ac_func in vsnprintf vsprintf
15472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15473 echo "configure:15474: checking for $ac_func" >&5
15474 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15475 echo $ac_n "(cached) $ac_c" 1>&6
15477 cat > conftest.$ac_ext <<EOF
15478 #line 15479 "configure"
15479 #include "confdefs.h"
15480 /* System header to define __stub macros and hopefully few prototypes,
15481 which can conflict with char $ac_func(); below. */
15482 #include <assert.h>
15483 /* Override any gcc2 internal prototype to avoid an error. */
15484 /* We use char because int might match the return type of a gcc2
15485 builtin and then its argument prototype would still apply. */
15491 /* The GNU C library defines this for functions which it implements
15492 to always fail with ENOSYS. Some functions are actually named
15493 something starting with __ and the normal name is an alias. */
15494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15502 if { (eval echo configure:15503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15504 eval "ac_cv_func_$ac_func=yes"
15506 echo "configure: failed program was:" >&5
15507 cat conftest.$ac_ext >&5
15509 eval "ac_cv_func_$ac_func=no"
15514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15515 echo "$ac_t""yes" 1>&6
15516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15517 cat >> confdefs.h <<EOF
15518 #define $ac_tr_func 1
15522 echo "$ac_t""no" 1>&6
15579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15580 echo "configure:15581: checking for $ac_func" >&5
15581 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15582 echo $ac_n "(cached) $ac_c" 1>&6
15584 cat > conftest.$ac_ext <<EOF
15585 #line 15586 "configure"
15586 #include "confdefs.h"
15587 /* System header to define __stub macros and hopefully few prototypes,
15588 which can conflict with char $ac_func(); below. */
15589 #include <assert.h>
15590 /* Override any gcc2 internal prototype to avoid an error. */
15591 /* We use char because int might match the return type of a gcc2
15592 builtin and then its argument prototype would still apply. */
15598 /* The GNU C library defines this for functions which it implements
15599 to always fail with ENOSYS. Some functions are actually named
15600 something starting with __ and the normal name is an alias. */
15601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15609 if { (eval echo configure:15610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15611 eval "ac_cv_func_$ac_func=yes"
15613 echo "configure: failed program was:" >&5
15614 cat conftest.$ac_ext >&5
15616 eval "ac_cv_func_$ac_func=no"
15621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15622 echo "$ac_t""yes" 1>&6
15623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15624 cat >> confdefs.h <<EOF
15625 #define $ac_tr_func 1
15629 echo "$ac_t""no" 1>&6
15634 for ac_func in getopt tempnam
15636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15637 echo "configure:15638: checking for $ac_func" >&5
15638 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15639 echo $ac_n "(cached) $ac_c" 1>&6
15641 cat > conftest.$ac_ext <<EOF
15642 #line 15643 "configure"
15643 #include "confdefs.h"
15644 /* System header to define __stub macros and hopefully few prototypes,
15645 which can conflict with char $ac_func(); below. */
15646 #include <assert.h>
15647 /* Override any gcc2 internal prototype to avoid an error. */
15648 /* We use char because int might match the return type of a gcc2
15649 builtin and then its argument prototype would still apply. */
15655 /* The GNU C library defines this for functions which it implements
15656 to always fail with ENOSYS. Some functions are actually named
15657 something starting with __ and the normal name is an alias. */
15658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15666 if { (eval echo configure:15667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15668 eval "ac_cv_func_$ac_func=yes"
15670 echo "configure: failed program was:" >&5
15671 cat conftest.$ac_ext >&5
15673 eval "ac_cv_func_$ac_func=no"
15678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15679 echo "$ac_t""yes" 1>&6
15680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15681 cat >> confdefs.h <<EOF
15682 #define $ac_tr_func 1
15686 echo "$ac_t""no" 1>&6
15687 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15693 if test "$ac_cv_func_getopt" != yes; then
15694 LIBSRCS="$LIBSRCS getopt.c"
15697 if test "$ac_cv_func_tempnam" != yes; then
15698 LIBSRCS="$LIBSRCS tempnam.c"
15701 # Check Configuration
15702 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15703 echo "configure:15704: checking declaration of sys_errlist" >&5
15704 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15705 echo $ac_n "(cached) $ac_c" 1>&6
15708 cat > conftest.$ac_ext <<EOF
15709 #line 15710 "configure"
15710 #include "confdefs.h"
15713 #include <sys/types.h>
15716 #include <stdlib.h>
15719 char *c = (char *) *sys_errlist
15722 if { (eval echo configure:15723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15724 ol_cv_dcl_sys_errlist=yes
15725 ol_cv_have_sys_errlist=yes
15727 echo "configure: failed program was:" >&5
15728 cat conftest.$ac_ext >&5
15730 ol_cv_dcl_sys_errlist=no
15735 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15737 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15738 if test $ol_cv_dcl_sys_errlist = no ; then
15739 cat >> confdefs.h <<\EOF
15740 #define DECL_SYS_ERRLIST 1
15744 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15745 echo "configure:15746: checking existence of sys_errlist" >&5
15746 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15747 echo $ac_n "(cached) $ac_c" 1>&6
15750 cat > conftest.$ac_ext <<EOF
15751 #line 15752 "configure"
15752 #include "confdefs.h"
15755 char *c = (char *) *sys_errlist
15758 if { (eval echo configure:15759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15760 ol_cv_have_sys_errlist=yes
15762 echo "configure: failed program was:" >&5
15763 cat conftest.$ac_ext >&5
15765 ol_cv_have_sys_errlist=no
15770 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15772 if test $ol_cv_have_sys_errlist = yes ; then
15773 cat >> confdefs.h <<\EOF
15774 #define HAVE_SYS_ERRLIST 1
15781 if test "$ol_enable_debug" != no ; then
15782 cat >> confdefs.h <<\EOF
15783 #define LDAP_DEBUG 1
15787 if test "$ol_enable_syslog" = yes ; then
15788 cat >> confdefs.h <<\EOF
15789 #define LDAP_SYSLOG 1
15793 if test "$ol_enable_libui" = yes ; then
15794 cat >> confdefs.h <<\EOF
15795 #define LDAP_LIBUI 1
15799 if test "$ol_enable_cache" = no ; then
15800 cat >> confdefs.h <<\EOF
15801 #define LDAP_NOCACHE 1
15805 if test "$ol_link_kbind" != no ; then
15806 cat >> confdefs.h <<\EOF
15807 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15811 if test "$ol_enable_dns" != no ; then
15812 cat >> confdefs.h <<\EOF
15813 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
15817 if test "$ol_enable_proctitle" != no ; then
15818 cat >> confdefs.h <<\EOF
15819 #define LDAP_PROCTITLE 1
15823 if test "$ol_enable_referrals" != no ; then
15824 cat >> confdefs.h <<\EOF
15825 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15829 if test "$ol_enable_cldap" != no ; then
15830 cat >> confdefs.h <<\EOF
15831 #define LDAP_CONNECTIONLESS 1
15835 if test "$ol_enable_ldapi" != no; then
15836 cat >> confdefs.h <<\EOF
15837 #define USE_PF_LOCAL 1
15842 if test "$ol_enable_cleartext" != no ; then
15843 cat >> confdefs.h <<\EOF
15844 #define SLAPD_CLEARTEXT 1
15848 if test "$ol_enable_crypt" != no ; then
15849 cat >> confdefs.h <<\EOF
15850 #define SLAPD_CRYPT 1
15854 if test "$ol_link_kpasswd" != no ; then
15855 cat >> confdefs.h <<\EOF
15856 #define SLAPD_KPASSWD 1
15860 if test "$ol_link_spasswd" != no ; then
15861 cat >> confdefs.h <<\EOF
15862 #define SLAPD_SPASSWD 1
15866 if test "$ol_enable_multimaster" != no ; then
15867 cat >> confdefs.h <<\EOF
15868 #define SLAPD_MULTIMASTER 1
15872 if test "$ol_enable_phonetic" != no ; then
15873 cat >> confdefs.h <<\EOF
15874 #define SLAPD_PHONETIC 1
15878 if test "$ol_enable_rlookups" != no ; then
15879 cat >> confdefs.h <<\EOF
15880 #define SLAPD_RLOOKUPS 1
15884 if test "$ol_enable_aci" != no ; then
15885 cat >> confdefs.h <<\EOF
15886 #define SLAPD_ACI_ENABLED 1
15891 if test "$ol_link_modules" != no ; then
15892 cat >> confdefs.h <<\EOF
15893 #define SLAPD_MODULES 1
15897 SLAPD_MODULES_LDFLAGS="-dlopen self"
15900 if test "$ol_link_bdb2" != no ; then
15901 cat >> confdefs.h <<\EOF
15902 #define SLAPD_BDB2 1
15907 if test "$ol_with_bdb2_module" != static ; then
15908 cat >> confdefs.h <<\EOF
15909 #define SLAPD_BDB2_DYNAMIC 1
15913 BUILD_BDB2_DYNAMIC=shared
15914 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
15918 if test "$ol_enable_dnssrv" != no ; then
15919 cat >> confdefs.h <<\EOF
15920 #define SLAPD_DNSSRV 1
15925 if test "$ol_with_dnssrv_module" != static ; then
15926 cat >> confdefs.h <<\EOF
15927 #define SLAPD_DNSSRV_DYNAMIC 1
15931 BUILD_DNSSRV_DYNAMIC=shared
15932 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15936 if test "$ol_enable_ldap" != no ; then
15937 cat >> confdefs.h <<\EOF
15938 #define SLAPD_LDAP 1
15943 if test "$ol_with_ldap_module" != static ; then
15944 cat >> confdefs.h <<\EOF
15945 #define SLAPD_LDAP_DYNAMIC 1
15949 BUILD_LDAP_DYNAMIC=shared
15950 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15954 if test "$ol_link_ldbm" != no ; then
15955 cat >> confdefs.h <<\EOF
15956 #define SLAPD_LDBM 1
15961 if test "$ol_with_ldbm_module" != static ; then
15962 cat >> confdefs.h <<\EOF
15963 #define SLAPD_LDBM_DYNAMIC 1
15967 BUILD_LDBM_DYNAMIC=shared
15968 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15972 if test "$ol_enable_passwd" != no ; then
15973 cat >> confdefs.h <<\EOF
15974 #define SLAPD_PASSWD 1
15979 if test "$ol_with_passwd_module" != static ; then
15980 cat >> confdefs.h <<\EOF
15981 #define SLAPD_PASSWD_DYNAMIC 1
15985 BUILD_PASSWD_DYNAMIC=shared
15986 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15990 if test "$ol_link_perl" != no ; then
15991 cat >> confdefs.h <<\EOF
15992 #define SLAPD_PERL 1
15997 if test "$ol_with_perl_module" != static ; then
15998 cat >> confdefs.h <<\EOF
15999 #define SLAPD_PERL_DYNAMIC 1
16003 BUILD_PERL_DYNAMIC=shared
16004 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16008 if test "$ol_enable_shell" != no ; then
16009 cat >> confdefs.h <<\EOF
16010 #define SLAPD_SHELL 1
16015 if test "$ol_with_shell_module" != static ; then
16016 cat >> confdefs.h <<\EOF
16017 #define SLAPD_SHELL_DYNAMIC 1
16021 BUILD_SHELL_DYNAMIC=shared
16022 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16026 if test "$ol_enable_tcl" != no ; then
16027 cat >> confdefs.h <<\EOF
16028 #define SLAPD_TCL 1
16033 if test "$ol_with_tcl_module" != static; then
16034 cat >> confdefs.h <<\EOF
16035 #define SLAPD_TCL_DYNAMIC 1
16039 BUILD_TCL_DYNAMIC=shared
16040 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16044 if test "$ol_enable_sql" != no ; then
16045 cat >> confdefs.h <<\EOF
16046 #define SLAPD_SQL 1
16051 SLAPD_SQL_LIBS=-liodbc
16052 if test "$ol_with_sql_module" != static; then
16053 cat >> confdefs.h <<\EOF
16054 #define SLAPD_SQL_DYNAMIC 1
16058 BUILD_SQL_DYNAMIC=shared
16059 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16063 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16064 $BUILD_SLAPD = yes ; then
16068 if test "$ol_link_isode" != no ; then
16073 if test "$LINK_BINS_DYNAMIC" = yes; then
16075 LT_LIB_LINKAGE=shared
16078 LT_LIB_LINKAGE=static
16081 if test "$ac_cv_mingw32" = yes ; then
16155 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16157 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16158 # Let make expand exec_prefix.
16159 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16161 # Any assignment to VPATH causes Sun make to only execute
16162 # the first set of double-colon rules, so remove it if not needed.
16163 # If there is a colon in the path, we need to keep it.
16164 if test "x$srcdir" = x.; then
16165 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16168 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16170 DEFS=-DHAVE_CONFIG_H
16172 # Without the "./", some shells look in PATH for config.status.
16173 : ${CONFIG_STATUS=./config.status}
16175 echo creating $CONFIG_STATUS
16176 rm -f $CONFIG_STATUS
16177 cat > $CONFIG_STATUS <<EOF
16179 # Generated automatically by configure.
16180 # Run this file to recreate the current configuration.
16181 # This directory was configured as follows,
16182 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16184 # $0 $ac_configure_args
16186 # Compiler output produced by configure, useful for debugging
16187 # configure, is in ./config.log if it exists.
16189 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16192 case "\$ac_option" in
16193 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16194 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16195 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16196 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16197 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16199 -help | --help | --hel | --he | --h)
16200 echo "\$ac_cs_usage"; exit 0 ;;
16201 *) echo "\$ac_cs_usage"; exit 1 ;;
16205 ac_given_srcdir=$srcdir
16206 ac_given_INSTALL="$INSTALL"
16208 trap 'rm -fr `echo "\
16209 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16210 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16211 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16212 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16213 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16214 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16215 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16216 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16217 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16218 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16219 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16220 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16221 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16222 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16223 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16224 include/Makefile:build/top.mk:include/Makefile.in \
16225 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16226 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16227 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16228 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16229 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16230 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16231 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16232 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16233 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16234 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16235 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
16236 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16237 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16238 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16239 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16240 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16241 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16242 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16243 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16244 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16245 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16246 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16247 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16248 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16249 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16250 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16251 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16252 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16253 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16254 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16256 cat >> $CONFIG_STATUS <<EOF
16258 # Protect against being on the right side of a sed subst in config.status.
16259 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16260 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16264 s%@CFLAGS@%$CFLAGS%g
16265 s%@CPPFLAGS@%$CPPFLAGS%g
16266 s%@CXXFLAGS@%$CXXFLAGS%g
16267 s%@FFLAGS@%$FFLAGS%g
16269 s%@LDFLAGS@%$LDFLAGS%g
16271 s%@exec_prefix@%$exec_prefix%g
16272 s%@prefix@%$prefix%g
16273 s%@program_transform_name@%$program_transform_name%g
16274 s%@bindir@%$bindir%g
16275 s%@sbindir@%$sbindir%g
16276 s%@libexecdir@%$libexecdir%g
16277 s%@datadir@%$datadir%g
16278 s%@sysconfdir@%$sysconfdir%g
16279 s%@sharedstatedir@%$sharedstatedir%g
16280 s%@localstatedir@%$localstatedir%g
16281 s%@libdir@%$libdir%g
16282 s%@includedir@%$includedir%g
16283 s%@oldincludedir@%$oldincludedir%g
16284 s%@infodir@%$infodir%g
16285 s%@mandir@%$mandir%g
16287 s%@host_alias@%$host_alias%g
16288 s%@host_cpu@%$host_cpu%g
16289 s%@host_vendor@%$host_vendor%g
16290 s%@host_os@%$host_os%g
16291 s%@target@%$target%g
16292 s%@target_alias@%$target_alias%g
16293 s%@target_cpu@%$target_cpu%g
16294 s%@target_vendor@%$target_vendor%g
16295 s%@target_os@%$target_os%g
16297 s%@build_alias@%$build_alias%g
16298 s%@build_cpu@%$build_cpu%g
16299 s%@build_vendor@%$build_vendor%g
16300 s%@build_os@%$build_os%g
16301 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16302 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16303 s%@INSTALL_DATA@%$INSTALL_DATA%g
16304 s%@PACKAGE@%$PACKAGE%g
16305 s%@VERSION@%$VERSION%g
16306 s%@ACLOCAL@%$ACLOCAL%g
16307 s%@AUTOCONF@%$AUTOCONF%g
16308 s%@AUTOMAKE@%$AUTOMAKE%g
16309 s%@AUTOHEADER@%$AUTOHEADER%g
16310 s%@MAKEINFO@%$MAKEINFO%g
16311 s%@install_sh@%$install_sh%g
16314 s%@AMTARFLAGS@%$AMTARFLAGS%g
16315 s%@SET_MAKE@%$SET_MAKE%g
16316 s%@top_builddir@%$top_builddir%g
16317 s%@ldap_subdir@%$ldap_subdir%g
16319 s%@RANLIB@%$RANLIB%g
16323 s%@DLLTOOL@%$DLLTOOL%g
16325 s%@OBJDUMP@%$OBJDUMP%g
16326 s%@LIBTOOL@%$LIBTOOL%g
16328 s%@SENDMAIL@%$SENDMAIL%g
16329 s%@EDITOR@%$EDITOR%g
16330 s%@FINGER@%$FINGER%g
16331 s%@PERLBIN@%$PERLBIN%g
16333 s%@EXEEXT@%$EXEEXT%g
16334 s%@OBJEXT@%$OBJEXT%g
16335 s%@OL_MKDEP@%$OL_MKDEP%g
16336 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16338 s%@LIBOBJS@%$LIBOBJS%g
16339 s%@LIBSRCS@%$LIBSRCS%g
16341 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16342 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16343 s%@DYN_EXT@%$DYN_EXT%g
16344 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
16345 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16346 s%@BUILD_BDB2@%$BUILD_BDB2%g
16347 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16348 s%@BUILD_LDAP@%$BUILD_LDAP%g
16349 s%@BUILD_LDBM@%$BUILD_LDBM%g
16350 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16351 s%@BUILD_PERL@%$BUILD_PERL%g
16352 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
16353 s%@BUILD_SHELL@%$BUILD_SHELL%g
16354 s%@BUILD_SQL@%$BUILD_SQL%g
16355 s%@BUILD_TCL@%$BUILD_TCL%g
16356 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
16357 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16358 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16359 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16360 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16361 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16362 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16363 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16364 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16365 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16366 s%@LDAP_LIBS@%$LDAP_LIBS%g
16367 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
16368 s%@LDIF_LIBS@%$LDIF_LIBS%g
16369 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16370 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16371 s%@LDBM_LIBS@%$LDBM_LIBS%g
16372 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16373 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16374 s%@WRAP_LIBS@%$WRAP_LIBS%g
16375 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16376 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16377 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16378 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16379 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16380 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16381 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16382 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16383 s%@KRB4_LIBS@%$KRB4_LIBS%g
16384 s%@KRB5_LIBS@%$KRB5_LIBS%g
16385 s%@READLINE_LIBS@%$READLINE_LIBS%g
16386 s%@SASL_LIBS@%$SASL_LIBS%g
16387 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16388 s%@TLS_LIBS@%$TLS_LIBS%g
16389 s%@MODULES_LIBS@%$MODULES_LIBS%g
16390 s%@AUTH_LIBS@%$AUTH_LIBS%g
16391 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16392 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16393 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16398 cat >> $CONFIG_STATUS <<\EOF
16400 # Split the substitutions into bite-sized pieces for seds with
16401 # small command number limits, like on Digital OSF/1 and HP-UX.
16402 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16403 ac_file=1 # Number of current file.
16404 ac_beg=1 # First line for current file.
16405 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16408 while $ac_more_lines; do
16409 if test $ac_beg -gt 1; then
16410 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16412 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16414 if test ! -s conftest.s$ac_file; then
16415 ac_more_lines=false
16416 rm -f conftest.s$ac_file
16418 if test -z "$ac_sed_cmds"; then
16419 ac_sed_cmds="sed -f conftest.s$ac_file"
16421 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16423 ac_file=`expr $ac_file + 1`
16425 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16428 if test -z "$ac_sed_cmds"; then
16433 cat >> $CONFIG_STATUS <<EOF
16435 CONFIG_FILES=\${CONFIG_FILES-"\
16436 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16437 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16438 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16439 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16440 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16441 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16442 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16443 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16444 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16445 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16446 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16447 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16448 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16449 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16450 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16451 include/Makefile:build/top.mk:include/Makefile.in \
16452 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16453 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16454 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16455 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16456 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16457 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16458 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16459 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16460 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16461 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16462 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
16463 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16464 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
16465 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16466 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16467 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16468 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16469 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16470 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16471 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16472 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16473 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16474 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16475 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16476 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16477 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16478 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16479 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16480 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16483 cat >> $CONFIG_STATUS <<\EOF
16484 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16485 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16487 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16488 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16489 *) ac_file_in="${ac_file}.in" ;;
16492 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16494 # Remove last slash and all that follows it. Not all systems have dirname.
16495 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16496 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16497 # The file is in a subdirectory.
16498 test ! -d "$ac_dir" && mkdir "$ac_dir"
16499 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16500 # A "../" for each directory in $ac_dir_suffix.
16501 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16503 ac_dir_suffix= ac_dots=
16506 case "$ac_given_srcdir" in
16508 if test -z "$ac_dots"; then top_srcdir=.
16509 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16510 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16511 *) # Relative path.
16512 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16513 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16516 case "$ac_given_INSTALL" in
16517 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16518 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16521 echo creating "$ac_file"
16523 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16525 *[Mm]akefile*) ac_comsub="1i\\
16526 # $configure_input" ;;
16530 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16532 s%@configure_input@%$configure_input%g
16533 s%@srcdir@%$srcdir%g
16534 s%@top_srcdir@%$top_srcdir%g
16535 s%@INSTALL@%$INSTALL%g
16536 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16540 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16541 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16543 # ac_d sets the value in "#define NAME VALUE" lines.
16544 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16545 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16548 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16549 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16550 ac_uB='\([ ]\)%\1#\2define\3'
16553 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16554 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16555 ac_eB='$%\1#\2define\3'
16559 if test "${CONFIG_HEADERS+set}" != set; then
16561 cat >> $CONFIG_STATUS <<EOF
16562 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16564 cat >> $CONFIG_STATUS <<\EOF
16566 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16567 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16569 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16570 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16571 *) ac_file_in="${ac_file}.in" ;;
16574 echo creating $ac_file
16576 rm -f conftest.frag conftest.in conftest.out
16577 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16578 cat $ac_file_inputs > conftest.in
16582 # Transform confdefs.h into a sed script conftest.vals that substitutes
16583 # the proper values into config.h.in to produce config.h. And first:
16584 # Protect against being on the right side of a sed subst in config.status.
16585 # Protect against being in an unquoted here document in config.status.
16586 rm -f conftest.vals
16587 cat > conftest.hdr <<\EOF
16590 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16594 sed -n -f conftest.hdr confdefs.h > conftest.vals
16597 # This sed command replaces #undef with comments. This is necessary, for
16598 # example, in the case of _POSIX_SOURCE, which is predefined and required
16599 # on some systems where configure will not decide to define it.
16600 cat >> conftest.vals <<\EOF
16601 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16604 # Break up conftest.vals because some shells have a limit on
16605 # the size of here documents, and old seds have small limits too.
16607 rm -f conftest.tail
16610 ac_lines=`grep -c . conftest.vals`
16611 # grep -c gives empty output for an empty file on some AIX systems.
16612 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16613 # Write a limited-size here document to conftest.frag.
16614 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16615 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16617 sed -f conftest.frag conftest.in > conftest.out
16619 mv conftest.out conftest.in
16620 ' >> $CONFIG_STATUS
16621 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16622 rm -f conftest.vals
16623 mv conftest.tail conftest.vals
16625 rm -f conftest.vals
16627 cat >> $CONFIG_STATUS <<\EOF
16628 rm -f conftest.frag conftest.h
16629 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16630 cat conftest.in >> conftest.h
16632 if cmp -s $ac_file conftest.h 2>/dev/null; then
16633 echo "$ac_file is unchanged"
16636 # Remove last slash and all that follows it. Not all systems have dirname.
16637 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16638 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16639 # The file is in a subdirectory.
16640 test ! -d "$ac_dir" && mkdir "$ac_dir"
16643 mv conftest.h $ac_file
16648 cat >> $CONFIG_STATUS <<EOF
16651 cat >> $CONFIG_STATUS <<\EOF
16654 echo Please \"make depend\" to build dependencies
16658 chmod +x $CONFIG_STATUS
16659 rm -fr confdefs* $ac_clean_files
16660 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1