3 # from OpenLDAP: pkg/ldap/configure.in,v 1.282 1999/11/26 22:32:19 kdz Exp
5 # Copyright 1998,1999 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-1999 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-cldap enable connectionless ldap (no)"
44 --enable-ldapi enable domain socket (PF_LOCAL) transport (no)"
46 --enable-x-compile enable cross compiling (no)"
48 --enable-dmalloc enable debug malloc support (no)"
50 --with-cyrus-sasl with Cyrus SASL support (auto)"
52 --with-fetch with fetch URL support (auto)"
54 --with-kerberos with Kerberos support (auto)"
56 --with-readline with readline support (auto)"
58 --with-threads use threads (auto)"
60 --with-tls with TLS/SSL support (auto)"
62 --with-yielding-select with implicitly yielding select (auto)"
64 LDAPD (X.500-to-LDAP Gateway) Options:"
66 --enable-ldapd enable building ldapd (no)"
68 SLAPD (Standalone LDAP Daemon) Options:"
70 --enable-slapd enable building slapd (yes)"
72 --enable-cleartext enable cleartext passwords (yes)"
74 --enable-crypt enable crypt(3) passwords (auto)"
76 --enable-modules enable dynamic module support (no)"
78 --enable-multimaster enable multimaster replication (no)"
80 --enable-phonetic enable phonetic/soundex (no)"
82 --enable-quipu build quipu migration tools (no)"
84 --enable-rlookups enable reverse lookups (auto)"
86 --enable-aci enable per-object ACIs (no)"
88 --enable-discreteaci enable discrete rights in ACIs (no)"
90 --enable-wrappers enable tcp wrapper support (no)"
92 --enable-dynamic enable linking built binaries with dynamic libs (no)"
94 --enable-bdb2 enable bdb2 backend (no)"
96 --with-bdb2-module module type (static)"
98 --enable-ldap enable ldap backend (no)"
100 --with-ldap-module module type (static)"
102 --enable-ldbm enable ldbm backend (yes)"
104 --with-ldbm-api use LDBM API (auto)"
106 --with-ldbm-module module type (static)"
108 --with-ldbm-type use LDBM type (auto)"
110 --enable-passwd enable passwd backend (no)"
112 --with-passwd-module module type (static)"
114 --enable-perl enable perl backend (no)"
116 --with-perl-module module type (static)"
118 --enable-shell enable shell backend (no)"
120 --with-shell-module module type (static)"
122 --enable-tcl enable tcl backend (no)"
124 --with-tcl-module module type (static)"
126 SLURPD (Replication Daemon) Options:"
128 --enable-slurpd enable building slurpd (auto)"
130 Library Generation & Linking Options"
132 --enable-static[=PKGS] build static libraries [default=yes]"
134 --enable-shared[=PKGS] build shared libraries [default=yes]"
136 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
138 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
140 --disable-libtool-lock avoid locking (might break parallel builds)"
142 # Initialize some variables set by options.
143 # The variables have the same names as the options, with
144 # dashes changed to underlines.
146 cache_file=./config.cache
155 program_transform_name=s,x,x,
163 bindir='${exec_prefix}/bin'
164 sbindir='${exec_prefix}/sbin'
165 libexecdir='${exec_prefix}/libexec'
166 datadir='${prefix}/share'
167 sysconfdir='${prefix}/etc'
168 sharedstatedir='${prefix}/com'
169 localstatedir='${prefix}/var'
170 libdir='${exec_prefix}/lib'
171 includedir='${prefix}/include'
172 oldincludedir='/usr/include'
173 infodir='${prefix}/info'
174 mandir='${prefix}/man'
176 # Initialize some other variables.
179 SHELL=${CONFIG_SHELL-/bin/sh}
180 # Maximum number of lines to put in a shell here document.
187 # If the previous option needs an argument, assign it.
188 if test -n "$ac_prev"; then
189 eval "$ac_prev=\$ac_option"
195 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
199 # Accept the important Cygnus configure options, so we can diagnose typos.
203 -bindir | --bindir | --bindi | --bind | --bin | --bi)
205 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
206 bindir="$ac_optarg" ;;
208 -build | --build | --buil | --bui | --bu)
210 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
211 build="$ac_optarg" ;;
213 -cache-file | --cache-file | --cache-fil | --cache-fi \
214 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
215 ac_prev=cache_file ;;
216 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
217 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
218 cache_file="$ac_optarg" ;;
220 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
222 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
224 datadir="$ac_optarg" ;;
226 -disable-* | --disable-*)
227 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
230 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
232 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
233 eval "enable_${ac_feature}=no" ;;
235 -enable-* | --enable-*)
236 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
239 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
241 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
246 eval "enable_${ac_feature}='$ac_optarg'" ;;
248 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
249 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
250 | --exec | --exe | --ex)
251 ac_prev=exec_prefix ;;
252 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
253 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
254 | --exec=* | --exe=* | --ex=*)
255 exec_prefix="$ac_optarg" ;;
257 -gas | --gas | --ga | --g)
258 # Obsolete; use --with-gas.
261 -help | --help | --hel | --he)
262 # Omit some internal or obsolete options to make the list less imposing.
263 # This message is too long to be a string in the A/UX 3.1 sh.
265 Usage: configure [options] [host]
266 Options: [defaults in brackets after descriptions]
268 --cache-file=FILE cache test results in FILE
269 --help print this message
270 --no-create do not create output files
271 --quiet, --silent do not print \`checking...' messages
272 --version print the version of autoconf that created configure
273 Directory and file names:
274 --prefix=PREFIX install architecture-independent files in PREFIX
276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
278 --bindir=DIR user executables in DIR [EPREFIX/bin]
279 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
280 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
281 --datadir=DIR read-only architecture-independent data in DIR
283 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
284 --sharedstatedir=DIR modifiable architecture-independent data in DIR
286 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
287 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
288 --includedir=DIR C header files in DIR [PREFIX/include]
289 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
290 --infodir=DIR info documentation in DIR [PREFIX/info]
291 --mandir=DIR man documentation in DIR [PREFIX/man]
292 --srcdir=DIR find the sources in DIR [configure dir or ..]
293 --program-prefix=PREFIX prepend PREFIX to installed program names
294 --program-suffix=SUFFIX append SUFFIX to installed program names
295 --program-transform-name=PROGRAM
296 run sed PROGRAM on installed program names
300 --build=BUILD configure for building on BUILD [BUILD=HOST]
301 --host=HOST configure for HOST [guessed]
302 --target=TARGET configure for TARGET [TARGET=HOST]
303 Features and packages:
304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
308 --x-includes=DIR X include files are in DIR
309 --x-libraries=DIR X library files are in DIR
311 if test -n "$ac_help"; then
312 echo "--enable and --with options recognized:$ac_help"
316 -host | --host | --hos | --ho)
318 -host=* | --host=* | --hos=* | --ho=*)
321 -includedir | --includedir | --includedi | --included | --include \
322 | --includ | --inclu | --incl | --inc)
323 ac_prev=includedir ;;
324 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
325 | --includ=* | --inclu=* | --incl=* | --inc=*)
326 includedir="$ac_optarg" ;;
328 -infodir | --infodir | --infodi | --infod | --info | --inf)
330 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
331 infodir="$ac_optarg" ;;
333 -libdir | --libdir | --libdi | --libd)
335 -libdir=* | --libdir=* | --libdi=* | --libd=*)
336 libdir="$ac_optarg" ;;
338 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
339 | --libexe | --libex | --libe)
340 ac_prev=libexecdir ;;
341 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
342 | --libexe=* | --libex=* | --libe=*)
343 libexecdir="$ac_optarg" ;;
345 -localstatedir | --localstatedir | --localstatedi | --localstated \
346 | --localstate | --localstat | --localsta | --localst \
347 | --locals | --local | --loca | --loc | --lo)
348 ac_prev=localstatedir ;;
349 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
350 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
351 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
352 localstatedir="$ac_optarg" ;;
354 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
356 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
357 mandir="$ac_optarg" ;;
360 # Obsolete; use --without-fp.
363 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
367 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
368 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
371 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
372 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
373 | --oldin | --oldi | --old | --ol | --o)
374 ac_prev=oldincludedir ;;
375 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
376 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
377 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
378 oldincludedir="$ac_optarg" ;;
380 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
382 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
383 prefix="$ac_optarg" ;;
385 -program-prefix | --program-prefix | --program-prefi | --program-pref \
386 | --program-pre | --program-pr | --program-p)
387 ac_prev=program_prefix ;;
388 -program-prefix=* | --program-prefix=* | --program-prefi=* \
389 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
390 program_prefix="$ac_optarg" ;;
392 -program-suffix | --program-suffix | --program-suffi | --program-suff \
393 | --program-suf | --program-su | --program-s)
394 ac_prev=program_suffix ;;
395 -program-suffix=* | --program-suffix=* | --program-suffi=* \
396 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
397 program_suffix="$ac_optarg" ;;
399 -program-transform-name | --program-transform-name \
400 | --program-transform-nam | --program-transform-na \
401 | --program-transform-n | --program-transform- \
402 | --program-transform | --program-transfor \
403 | --program-transfo | --program-transf \
404 | --program-trans | --program-tran \
405 | --progr-tra | --program-tr | --program-t)
406 ac_prev=program_transform_name ;;
407 -program-transform-name=* | --program-transform-name=* \
408 | --program-transform-nam=* | --program-transform-na=* \
409 | --program-transform-n=* | --program-transform-=* \
410 | --program-transform=* | --program-transfor=* \
411 | --program-transfo=* | --program-transf=* \
412 | --program-trans=* | --program-tran=* \
413 | --progr-tra=* | --program-tr=* | --program-t=*)
414 program_transform_name="$ac_optarg" ;;
416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
417 | -silent | --silent | --silen | --sile | --sil)
420 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
422 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
424 sbindir="$ac_optarg" ;;
426 -sharedstatedir | --sharedstatedir | --sharedstatedi \
427 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
428 | --sharedst | --shareds | --shared | --share | --shar \
430 ac_prev=sharedstatedir ;;
431 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
432 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
433 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
435 sharedstatedir="$ac_optarg" ;;
437 -site | --site | --sit)
439 -site=* | --site=* | --sit=*)
442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
445 srcdir="$ac_optarg" ;;
447 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
448 | --syscon | --sysco | --sysc | --sys | --sy)
449 ac_prev=sysconfdir ;;
450 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
451 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
452 sysconfdir="$ac_optarg" ;;
454 -target | --target | --targe | --targ | --tar | --ta | --t)
456 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
457 target="$ac_optarg" ;;
459 -v | -verbose | --verbose | --verbos | --verbo | --verb)
462 -version | --version | --versio | --versi | --vers)
463 echo "configure generated by autoconf version 2.13.1"
467 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
468 # Reject names that are not valid shell variable names.
469 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
470 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
472 ac_package=`echo $ac_package| sed 's/-/_/g'`
477 eval "with_${ac_package}='$ac_optarg'" ;;
479 -without-* | --without-*)
480 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
481 # Reject names that are not valid shell variable names.
482 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
483 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
485 ac_package=`echo $ac_package| sed 's/-/_/g'`
486 eval "with_${ac_package}=no" ;;
489 # Obsolete; use --with-x.
492 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
493 | --x-incl | --x-inc | --x-in | --x-i)
494 ac_prev=x_includes ;;
495 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
496 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
497 x_includes="$ac_optarg" ;;
499 -x-libraries | --x-libraries | --x-librarie | --x-librari \
500 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
501 ac_prev=x_libraries ;;
502 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
503 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
504 x_libraries="$ac_optarg" ;;
506 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
510 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
511 echo "configure: warning: $ac_option: invalid host type" 1>&2
513 if test "x$nonopt" != xNONE; then
514 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
522 if test -n "$ac_prev"; then
523 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
526 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
528 # File descriptor usage:
531 # 2 errors and warnings
532 # 3 some systems may open it to /dev/tty
533 # 4 used on the Kubota Titan
534 # 6 checking for... messages and results
535 # 5 compiler messages saved in config.log
536 if test "$silent" = yes; then
544 This file contains any messages produced by compilers while
545 running configure, to aid debugging if configure makes a mistake.
548 # Strip out --no-create and --no-recursion so they do not pile up.
549 # Also quote any args containing shell metacharacters.
554 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
555 | --no-cr | --no-c) ;;
556 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
557 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
558 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
559 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
560 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
565 # Only set these to C if already set. These must not be set unconditionally
566 # because not all systems understand e.g. LANG=C (notably SCO).
567 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
568 # Non-C LC_CTYPE values break the ctype check.
569 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
570 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
571 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
572 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
574 # confdefs.h avoids OS command line length limits that DEFS can exceed.
575 rm -rf conftest* confdefs.h
576 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
579 # A filename unique to this package, relative to the directory that
580 # configure is in, which we can look for to find out if srcdir is correct.
581 ac_unique_file=build/version
583 # Find the source files, if location was not specified.
584 if test -z "$srcdir"; then
585 ac_srcdir_defaulted=yes
586 # Try the directory containing this script, then its parent.
588 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
589 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
591 if test ! -r $srcdir/$ac_unique_file; then
595 ac_srcdir_defaulted=no
597 if test ! -r $srcdir/$ac_unique_file; then
598 if test "$ac_srcdir_defaulted" = yes; then
599 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
601 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
604 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
606 # Prefer explicitly selected file to automatically selected ones.
607 if test -z "$CONFIG_SITE"; then
608 if test "x$prefix" != xNONE; then
609 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
611 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
614 for ac_site_file in $CONFIG_SITE; do
615 if test -r "$ac_site_file"; then
616 echo "loading site script $ac_site_file"
623 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
624 ac_cpp='$CPP $CPPFLAGS'
625 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
626 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
627 cross_compiling=$ac_cv_prog_cc_cross
631 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
632 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
633 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
640 ac_n= ac_c='\c' ac_t=
644 for ac_dir in build $srcdir/build; do
645 if test -f $ac_dir/install-sh; then
647 ac_install_sh="$ac_aux_dir/install-sh -c"
649 elif test -f $ac_dir/install.sh; then
651 ac_install_sh="$ac_aux_dir/install.sh -c"
653 elif test -f $ac_dir/shtool; then
655 ac_install_sh="$ac_aux_dir/shtool install -c"
659 if test -z "$ac_aux_dir"; then
660 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
662 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
663 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
664 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
666 OL_VERSION=`cat $ac_aux_dir/version`
667 if test -z "$OL_VERSION"; then
668 { echo "configure: error: could not determine version" 1>&2; exit 1; }
671 echo "Configuring OpenLDAP $OL_VERSION ..."
674 echo $ac_n "checking host system type""... $ac_c" 1>&6
675 echo "configure:674: checking host system type" >&5
676 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
678 # Make sure we can run config.sub.
679 if $ac_config_sub sun4 >/dev/null 2>&1; then :
680 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
683 ac_cv_host_alias=$host
684 case "$ac_cv_host_alias" in
688 if ac_cv_host_alias=`$ac_config_guess`; then :
689 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
691 *) ac_cv_host_alias=$nonopt ;;
695 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
696 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
697 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
698 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
700 echo $ac_n "(cached) $ac_c" 1>&6
703 echo "$ac_t""$ac_cv_host" 1>&6
706 host_alias=$ac_cv_host_alias
707 host_cpu=$ac_cv_host_cpu
708 host_vendor=$ac_cv_host_vendor
709 host_os=$ac_cv_host_os
715 echo $ac_n "checking target system type""... $ac_c" 1>&6
716 echo "configure:715: checking target system type" >&5
717 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
719 # Make sure we can run config.sub.
720 if $ac_config_sub sun4 >/dev/null 2>&1; then :
721 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
724 ac_cv_target_alias=$target
725 case "$ac_cv_target_alias" in
729 ac_cv_target_alias=$host_alias ;;
731 *) ac_cv_target_alias=$nonopt ;;
735 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
736 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
737 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
738 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
740 echo $ac_n "(cached) $ac_c" 1>&6
743 echo "$ac_t""$ac_cv_target" 1>&6
746 target_alias=$ac_cv_target_alias
747 target_cpu=$ac_cv_target_cpu
748 target_vendor=$ac_cv_target_vendor
749 target_os=$ac_cv_target_os
755 echo $ac_n "checking build system type""... $ac_c" 1>&6
756 echo "configure:755: checking build system type" >&5
757 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
759 # Make sure we can run config.sub.
760 if $ac_config_sub sun4 >/dev/null 2>&1; then :
761 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
764 ac_cv_build_alias=$build
765 case "$ac_cv_build_alias" in
769 ac_cv_build_alias=$host_alias ;;
771 *) ac_cv_build_alias=$nonopt ;;
775 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
776 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
777 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
778 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
780 echo $ac_n "(cached) $ac_c" 1>&6
783 echo "$ac_t""$ac_cv_build" 1>&6
786 build_alias=$ac_cv_build_alias
787 build_cpu=$ac_cv_build_cpu
788 build_vendor=$ac_cv_build_vendor
789 build_os=$ac_cv_build_os
795 # Do some error checking and defaulting for the host and target type.
797 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
800 # 1. You are not allowed to specify --host, --target, and nonopt at the
802 # 2. Host defaults to nonopt.
803 # 3. If nonopt is not specified, then host defaults to the current host,
804 # as determined by config.guess.
805 # 4. Target and build default to nonopt.
806 # 5. If nonopt is not specified, then target and build default to host.
808 # The aliases save the names the user supplied, while $host etc.
809 # will get canonicalized.
810 case $host---$target---$nonopt in
811 NONE---*---* | *---NONE---* | *---*---NONE) ;;
812 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
815 test "$host_alias" != "$target_alias" &&
816 test "$program_prefix$program_suffix$program_transform_name" = \
818 program_prefix=${target_alias}-
821 # Find a good install program. We prefer a C program (faster),
822 # so one script is as good as another. But avoid the broken or
823 # incompatible versions:
824 # SysV /etc/install, /usr/sbin/install
825 # SunOS /usr/etc/install
828 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
829 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
830 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
831 # ./install, which can be erroneously created by make from ./install.sh.
832 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
833 echo "configure:832: checking for a BSD compatible install" >&5
834 if test -z "$INSTALL"; then
835 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
839 for ac_dir in $PATH; do
840 # Account for people who put trailing slashes in PATH elements.
842 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
844 # OSF1 and SCO ODT 3.0 have their own names for install.
845 # Don't use installbsd from OSF since it installs stuff as root
847 for ac_prog in ginstall scoinst install; do
848 if test -f $ac_dir/$ac_prog; then
849 if test $ac_prog = install &&
850 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
851 # AIX install. It has an incompatible calling convention.
853 elif test $ac_prog = install &&
854 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
855 # program-specific install script used by HP pwplus--don't use.
858 ac_cv_path_install="$ac_dir/$ac_prog -c"
869 if test "${ac_cv_path_install+set}" = set; then
870 INSTALL="$ac_cv_path_install"
872 # As a last resort, use the slow shell script. We don't cache a
873 # path for INSTALL within a source directory, because that will
874 # break other packages using the cache if that directory is
875 # removed, or if the path is relative.
876 INSTALL="$ac_install_sh"
879 echo "$ac_t""$INSTALL" 1>&6
881 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
882 # It thinks the first close brace ends the variable substitution.
883 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
885 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
887 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
889 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
890 echo "configure:889: checking whether build environment is sane" >&5
893 echo timestamp > conftestfile
894 # Do `set' in a subshell so we don't clobber the current shell's
895 # arguments. Must try -L first in case configure is actually a
896 # symlink; some systems play weird games with the mod time of symlinks
897 # (eg FreeBSD returns the mod time of the symlink's containing
900 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
901 if test "$*" = "X"; then
903 set X `ls -t $srcdir/configure conftestfile`
905 if test "$*" != "X $srcdir/configure conftestfile" \
906 && test "$*" != "X conftestfile $srcdir/configure"; then
908 # If neither matched, then we have a broken ls. This can happen
909 # if, for instance, CONFIG_SHELL is bash and it inherits a
910 # broken ls alias from the environment. This has actually
911 # happened. Such a system could not be considered "sane".
912 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
913 alias in your environment" 1>&2; exit 1; }
916 test "$2" = conftestfile
922 { echo "configure: error: newly created file is older than distributed files!
923 Check your system clock" 1>&2; exit 1; }
926 echo "$ac_t""yes" 1>&6
927 if test "$program_transform_name" = s,x,x,; then
928 program_transform_name=
930 # Double any \ or $. echo might interpret backslashes.
931 cat <<\EOF_SED > conftestsed
932 s,\\,\\\\,g; s,\$,$$,g
934 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
937 test "$program_prefix" != NONE &&
938 program_transform_name="s,^,${program_prefix},;$program_transform_name"
939 # Use a double $ so make ignores it.
940 test "$program_suffix" != NONE &&
941 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
943 # sed with no file args requires a program.
944 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
946 for ac_prog in mawk gawk nawk awk
948 # Extract the first word of "$ac_prog", so it can be a program name with args.
949 set dummy $ac_prog; ac_word=$2
950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
951 echo "configure:950: checking for $ac_word" >&5
952 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
955 if test -n "$AWK"; then
956 ac_cv_prog_AWK="$AWK" # Let the user override the test.
958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
960 for ac_dir in $ac_dummy; do
961 test -z "$ac_dir" && ac_dir=.
962 if test -f $ac_dir/$ac_word; then
963 ac_cv_prog_AWK="$ac_prog"
970 AWK="$ac_cv_prog_AWK"
971 if test -n "$AWK"; then
972 echo "$ac_t""$AWK" 1>&6
974 echo "$ac_t""no" 1>&6
977 test -n "$AWK" && break
980 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
981 echo "configure:980: checking whether ${MAKE-make} sets \${MAKE}" >&5
982 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
983 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 cat > conftestmake <<\EOF
988 @echo 'ac_maketemp="${MAKE}"'
990 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
991 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
992 if test -n "$ac_maketemp"; then
993 eval ac_cv_prog_make_${ac_make}_set=yes
995 eval ac_cv_prog_make_${ac_make}_set=no
999 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1000 echo "$ac_t""yes" 1>&6
1003 echo "$ac_t""no" 1>&6
1004 SET_MAKE="MAKE=${MAKE-make}"
1013 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1014 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1019 missing_dir=`cd $ac_aux_dir && pwd`
1020 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1021 echo "configure:1020: checking for working aclocal" >&5
1022 # Run test in a subshell; some versions of sh will print an error if
1023 # an executable is not found, even if stderr is redirected.
1024 # Redirect stdin to placate older versions of autoconf. Sigh.
1025 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1027 echo "$ac_t""found" 1>&6
1029 ACLOCAL="$missing_dir/missing aclocal"
1030 echo "$ac_t""missing" 1>&6
1033 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1034 echo "configure:1033: checking for working autoconf" >&5
1035 # Run test in a subshell; some versions of sh will print an error if
1036 # an executable is not found, even if stderr is redirected.
1037 # Redirect stdin to placate older versions of autoconf. Sigh.
1038 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1040 echo "$ac_t""found" 1>&6
1042 AUTOCONF="$missing_dir/missing autoconf"
1043 echo "$ac_t""missing" 1>&6
1046 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1047 echo "configure:1046: checking for working automake" >&5
1048 # Run test in a subshell; some versions of sh will print an error if
1049 # an executable is not found, even if stderr is redirected.
1050 # Redirect stdin to placate older versions of autoconf. Sigh.
1051 if (automake --version) < /dev/null > /dev/null 2>&1; then
1053 echo "$ac_t""found" 1>&6
1055 AUTOMAKE="$missing_dir/missing automake"
1056 echo "$ac_t""missing" 1>&6
1059 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1060 echo "configure:1059: checking for working autoheader" >&5
1061 # Run test in a subshell; some versions of sh will print an error if
1062 # an executable is not found, even if stderr is redirected.
1063 # Redirect stdin to placate older versions of autoconf. Sigh.
1064 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1065 AUTOHEADER=autoheader
1066 echo "$ac_t""found" 1>&6
1068 AUTOHEADER="$missing_dir/missing autoheader"
1069 echo "$ac_t""missing" 1>&6
1072 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1073 echo "configure:1072: checking for working makeinfo" >&5
1074 # Run test in a subshell; some versions of sh will print an error if
1075 # an executable is not found, even if stderr is redirected.
1076 # Redirect stdin to placate older versions of autoconf. Sigh.
1077 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1079 echo "$ac_t""found" 1>&6
1081 MAKEINFO="$missing_dir/missing makeinfo"
1082 echo "$ac_t""missing" 1>&6
1085 install_sh="$missing_dir/install-sh"
1086 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1088 for ac_prog in gnutar gtar tar
1090 # Extract the first word of "$ac_prog", so it can be a program name with args.
1091 set dummy $ac_prog; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1092: checking for $ac_word" >&5
1094 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 if test -n "$AMTAR"; then
1098 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_prog_AMTAR="$ac_prog"
1112 AMTAR="$ac_cv_prog_AMTAR"
1113 if test -n "$AMTAR"; then
1114 echo "$ac_t""$AMTAR" 1>&6
1116 echo "$ac_t""no" 1>&6
1119 test -n "$AMTAR" && break
1124 if test -n "$AMTAR"; then
1125 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1132 cat >> confdefs.h <<EOF
1133 #define OPENLDAP_PACKAGE "$PACKAGE"
1136 cat >> confdefs.h <<EOF
1137 #define OPENLDAP_VERSION "$VERSION"
1143 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1144 echo "configure:1143: checking configure arguments" >&5
1149 ldap_subdir="/openldap"
1151 # Check whether --with-subdir or --without-subdir was given.
1152 if test "${with_subdir+set}" = set; then
1153 withval="$with_subdir"
1160 ldap_subdir="$withval"
1163 ldap_subdir="/$withval"
1170 # OpenLDAP --enable-debug
1171 # Check whether --enable-debug or --disable-debug was given.
1172 if test "${enable_debug+set}" = set; then
1173 enableval="$enable_debug"
1176 for ol_val in auto yes no ; do
1177 if test "$enableval" = "$ol_val" ; then
1181 if test "$ol_arg" = "invalid" ; then
1182 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1184 ol_enable_debug="$ol_arg"
1187 ol_enable_debug="yes"
1189 # end --enable-debug
1190 # OpenLDAP --enable-syslog
1191 # Check whether --enable-syslog or --disable-syslog was given.
1192 if test "${enable_syslog+set}" = set; then
1193 enableval="$enable_syslog"
1196 for ol_val in auto yes no ; do
1197 if test "$enableval" = "$ol_val" ; then
1201 if test "$ol_arg" = "invalid" ; then
1202 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1204 ol_enable_syslog="$ol_arg"
1207 ol_enable_syslog="auto"
1209 # end --enable-syslog
1210 # OpenLDAP --enable-proctitle
1211 # Check whether --enable-proctitle or --disable-proctitle was given.
1212 if test "${enable_proctitle+set}" = set; then
1213 enableval="$enable_proctitle"
1216 for ol_val in auto yes no ; do
1217 if test "$enableval" = "$ol_val" ; then
1221 if test "$ol_arg" = "invalid" ; then
1222 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1224 ol_enable_proctitle="$ol_arg"
1227 ol_enable_proctitle="yes"
1229 # end --enable-proctitle
1230 # OpenLDAP --enable-cache
1231 # Check whether --enable-cache or --disable-cache was given.
1232 if test "${enable_cache+set}" = set; then
1233 enableval="$enable_cache"
1236 for ol_val in auto yes no ; do
1237 if test "$enableval" = "$ol_val" ; then
1241 if test "$ol_arg" = "invalid" ; then
1242 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1244 ol_enable_cache="$ol_arg"
1247 ol_enable_cache="yes"
1249 # end --enable-cache
1250 # OpenLDAP --enable-dns
1251 # Check whether --enable-dns or --disable-dns was given.
1252 if test "${enable_dns+set}" = set; then
1253 enableval="$enable_dns"
1256 for ol_val in auto yes no ; do
1257 if test "$enableval" = "$ol_val" ; then
1261 if test "$ol_arg" = "invalid" ; then
1262 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1264 ol_enable_dns="$ol_arg"
1270 # OpenLDAP --enable-referrals
1271 # Check whether --enable-referrals or --disable-referrals was given.
1272 if test "${enable_referrals+set}" = set; then
1273 enableval="$enable_referrals"
1276 for ol_val in auto yes no ; do
1277 if test "$enableval" = "$ol_val" ; then
1281 if test "$ol_arg" = "invalid" ; then
1282 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1284 ol_enable_referrals="$ol_arg"
1287 ol_enable_referrals="yes"
1289 # end --enable-referrals
1290 # OpenLDAP --enable-cldap
1291 # Check whether --enable-cldap or --disable-cldap was given.
1292 if test "${enable_cldap+set}" = set; then
1293 enableval="$enable_cldap"
1296 for ol_val in auto yes no ; do
1297 if test "$enableval" = "$ol_val" ; then
1301 if test "$ol_arg" = "invalid" ; then
1302 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1304 ol_enable_cldap="$ol_arg"
1307 ol_enable_cldap="no"
1309 # end --enable-cldap
1310 # OpenLDAP --enable-ldapi
1311 # Check whether --enable-ldapi or --disable-ldapi was given.
1312 if test "${enable_ldapi+set}" = set; then
1313 enableval="$enable_ldapi"
1316 for ol_val in auto yes no ; do
1317 if test "$enableval" = "$ol_val" ; then
1321 if test "$ol_arg" = "invalid" ; then
1322 { echo "configure: error: bad value $enableval for --enable-ldapi" 1>&2; exit 1; }
1324 ol_enable_ldapi="$ol_arg"
1327 ol_enable_ldapi="no"
1329 # end --enable-ldapi
1330 # OpenLDAP --enable-x_compile
1331 # Check whether --enable-x_compile or --disable-x_compile was given.
1332 if test "${enable_x_compile+set}" = set; then
1333 enableval="$enable_x_compile"
1336 for ol_val in yes no ; do
1337 if test "$enableval" = "$ol_val" ; then
1341 if test "$ol_arg" = "invalid" ; then
1342 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1344 ol_enable_x_compile="$ol_arg"
1347 ol_enable_x_compile="no"
1349 # end --enable-x_compile
1351 # OpenLDAP --enable-dmalloc
1352 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1353 if test "${enable_dmalloc+set}" = set; then
1354 enableval="$enable_dmalloc"
1357 for ol_val in auto yes no ; do
1358 if test "$enableval" = "$ol_val" ; then
1362 if test "$ol_arg" = "invalid" ; then
1363 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1365 ol_enable_dmalloc="$ol_arg"
1368 ol_enable_dmalloc="no"
1370 # end --enable-dmalloc
1372 # OpenLDAP --with-cyrus-sasl
1373 # Check whether --with-cyrus-sasl or --without-cyrus_sasl was given.
1374 if test "${with_cyrus_sasl+set}" = set; then
1375 withval="$with_cyrus_sasl"
1378 for ol_val in auto yes no ; do
1379 if test "$withval" = "$ol_val" ; then
1383 if test "$ol_arg" = "invalid" ; then
1384 { echo "configure: error: bad value $withval for --with-cyrus-sasl" 1>&2; exit 1; }
1386 ol_with_cyrus_sasl="$ol_arg"
1389 ol_with_cyrus_sasl="auto"
1391 # end --with-cyrus-sasl
1393 # OpenLDAP --with-fetch
1394 # Check whether --with-fetch or --without-fetch was given.
1395 if test "${with_fetch+set}" = set; then
1396 withval="$with_fetch"
1399 for ol_val in auto yes no ; do
1400 if test "$withval" = "$ol_val" ; then
1404 if test "$ol_arg" = "invalid" ; then
1405 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1407 ol_with_fetch="$ol_arg"
1410 ol_with_fetch="auto"
1414 # OpenLDAP --with-kerberos
1415 # Check whether --with-kerberos or --without-kerberos was given.
1416 if test "${with_kerberos+set}" = set; then
1417 withval="$with_kerberos"
1420 for ol_val in auto k5 kth k4 afs yes no ; do
1421 if test "$withval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1428 ol_with_kerberos="$ol_arg"
1431 ol_with_kerberos="auto"
1433 # end --with-kerberos
1435 # OpenLDAP --with-readline
1436 # Check whether --with-readline or --without-readline was given.
1437 if test "${with_readline+set}" = set; then
1438 withval="$with_readline"
1441 for ol_val in auto yes no ; do
1442 if test "$withval" = "$ol_val" ; then
1446 if test "$ol_arg" = "invalid" ; then
1447 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1449 ol_with_readline="$ol_arg"
1452 ol_with_readline="auto"
1454 # end --with-readline
1456 # OpenLDAP --with-threads
1457 # Check whether --with-threads or --without-threads was given.
1458 if test "${with_threads+set}" = set; then
1459 withval="$with_threads"
1462 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1463 if test "$withval" = "$ol_val" ; then
1467 if test "$ol_arg" = "invalid" ; then
1468 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1470 ol_with_threads="$ol_arg"
1473 ol_with_threads="auto"
1475 # end --with-threads
1477 # OpenLDAP --with-tls
1478 # Check whether --with-tls or --without-tls was given.
1479 if test "${with_tls+set}" = set; then
1483 for ol_val in auto ssleay openssl yes no ; do
1484 if test "$withval" = "$ol_val" ; then
1488 if test "$ol_arg" = "invalid" ; then
1489 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1491 ol_with_tls="$ol_arg"
1498 # OpenLDAP --with-yielding_select
1499 # Check whether --with-yielding_select or --without-yielding_select was given.
1500 if test "${with_yielding_select+set}" = set; then
1501 withval="$with_yielding_select"
1504 for ol_val in auto yes no manual ; do
1505 if test "$withval" = "$ol_val" ; then
1509 if test "$ol_arg" = "invalid" ; then
1510 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1512 ol_with_yielding_select="$ol_arg"
1515 ol_with_yielding_select="auto"
1517 # end --with-yielding_select
1520 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1521 if test "${with_xxldapdoptions+set}" = set; then
1522 withval="$with_xxldapdoptions"
1526 # OpenLDAP --enable-ldapd
1527 # Check whether --enable-ldapd or --disable-ldapd was given.
1528 if test "${enable_ldapd+set}" = set; then
1529 enableval="$enable_ldapd"
1532 for ol_val in auto yes no ; do
1533 if test "$enableval" = "$ol_val" ; then
1537 if test "$ol_arg" = "invalid" ; then
1538 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1540 ol_enable_ldapd="$ol_arg"
1543 ol_enable_ldapd="no"
1545 # end --enable-ldapd
1547 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1548 if test "${with_xxslapdoptions+set}" = set; then
1549 withval="$with_xxslapdoptions"
1553 # OpenLDAP --enable-slapd
1554 # Check whether --enable-slapd or --disable-slapd was given.
1555 if test "${enable_slapd+set}" = set; then
1556 enableval="$enable_slapd"
1559 for ol_val in auto yes no ; do
1560 if test "$enableval" = "$ol_val" ; then
1564 if test "$ol_arg" = "invalid" ; then
1565 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1567 ol_enable_slapd="$ol_arg"
1570 ol_enable_slapd="yes"
1572 # end --enable-slapd
1573 # OpenLDAP --enable-cleartext
1574 # Check whether --enable-cleartext or --disable-cleartext was given.
1575 if test "${enable_cleartext+set}" = set; then
1576 enableval="$enable_cleartext"
1579 for ol_val in auto yes no ; do
1580 if test "$enableval" = "$ol_val" ; then
1584 if test "$ol_arg" = "invalid" ; then
1585 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1587 ol_enable_cleartext="$ol_arg"
1590 ol_enable_cleartext="yes"
1592 # end --enable-cleartext
1593 # OpenLDAP --enable-crypt
1594 # Check whether --enable-crypt or --disable-crypt was given.
1595 if test "${enable_crypt+set}" = set; then
1596 enableval="$enable_crypt"
1599 for ol_val in auto yes no ; do
1600 if test "$enableval" = "$ol_val" ; then
1604 if test "$ol_arg" = "invalid" ; then
1605 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1607 ol_enable_crypt="$ol_arg"
1610 ol_enable_crypt="auto"
1612 # end --enable-crypt
1613 # OpenLDAP --enable-modules
1614 # Check whether --enable-modules or --disable-modules was given.
1615 if test "${enable_modules+set}" = set; then
1616 enableval="$enable_modules"
1619 for ol_val in auto yes no ; do
1620 if test "$enableval" = "$ol_val" ; then
1624 if test "$ol_arg" = "invalid" ; then
1625 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1627 ol_enable_modules="$ol_arg"
1630 ol_enable_modules="no"
1632 # end --enable-modules
1633 # OpenLDAP --enable-multimaster
1634 # Check whether --enable-multimaster or --disable-multimaster was given.
1635 if test "${enable_multimaster+set}" = set; then
1636 enableval="$enable_multimaster"
1639 for ol_val in auto yes no ; do
1640 if test "$enableval" = "$ol_val" ; then
1644 if test "$ol_arg" = "invalid" ; then
1645 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1647 ol_enable_multimaster="$ol_arg"
1650 ol_enable_multimaster="no"
1652 # end --enable-multimaster
1653 # OpenLDAP --enable-phonetic
1654 # Check whether --enable-phonetic or --disable-phonetic was given.
1655 if test "${enable_phonetic+set}" = set; then
1656 enableval="$enable_phonetic"
1659 for ol_val in auto yes no ; do
1660 if test "$enableval" = "$ol_val" ; then
1664 if test "$ol_arg" = "invalid" ; then
1665 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1667 ol_enable_phonetic="$ol_arg"
1670 ol_enable_phonetic="no"
1672 # end --enable-phonetic
1673 # OpenLDAP --enable-quipu
1674 # Check whether --enable-quipu or --disable-quipu was given.
1675 if test "${enable_quipu+set}" = set; then
1676 enableval="$enable_quipu"
1679 for ol_val in auto yes no ; do
1680 if test "$enableval" = "$ol_val" ; then
1684 if test "$ol_arg" = "invalid" ; then
1685 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1687 ol_enable_quipu="$ol_arg"
1690 ol_enable_quipu="no"
1692 # end --enable-quipu
1693 # OpenLDAP --enable-rlookups
1694 # Check whether --enable-rlookups or --disable-rlookups was given.
1695 if test "${enable_rlookups+set}" = set; then
1696 enableval="$enable_rlookups"
1699 for ol_val in auto yes no ; do
1700 if test "$enableval" = "$ol_val" ; then
1704 if test "$ol_arg" = "invalid" ; then
1705 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1707 ol_enable_rlookups="$ol_arg"
1710 ol_enable_rlookups="auto"
1712 # end --enable-rlookups
1713 # OpenLDAP --enable-aci
1714 # Check whether --enable-aci or --disable-aci was given.
1715 if test "${enable_aci+set}" = set; then
1716 enableval="$enable_aci"
1719 for ol_val in auto yes no ; do
1720 if test "$enableval" = "$ol_val" ; then
1724 if test "$ol_arg" = "invalid" ; then
1725 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1727 ol_enable_aci="$ol_arg"
1733 # OpenLDAP --enable-discreteaci
1734 # Check whether --enable-discreteaci or --disable-discreteaci was given.
1735 if test "${enable_discreteaci+set}" = set; then
1736 enableval="$enable_discreteaci"
1739 for ol_val in auto yes no ; do
1740 if test "$enableval" = "$ol_val" ; then
1744 if test "$ol_arg" = "invalid" ; then
1745 { echo "configure: error: bad value $enableval for --enable-discreteaci" 1>&2; exit 1; }
1747 ol_enable_discreteaci="$ol_arg"
1750 ol_enable_discreteaci="no"
1752 # end --enable-discreteaci
1753 # OpenLDAP --enable-wrappers
1754 # Check whether --enable-wrappers or --disable-wrappers was given.
1755 if test "${enable_wrappers+set}" = set; then
1756 enableval="$enable_wrappers"
1759 for ol_val in auto yes no ; do
1760 if test "$enableval" = "$ol_val" ; then
1764 if test "$ol_arg" = "invalid" ; then
1765 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1767 ol_enable_wrappers="$ol_arg"
1770 ol_enable_wrappers="no"
1772 # end --enable-wrappers
1773 # OpenLDAP --enable-dynamic
1774 # Check whether --enable-dynamic or --disable-dynamic was given.
1775 if test "${enable_dynamic+set}" = set; then
1776 enableval="$enable_dynamic"
1779 for ol_val in auto yes no ; do
1780 if test "$enableval" = "$ol_val" ; then
1784 if test "$ol_arg" = "invalid" ; then
1785 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1787 ol_enable_dynamic="$ol_arg"
1790 ol_enable_dynamic="no"
1792 # end --enable-dynamic
1794 # OpenLDAP --enable-bdb2
1795 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1796 if test "${enable_bdb2+set}" = set; then
1797 enableval="$enable_bdb2"
1800 for ol_val in auto yes no ; do
1801 if test "$enableval" = "$ol_val" ; then
1805 if test "$ol_arg" = "invalid" ; then
1806 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1808 ol_enable_bdb2="$ol_arg"
1814 # OpenLDAP --with-bdb2_module
1815 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1816 if test "${with_bdb2_module+set}" = set; then
1817 withval="$with_bdb2_module"
1820 for ol_val in static dynamic ; do
1821 if test "$withval" = "$ol_val" ; then
1825 if test "$ol_arg" = "invalid" ; then
1826 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1828 ol_with_bdb2_module="$ol_arg"
1831 ol_with_bdb2_module="static"
1833 # end --with-bdb2_module
1835 # OpenLDAP --enable-ldap
1836 # Check whether --enable-ldap or --disable-ldap was given.
1837 if test "${enable_ldap+set}" = set; then
1838 enableval="$enable_ldap"
1841 for ol_val in auto yes no ; do
1842 if test "$enableval" = "$ol_val" ; then
1846 if test "$ol_arg" = "invalid" ; then
1847 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1849 ol_enable_ldap="$ol_arg"
1855 # OpenLDAP --with-ldap_module
1856 # Check whether --with-ldap_module or --without-ldap_module was given.
1857 if test "${with_ldap_module+set}" = set; then
1858 withval="$with_ldap_module"
1861 for ol_val in static dynamic ; do
1862 if test "$withval" = "$ol_val" ; then
1866 if test "$ol_arg" = "invalid" ; then
1867 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1869 ol_with_ldap_module="$ol_arg"
1872 ol_with_ldap_module="static"
1874 # end --with-ldap_module
1876 # OpenLDAP --enable-ldbm
1877 # Check whether --enable-ldbm or --disable-ldbm was given.
1878 if test "${enable_ldbm+set}" = set; then
1879 enableval="$enable_ldbm"
1882 for ol_val in auto yes no ; do
1883 if test "$enableval" = "$ol_val" ; then
1887 if test "$ol_arg" = "invalid" ; then
1888 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1890 ol_enable_ldbm="$ol_arg"
1893 ol_enable_ldbm="yes"
1896 # OpenLDAP --with-ldbm_api
1897 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1898 if test "${with_ldbm_api+set}" = set; then
1899 withval="$with_ldbm_api"
1902 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1903 if test "$withval" = "$ol_val" ; then
1907 if test "$ol_arg" = "invalid" ; then
1908 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1910 ol_with_ldbm_api="$ol_arg"
1913 ol_with_ldbm_api="auto"
1915 # end --with-ldbm_api
1917 # OpenLDAP --with-ldbm_module
1918 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1919 if test "${with_ldbm_module+set}" = set; then
1920 withval="$with_ldbm_module"
1923 for ol_val in static dynamic ; do
1924 if test "$withval" = "$ol_val" ; then
1928 if test "$ol_arg" = "invalid" ; then
1929 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1931 ol_with_ldbm_module="$ol_arg"
1934 ol_with_ldbm_module="static"
1936 # end --with-ldbm_module
1938 # OpenLDAP --with-ldbm_type
1939 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1940 if test "${with_ldbm_type+set}" = set; then
1941 withval="$with_ldbm_type"
1944 for ol_val in auto btree hash ; do
1945 if test "$withval" = "$ol_val" ; then
1949 if test "$ol_arg" = "invalid" ; then
1950 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1952 ol_with_ldbm_type="$ol_arg"
1955 ol_with_ldbm_type="auto"
1957 # end --with-ldbm_type
1960 # OpenLDAP --enable-passwd
1961 # Check whether --enable-passwd or --disable-passwd was given.
1962 if test "${enable_passwd+set}" = set; then
1963 enableval="$enable_passwd"
1966 for ol_val in auto yes no ; do
1967 if test "$enableval" = "$ol_val" ; then
1971 if test "$ol_arg" = "invalid" ; then
1972 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1974 ol_enable_passwd="$ol_arg"
1977 ol_enable_passwd="no"
1979 # end --enable-passwd
1980 # OpenLDAP --with-passwd_module
1981 # Check whether --with-passwd_module or --without-passwd_module was given.
1982 if test "${with_passwd_module+set}" = set; then
1983 withval="$with_passwd_module"
1986 for ol_val in static dynamic ; do
1987 if test "$withval" = "$ol_val" ; then
1991 if test "$ol_arg" = "invalid" ; then
1992 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1994 ol_with_passwd_module="$ol_arg"
1997 ol_with_passwd_module="static"
1999 # end --with-passwd_module
2001 # OpenLDAP --enable-perl
2002 # Check whether --enable-perl or --disable-perl was given.
2003 if test "${enable_perl+set}" = set; then
2004 enableval="$enable_perl"
2007 for ol_val in auto yes no ; do
2008 if test "$enableval" = "$ol_val" ; then
2012 if test "$ol_arg" = "invalid" ; then
2013 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2015 ol_enable_perl="$ol_arg"
2021 # OpenLDAP --with-perl_module
2022 # Check whether --with-perl_module or --without-perl_module was given.
2023 if test "${with_perl_module+set}" = set; then
2024 withval="$with_perl_module"
2027 for ol_val in static dynamic ; do
2028 if test "$withval" = "$ol_val" ; then
2032 if test "$ol_arg" = "invalid" ; then
2033 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2035 ol_with_perl_module="$ol_arg"
2038 ol_with_perl_module="static"
2040 # end --with-perl_module
2042 # OpenLDAP --enable-shell
2043 # Check whether --enable-shell or --disable-shell was given.
2044 if test "${enable_shell+set}" = set; then
2045 enableval="$enable_shell"
2048 for ol_val in auto yes no ; do
2049 if test "$enableval" = "$ol_val" ; then
2053 if test "$ol_arg" = "invalid" ; then
2054 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2056 ol_enable_shell="$ol_arg"
2059 ol_enable_shell="no"
2061 # end --enable-shell
2062 # OpenLDAP --with-shell_module
2063 # Check whether --with-shell_module or --without-shell_module was given.
2064 if test "${with_shell_module+set}" = set; then
2065 withval="$with_shell_module"
2068 for ol_val in static dynamic ; do
2069 if test "$withval" = "$ol_val" ; then
2073 if test "$ol_arg" = "invalid" ; then
2074 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2076 ol_with_shell_module="$ol_arg"
2079 ol_with_shell_module="static"
2081 # end --with-shell_module
2083 # OpenLDAP --enable-tcl
2084 # Check whether --enable-tcl or --disable-tcl was given.
2085 if test "${enable_tcl+set}" = set; then
2086 enableval="$enable_tcl"
2089 for ol_val in auto yes no ; do
2090 if test "$enableval" = "$ol_val" ; then
2094 if test "$ol_arg" = "invalid" ; then
2095 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2097 ol_enable_tcl="$ol_arg"
2103 # OpenLDAP --with-tcl_module
2104 # Check whether --with-tcl_module or --without-tcl_module was given.
2105 if test "${with_tcl_module+set}" = set; then
2106 withval="$with_tcl_module"
2109 for ol_val in static dynamic ; do
2110 if test "$withval" = "$ol_val" ; then
2114 if test "$ol_arg" = "invalid" ; then
2115 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2117 ol_with_tcl_module="$ol_arg"
2120 ol_with_tcl_module="static"
2122 # end --with-tcl_module
2125 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2126 if test "${with_xxslurpdoptions+set}" = set; then
2127 withval="$with_xxslurpdoptions"
2131 # OpenLDAP --enable-slurpd
2132 # Check whether --enable-slurpd or --disable-slurpd was given.
2133 if test "${enable_slurpd+set}" = set; then
2134 enableval="$enable_slurpd"
2137 for ol_val in auto yes no ; do
2138 if test "$enableval" = "$ol_val" ; then
2142 if test "$ol_arg" = "invalid" ; then
2143 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2145 ol_enable_slurpd="$ol_arg"
2148 ol_enable_slurpd="auto"
2150 # end --enable-slurpd
2152 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2153 if test "${with_xxliboptions+set}" = set; then
2154 withval="$with_xxliboptions"
2158 # Check whether --enable-static or --disable-static was given.
2159 if test "${enable_static+set}" = set; then
2160 enableval="$enable_static"
2161 p=${PACKAGE-default}
2162 case "$enableval" in
2163 yes) enable_static=yes ;;
2164 no) enable_static=no ;;
2167 # Look at the argument we got. We use all the common list separators.
2168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2169 for pkg in $enableval; do
2170 if test "X$pkg" = "X$p"; then
2181 # Check whether --enable-shared or --disable-shared was given.
2182 if test "${enable_shared+set}" = set; then
2183 enableval="$enable_shared"
2184 p=${PACKAGE-default}
2185 case "$enableval" in
2186 yes) enable_shared=yes ;;
2187 no) enable_shared=no ;;
2190 # Look at the argument we got. We use all the common list separators.
2191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2192 for pkg in $enableval; do
2193 if test "X$pkg" = "X$p"; then
2207 if test $ol_enable_dns = yes ; then
2208 if test $ol_enable_referrals = no ; then
2209 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2211 if test $ol_enable_referrals = auto ; then
2212 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2213 ol_enable_referrals=yes
2217 if test $ol_enable_slapd = no ; then
2218 if test $ol_enable_bdb2 = yes ; then
2219 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2221 if test $ol_enable_ldap = yes ; then
2222 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2224 if test $ol_enable_ldbm = yes ; then
2225 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2227 if test $ol_enable_passwd = yes ; then
2228 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2230 if test $ol_enable_perl = yes ; then
2231 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2233 if test $ol_enable_shell = yes ; then
2234 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2236 if test $ol_enable_tcl = yes ; then
2237 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2239 if test $ol_enable_modules = yes ; then
2240 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2242 if test $ol_enable_multimaster = yes ; then
2243 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2245 if test $ol_enable_wrappers = yes ; then
2246 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2248 if test $ol_enable_phonetic = yes ; then
2249 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2251 if test $ol_enable_quipu = yes ; then
2252 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2254 if test $ol_enable_rlookups = yes ; then
2255 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2257 if test $ol_enable_aci = yes ; then
2258 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2260 if test $ol_enable_discreteaci = yes ; then
2261 echo "configure: warning: slapd disabled, ignoring --enable-discreteaci argument" 1>&2
2263 if test $ol_with_ldbm_api != auto ; then
2264 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2266 if test $ol_with_ldbm_type != auto ; then
2267 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2269 if test $ol_with_bdb2_module != static ; then
2270 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2272 if test $ol_with_ldap_module != static ; then
2273 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2275 if test $ol_with_ldbm_module != static ; then
2276 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2278 if test $ol_with_passwd_module != static ; then
2279 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2281 if test $ol_with_perl_module != static ; then
2282 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2284 if test $ol_with_shell_module != static ; then
2285 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2287 if test $ol_with_tcl_module != static ; then
2288 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2290 if test $ol_enable_slurpd = yes ; then
2291 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2294 # force settings to no
2303 ol_enable_modules=no
2304 ol_enable_multimaster=no
2305 ol_enable_phonetic=no
2307 ol_enable_rlookups=no
2309 ol_enable_discreteaci=no
2310 ol_enable_wrappers=no
2311 ol_enable_dynamic=no
2314 ol_with_ldbm_type=no
2316 ol_with_bdb2_module=static
2317 ol_with_ldap_module=static
2318 ol_with_ldbm_module=static
2319 ol_with_passwd_module=static
2320 ol_with_perl_module=static
2321 ol_with_shell_module=static
2322 ol_with_tcl_module=static
2326 elif test $ol_enable_ldbm = no ; then
2328 if test $ol_with_ldbm_api != auto ; then
2329 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2332 if test $ol_with_ldbm_type != auto ; then
2333 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2336 if test $ol_with_ldbm_module != static ; then
2337 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2340 if test $ol_enable_bdb2 = yes ; then
2341 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2344 if test $ol_enable_modules != yes -a \
2345 $ol_enable_ldap = no -a \
2346 $ol_enable_passwd = no -a \
2347 $ol_enable_perl = no -a \
2348 $ol_enable_shell = no -a \
2349 $ol_enable_tcl = no ; then
2350 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2354 ol_with_ldbm_type=no
2355 ol_with_ldbm_module=static
2357 elif test $ol_enable_bdb2 = yes ; then
2359 if test $ol_with_ldbm_api != auto -a \
2360 $ol_with_ldbm_api != db2 ; then
2361 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2364 ol_with_ldbm_api=db2
2368 if test $ol_enable_bdb2 != no ; then
2369 if test $ol_with_ldbm_api != auto -a \
2370 $ol_with_ldbm_api != db2 ; then
2371 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2376 if test $ol_with_ldbm_api = gdbm -a \
2377 $ol_with_ldbm_type = btree ; then
2378 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2380 if test $ol_with_ldbm_api = mdbm -a \
2381 $ol_with_ldbm_type = btree ; then
2382 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2384 if test $ol_with_ldbm_api = ndbm -a \
2385 $ol_with_ldbm_type = btree ; then
2386 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2390 if test $ol_enable_slurpd = yes ; then
2391 if test $ol_with_threads = no ; then
2392 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2396 echo "$ac_t""done" 1>&6
2422 BUILD_BDB2_DYNAMIC=static
2423 BUILD_LDAP_DYNAMIC=static
2424 BUILD_LDBM_DYNAMIC=static
2425 BUILD_PASSWD_DYNAMIC=static
2426 BUILD_PERL_DYNAMIC=static
2427 BUILD_SHELL_DYNAMIC=static
2428 BUILD_TCL_DYNAMIC=static
2430 SLAPD_MODULES_LDFLAGS=
2431 SLAPD_MODULES_CPPFLAGS=
2448 cat >> confdefs.h <<\EOF
2449 #define HAVE_MKVERSION 1
2457 *-*-aix*) if test -z "$CC" ; then
2458 case "$ol_with_threads" in
2459 auto | yes | posix) ol_aix_threads=yes ;;
2465 if test $ol_aix_threads = yes ; then
2466 if test -z "${CC}" ; then
2467 for ac_prog in cc_r xlc_r cc
2469 # Extract the first word of "$ac_prog", so it can be a program name with args.
2470 set dummy $ac_prog; ac_word=$2
2471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2472 echo "configure:2451: checking for $ac_word" >&5
2473 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 if test -n "$CC"; then
2477 ac_cv_prog_CC="$CC" # Let the user override the test.
2479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2481 for ac_dir in $ac_dummy; do
2482 test -z "$ac_dir" && ac_dir=.
2483 if test -f $ac_dir/$ac_word; then
2484 ac_cv_prog_CC="$ac_prog"
2492 if test -n "$CC"; then
2493 echo "$ac_t""$CC" 1>&6
2495 echo "$ac_t""no" 1>&6
2498 test -n "$CC" && break
2502 if test "$CC" = cc ; then
2503 if test $ol_with_threads != auto ; then
2504 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2506 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2512 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2513 ol_with_threads=posix
2514 ol_cv_pthread_create=yes
2518 if test -z "${CC}"; then
2521 # Extract the first word of "$ac_prog", so it can be a program name with args.
2522 set dummy $ac_prog; ac_word=$2
2523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2524 echo "configure:2503: checking for $ac_word" >&5
2525 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 if test -n "$CC"; then
2529 ac_cv_prog_CC="$CC" # Let the user override the test.
2531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2533 for ac_dir in $ac_dummy; do
2534 test -z "$ac_dir" && ac_dir=.
2535 if test -f $ac_dir/$ac_word; then
2536 ac_cv_prog_CC="$ac_prog"
2544 if test -n "$CC"; then
2545 echo "$ac_t""$CC" 1>&6
2547 echo "$ac_t""no" 1>&6
2550 test -n "$CC" && break
2558 # Check whether --enable-fast-install or --disable-fast-install was given.
2559 if test "${enable_fast_install+set}" = set; then
2560 enableval="$enable_fast_install"
2561 p=${PACKAGE-default}
2562 case "$enableval" in
2563 yes) enable_fast_install=yes ;;
2564 no) enable_fast_install=no ;;
2566 enable_fast_install=no
2567 # Look at the argument we got. We use all the common list separators.
2568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2569 for pkg in $enableval; do
2570 if test "X$pkg" = "X$p"; then
2571 enable_fast_install=yes
2578 enable_fast_install=yes
2581 # Extract the first word of "ranlib", so it can be a program name with args.
2582 set dummy ranlib; ac_word=$2
2583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2584 echo "configure:2563: checking for $ac_word" >&5
2585 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 if test -n "$RANLIB"; then
2589 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2593 for ac_dir in $ac_dummy; do
2594 test -z "$ac_dir" && ac_dir=.
2595 if test -f $ac_dir/$ac_word; then
2596 ac_cv_prog_RANLIB="ranlib"
2601 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2604 RANLIB="$ac_cv_prog_RANLIB"
2605 if test -n "$RANLIB"; then
2606 echo "$ac_t""$RANLIB" 1>&6
2608 echo "$ac_t""no" 1>&6
2611 # Extract the first word of "gcc", so it can be a program name with args.
2612 set dummy gcc; ac_word=$2
2613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2614 echo "configure:2593: checking for $ac_word" >&5
2615 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2618 if test -n "$CC"; then
2619 ac_cv_prog_CC="$CC" # Let the user override the test.
2621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2623 for ac_dir in $ac_dummy; do
2624 test -z "$ac_dir" && ac_dir=.
2625 if test -f $ac_dir/$ac_word; then
2634 if test -n "$CC"; then
2635 echo "$ac_t""$CC" 1>&6
2637 echo "$ac_t""no" 1>&6
2640 if test -z "$CC"; then
2641 # Extract the first word of "cc", so it can be a program name with args.
2642 set dummy cc; ac_word=$2
2643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2644 echo "configure:2623: checking for $ac_word" >&5
2645 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2648 if test -n "$CC"; then
2649 ac_cv_prog_CC="$CC" # Let the user override the test.
2651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2654 for ac_dir in $ac_dummy; do
2655 test -z "$ac_dir" && ac_dir=.
2656 if test -f $ac_dir/$ac_word; then
2657 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2658 ac_prog_rejected=yes
2666 if test $ac_prog_rejected = yes; then
2667 # We found a bogon in the path, so make sure we never use it.
2668 set dummy $ac_cv_prog_CC
2670 if test $# -gt 0; then
2671 # We chose a different compiler from the bogus one.
2672 # However, it has the same basename, so the bogon will be chosen
2673 # first if we set CC to just the basename; use the full file name.
2675 set dummy "$ac_dir/$ac_word" "$@"
2683 if test -n "$CC"; then
2684 echo "$ac_t""$CC" 1>&6
2686 echo "$ac_t""no" 1>&6
2689 if test -z "$CC"; then
2690 case "`uname -s`" in
2691 *win32* | *WIN32* | *CYGWIN*)
2692 # Extract the first word of "cl", so it can be a program name with args.
2693 set dummy cl; ac_word=$2
2694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2695 echo "configure:2674: checking for $ac_word" >&5
2696 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2704 for ac_dir in $ac_dummy; do
2705 test -z "$ac_dir" && ac_dir=.
2706 if test -f $ac_dir/$ac_word; then
2715 if test -n "$CC"; then
2716 echo "$ac_t""$CC" 1>&6
2718 echo "$ac_t""no" 1>&6
2723 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2727 echo "configure:2706: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2730 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2731 ac_cpp='$CPP $CPPFLAGS'
2732 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2733 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2734 cross_compiling=$ac_cv_prog_cc_cross
2736 cat > conftest.$ac_ext << EOF
2738 #line 2717 "configure"
2739 #include "confdefs.h"
2743 if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2744 ac_cv_prog_cc_works=yes
2745 # If we can't run a trivial program, we are probably using a cross compiler.
2746 if (./conftest; exit) 2>/dev/null; then
2747 ac_cv_prog_cc_cross=no
2749 ac_cv_prog_cc_cross=yes
2752 echo "configure: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2754 ac_cv_prog_cc_works=no
2758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2761 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2762 cross_compiling=$ac_cv_prog_cc_cross
2764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2765 if test $ac_cv_prog_cc_works = no; then
2766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2769 echo "configure:2748: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2771 cross_compiling=$ac_cv_prog_cc_cross
2773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2774 echo "configure:2753: checking whether we are using GNU C" >&5
2775 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 cat > conftest.c <<EOF
2783 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2790 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2792 if test $ac_cv_prog_gcc = yes; then
2798 ac_test_CFLAGS="${CFLAGS+set}"
2799 ac_save_CFLAGS="$CFLAGS"
2801 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2802 echo "configure:2781: checking whether ${CC-cc} accepts -g" >&5
2803 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2806 echo 'void f(){}' > conftest.c
2807 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2816 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2817 if test "$ac_test_CFLAGS" = set; then
2818 CFLAGS="$ac_save_CFLAGS"
2819 elif test $ac_cv_prog_cc_g = yes; then
2820 if test "$GCC" = yes; then
2826 if test "$GCC" = yes; then
2833 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2834 if test "${with_gnu_ld+set}" = set; then
2835 withval="$with_gnu_ld"
2836 test "$withval" = no || with_gnu_ld=yes
2842 if test "$ac_cv_prog_gcc" = yes; then
2843 # Check if gcc -print-prog-name=ld gives a path.
2844 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2845 echo "configure:2824: checking for ld used by GCC" >&5
2846 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2848 # Accept absolute paths.
2849 [\\/]* | [A-Za-z]:[\\/]*)
2850 re_direlt='/[^/][^/]*/\.\./'
2851 # Canonicalize the path of ld
2852 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2853 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2854 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2856 test -z "$LD" && LD="$ac_prog"
2859 # If it fails, then pretend we aren't using GCC.
2863 # If it is relative, then search for the first ld in PATH.
2867 elif test "$with_gnu_ld" = yes; then
2868 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2869 echo "configure:2848: checking for GNU ld" >&5
2871 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2872 echo "configure:2851: checking for non-GNU ld" >&5
2874 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2877 if test -z "$LD"; then
2878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2879 for ac_dir in $PATH; do
2880 test -z "$ac_dir" && ac_dir=.
2881 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2882 ac_cv_path_LD="$ac_dir/$ac_prog"
2883 # Check to see if the program is GNU ld. I'd rather use --version,
2884 # but apparently some GNU ld's only accept -v.
2885 # Break only if it was the GNU/non-GNU ld that we prefer.
2886 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2887 test "$with_gnu_ld" != no && break
2889 test "$with_gnu_ld" != yes && break
2895 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2900 if test -n "$LD"; then
2901 echo "$ac_t""$LD" 1>&6
2903 echo "$ac_t""no" 1>&6
2905 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2907 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2908 echo "configure:2887: checking if the linker ($LD) is GNU ld" >&5
2909 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2912 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2913 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2914 ac_cv_prog_gnu_ld=yes
2916 ac_cv_prog_gnu_ld=no
2920 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2923 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2924 echo "configure:2903: checking for BSD-compatible nm" >&5
2925 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 if test -n "$NM"; then
2929 # Let the user override the test.
2932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2933 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2934 test -z "$ac_dir" && ac_dir=.
2935 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2936 # Check to see if the nm accepts a BSD-compat flag.
2937 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2938 # nm: unknown option "B" ignored
2939 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2940 ac_cv_path_NM="$ac_dir/nm -B"
2942 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2943 ac_cv_path_NM="$ac_dir/nm -p"
2946 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2947 continue # so that we can try to find one that supports BSD flags
2952 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2957 echo "$ac_t""$NM" 1>&6
2960 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2961 echo "configure:2940: checking whether ln -s works" >&5
2962 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2966 if ln -s X conftestdata 2>/dev/null
2969 ac_cv_prog_LN_S="ln -s"
2974 LN_S="$ac_cv_prog_LN_S"
2975 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2976 echo "$ac_t""yes" 1>&6
2978 echo "$ac_t""no" 1>&6
2981 if test $host != $build; then
2982 ac_tool_prefix=${host_alias}-
2988 # Check for any special flags to pass to ltconfig.
2989 libtool_flags="--cache-file=$cache_file"
2990 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2991 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2992 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2993 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2994 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2995 libtool_flags="$libtool_flags --enable-dlopen"
2996 libtool_flags="$libtool_flags --enable-win32-dll"
2997 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2998 if test "${enable_libtool_lock+set}" = set; then
2999 enableval="$enable_libtool_lock"
3003 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3004 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3006 # Some flags need to be propagated to the compiler or linker for good
3010 # Find out which ABI we are using.
3011 echo '#line 2990 "configure"' > conftest.$ac_ext
3012 if { (eval echo configure:2991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3013 case "`/usr/bin/file conftest.o`" in
3029 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3030 SAVE_CFLAGS="$CFLAGS"
3031 CFLAGS="$CFLAGS -belf"
3032 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3033 echo "configure:3012: checking whether the C compiler needs -belf" >&5
3034 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3017 "configure"
3039 #include "confdefs.h"
3045 if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3047 lt_cv_cc_needs_belf=yes
3049 echo "configure: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3052 lt_cv_cc_needs_belf=no
3057 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3058 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3059 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3060 CFLAGS="$SAVE_CFLAGS"
3064 *-*-cygwin* | *-*-mingw*)
3065 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3068 echo "configure:3047: checking for $ac_word" >&5
3069 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3070 echo $ac_n "(cached) $ac_c" 1>&6
3072 if test -n "$DLLTOOL"; then
3073 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3077 for ac_dir in $ac_dummy; do
3078 test -z "$ac_dir" && ac_dir=.
3079 if test -f $ac_dir/$ac_word; then
3080 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3087 DLLTOOL="$ac_cv_prog_DLLTOOL"
3088 if test -n "$DLLTOOL"; then
3089 echo "$ac_t""$DLLTOOL" 1>&6
3091 echo "$ac_t""no" 1>&6
3095 if test -z "$ac_cv_prog_DLLTOOL"; then
3096 if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "dlltool", so it can be a program name with args.
3098 set dummy dlltool; ac_word=$2
3099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3100 echo "configure:3079: checking for $ac_word" >&5
3101 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 if test -n "$DLLTOOL"; then
3105 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3109 for ac_dir in $ac_dummy; do
3110 test -z "$ac_dir" && ac_dir=.
3111 if test -f $ac_dir/$ac_word; then
3112 ac_cv_prog_DLLTOOL="dlltool"
3117 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3120 DLLTOOL="$ac_cv_prog_DLLTOOL"
3121 if test -n "$DLLTOOL"; then
3122 echo "$ac_t""$DLLTOOL" 1>&6
3124 echo "$ac_t""no" 1>&6
3132 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3133 set dummy ${ac_tool_prefix}as; ac_word=$2
3134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3135 echo "configure:3114: checking for $ac_word" >&5
3136 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3137 echo $ac_n "(cached) $ac_c" 1>&6
3139 if test -n "$AS"; then
3140 ac_cv_prog_AS="$AS" # Let the user override the test.
3142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3144 for ac_dir in $ac_dummy; do
3145 test -z "$ac_dir" && ac_dir=.
3146 if test -f $ac_dir/$ac_word; then
3147 ac_cv_prog_AS="${ac_tool_prefix}as"
3155 if test -n "$AS"; then
3156 echo "$ac_t""$AS" 1>&6
3158 echo "$ac_t""no" 1>&6
3162 if test -z "$ac_cv_prog_AS"; then
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "as", so it can be a program name with args.
3165 set dummy as; ac_word=$2
3166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3167 echo "configure:3146: checking for $ac_word" >&5
3168 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3171 if test -n "$AS"; then
3172 ac_cv_prog_AS="$AS" # Let the user override the test.
3174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3176 for ac_dir in $ac_dummy; do
3177 test -z "$ac_dir" && ac_dir=.
3178 if test -f $ac_dir/$ac_word; then
3184 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3188 if test -n "$AS"; then
3189 echo "$ac_t""$AS" 1>&6
3191 echo "$ac_t""no" 1>&6
3199 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3200 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3202 echo "configure:3181: checking for $ac_word" >&5
3203 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3206 if test -n "$OBJDUMP"; then
3207 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3211 for ac_dir in $ac_dummy; do
3212 test -z "$ac_dir" && ac_dir=.
3213 if test -f $ac_dir/$ac_word; then
3214 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3221 OBJDUMP="$ac_cv_prog_OBJDUMP"
3222 if test -n "$OBJDUMP"; then
3223 echo "$ac_t""$OBJDUMP" 1>&6
3225 echo "$ac_t""no" 1>&6
3229 if test -z "$ac_cv_prog_OBJDUMP"; then
3230 if test -n "$ac_tool_prefix"; then
3231 # Extract the first word of "objdump", so it can be a program name with args.
3232 set dummy objdump; ac_word=$2
3233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3234 echo "configure:3213: checking for $ac_word" >&5
3235 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 if test -n "$OBJDUMP"; then
3239 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3243 for ac_dir in $ac_dummy; do
3244 test -z "$ac_dir" && ac_dir=.
3245 if test -f $ac_dir/$ac_word; then
3246 ac_cv_prog_OBJDUMP="objdump"
3251 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3254 OBJDUMP="$ac_cv_prog_OBJDUMP"
3255 if test -n "$OBJDUMP"; then
3256 echo "$ac_t""$OBJDUMP" 1>&6
3258 echo "$ac_t""no" 1>&6
3271 # Save cache, so that ltconfig can load it
3274 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3275 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3276 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3277 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3278 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3279 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3280 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3281 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3283 # Reload cache, that may have been modified by ltconfig
3286 # This can be used to rebuild libtool when needed
3287 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3289 # Always use our own libtool.
3290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3292 # Redirect the config.log output again, so that the ltconfig log is not
3293 # clobbered by the next message.
3294 exec 5>>./config.log
3297 for ac_prog in mawk gawk nawk awk
3299 # Extract the first word of "$ac_prog", so it can be a program name with args.
3300 set dummy $ac_prog; ac_word=$2
3301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3302 echo "configure:3281: checking for $ac_word" >&5
3303 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3304 echo $ac_n "(cached) $ac_c" 1>&6
3306 if test -n "$AWK"; then
3307 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3311 for ac_dir in $ac_dummy; do
3312 test -z "$ac_dir" && ac_dir=.
3313 if test -f $ac_dir/$ac_word; then
3314 ac_cv_prog_AWK="$ac_prog"
3321 AWK="$ac_cv_prog_AWK"
3322 if test -n "$AWK"; then
3323 echo "$ac_t""$AWK" 1>&6
3325 echo "$ac_t""no" 1>&6
3328 test -n "$AWK" && break
3331 # test for ln hardlink support
3332 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3333 echo "configure:3312: checking whether ln works" >&5
3334 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 rm -f conftest.src conftest.dst
3338 echo "conftest" > conftest.src
3339 if ln conftest.src conftest.dst 2>/dev/null
3341 ol_cv_prog_LN_H="ln"
3343 ol_cv_prog_LN_H="cp"
3345 rm -f conftest.src conftest.dst
3348 LN_H="$ol_cv_prog_LN_H"
3349 if test "$ol_cv_prog_LN_H" = "ln"; then
3350 echo "$ac_t""yes" 1>&6
3352 echo "$ac_t""no" 1>&6
3355 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3356 echo "configure:3335: checking whether ln -s works" >&5
3357 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3361 if ln -s X conftestdata 2>/dev/null
3364 ac_cv_prog_LN_S="ln -s"
3369 LN_S="$ac_cv_prog_LN_S"
3370 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3371 echo "$ac_t""yes" 1>&6
3373 echo "$ac_t""no" 1>&6
3377 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3381 # Extract the first word of "sendmail", so it can be a program name with args.
3382 set dummy sendmail; ac_word=$2
3383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3384 echo "configure:3363: checking for $ac_word" >&5
3385 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3390 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3393 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3397 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3398 for ac_dir in $ac_dummy; do
3399 test -z "$ac_dir" && ac_dir=.
3400 if test -f $ac_dir/$ac_word; then
3401 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3406 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3410 SENDMAIL="$ac_cv_path_SENDMAIL"
3411 if test -n "$SENDMAIL"; then
3412 echo "$ac_t""$SENDMAIL" 1>&6
3414 echo "$ac_t""no" 1>&6
3417 # Extract the first word of "vi", so it can be a program name with args.
3418 set dummy vi; ac_word=$2
3419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3420 echo "configure:3399: checking for $ac_word" >&5
3421 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3426 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3429 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3433 ac_dummy="$PATH:/usr/ucb"
3434 for ac_dir in $ac_dummy; do
3435 test -z "$ac_dir" && ac_dir=.
3436 if test -f $ac_dir/$ac_word; then
3437 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3442 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3446 EDITOR="$ac_cv_path_EDITOR"
3447 if test -n "$EDITOR"; then
3448 echo "$ac_t""$EDITOR" 1>&6
3450 echo "$ac_t""no" 1>&6
3453 # Extract the first word of "finger", so it can be a program name with args.
3454 set dummy finger; ac_word=$2
3455 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3456 echo "configure:3435: checking for $ac_word" >&5
3457 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3462 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3465 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3469 ac_dummy="$PATH:/usr/ucb"
3470 for ac_dir in $ac_dummy; do
3471 test -z "$ac_dir" && ac_dir=.
3472 if test -f $ac_dir/$ac_word; then
3473 ac_cv_path_FINGER="$ac_dir/$ac_word"
3478 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3482 FINGER="$ac_cv_path_FINGER"
3483 if test -n "$FINGER"; then
3484 echo "$ac_t""$FINGER" 1>&6
3486 echo "$ac_t""no" 1>&6
3491 if test $ol_enable_perl != no ; then
3492 # Extract the first word of "perl", so it can be a program name with args.
3493 set dummy perl; ac_word=$2
3494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3495 echo "configure:3474: checking for $ac_word" >&5
3496 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3501 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3504 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3509 for ac_dir in $ac_dummy; do
3510 test -z "$ac_dir" && ac_dir=.
3511 if test -f $ac_dir/$ac_word; then
3512 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3517 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3521 PERLBIN="$ac_cv_path_PERLBIN"
3522 if test -n "$PERLBIN"; then
3523 echo "$ac_t""$PERLBIN" 1>&6
3525 echo "$ac_t""no" 1>&6
3529 if test "no$PERLBIN" = "no" ; then
3530 if test $ol_enable_perl = yes ; then
3531 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3535 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3536 if test x"$ol_with_perl_module" = "xstatic" ; then
3537 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3539 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3545 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3546 echo "configure:3525: checking how to run the C preprocessor" >&5
3547 # On Suns, sometimes $CPP names a directory.
3548 if test -n "$CPP" && test -d "$CPP"; then
3551 if test -z "$CPP"; then
3552 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 # This must be in double quotes, not single quotes, because CPP may get
3556 # substituted into the Makefile and "${CC-cc}" will confuse make.
3558 # On the NeXT, cc -E runs the code through the compiler's parser,
3559 # not just through cpp.
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3540 "configure"
3562 #include "confdefs.h"
3566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3567 { (eval echo configure:3546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3569 if test -z "$ac_err"; then
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3576 CPP="${CC-cc} -E -traditional-cpp"
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3557 "configure"
3579 #include "confdefs.h"
3583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3584 { (eval echo configure:3563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3586 if test -z "$ac_err"; then
3590 echo "configure: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3593 CPP="${CC-cc} -nologo -E"
3594 cat > conftest.$ac_ext <<EOF
3595 #line 3574 "configure"
3596 #include "confdefs.h"
3600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3601 { (eval echo configure:3580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3603 if test -z "$ac_err"; then
3607 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3617 ac_cv_prog_CPP="$CPP"
3619 CPP="$ac_cv_prog_CPP"
3621 ac_cv_prog_CPP="$CPP"
3623 echo "$ac_t""$CPP" 1>&6
3626 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3627 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3629 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3630 echo "configure: warning: programs compiled here do run here..." 1>&2
3631 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3633 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3634 echo "configure: warning: programs compiled here do not run here..." 1>&2
3635 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3638 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3639 echo "configure:3618: checking for AIX" >&5
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3620 "configure"
3642 #include "confdefs.h"
3648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3649 egrep "yes" >/dev/null 2>&1; then
3651 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3652 #define _ALL_SOURCE 1
3657 echo "$ac_t""no" 1>&6
3662 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3663 echo "configure:3642: checking for POSIXized ISC" >&5
3664 if test -d /etc/conf/kconfig.d &&
3665 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3667 echo "$ac_t""yes" 1>&6
3668 ISC=yes # If later tests want to check for ISC.
3669 cat >> confdefs.h <<\EOF
3670 #define _POSIX_SOURCE 1
3673 if test "$GCC" = yes; then
3679 echo "$ac_t""no" 1>&6
3683 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3684 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3685 echo "configure:3664: checking for minix/config.h" >&5
3686 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3669 "configure"
3691 #include "confdefs.h"
3692 #include <minix/config.h>
3694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3695 { (eval echo configure:3674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3697 if test -z "$ac_err"; then
3699 eval "ac_cv_header_$ac_safe=yes"
3702 echo "configure: failed program was:" >&5
3703 cat conftest.$ac_ext >&5
3705 eval "ac_cv_header_$ac_safe=no"
3709 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3710 echo "$ac_t""yes" 1>&6
3713 echo "$ac_t""no" 1>&6
3717 if test "$MINIX" = yes; then
3718 cat >> confdefs.h <<\EOF
3719 #define _POSIX_SOURCE 1
3722 cat >> confdefs.h <<\EOF
3723 #define _POSIX_1_SOURCE 2
3726 cat >> confdefs.h <<\EOF
3733 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3734 echo "configure:3713: checking for Cygwin environment" >&5
3735 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 cat > conftest.$ac_ext <<EOF
3739 #line 3718 "configure"
3740 #include "confdefs.h"
3745 #define __CYGWIN__ __CYGWIN32__
3750 if { (eval echo configure:3729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3762 echo "$ac_t""$ac_cv_cygwin" 1>&6
3764 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3765 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3766 echo "configure:3745: checking for mingw32 environment" >&5
3767 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3750 "configure"
3772 #include "confdefs.h"
3778 if { (eval echo configure:3757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3782 echo "configure: failed program was:" >&5
3783 cat conftest.$ac_ext >&5
3790 echo "$ac_t""$ac_cv_mingw32" 1>&6
3792 test "$ac_cv_mingw32" = yes && MINGW32=yes
3793 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3794 echo "configure:3773: checking for EMX OS/2 environment" >&5
3795 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3798 cat > conftest.$ac_ext <<EOF
3799 #line 3778 "configure"
3800 #include "confdefs.h"
3806 if { (eval echo configure:3785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3810 echo "configure: failed program was:" >&5
3811 cat conftest.$ac_ext >&5
3818 echo "$ac_t""$ac_cv_emxos2" 1>&6
3820 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3824 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3825 echo "configure:3804: checking for executable suffix" >&5
3826 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3833 echo 'int main () { return 0; }' > conftest.$ac_ext
3835 if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3836 for file in conftest.*; do
3838 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3839 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3843 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3846 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3851 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3852 echo "$ac_t""${ac_cv_exeext}" 1>&6
3855 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3856 echo "configure:3835: checking for object suffix" >&5
3857 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3861 echo 'int i = 1;' > conftest.$ac_ext
3862 if { (eval echo configure:3841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3863 for ac_file in conftest.*; do
3866 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3870 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3875 echo "$ac_t""$ac_cv_objext" 1>&6
3876 OBJEXT=$ac_cv_objext
3877 ac_objext=$ac_cv_objext
3880 cat >> confdefs.h <<EOF
3881 #define EXEEXT "${EXEEXT}"
3885 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3886 echo "configure:3865: checking for be_app in -lbe" >&5
3887 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3888 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3891 ac_save_LIBS="$LIBS"
3892 LIBS="-lbe -lroot -lnet $LIBS"
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3873 "configure"
3895 #include "confdefs.h"
3896 /* Override any gcc2 internal prototype to avoid an error. */
3897 /* We use char because int might match the return type of a gcc2
3898 builtin and then its argument prototype would still apply. */
3905 if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3907 eval "ac_cv_lib_$ac_lib_var=yes"
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3912 eval "ac_cv_lib_$ac_lib_var=no"
3915 LIBS="$ac_save_LIBS"
3918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3919 echo "$ac_t""yes" 1>&6
3920 LIBS="$LIBS -lbe -lroot -lnet"
3922 echo "$ac_t""no" 1>&6
3930 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3931 echo "configure:3910: checking for ${CC-cc} option to accept ANSI C" >&5
3932 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3935 am_cv_prog_cc_stdc=no
3937 # Don't try gcc -ansi; that turns off useful extensions and
3938 # breaks some systems' header files.
3939 # AIX -qlanglvl=ansi
3940 # Ultrix and OSF/1 -std1
3941 # HP-UX 10.20 and later -Ae
3942 # HP-UX older versions -Aa -D_HPUX_SOURCE
3943 # SVR4 -Xc -D__EXTENSIONS__
3944 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3946 CC="$ac_save_CC $ac_arg"
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3927 "configure"
3949 #include "confdefs.h"
3952 #include <sys/types.h>
3953 #include <sys/stat.h>
3954 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3955 struct buf { int x; };
3956 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3957 static char *e (p, i)
3963 static char *f (char * (*g) (char **, int), char **p, ...)
3968 s = g (p, va_arg (v,int));
3972 int test (int i, double x);
3973 struct s1 {int (*f) (int a);};
3974 struct s2 {int (*f) (double a);};
3975 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3981 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3985 if { (eval echo configure:3964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3987 am_cv_prog_cc_stdc="$ac_arg"; break
3989 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3998 if test -z "$am_cv_prog_cc_stdc"; then
3999 echo "$ac_t""none needed" 1>&6
4001 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4003 case "x$am_cv_prog_cc_stdc" in
4005 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4008 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4009 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4012 # test for make depend flag
4015 if test -z "${MKDEP}"; then
4017 if test -z "${MKDEP_FLAGS}"; then
4018 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4019 echo "configure:3998: checking for ${OL_MKDEP} depend flag" >&5
4020 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4025 for flag in "-M" "-xM"; do
4026 cat > conftest.c <<EOF
4029 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4030 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4032 if test ! -f conftest."${ac_object}" ; then
4034 OL_MKDEP_FLAGS="$flag"
4043 echo "$ac_t""$ol_cv_mkdep" 1>&6
4046 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4051 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4056 if test "${ol_cv_mkdep}" = no ; then
4057 # this will soon become an error
4058 echo "configure: warning: do not know how to generate dependencies" 1>&2
4062 if test $ol_enable_modules != no ; then
4063 for ac_hdr in ltdl.h
4065 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4067 echo "configure:4046: checking for $ac_hdr" >&5
4068 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4069 echo $ac_n "(cached) $ac_c" 1>&6
4071 cat > conftest.$ac_ext <<EOF
4072 #line 4051 "configure"
4073 #include "confdefs.h"
4076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4077 { (eval echo configure:4056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4079 if test -z "$ac_err"; then
4081 eval "ac_cv_header_$ac_safe=yes"
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4087 eval "ac_cv_header_$ac_safe=no"
4091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4092 echo "$ac_t""yes" 1>&6
4093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4094 cat >> confdefs.h <<EOF
4095 #define $ac_tr_hdr 1
4099 echo "$ac_t""no" 1>&6
4104 if test $ac_cv_header_ltdl_h = no ; then
4105 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4108 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4109 echo "configure:4088: checking for lt_dlinit in -lltdl" >&5
4110 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4111 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 ac_save_LIBS="$LIBS"
4116 cat > conftest.$ac_ext <<EOF
4117 #line 4096 "configure"
4118 #include "confdefs.h"
4119 /* Override any gcc2 internal prototype to avoid an error. */
4120 /* We use char because int might match the return type of a gcc2
4121 builtin and then its argument prototype would still apply. */
4128 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4130 eval "ac_cv_lib_$ac_lib_var=yes"
4132 echo "configure: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4135 eval "ac_cv_lib_$ac_lib_var=no"
4138 LIBS="$ac_save_LIBS"
4141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4142 echo "$ac_t""yes" 1>&6
4145 cat >> confdefs.h <<\EOF
4146 #define HAVE_LIBLTDL 1
4151 echo "$ac_t""no" 1>&6
4155 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4156 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4160 ol_with_bdb2_module=static
4161 ol_with_ldap_module=static
4162 ol_with_ldbm_module=static
4163 ol_with_passwd_module=static
4164 ol_with_perl_module=static
4165 ol_with_shell_module=static
4166 ol_with_tcl_module=static
4170 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4171 echo "configure:4150: checking for EBCDIC" >&5
4172 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4176 cat > conftest.$ac_ext <<EOF
4177 #line 4156 "configure"
4178 #include "confdefs.h"
4181 #include <__ASCII__/generate_error.h>
4185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4186 { (eval echo configure:4165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4188 if test -z "$ac_err"; then
4190 ol_cv_cpp_ebcdic=yes
4193 echo "configure: failed program was:" >&5
4194 cat conftest.$ac_ext >&5
4201 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4202 if test $ol_cv_cpp_ebcdic = yes ; then
4203 cat >> confdefs.h <<\EOF
4204 #define HAVE_EBCDIC 1
4209 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4210 echo "configure:4189: checking for ANSI C header files" >&5
4211 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4194 "configure"
4216 #include "confdefs.h"
4222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4223 { (eval echo configure:4202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4225 if test -z "$ac_err"; then
4227 ol_cv_header_stdc=yes
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4233 ol_cv_header_stdc=no
4237 if test $ol_cv_header_stdc = yes; then
4238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4239 cat > conftest.$ac_ext <<EOF
4240 #line 4219 "configure"
4241 #include "confdefs.h"
4244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4245 egrep "memchr" >/dev/null 2>&1; then
4249 ol_cv_header_stdc=no
4255 if test $ol_cv_header_stdc = yes; then
4256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4257 cat > conftest.$ac_ext <<EOF
4258 #line 4237 "configure"
4259 #include "confdefs.h"
4262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4263 egrep "free" >/dev/null 2>&1; then
4267 ol_cv_header_stdc=no
4273 if test $ol_cv_header_stdc = yes; then
4274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4275 if test "$cross_compiling" = yes; then
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4258 "configure"
4280 #include "confdefs.h"
4283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4286 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4287 || ('j' <= (c) && (c) <= 'r') \
4288 || ('s' <= (c) && (c) <= 'z'))
4289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4291 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4292 int main () { int i; for (i = 0; i < 256; i++)
4293 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4297 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4301 echo "configure: failed program was:" >&5
4302 cat conftest.$ac_ext >&5
4304 ol_cv_header_stdc=no
4312 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4313 if test $ol_cv_header_stdc = yes; then
4314 cat >> confdefs.h <<\EOF
4315 #define STDC_HEADERS 1
4319 ac_cv_header_stdc=disable
4322 if test $ol_cv_header_stdc != yes; then
4323 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4327 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4330 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4331 echo "configure:4310: checking for $ac_hdr that defines DIR" >&5
4332 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4335 cat > conftest.$ac_ext <<EOF
4336 #line 4315 "configure"
4337 #include "confdefs.h"
4338 #include <sys/types.h>
4344 if { (eval echo configure:4323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4346 eval "ac_cv_header_dirent_$ac_safe=yes"
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4351 eval "ac_cv_header_dirent_$ac_safe=no"
4355 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4356 echo "$ac_t""yes" 1>&6
4357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4358 cat >> confdefs.h <<EOF
4359 #define $ac_tr_hdr 1
4361 ac_header_dirent=$ac_hdr; break
4363 echo "$ac_t""no" 1>&6
4366 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4367 if test $ac_header_dirent = dirent.h; then
4368 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4369 echo "configure:4348: checking for opendir in -ldir" >&5
4370 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4371 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4372 echo $ac_n "(cached) $ac_c" 1>&6
4374 ac_save_LIBS="$LIBS"
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4356 "configure"
4378 #include "confdefs.h"
4379 /* Override any gcc2 internal prototype to avoid an error. */
4380 /* We use char because int might match the return type of a gcc2
4381 builtin and then its argument prototype would still apply. */
4388 if { (eval echo configure:4367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4390 eval "ac_cv_lib_$ac_lib_var=yes"
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4395 eval "ac_cv_lib_$ac_lib_var=no"
4398 LIBS="$ac_save_LIBS"
4401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4402 echo "$ac_t""yes" 1>&6
4405 echo "$ac_t""no" 1>&6
4409 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4410 echo "configure:4389: checking for opendir in -lx" >&5
4411 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4412 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4415 ac_save_LIBS="$LIBS"
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4397 "configure"
4419 #include "confdefs.h"
4420 /* Override any gcc2 internal prototype to avoid an error. */
4421 /* We use char because int might match the return type of a gcc2
4422 builtin and then its argument prototype would still apply. */
4429 if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4431 eval "ac_cv_lib_$ac_lib_var=yes"
4433 echo "configure: failed program was:" >&5
4434 cat conftest.$ac_ext >&5
4436 eval "ac_cv_lib_$ac_lib_var=no"
4439 LIBS="$ac_save_LIBS"
4442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4443 echo "$ac_t""yes" 1>&6
4446 echo "$ac_t""no" 1>&6
4451 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4452 echo "configure:4431: checking for sys/wait.h that is POSIX.1 compatible" >&5
4453 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4436 "configure"
4458 #include "confdefs.h"
4459 #include <sys/types.h>
4460 #include <sys/wait.h>
4462 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4465 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4470 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4473 if { (eval echo configure:4452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4475 ac_cv_header_sys_wait_h=yes
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 ac_cv_header_sys_wait_h=no
4485 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4486 if test $ac_cv_header_sys_wait_h = yes; then
4487 cat >> confdefs.h <<\EOF
4488 #define HAVE_SYS_WAIT_H 1
4493 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4494 echo "configure:4473: checking POSIX termios" >&5
4495 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 cat > conftest.$ac_ext <<EOF
4499 #line 4478 "configure"
4500 #include "confdefs.h"
4501 #include <sys/types.h>
4503 #include <termios.h>
4505 /* SunOS 4.0.3 has termios.h but not the library calls. */
4509 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4511 am_cv_sys_posix_termios=yes
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 am_cv_sys_posix_termios=no
4521 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4524 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4525 echo "configure:4504: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4526 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4529 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4531 gwinsz_in_termios_h=no
4532 if test $am_cv_sys_posix_termios = yes; then
4533 cat > conftest.$ac_ext <<EOF
4534 #line 4513 "configure"
4535 #include "confdefs.h"
4536 #include <sys/types.h>
4537 # include <termios.h>
4543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544 egrep "yes" >/dev/null 2>&1; then
4546 gwinsz_in_termios_h=yes
4552 if test $gwinsz_in_termios_h = no; then
4553 cat > conftest.$ac_ext <<EOF
4554 #line 4533 "configure"
4555 #include "confdefs.h"
4556 #include <sys/types.h>
4557 # include <sys/ioctl.h>
4563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4564 egrep "yes" >/dev/null 2>&1; then
4566 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4574 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4575 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4576 cat >> confdefs.h <<\EOF
4577 #define GWINSZ_IN_SYS_IOCTL 1
4582 if test $am_cv_sys_posix_termios = yes ; then
4583 cat >> confdefs.h <<\EOF
4584 #define HAVE_POSIX_TERMIOS 1
4636 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4637 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4638 echo "configure:4616: checking for $ac_hdr" >&5
4639 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4640 echo $ac_n "(cached) $ac_c" 1>&6
4642 cat > conftest.$ac_ext <<EOF
4643 #line 4621 "configure"
4644 #include "confdefs.h"
4647 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4648 { (eval echo configure:4626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4649 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4650 if test -z "$ac_err"; then
4652 eval "ac_cv_header_$ac_safe=yes"
4655 echo "configure: failed program was:" >&5
4656 cat conftest.$ac_ext >&5
4658 eval "ac_cv_header_$ac_safe=no"
4662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4663 echo "$ac_t""yes" 1>&6
4664 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4665 cat >> confdefs.h <<EOF
4666 #define $ac_tr_hdr 1
4670 echo "$ac_t""no" 1>&6
4677 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4678 echo "configure:4656: checking for sigset in -lV3" >&5
4679 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4680 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4683 ac_save_LIBS="$LIBS"
4685 cat > conftest.$ac_ext <<EOF
4686 #line 4664 "configure"
4687 #include "confdefs.h"
4688 /* Override any gcc2 internal prototype to avoid an error. */
4689 /* We use char because int might match the return type of a gcc2
4690 builtin and then its argument prototype would still apply. */
4697 if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4699 eval "ac_cv_lib_$ac_lib_var=yes"
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4704 eval "ac_cv_lib_$ac_lib_var=no"
4707 LIBS="$ac_save_LIBS"
4710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4711 echo "$ac_t""yes" 1>&6
4712 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4713 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4714 cat >> confdefs.h <<EOF
4715 #define $ac_tr_lib 1
4721 echo "$ac_t""no" 1>&6
4725 if test $ac_cv_header_winsock_h = yes; then
4726 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4727 echo "configure:4705: checking for winsock" >&5
4728 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4710 "configure"
4733 #include "confdefs.h"
4734 #include <winsock.h>
4738 select(0,NULL,NULL,NULL,NULL);
4740 gethostname(NULL,0);
4744 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4748 echo "configure: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4756 echo "$ac_t""$ol_cv_winsock" 1>&6
4758 if test $ol_cv_winsock = yes ; then
4759 cat >> confdefs.h <<\EOF
4760 #define HAVE_WINSOCK 1
4763 ac_cv_func_socket=yes
4764 ac_cv_func_select=yes
4765 ac_cv_func_closesocket=yes
4766 ac_cv_func_gethostname=yes
4771 echo $ac_n "checking for socket""... $ac_c" 1>&6
4772 echo "configure:4750: checking for socket" >&5
4773 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4755 "configure"
4778 #include "confdefs.h"
4779 /* System header to define __stub macros and hopefully few prototypes,
4780 which can conflict with char socket(); below. */
4782 /* Override any gcc2 internal prototype to avoid an error. */
4783 /* We use char because int might match the return type of a gcc2
4784 builtin and then its argument prototype would still apply. */
4790 /* The GNU C library defines this for functions which it implements
4791 to always fail with ENOSYS. Some functions are actually named
4792 something starting with __ and the normal name is an alias. */
4793 #if defined (__stub_socket) || defined (__stub___socket)
4801 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4803 eval "ac_cv_func_socket=yes"
4805 echo "configure: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4808 eval "ac_cv_func_socket=no"
4813 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4814 echo "$ac_t""yes" 1>&6
4817 echo "$ac_t""no" 1>&6
4819 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4820 echo "configure:4798: checking for main in -lsocket" >&5
4821 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4822 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4825 ac_save_LIBS="$LIBS"
4826 LIBS="-lsocket $LIBS"
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4806 "configure"
4829 #include "confdefs.h"
4835 if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4837 eval "ac_cv_lib_$ac_lib_var=yes"
4839 echo "configure: failed program was:" >&5
4840 cat conftest.$ac_ext >&5
4842 eval "ac_cv_lib_$ac_lib_var=no"
4845 LIBS="$ac_save_LIBS"
4848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4849 echo "$ac_t""yes" 1>&6
4850 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4851 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4852 cat >> confdefs.h <<EOF
4853 #define $ac_tr_lib 1
4856 LIBS="-lsocket $LIBS"
4859 echo "$ac_t""no" 1>&6
4862 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4863 echo "configure:4841: checking for main in -lnet" >&5
4864 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4865 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4868 ac_save_LIBS="$LIBS"
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4849 "configure"
4872 #include "confdefs.h"
4878 if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4880 eval "ac_cv_lib_$ac_lib_var=yes"
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4885 eval "ac_cv_lib_$ac_lib_var=no"
4888 LIBS="$ac_save_LIBS"
4891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4892 echo "$ac_t""yes" 1>&6
4893 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4894 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4895 cat >> confdefs.h <<EOF
4896 #define $ac_tr_lib 1
4902 echo "$ac_t""no" 1>&6
4905 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4906 echo "configure:4884: checking for main in -lnsl_s" >&5
4907 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4908 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4911 ac_save_LIBS="$LIBS"
4912 LIBS="-lnsl_s $LIBS"
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4892 "configure"
4915 #include "confdefs.h"
4921 if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4923 eval "ac_cv_lib_$ac_lib_var=yes"
4925 echo "configure: failed program was:" >&5
4926 cat conftest.$ac_ext >&5
4928 eval "ac_cv_lib_$ac_lib_var=no"
4931 LIBS="$ac_save_LIBS"
4934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4935 echo "$ac_t""yes" 1>&6
4936 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4937 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4938 cat >> confdefs.h <<EOF
4939 #define $ac_tr_lib 1
4942 LIBS="-lnsl_s $LIBS"
4945 echo "$ac_t""no" 1>&6
4948 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4949 echo "configure:4927: checking for main in -lnsl" >&5
4950 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4951 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4954 ac_save_LIBS="$LIBS"
4956 cat > conftest.$ac_ext <<EOF
4957 #line 4935 "configure"
4958 #include "confdefs.h"
4964 if { (eval echo configure:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4966 eval "ac_cv_lib_$ac_lib_var=yes"
4968 echo "configure: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4971 eval "ac_cv_lib_$ac_lib_var=no"
4974 LIBS="$ac_save_LIBS"
4977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4978 echo "$ac_t""yes" 1>&6
4979 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4980 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4981 cat >> confdefs.h <<EOF
4982 #define $ac_tr_lib 1
4988 echo "$ac_t""no" 1>&6
4991 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4992 echo "configure:4970: checking for socket in -linet" >&5
4993 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4994 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4997 ac_save_LIBS="$LIBS"
4999 cat > conftest.$ac_ext <<EOF
5000 #line 4978 "configure"
5001 #include "confdefs.h"
5002 /* Override any gcc2 internal prototype to avoid an error. */
5003 /* We use char because int might match the return type of a gcc2
5004 builtin and then its argument prototype would still apply. */
5011 if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5013 eval "ac_cv_lib_$ac_lib_var=yes"
5015 echo "configure: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5018 eval "ac_cv_lib_$ac_lib_var=no"
5021 LIBS="$ac_save_LIBS"
5024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5025 echo "$ac_t""yes" 1>&6
5026 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5027 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5028 cat >> confdefs.h <<EOF
5029 #define $ac_tr_lib 1
5035 echo "$ac_t""no" 1>&6
5038 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5039 echo "configure:5017: checking for main in -lgen" >&5
5040 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5041 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5042 echo $ac_n "(cached) $ac_c" 1>&6
5044 ac_save_LIBS="$LIBS"
5046 cat > conftest.$ac_ext <<EOF
5047 #line 5025 "configure"
5048 #include "confdefs.h"
5054 if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5056 eval "ac_cv_lib_$ac_lib_var=yes"
5058 echo "configure: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5061 eval "ac_cv_lib_$ac_lib_var=no"
5064 LIBS="$ac_save_LIBS"
5067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5068 echo "$ac_t""yes" 1>&6
5069 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5071 cat >> confdefs.h <<EOF
5072 #define $ac_tr_lib 1
5078 echo "$ac_t""no" 1>&6
5085 echo $ac_n "checking for select""... $ac_c" 1>&6
5086 echo "configure:5064: checking for select" >&5
5087 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5069 "configure"
5092 #include "confdefs.h"
5093 /* System header to define __stub macros and hopefully few prototypes,
5094 which can conflict with char select(); below. */
5096 /* Override any gcc2 internal prototype to avoid an error. */
5097 /* We use char because int might match the return type of a gcc2
5098 builtin and then its argument prototype would still apply. */
5104 /* The GNU C library defines this for functions which it implements
5105 to always fail with ENOSYS. Some functions are actually named
5106 something starting with __ and the normal name is an alias. */
5107 #if defined (__stub_select) || defined (__stub___select)
5115 if { (eval echo configure:5093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5117 eval "ac_cv_func_select=yes"
5119 echo "configure: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5122 eval "ac_cv_func_select=no"
5127 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5128 echo "$ac_t""yes" 1>&6
5131 echo "$ac_t""no" 1>&6
5132 { echo "configure: error: select() required." 1>&2; exit 1; }
5136 if test "${ac_cv_header_winsock_h}" != yes; then
5137 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5138 echo "configure:5116: checking types of arguments for select()" >&5
5139 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5140 echo $ac_n "(cached) $ac_c" 1>&6
5142 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5145 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5146 echo $ac_n "(cached) $ac_c" 1>&6
5148 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5149 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5150 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5130 "configure"
5153 #include "confdefs.h"
5154 #ifdef HAVE_SYS_TYPES_H
5155 #include <sys/types.h>
5157 #ifdef HAVE_SYS_TIME_H
5158 #include <sys/time.h>
5160 #ifdef HAVE_SYS_SELECT_H
5161 #include <sys/select.h>
5163 #ifdef HAVE_SYS_SOCKET_H
5164 #include <sys/socket.h>
5166 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);
5171 if { (eval echo configure:5149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5173 ac_not_found=no ; break 3
5175 echo "configure: failed program was:" >&5
5176 cat conftest.$ac_ext >&5
5190 if test "$ac_not_found" = yes; then
5191 ac_cv_func_select_arg1=int
5192 ac_cv_func_select_arg234='int *'
5193 ac_cv_func_select_arg5='struct timeval *'
5195 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5196 cat >> confdefs.h <<EOF
5197 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5200 cat >> confdefs.h <<EOF
5201 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5204 cat >> confdefs.h <<EOF
5205 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5212 for ac_hdr in regex.h
5214 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5215 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5216 echo "configure:5194: checking for $ac_hdr" >&5
5217 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5218 echo $ac_n "(cached) $ac_c" 1>&6
5220 cat > conftest.$ac_ext <<EOF
5221 #line 5199 "configure"
5222 #include "confdefs.h"
5225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5226 { (eval echo configure:5204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5228 if test -z "$ac_err"; then
5230 eval "ac_cv_header_$ac_safe=yes"
5233 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5236 eval "ac_cv_header_$ac_safe=no"
5240 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5241 echo "$ac_t""yes" 1>&6
5242 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5243 cat >> confdefs.h <<EOF
5244 #define $ac_tr_hdr 1
5248 echo "$ac_t""no" 1>&6
5252 if test "$ac_cv_header_regex_h" != yes ; then
5253 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5255 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5256 echo "configure:5234: checking for regfree" >&5
5257 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5258 echo $ac_n "(cached) $ac_c" 1>&6
5260 cat > conftest.$ac_ext <<EOF
5261 #line 5239 "configure"
5262 #include "confdefs.h"
5263 /* System header to define __stub macros and hopefully few prototypes,
5264 which can conflict with char regfree(); below. */
5266 /* Override any gcc2 internal prototype to avoid an error. */
5267 /* We use char because int might match the return type of a gcc2
5268 builtin and then its argument prototype would still apply. */
5274 /* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277 #if defined (__stub_regfree) || defined (__stub___regfree)
5285 if { (eval echo configure:5263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5287 eval "ac_cv_func_regfree=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5292 eval "ac_cv_func_regfree=no"
5297 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5301 echo "$ac_t""no" 1>&6
5302 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5307 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5308 echo "configure:5286: checking for compatible POSIX regex" >&5
5309 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5310 echo $ac_n "(cached) $ac_c" 1>&6
5313 if test "$cross_compiling" = yes; then
5314 ol_cv_c_posix_regex=cross
5316 cat > conftest.$ac_ext <<EOF
5317 #line 5295 "configure"
5318 #include "confdefs.h"
5320 #include <sys/types.h>
5322 static char *pattern, *string;
5330 if(regcomp(&re, pattern, 0)) {
5334 string = "ALL MATCH";
5336 rc = regexec(&re, string, 0, (void*)0, 0);
5343 if { (eval echo configure:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5345 ol_cv_c_posix_regex=yes
5347 echo "configure: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5350 ol_cv_c_posix_regex=no
5357 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5359 if test "$ol_cv_c_posix_regex" = no ; then
5360 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5363 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5364 echo "configure:5342: checking for res_search" >&5
5365 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5347 "configure"
5370 #include "confdefs.h"
5371 /* System header to define __stub macros and hopefully few prototypes,
5372 which can conflict with char res_search(); below. */
5374 /* Override any gcc2 internal prototype to avoid an error. */
5375 /* We use char because int might match the return type of a gcc2
5376 builtin and then its argument prototype would still apply. */
5382 /* The GNU C library defines this for functions which it implements
5383 to always fail with ENOSYS. Some functions are actually named
5384 something starting with __ and the normal name is an alias. */
5385 #if defined (__stub_res_search) || defined (__stub___res_search)
5393 if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5395 eval "ac_cv_func_res_search=yes"
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5400 eval "ac_cv_func_res_search=no"
5405 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5406 echo "$ac_t""yes" 1>&6
5409 echo "$ac_t""no" 1>&6
5412 if test $ac_cv_func_res_search = no ; then
5413 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5414 echo "configure:5392: checking for res_search in -lbind" >&5
5415 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5416 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5419 ac_save_LIBS="$LIBS"
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5400 "configure"
5423 #include "confdefs.h"
5424 /* Override any gcc2 internal prototype to avoid an error. */
5425 /* We use char because int might match the return type of a gcc2
5426 builtin and then its argument prototype would still apply. */
5433 if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5435 eval "ac_cv_lib_$ac_lib_var=yes"
5437 echo "configure: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5440 eval "ac_cv_lib_$ac_lib_var=no"
5443 LIBS="$ac_save_LIBS"
5446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5447 echo "$ac_t""yes" 1>&6
5448 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5449 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5450 cat >> confdefs.h <<EOF
5451 #define $ac_tr_lib 1
5457 echo "$ac_t""no" 1>&6
5460 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5463 if test $ac_cv_func_res_search = no ; then
5464 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5465 echo "configure:5443: checking for __res_search in -lbind" >&5
5466 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5467 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5468 echo $ac_n "(cached) $ac_c" 1>&6
5470 ac_save_LIBS="$LIBS"
5472 cat > conftest.$ac_ext <<EOF
5473 #line 5451 "configure"
5474 #include "confdefs.h"
5475 /* Override any gcc2 internal prototype to avoid an error. */
5476 /* We use char because int might match the return type of a gcc2
5477 builtin and then its argument prototype would still apply. */
5478 char __res_search();
5484 if { (eval echo configure:5462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5486 eval "ac_cv_lib_$ac_lib_var=yes"
5488 echo "configure: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5491 eval "ac_cv_lib_$ac_lib_var=no"
5494 LIBS="$ac_save_LIBS"
5497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5498 echo "$ac_t""yes" 1>&6
5499 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5501 cat >> confdefs.h <<EOF
5502 #define $ac_tr_lib 1
5508 echo "$ac_t""no" 1>&6
5511 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5514 if test $ac_cv_func_res_search = no ; then
5515 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5516 echo "configure:5494: checking for res_search in -lresolv" >&5
5517 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5518 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5519 echo $ac_n "(cached) $ac_c" 1>&6
5521 ac_save_LIBS="$LIBS"
5522 LIBS="-lresolv $LIBS"
5523 cat > conftest.$ac_ext <<EOF
5524 #line 5502 "configure"
5525 #include "confdefs.h"
5526 /* Override any gcc2 internal prototype to avoid an error. */
5527 /* We use char because int might match the return type of a gcc2
5528 builtin and then its argument prototype would still apply. */
5535 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5537 eval "ac_cv_lib_$ac_lib_var=yes"
5539 echo "configure: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5542 eval "ac_cv_lib_$ac_lib_var=no"
5545 LIBS="$ac_save_LIBS"
5548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5549 echo "$ac_t""yes" 1>&6
5550 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5551 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5552 cat >> confdefs.h <<EOF
5553 #define $ac_tr_lib 1
5556 LIBS="-lresolv $LIBS"
5559 echo "$ac_t""no" 1>&6
5562 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5565 if test "$ac_cv_func_res_search" = yes ; then
5566 cat >> confdefs.h <<\EOF
5567 #define HAVE_RES_SEARCH 1
5570 elif test $ol_enable_dns = yes ; then
5571 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5572 elif test $ol_enable_dns != no ; then
5573 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5578 if test $ol_enable_ldapd != no ; then
5579 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5581 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5582 echo "configure:5560: checking for main in -lxtpp" >&5
5583 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5584 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5585 echo $ac_n "(cached) $ac_c" 1>&6
5587 ac_save_LIBS="$LIBS"
5588 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5589 cat > conftest.$ac_ext <<EOF
5590 #line 5568 "configure"
5591 #include "confdefs.h"
5597 if { (eval echo configure:5575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5599 eval "ac_cv_lib_$ac_lib_var=yes"
5601 echo "configure: failed program was:" >&5
5602 cat conftest.$ac_ext >&5
5604 eval "ac_cv_lib_$ac_lib_var=no"
5607 LIBS="$ac_save_LIBS"
5610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5611 echo "$ac_t""yes" 1>&6
5614 cat >> confdefs.h <<\EOF
5618 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5621 echo "$ac_t""no" 1>&6
5625 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5626 echo "configure:5604: checking for main in -ldsap" >&5
5627 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5629 echo $ac_n "(cached) $ac_c" 1>&6
5631 ac_save_LIBS="$LIBS"
5632 LIBS="-ldsap -lisode $LIBS"
5633 cat > conftest.$ac_ext <<EOF
5634 #line 5612 "configure"
5635 #include "confdefs.h"
5641 if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5643 eval "ac_cv_lib_$ac_lib_var=yes"
5645 echo "configure: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
5648 eval "ac_cv_lib_$ac_lib_var=no"
5651 LIBS="$ac_save_LIBS"
5654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5655 echo "$ac_t""yes" 1>&6
5658 cat >> confdefs.h <<\EOF
5662 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5665 echo "$ac_t""no" 1>&6
5669 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5670 echo "configure:5648: checking for main in -lisode" >&5
5671 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5672 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5673 echo $ac_n "(cached) $ac_c" 1>&6
5675 ac_save_LIBS="$LIBS"
5676 LIBS="-lisode $LIBS"
5677 cat > conftest.$ac_ext <<EOF
5678 #line 5656 "configure"
5679 #include "confdefs.h"
5685 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5687 eval "ac_cv_lib_$ac_lib_var=yes"
5689 echo "configure: failed program was:" >&5
5690 cat conftest.$ac_ext >&5
5692 eval "ac_cv_lib_$ac_lib_var=no"
5695 LIBS="$ac_save_LIBS"
5698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5699 echo "$ac_t""yes" 1>&6
5702 cat >> confdefs.h <<\EOF
5703 #define HAVE_ISODE 1
5706 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5709 echo "$ac_t""no" 1>&6
5715 if test $ol_link_isode != no; then
5716 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5717 echo "configure:5695: checking for main in -lpp" >&5
5718 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5719 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 ac_save_LIBS="$LIBS"
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5703 "configure"
5726 #include "confdefs.h"
5732 if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5734 eval "ac_cv_lib_$ac_lib_var=yes"
5736 echo "configure: failed program was:" >&5
5737 cat conftest.$ac_ext >&5
5739 eval "ac_cv_lib_$ac_lib_var=no"
5742 LIBS="$ac_save_LIBS"
5745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5746 echo "$ac_t""yes" 1>&6
5748 cat >> confdefs.h <<\EOF
5752 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5755 echo "$ac_t""no" 1>&6
5760 # Extract the first word of "pepsy", so it can be a program name with args.
5761 set dummy pepsy; ac_word=$2
5762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5763 echo "configure:5741: checking for $ac_word" >&5
5764 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5765 echo $ac_n "(cached) $ac_c" 1>&6
5769 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5772 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5777 for ac_dir in $ac_dummy; do
5778 test -z "$ac_dir" && ac_dir=.
5779 if test -f $ac_dir/$ac_word; then
5780 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5788 PEPSY="$ac_cv_path_PEPSY"
5789 if test -n "$PEPSY"; then
5790 echo "$ac_t""$PEPSY" 1>&6
5792 echo "$ac_t""no" 1>&6
5797 if test $ol_enable_quipu != no ; then
5798 for ac_hdr in quipu/commonarg.h
5800 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5801 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5802 echo "configure:5780: checking for $ac_hdr" >&5
5803 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5804 echo $ac_n "(cached) $ac_c" 1>&6
5806 cat > conftest.$ac_ext <<EOF
5807 #line 5785 "configure"
5808 #include "confdefs.h"
5811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5812 { (eval echo configure:5790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5814 if test -z "$ac_err"; then
5816 eval "ac_cv_header_$ac_safe=yes"
5819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5822 eval "ac_cv_header_$ac_safe=no"
5826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5827 echo "$ac_t""yes" 1>&6
5828 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5829 cat >> confdefs.h <<EOF
5830 #define $ac_tr_hdr 1
5834 echo "$ac_t""no" 1>&6
5839 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5841 elif test $ol_enable_quipu = auto ; then
5842 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5844 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5850 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5851 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5855 echo "configure:5833: checking for $ac_hdr" >&5
5856 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5857 echo $ac_n "(cached) $ac_c" 1>&6
5859 cat > conftest.$ac_ext <<EOF
5860 #line 5838 "configure"
5861 #include "confdefs.h"
5864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5865 { (eval echo configure:5843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5867 if test -z "$ac_err"; then
5869 eval "ac_cv_header_$ac_safe=yes"
5872 echo "configure: failed program was:" >&5
5873 cat conftest.$ac_ext >&5
5875 eval "ac_cv_header_$ac_safe=no"
5879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5880 echo "$ac_t""yes" 1>&6
5881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5882 cat >> confdefs.h <<EOF
5883 #define $ac_tr_hdr 1
5887 echo "$ac_t""no" 1>&6
5892 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5893 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5894 echo "configure:5872: checking for main in -lkrb4" >&5
5895 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5896 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5897 echo $ac_n "(cached) $ac_c" 1>&6
5899 ac_save_LIBS="$LIBS"
5900 LIBS="-lkrb4 -lkrb5 -ldes425 -lcrypto -lcom_err $LIBS"
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5880 "configure"
5903 #include "confdefs.h"
5909 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5911 eval "ac_cv_lib_$ac_lib_var=yes"
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5916 eval "ac_cv_lib_$ac_lib_var=no"
5919 LIBS="$ac_save_LIBS"
5922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5923 echo "$ac_t""yes" 1>&6
5926 echo "$ac_t""no" 1>&6
5931 if test $have_k5 = yes ; then
5932 ol_with_kerberos=found
5933 ol_link_kerberos=yes
5935 KRB_LIBS="-lkrb4 -lkrb5 -ldes425 -lcrypto -lcom_err"
5937 LIBS="$KRB_LIBS $LIBS"
5939 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5940 echo "configure:5918: checking for des_debug in Kerberos libraries" >&5
5941 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5942 echo $ac_n "(cached) $ac_c" 1>&6
5946 LIBS="$KRB_LIBS $LIBS"
5947 cat > conftest.$ac_ext <<EOF
5948 #line 5926 "configure"
5949 #include "confdefs.h"
5951 #include <kerberosIV/krb.h>
5952 #include <kerberosIV/des.h>
5953 extern int des_debug;
5961 if { (eval echo configure:5939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5963 ol_cv_var_des_debug=yes
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5968 ol_cv_var_des_debug=no
5975 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5977 if test $ol_cv_var_des_debug = yes ; then
5978 cat >> confdefs.h <<\EOF
5979 #define HAVE_DES_DEBUG 1
5989 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
5990 -o $ol_with_kerberos = kth ; then
5992 for ac_hdr in krb.h des.h krb-archaeology.h
5994 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5995 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5996 echo "configure:5974: checking for $ac_hdr" >&5
5997 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
6000 cat > conftest.$ac_ext <<EOF
6001 #line 5979 "configure"
6002 #include "confdefs.h"
6005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6006 { (eval echo configure:5984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6008 if test -z "$ac_err"; then
6010 eval "ac_cv_header_$ac_safe=yes"
6013 echo "configure: failed program was:" >&5
6014 cat conftest.$ac_ext >&5
6016 eval "ac_cv_header_$ac_safe=no"
6020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6021 echo "$ac_t""yes" 1>&6
6022 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6023 cat >> confdefs.h <<EOF
6024 #define $ac_tr_hdr 1
6028 echo "$ac_t""no" 1>&6
6033 if test $ac_cv_header_krb_h = yes ; then
6034 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6035 echo "configure:6013: checking for main in -lkrb" >&5
6036 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6037 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6038 echo $ac_n "(cached) $ac_c" 1>&6
6040 ac_save_LIBS="$LIBS"
6041 LIBS="-lkrb -ldes $LIBS"
6042 cat > conftest.$ac_ext <<EOF
6043 #line 6021 "configure"
6044 #include "confdefs.h"
6050 if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6052 eval "ac_cv_lib_$ac_lib_var=yes"
6054 echo "configure: failed program was:" >&5
6055 cat conftest.$ac_ext >&5
6057 eval "ac_cv_lib_$ac_lib_var=no"
6060 LIBS="$ac_save_LIBS"
6063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6064 echo "$ac_t""yes" 1>&6
6067 echo "$ac_t""no" 1>&6
6072 if test $have_k4 = yes ; then
6073 ol_with_kerberos=found
6074 ol_link_kerberos=yes
6076 KRB_LIBS="-lkrb -ldes"
6078 if test $ac_cv_header_krb_archaeology_h = yes ; then
6079 cat >> confdefs.h <<\EOF
6080 #define HAVE_KTH_KERBEROS 1
6088 if test $ol_link_kerberos = yes ; then
6089 cat >> confdefs.h <<\EOF
6090 #define HAVE_KERBEROS 1
6094 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6095 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6099 if test $ol_with_tls != no ; then
6101 for ac_hdr in openssl/ssl.h ssl.h
6103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6105 echo "configure:6083: checking for $ac_hdr" >&5
6106 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6109 cat > conftest.$ac_ext <<EOF
6110 #line 6088 "configure"
6111 #include "confdefs.h"
6114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6115 { (eval echo configure:6093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6117 if test -z "$ac_err"; then
6119 eval "ac_cv_header_$ac_safe=yes"
6122 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6125 eval "ac_cv_header_$ac_safe=no"
6129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6130 echo "$ac_t""yes" 1>&6
6131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6132 cat >> confdefs.h <<EOF
6133 #define $ac_tr_hdr 1
6137 echo "$ac_t""no" 1>&6
6142 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6143 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6144 echo "configure:6122: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6145 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6146 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6147 echo $ac_n "(cached) $ac_c" 1>&6
6149 ac_save_LIBS="$LIBS"
6150 LIBS="-lssl -lcrypto $LIBS"
6151 cat > conftest.$ac_ext <<EOF
6152 #line 6130 "configure"
6153 #include "confdefs.h"
6154 /* Override any gcc2 internal prototype to avoid an error. */
6155 /* We use char because int might match the return type of a gcc2
6156 builtin and then its argument prototype would still apply. */
6157 char SSLeay_add_ssl_algorithms();
6160 SSLeay_add_ssl_algorithms()
6163 if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6165 eval "ac_cv_lib_$ac_lib_var=yes"
6167 echo "configure: failed program was:" >&5
6168 cat conftest.$ac_ext >&5
6170 eval "ac_cv_lib_$ac_lib_var=no"
6173 LIBS="$ac_save_LIBS"
6176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6177 echo "$ac_t""yes" 1>&6
6181 echo "$ac_t""no" 1>&6
6186 if test $have_ssleay = no ; then
6187 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6188 echo "configure:6166: checking for SSL_library_init in -lssl" >&5
6189 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6190 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6191 echo $ac_n "(cached) $ac_c" 1>&6
6193 ac_save_LIBS="$LIBS"
6194 LIBS="-lssl -lcrypto $LIBS"
6195 cat > conftest.$ac_ext <<EOF
6196 #line 6174 "configure"
6197 #include "confdefs.h"
6198 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6201 char SSL_library_init();
6207 if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6209 eval "ac_cv_lib_$ac_lib_var=yes"
6211 echo "configure: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6214 eval "ac_cv_lib_$ac_lib_var=no"
6217 LIBS="$ac_save_LIBS"
6220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6221 echo "$ac_t""yes" 1>&6
6225 echo "$ac_t""no" 1>&6
6231 if test $have_ssleay = no ; then
6232 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6233 echo "configure:6211: checking for ssl3_accept in -lssl" >&5
6234 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6235 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6236 echo $ac_n "(cached) $ac_c" 1>&6
6238 ac_save_LIBS="$LIBS"
6239 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6240 cat > conftest.$ac_ext <<EOF
6241 #line 6219 "configure"
6242 #include "confdefs.h"
6243 /* Override any gcc2 internal prototype to avoid an error. */
6244 /* We use char because int might match the return type of a gcc2
6245 builtin and then its argument prototype would still apply. */
6252 if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6254 eval "ac_cv_lib_$ac_lib_var=yes"
6256 echo "configure: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6259 eval "ac_cv_lib_$ac_lib_var=no"
6262 LIBS="$ac_save_LIBS"
6265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6266 echo "$ac_t""yes" 1>&6
6270 echo "$ac_t""no" 1>&6
6276 if test $have_ssleay = yes ; then
6280 cat >> confdefs.h <<\EOF
6281 #define HAVE_SSLEAY 1
6285 if test $need_rsaref = yes; then
6286 cat >> confdefs.h <<\EOF
6287 #define HAVE_RSAREF 1
6291 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6293 TLS_LIBS="-lssl -lcrypto"
6299 if test $ol_link_tls = yes ; then
6300 cat >> confdefs.h <<\EOF
6308 gethostbyname_r gethostbyaddr_r \
6311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6312 echo "configure:6290: checking for $ac_func" >&5
6313 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6314 echo $ac_n "(cached) $ac_c" 1>&6
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6295 "configure"
6318 #include "confdefs.h"
6319 /* System header to define __stub macros and hopefully few prototypes,
6320 which can conflict with char $ac_func(); below. */
6322 /* Override any gcc2 internal prototype to avoid an error. */
6323 /* We use char because int might match the return type of a gcc2
6324 builtin and then its argument prototype would still apply. */
6330 /* The GNU C library defines this for functions which it implements
6331 to always fail with ENOSYS. Some functions are actually named
6332 something starting with __ and the normal name is an alias. */
6333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6341 if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6343 eval "ac_cv_func_$ac_func=yes"
6345 echo "configure: failed program was:" >&5
6346 cat conftest.$ac_ext >&5
6348 eval "ac_cv_func_$ac_func=no"
6353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6354 echo "$ac_t""yes" 1>&6
6355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6356 cat >> confdefs.h <<EOF
6357 #define $ac_tr_func 1
6361 echo "$ac_t""no" 1>&6
6366 if test "$ac_cv_func_ctime_r" = no ; then
6367 ol_cv_func_ctime_r_nargs=0
6369 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6370 echo "configure:6348: checking number of arguments of ctime_r" >&5
6371 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6372 echo $ac_n "(cached) $ac_c" 1>&6
6374 cat > conftest.$ac_ext <<EOF
6375 #line 6353 "configure"
6376 #include "confdefs.h"
6379 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6382 if { (eval echo configure:6360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6384 ol_cv_func_ctime_r_nargs3=yes
6386 echo "configure: failed program was:" >&5
6387 cat conftest.$ac_ext >&5
6389 ol_cv_func_ctime_r_nargs3=no
6393 cat > conftest.$ac_ext <<EOF
6394 #line 6372 "configure"
6395 #include "confdefs.h"
6398 time_t ti; char *buffer; ctime_r(&ti,buffer);
6401 if { (eval echo configure:6379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6403 ol_cv_func_ctime_r_nargs2=yes
6405 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6408 ol_cv_func_ctime_r_nargs2=no
6412 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6413 $ol_cv_func_ctime_r_nargs2 = no ; then
6415 ol_cv_func_ctime_r_nargs=3
6417 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6418 $ol_cv_func_ctime_r_nargs2 = yes ; then
6420 ol_cv_func_ctime_r_nargs=2
6423 ol_cv_func_ctime_r_nargs=0
6428 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6430 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6431 cat >> confdefs.h <<EOF
6432 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6439 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6440 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6441 echo "configure:6419: checking number of arguments of gethostbyname_r" >&5
6442 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6445 cat > conftest.$ac_ext <<EOF
6446 #line 6424 "configure"
6447 #include "confdefs.h"
6448 #include <sys/types.h>
6449 #include <sys/socket.h>
6450 #include <netinet/in.h>
6452 #define BUFSIZE (sizeof(struct hostent)+10)
6454 struct hostent hent; char buffer[BUFSIZE];
6455 int bufsize=BUFSIZE;int h_errno;
6456 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6457 buffer, bufsize, &h_errno);
6460 if { (eval echo configure:6438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6462 ol_cv_func_gethostbyname_r_nargs5=yes
6464 echo "configure: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6467 ol_cv_func_gethostbyname_r_nargs5=no
6471 cat > conftest.$ac_ext <<EOF
6472 #line 6450 "configure"
6473 #include "confdefs.h"
6474 #include <sys/types.h>
6475 #include <sys/socket.h>
6476 #include <netinet/in.h>
6478 #define BUFSIZE (sizeof(struct hostent)+10)
6480 struct hostent hent;struct hostent *rhent;
6481 char buffer[BUFSIZE];
6482 int bufsize=BUFSIZE;int h_errno;
6483 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6487 if { (eval echo configure:6465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6489 ol_cv_func_gethostbyname_r_nargs6=yes
6491 echo "configure: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6494 ol_cv_func_gethostbyname_r_nargs6=no
6498 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6499 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6501 ol_cv_func_gethostbyname_r_nargs=5
6503 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6504 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6506 ol_cv_func_gethostbyname_r_nargs=6
6509 ol_cv_func_gethostbyname_r_nargs=0
6514 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6515 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6516 cat >> confdefs.h <<EOF
6517 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6523 ol_cv_func_gethostbyname_r_nargs=0
6526 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6527 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6528 echo "configure:6506: checking number of arguments of gethostbyaddr_r" >&5
6529 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6530 echo $ac_n "(cached) $ac_c" 1>&6
6532 cat > conftest.$ac_ext <<EOF
6533 #line 6511 "configure"
6534 #include "confdefs.h"
6535 #include <sys/types.h>
6536 #include <sys/socket.h>
6537 #include <netinet/in.h>
6539 #define BUFSIZE (sizeof(struct hostent)+10)
6541 struct hostent hent; char buffer[BUFSIZE];
6543 size_t alen=sizeof(struct in_addr);
6544 int bufsize=BUFSIZE;int h_errno;
6545 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6546 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6549 if { (eval echo configure:6527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6551 ol_cv_func_gethostbyaddr_r_nargs7=yes
6553 echo "configure: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6556 ol_cv_func_gethostbyaddr_r_nargs7=no
6560 cat > conftest.$ac_ext <<EOF
6561 #line 6539 "configure"
6562 #include "confdefs.h"
6563 #include <sys/types.h>
6564 #include <sys/socket.h>
6565 #include <netinet/in.h>
6567 #define BUFSIZE (sizeof(struct hostent)+10)
6569 struct hostent hent;
6570 struct hostent *rhent; char buffer[BUFSIZE];
6572 size_t alen=sizeof(struct in_addr);
6573 int bufsize=BUFSIZE;int h_errno;
6574 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6575 alen, AF_INET, &hent, buffer, bufsize,
6579 if { (eval echo configure:6557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6581 ol_cv_func_gethostbyaddr_r_nargs8=yes
6583 echo "configure: failed program was:" >&5
6584 cat conftest.$ac_ext >&5
6586 ol_cv_func_gethostbyaddr_r_nargs8=no
6590 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6591 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6593 ol_cv_func_gethostbyaddr_r_nargs=7
6595 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6596 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6598 ol_cv_func_gethostbyaddr_r_nargs=8
6601 ol_cv_func_gethostbyaddr_r_nargs=0
6606 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6607 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6608 cat >> confdefs.h <<EOF
6609 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6615 ol_cv_func_gethostbyaddr_r_nargs=0
6618 if test "$ac_cv_func_ctime_r" = yes \
6619 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6620 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6621 -a "$ac_cv_func_gethostbyname_r" = yes \
6622 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6623 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6624 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6625 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6626 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6629 cat >> confdefs.h <<\EOF
6630 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6637 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6638 -o $ol_with_threads = nt ; then
6641 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6642 echo "configure:6620: checking for NT Threads" >&5
6643 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6644 echo $ac_n "(cached) $ac_c" 1>&6
6647 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6648 echo "configure:6626: checking for _beginthread" >&5
6649 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6650 echo $ac_n "(cached) $ac_c" 1>&6
6652 cat > conftest.$ac_ext <<EOF
6653 #line 6631 "configure"
6654 #include "confdefs.h"
6655 /* System header to define __stub macros and hopefully few prototypes,
6656 which can conflict with char _beginthread(); below. */
6658 /* Override any gcc2 internal prototype to avoid an error. */
6659 /* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6661 char _beginthread();
6666 /* The GNU C library defines this for functions which it implements
6667 to always fail with ENOSYS. Some functions are actually named
6668 something starting with __ and the normal name is an alias. */
6669 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6677 if { (eval echo configure:6655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6679 eval "ac_cv_func__beginthread=yes"
6681 echo "configure: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6684 eval "ac_cv_func__beginthread=no"
6689 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6690 echo "$ac_t""yes" 1>&6
6691 ol_cv_nt_threads=yes
6693 echo "$ac_t""no" 1>&6
6700 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6702 if test $ol_cv_nt_threads = yes ; then
6703 cat >> confdefs.h <<\EOF
6704 #define HAVE_NT_THREADS 1
6710 if test "$ol_cv_nt_threads" = yes ; then
6712 ol_with_threads=found
6713 ol_with_yielding_select=yes
6715 cat >> confdefs.h <<\EOF
6716 #define HAVE_NT_SERVICE_MANAGER 1
6719 cat >> confdefs.h <<\EOF
6720 #define HAVE_NT_EVENT_LOG 1
6725 if test $ol_with_threads = nt ; then
6726 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6730 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6731 -o $ol_with_threads = posix ; then
6733 for ac_hdr in pthread.h
6735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6737 echo "configure:6715: checking for $ac_hdr" >&5
6738 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6720 "configure"
6743 #include "confdefs.h"
6746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6747 { (eval echo configure:6725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6749 if test -z "$ac_err"; then
6751 eval "ac_cv_header_$ac_safe=yes"
6754 echo "configure: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6757 eval "ac_cv_header_$ac_safe=no"
6761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6762 echo "$ac_t""yes" 1>&6
6763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6764 cat >> confdefs.h <<EOF
6765 #define $ac_tr_hdr 1
6769 echo "$ac_t""no" 1>&6
6774 if test $ac_cv_header_pthread_h = yes ; then
6775 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6776 echo "configure:6754: checking POSIX thread version" >&5
6777 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6778 echo $ac_n "(cached) $ac_c" 1>&6
6781 cat > conftest.$ac_ext <<EOF
6782 #line 6760 "configure"
6783 #include "confdefs.h"
6785 # include <pthread.h>
6786 /* this check could be improved */
6787 # ifdef PTHREAD_ONCE_INIT
6788 pthread_version_final;
6792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6793 egrep "pthread_version_final" >/dev/null 2>&1; then
6795 ol_pthread_final=yes
6803 cat > conftest.$ac_ext <<EOF
6804 #line 6782 "configure"
6805 #include "confdefs.h"
6807 # include <pthread.h>
6808 /* this check could be improved */
6809 # ifdef pthread_once_init
6810 pthread_version_draft4;
6814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6815 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6817 ol_pthread_draft4=yes
6820 ol_pthread_draft4=no
6825 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6826 ol_cv_pthread_version=final
6827 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6828 ol_cv_pthread_version=draft4
6830 ol_cv_pthread_version=unknown
6835 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6838 if test $ol_cv_pthread_version = final ; then
6839 cat >> confdefs.h <<\EOF
6840 #define HAVE_PTHREADS_FINAL 1
6843 elif test $ol_cv_pthread_version = draft4 ; then
6844 cat >> confdefs.h <<\EOF
6845 #define HAVE_PTHREADS_D4 1
6849 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6852 # consider threads found
6853 ol_with_threads=found
6856 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6857 echo "configure:6835: checking for LinuxThreads pthread.h" >&5
6858 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6861 cat > conftest.$ac_ext <<EOF
6862 #line 6840 "configure"
6863 #include "confdefs.h"
6864 #include <pthread.h>
6866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6867 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6869 ol_cv_header_linux_threads=yes
6872 ol_cv_header_linux_threads=no
6879 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6880 if test $ol_cv_header_linux_threads = yes; then
6881 cat >> confdefs.h <<\EOF
6882 #define HAVE_LINUX_THREADS 1
6888 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6889 echo "configure:6867: checking for GNU Pth pthread.h" >&5
6890 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6891 echo $ac_n "(cached) $ac_c" 1>&6
6893 cat > conftest.$ac_ext <<EOF
6894 #line 6872 "configure"
6895 #include "confdefs.h"
6896 #include <pthread.h>
6897 #ifdef _POSIX_THREAD_IS_GNU_PTH
6902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6903 egrep "__gnu_pth__" >/dev/null 2>&1; then
6905 ol_cv_header_gnu_pth_pthread_h=yes
6908 ol_cv_header_gnu_pth_pthread_h=no
6915 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6918 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6919 for ac_hdr in sched.h
6921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6923 echo "configure:6901: checking for $ac_hdr" >&5
6924 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6925 echo $ac_n "(cached) $ac_c" 1>&6
6927 cat > conftest.$ac_ext <<EOF
6928 #line 6906 "configure"
6929 #include "confdefs.h"
6932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6933 { (eval echo configure:6911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6935 if test -z "$ac_err"; then
6937 eval "ac_cv_header_$ac_safe=yes"
6940 echo "configure: failed program was:" >&5
6941 cat conftest.$ac_ext >&5
6943 eval "ac_cv_header_$ac_safe=no"
6947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6948 echo "$ac_t""yes" 1>&6
6949 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6950 cat >> confdefs.h <<EOF
6951 #define $ac_tr_hdr 1
6955 echo "$ac_t""no" 1>&6
6962 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6963 echo "configure:6941: checking for pthread_create in default libraries" >&5
6964 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6965 echo $ac_n "(cached) $ac_c" 1>&6
6968 if test "$cross_compiling" = yes; then
6969 cat > conftest.$ac_ext <<EOF
6970 #line 6948 "configure"
6971 #include "confdefs.h"
6972 /* pthread test headers */
6973 #include <pthread.h>
6975 #define NULL (void*)0
6978 static void *task(p)
6981 return (void *) (p == NULL);
6986 /* pthread test function */
6990 /* make sure pthread_create() isn't just a stub */
6991 #if HAVE_PTHREADS_D4
6992 status = pthread_create(&t, pthread_attr_default, task, NULL);
6994 status = pthread_create(&t, NULL, task, NULL);
6997 if( status ) exit( status );
6999 /* make sure pthread_detach() isn't just a stub */
7000 #if HAVE_PTHREADS_D4
7001 status = pthread_detach( &t );
7003 status = pthread_detach( t );
7006 #ifdef HAVE_LINUX_THREADS
7007 pthread_kill_other_threads_np();
7014 if { (eval echo configure:6992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7016 ol_cv_pthread_create=yes
7018 echo "configure: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7021 ol_cv_pthread_create=no
7025 cat > conftest.$ac_ext <<EOF
7026 #line 7004 "configure"
7027 #include "confdefs.h"
7028 /* pthread test headers */
7029 #include <pthread.h>
7031 #define NULL (void*)0
7034 static void *task(p)
7037 return (void *) (p == NULL);
7041 int main(argc, argv)
7046 /* pthread test function */
7050 /* make sure pthread_create() isn't just a stub */
7051 #if HAVE_PTHREADS_D4
7052 status = pthread_create(&t, pthread_attr_default, task, NULL);
7054 status = pthread_create(&t, NULL, task, NULL);
7057 if( status ) exit( status );
7059 /* make sure pthread_detach() isn't just a stub */
7060 #if HAVE_PTHREADS_D4
7061 status = pthread_detach( &t );
7063 status = pthread_detach( t );
7066 #ifdef HAVE_LINUX_THREADS
7067 pthread_kill_other_threads_np();
7075 if { (eval echo configure:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7077 ol_cv_pthread_create=yes
7079 echo "configure: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7082 ol_cv_pthread_create=no
7089 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7091 if test $ol_cv_pthread_create != no ; then
7092 ol_link_threads=posix
7096 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7097 if test "$ol_link_threads" = no ; then
7099 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7100 echo "configure:7078: checking for pthread link with -kthread" >&5
7101 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7102 echo $ac_n "(cached) $ac_c" 1>&6
7107 LIBS="-kthread $LIBS"
7109 if test "$cross_compiling" = yes; then
7110 cat > conftest.$ac_ext <<EOF
7111 #line 7089 "configure"
7112 #include "confdefs.h"
7113 /* pthread test headers */
7114 #include <pthread.h>
7116 #define NULL (void*)0
7119 static void *task(p)
7122 return (void *) (p == NULL);
7127 /* pthread test function */
7131 /* make sure pthread_create() isn't just a stub */
7132 #if HAVE_PTHREADS_D4
7133 status = pthread_create(&t, pthread_attr_default, task, NULL);
7135 status = pthread_create(&t, NULL, task, NULL);
7138 if( status ) exit( status );
7140 /* make sure pthread_detach() isn't just a stub */
7141 #if HAVE_PTHREADS_D4
7142 status = pthread_detach( &t );
7144 status = pthread_detach( t );
7147 #ifdef HAVE_LINUX_THREADS
7148 pthread_kill_other_threads_np();
7155 if { (eval echo configure:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7157 ol_cv_pthread_kthread=yes
7159 echo "configure: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7162 ol_cv_pthread_kthread=no
7166 cat > conftest.$ac_ext <<EOF
7167 #line 7145 "configure"
7168 #include "confdefs.h"
7169 /* pthread test headers */
7170 #include <pthread.h>
7172 #define NULL (void*)0
7175 static void *task(p)
7178 return (void *) (p == NULL);
7182 int main(argc, argv)
7187 /* pthread test function */
7191 /* make sure pthread_create() isn't just a stub */
7192 #if HAVE_PTHREADS_D4
7193 status = pthread_create(&t, pthread_attr_default, task, NULL);
7195 status = pthread_create(&t, NULL, task, NULL);
7198 if( status ) exit( status );
7200 /* make sure pthread_detach() isn't just a stub */
7201 #if HAVE_PTHREADS_D4
7202 status = pthread_detach( &t );
7204 status = pthread_detach( t );
7207 #ifdef HAVE_LINUX_THREADS
7208 pthread_kill_other_threads_np();
7216 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7218 ol_cv_pthread_kthread=yes
7220 echo "configure: failed program was:" >&5
7221 cat conftest.$ac_ext >&5
7223 ol_cv_pthread_kthread=no
7234 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7236 if test $ol_cv_pthread_kthread = yes ; then
7237 ol_link_pthreads="-kthread"
7238 ol_link_threads=posix
7242 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7243 if test "$ol_link_threads" = no ; then
7245 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7246 echo "configure:7224: checking for pthread link with -pthread" >&5
7247 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7248 echo $ac_n "(cached) $ac_c" 1>&6
7253 LIBS="-pthread $LIBS"
7255 if test "$cross_compiling" = yes; then
7256 cat > conftest.$ac_ext <<EOF
7257 #line 7235 "configure"
7258 #include "confdefs.h"
7259 /* pthread test headers */
7260 #include <pthread.h>
7262 #define NULL (void*)0
7265 static void *task(p)
7268 return (void *) (p == NULL);
7273 /* pthread test function */
7277 /* make sure pthread_create() isn't just a stub */
7278 #if HAVE_PTHREADS_D4
7279 status = pthread_create(&t, pthread_attr_default, task, NULL);
7281 status = pthread_create(&t, NULL, task, NULL);
7284 if( status ) exit( status );
7286 /* make sure pthread_detach() isn't just a stub */
7287 #if HAVE_PTHREADS_D4
7288 status = pthread_detach( &t );
7290 status = pthread_detach( t );
7293 #ifdef HAVE_LINUX_THREADS
7294 pthread_kill_other_threads_np();
7301 if { (eval echo configure:7279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7303 ol_cv_pthread_pthread=yes
7305 echo "configure: failed program was:" >&5
7306 cat conftest.$ac_ext >&5
7308 ol_cv_pthread_pthread=no
7312 cat > conftest.$ac_ext <<EOF
7313 #line 7291 "configure"
7314 #include "confdefs.h"
7315 /* pthread test headers */
7316 #include <pthread.h>
7318 #define NULL (void*)0
7321 static void *task(p)
7324 return (void *) (p == NULL);
7328 int main(argc, argv)
7333 /* pthread test function */
7337 /* make sure pthread_create() isn't just a stub */
7338 #if HAVE_PTHREADS_D4
7339 status = pthread_create(&t, pthread_attr_default, task, NULL);
7341 status = pthread_create(&t, NULL, task, NULL);
7344 if( status ) exit( status );
7346 /* make sure pthread_detach() isn't just a stub */
7347 #if HAVE_PTHREADS_D4
7348 status = pthread_detach( &t );
7350 status = pthread_detach( t );
7353 #ifdef HAVE_LINUX_THREADS
7354 pthread_kill_other_threads_np();
7362 if { (eval echo configure:7340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7364 ol_cv_pthread_pthread=yes
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 ol_cv_pthread_pthread=no
7380 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7382 if test $ol_cv_pthread_pthread = yes ; then
7383 ol_link_pthreads="-pthread"
7384 ol_link_threads=posix
7388 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7389 if test "$ol_link_threads" = no ; then
7391 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7392 echo "configure:7370: checking for pthread link with -pthreads" >&5
7393 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7394 echo $ac_n "(cached) $ac_c" 1>&6
7399 LIBS="-pthreads $LIBS"
7401 if test "$cross_compiling" = yes; then
7402 cat > conftest.$ac_ext <<EOF
7403 #line 7381 "configure"
7404 #include "confdefs.h"
7405 /* pthread test headers */
7406 #include <pthread.h>
7408 #define NULL (void*)0
7411 static void *task(p)
7414 return (void *) (p == NULL);
7419 /* pthread test function */
7423 /* make sure pthread_create() isn't just a stub */
7424 #if HAVE_PTHREADS_D4
7425 status = pthread_create(&t, pthread_attr_default, task, NULL);
7427 status = pthread_create(&t, NULL, task, NULL);
7430 if( status ) exit( status );
7432 /* make sure pthread_detach() isn't just a stub */
7433 #if HAVE_PTHREADS_D4
7434 status = pthread_detach( &t );
7436 status = pthread_detach( t );
7439 #ifdef HAVE_LINUX_THREADS
7440 pthread_kill_other_threads_np();
7447 if { (eval echo configure:7425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7449 ol_cv_pthread_pthreads=yes
7451 echo "configure: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7454 ol_cv_pthread_pthreads=no
7458 cat > conftest.$ac_ext <<EOF
7459 #line 7437 "configure"
7460 #include "confdefs.h"
7461 /* pthread test headers */
7462 #include <pthread.h>
7464 #define NULL (void*)0
7467 static void *task(p)
7470 return (void *) (p == NULL);
7474 int main(argc, argv)
7479 /* pthread test function */
7483 /* make sure pthread_create() isn't just a stub */
7484 #if HAVE_PTHREADS_D4
7485 status = pthread_create(&t, pthread_attr_default, task, NULL);
7487 status = pthread_create(&t, NULL, task, NULL);
7490 if( status ) exit( status );
7492 /* make sure pthread_detach() isn't just a stub */
7493 #if HAVE_PTHREADS_D4
7494 status = pthread_detach( &t );
7496 status = pthread_detach( t );
7499 #ifdef HAVE_LINUX_THREADS
7500 pthread_kill_other_threads_np();
7508 if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7510 ol_cv_pthread_pthreads=yes
7512 echo "configure: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7515 ol_cv_pthread_pthreads=no
7526 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7528 if test $ol_cv_pthread_pthreads = yes ; then
7529 ol_link_pthreads="-pthreads"
7530 ol_link_threads=posix
7534 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7535 if test "$ol_link_threads" = no ; then
7537 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7538 echo "configure:7516: checking for pthread link with -mthreads" >&5
7539 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7540 echo $ac_n "(cached) $ac_c" 1>&6
7545 LIBS="-mthreads $LIBS"
7547 if test "$cross_compiling" = yes; then
7548 cat > conftest.$ac_ext <<EOF
7549 #line 7527 "configure"
7550 #include "confdefs.h"
7551 /* pthread test headers */
7552 #include <pthread.h>
7554 #define NULL (void*)0
7557 static void *task(p)
7560 return (void *) (p == NULL);
7565 /* pthread test function */
7569 /* make sure pthread_create() isn't just a stub */
7570 #if HAVE_PTHREADS_D4
7571 status = pthread_create(&t, pthread_attr_default, task, NULL);
7573 status = pthread_create(&t, NULL, task, NULL);
7576 if( status ) exit( status );
7578 /* make sure pthread_detach() isn't just a stub */
7579 #if HAVE_PTHREADS_D4
7580 status = pthread_detach( &t );
7582 status = pthread_detach( t );
7585 #ifdef HAVE_LINUX_THREADS
7586 pthread_kill_other_threads_np();
7593 if { (eval echo configure:7571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7595 ol_cv_pthread_mthreads=yes
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7600 ol_cv_pthread_mthreads=no
7604 cat > conftest.$ac_ext <<EOF
7605 #line 7583 "configure"
7606 #include "confdefs.h"
7607 /* pthread test headers */
7608 #include <pthread.h>
7610 #define NULL (void*)0
7613 static void *task(p)
7616 return (void *) (p == NULL);
7620 int main(argc, argv)
7625 /* pthread test function */
7629 /* make sure pthread_create() isn't just a stub */
7630 #if HAVE_PTHREADS_D4
7631 status = pthread_create(&t, pthread_attr_default, task, NULL);
7633 status = pthread_create(&t, NULL, task, NULL);
7636 if( status ) exit( status );
7638 /* make sure pthread_detach() isn't just a stub */
7639 #if HAVE_PTHREADS_D4
7640 status = pthread_detach( &t );
7642 status = pthread_detach( t );
7645 #ifdef HAVE_LINUX_THREADS
7646 pthread_kill_other_threads_np();
7654 if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7656 ol_cv_pthread_mthreads=yes
7658 echo "configure: failed program was:" >&5
7659 cat conftest.$ac_ext >&5
7661 ol_cv_pthread_mthreads=no
7672 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7674 if test $ol_cv_pthread_mthreads = yes ; then
7675 ol_link_pthreads="-mthreads"
7676 ol_link_threads=posix
7680 # Pthread try link: -thread (ol_cv_pthread_thread)
7681 if test "$ol_link_threads" = no ; then
7683 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7684 echo "configure:7662: checking for pthread link with -thread" >&5
7685 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7691 LIBS="-thread $LIBS"
7693 if test "$cross_compiling" = yes; then
7694 cat > conftest.$ac_ext <<EOF
7695 #line 7673 "configure"
7696 #include "confdefs.h"
7697 /* pthread test headers */
7698 #include <pthread.h>
7700 #define NULL (void*)0
7703 static void *task(p)
7706 return (void *) (p == NULL);
7711 /* pthread test function */
7715 /* make sure pthread_create() isn't just a stub */
7716 #if HAVE_PTHREADS_D4
7717 status = pthread_create(&t, pthread_attr_default, task, NULL);
7719 status = pthread_create(&t, NULL, task, NULL);
7722 if( status ) exit( status );
7724 /* make sure pthread_detach() isn't just a stub */
7725 #if HAVE_PTHREADS_D4
7726 status = pthread_detach( &t );
7728 status = pthread_detach( t );
7731 #ifdef HAVE_LINUX_THREADS
7732 pthread_kill_other_threads_np();
7739 if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7741 ol_cv_pthread_thread=yes
7743 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7746 ol_cv_pthread_thread=no
7750 cat > conftest.$ac_ext <<EOF
7751 #line 7729 "configure"
7752 #include "confdefs.h"
7753 /* pthread test headers */
7754 #include <pthread.h>
7756 #define NULL (void*)0
7759 static void *task(p)
7762 return (void *) (p == NULL);
7766 int main(argc, argv)
7771 /* pthread test function */
7775 /* make sure pthread_create() isn't just a stub */
7776 #if HAVE_PTHREADS_D4
7777 status = pthread_create(&t, pthread_attr_default, task, NULL);
7779 status = pthread_create(&t, NULL, task, NULL);
7782 if( status ) exit( status );
7784 /* make sure pthread_detach() isn't just a stub */
7785 #if HAVE_PTHREADS_D4
7786 status = pthread_detach( &t );
7788 status = pthread_detach( t );
7791 #ifdef HAVE_LINUX_THREADS
7792 pthread_kill_other_threads_np();
7800 if { (eval echo configure:7778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7802 ol_cv_pthread_thread=yes
7804 echo "configure: failed program was:" >&5
7805 cat conftest.$ac_ext >&5
7807 ol_cv_pthread_thread=no
7818 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
7820 if test $ol_cv_pthread_thread = yes ; then
7821 ol_link_pthreads="-thread"
7822 ol_link_threads=posix
7827 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
7828 if test "$ol_link_threads" = no ; then
7829 # try -lpthread -lmach -lexc -lc_r
7830 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
7831 echo "configure:7809: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
7832 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
7833 echo $ac_n "(cached) $ac_c" 1>&6
7838 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
7840 if test "$cross_compiling" = yes; then
7841 cat > conftest.$ac_ext <<EOF
7842 #line 7820 "configure"
7843 #include "confdefs.h"
7844 /* pthread test headers */
7845 #include <pthread.h>
7847 #define NULL (void*)0
7850 static void *task(p)
7853 return (void *) (p == NULL);
7858 /* pthread test function */
7862 /* make sure pthread_create() isn't just a stub */
7863 #if HAVE_PTHREADS_D4
7864 status = pthread_create(&t, pthread_attr_default, task, NULL);
7866 status = pthread_create(&t, NULL, task, NULL);
7869 if( status ) exit( status );
7871 /* make sure pthread_detach() isn't just a stub */
7872 #if HAVE_PTHREADS_D4
7873 status = pthread_detach( &t );
7875 status = pthread_detach( t );
7878 #ifdef HAVE_LINUX_THREADS
7879 pthread_kill_other_threads_np();
7886 if { (eval echo configure:7864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7888 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7890 echo "configure: failed program was:" >&5
7891 cat conftest.$ac_ext >&5
7893 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7897 cat > conftest.$ac_ext <<EOF
7898 #line 7876 "configure"
7899 #include "confdefs.h"
7900 /* pthread test headers */
7901 #include <pthread.h>
7903 #define NULL (void*)0
7906 static void *task(p)
7909 return (void *) (p == NULL);
7913 int main(argc, argv)
7918 /* pthread test function */
7922 /* make sure pthread_create() isn't just a stub */
7923 #if HAVE_PTHREADS_D4
7924 status = pthread_create(&t, pthread_attr_default, task, NULL);
7926 status = pthread_create(&t, NULL, task, NULL);
7929 if( status ) exit( status );
7931 /* make sure pthread_detach() isn't just a stub */
7932 #if HAVE_PTHREADS_D4
7933 status = pthread_detach( &t );
7935 status = pthread_detach( t );
7938 #ifdef HAVE_LINUX_THREADS
7939 pthread_kill_other_threads_np();
7947 if { (eval echo configure:7925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7949 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7951 echo "configure: failed program was:" >&5
7952 cat conftest.$ac_ext >&5
7954 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7965 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
7967 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
7968 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
7969 ol_link_threads=posix
7973 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
7974 if test "$ol_link_threads" = no ; then
7975 # try -lpthread -lmach -lexc
7976 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
7977 echo "configure:7955: checking for pthread link with -lpthread -lmach -lexc" >&5
7978 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7984 LIBS="-lpthread -lmach -lexc $LIBS"
7986 if test "$cross_compiling" = yes; then
7987 cat > conftest.$ac_ext <<EOF
7988 #line 7966 "configure"
7989 #include "confdefs.h"
7990 /* pthread test headers */
7991 #include <pthread.h>
7993 #define NULL (void*)0
7996 static void *task(p)
7999 return (void *) (p == NULL);
8004 /* pthread test function */
8008 /* make sure pthread_create() isn't just a stub */
8009 #if HAVE_PTHREADS_D4
8010 status = pthread_create(&t, pthread_attr_default, task, NULL);
8012 status = pthread_create(&t, NULL, task, NULL);
8015 if( status ) exit( status );
8017 /* make sure pthread_detach() isn't just a stub */
8018 #if HAVE_PTHREADS_D4
8019 status = pthread_detach( &t );
8021 status = pthread_detach( t );
8024 #ifdef HAVE_LINUX_THREADS
8025 pthread_kill_other_threads_np();
8032 if { (eval echo configure:8010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8034 ol_cv_pthread_lpthread_lmach_lexc=yes
8036 echo "configure: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8039 ol_cv_pthread_lpthread_lmach_lexc=no
8043 cat > conftest.$ac_ext <<EOF
8044 #line 8022 "configure"
8045 #include "confdefs.h"
8046 /* pthread test headers */
8047 #include <pthread.h>
8049 #define NULL (void*)0
8052 static void *task(p)
8055 return (void *) (p == NULL);
8059 int main(argc, argv)
8064 /* pthread test function */
8068 /* make sure pthread_create() isn't just a stub */
8069 #if HAVE_PTHREADS_D4
8070 status = pthread_create(&t, pthread_attr_default, task, NULL);
8072 status = pthread_create(&t, NULL, task, NULL);
8075 if( status ) exit( status );
8077 /* make sure pthread_detach() isn't just a stub */
8078 #if HAVE_PTHREADS_D4
8079 status = pthread_detach( &t );
8081 status = pthread_detach( t );
8084 #ifdef HAVE_LINUX_THREADS
8085 pthread_kill_other_threads_np();
8093 if { (eval echo configure:8071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8095 ol_cv_pthread_lpthread_lmach_lexc=yes
8097 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8100 ol_cv_pthread_lpthread_lmach_lexc=no
8111 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8113 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8114 ol_link_pthreads="-lpthread -lmach -lexc"
8115 ol_link_threads=posix
8120 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8121 if test "$ol_link_threads" = no ; then
8122 # try -lpthread -Wl,-woff,85
8123 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8124 echo "configure:8102: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8125 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8126 echo $ac_n "(cached) $ac_c" 1>&6
8131 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8133 if test "$cross_compiling" = yes; then
8134 cat > conftest.$ac_ext <<EOF
8135 #line 8113 "configure"
8136 #include "confdefs.h"
8137 /* pthread test headers */
8138 #include <pthread.h>
8140 #define NULL (void*)0
8143 static void *task(p)
8146 return (void *) (p == NULL);
8151 /* pthread test function */
8155 /* make sure pthread_create() isn't just a stub */
8156 #if HAVE_PTHREADS_D4
8157 status = pthread_create(&t, pthread_attr_default, task, NULL);
8159 status = pthread_create(&t, NULL, task, NULL);
8162 if( status ) exit( status );
8164 /* make sure pthread_detach() isn't just a stub */
8165 #if HAVE_PTHREADS_D4
8166 status = pthread_detach( &t );
8168 status = pthread_detach( t );
8171 #ifdef HAVE_LINUX_THREADS
8172 pthread_kill_other_threads_np();
8179 if { (eval echo configure:8157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8181 ol_cv_pthread_lib_lpthread_woff=yes
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8186 ol_cv_pthread_lib_lpthread_woff=no
8190 cat > conftest.$ac_ext <<EOF
8191 #line 8169 "configure"
8192 #include "confdefs.h"
8193 /* pthread test headers */
8194 #include <pthread.h>
8196 #define NULL (void*)0
8199 static void *task(p)
8202 return (void *) (p == NULL);
8206 int main(argc, argv)
8211 /* pthread test function */
8215 /* make sure pthread_create() isn't just a stub */
8216 #if HAVE_PTHREADS_D4
8217 status = pthread_create(&t, pthread_attr_default, task, NULL);
8219 status = pthread_create(&t, NULL, task, NULL);
8222 if( status ) exit( status );
8224 /* make sure pthread_detach() isn't just a stub */
8225 #if HAVE_PTHREADS_D4
8226 status = pthread_detach( &t );
8228 status = pthread_detach( t );
8231 #ifdef HAVE_LINUX_THREADS
8232 pthread_kill_other_threads_np();
8240 if { (eval echo configure:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8242 ol_cv_pthread_lib_lpthread_woff=yes
8244 echo "configure: failed program was:" >&5
8245 cat conftest.$ac_ext >&5
8247 ol_cv_pthread_lib_lpthread_woff=no
8258 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8260 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8261 ol_link_pthreads="-lpthread -Wl,-woff,85"
8262 ol_link_threads=posix
8267 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8268 if test "$ol_link_threads" = no ; then
8270 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8271 echo "configure:8249: checking for pthread link with -lpthread" >&5
8272 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8278 LIBS="-lpthread $LIBS"
8280 if test "$cross_compiling" = yes; then
8281 cat > conftest.$ac_ext <<EOF
8282 #line 8260 "configure"
8283 #include "confdefs.h"
8284 /* pthread test headers */
8285 #include <pthread.h>
8287 #define NULL (void*)0
8290 static void *task(p)
8293 return (void *) (p == NULL);
8298 /* pthread test function */
8302 /* make sure pthread_create() isn't just a stub */
8303 #if HAVE_PTHREADS_D4
8304 status = pthread_create(&t, pthread_attr_default, task, NULL);
8306 status = pthread_create(&t, NULL, task, NULL);
8309 if( status ) exit( status );
8311 /* make sure pthread_detach() isn't just a stub */
8312 #if HAVE_PTHREADS_D4
8313 status = pthread_detach( &t );
8315 status = pthread_detach( t );
8318 #ifdef HAVE_LINUX_THREADS
8319 pthread_kill_other_threads_np();
8326 if { (eval echo configure:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8328 ol_cv_pthread_lpthread=yes
8330 echo "configure: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8333 ol_cv_pthread_lpthread=no
8337 cat > conftest.$ac_ext <<EOF
8338 #line 8316 "configure"
8339 #include "confdefs.h"
8340 /* pthread test headers */
8341 #include <pthread.h>
8343 #define NULL (void*)0
8346 static void *task(p)
8349 return (void *) (p == NULL);
8353 int main(argc, argv)
8358 /* pthread test function */
8362 /* make sure pthread_create() isn't just a stub */
8363 #if HAVE_PTHREADS_D4
8364 status = pthread_create(&t, pthread_attr_default, task, NULL);
8366 status = pthread_create(&t, NULL, task, NULL);
8369 if( status ) exit( status );
8371 /* make sure pthread_detach() isn't just a stub */
8372 #if HAVE_PTHREADS_D4
8373 status = pthread_detach( &t );
8375 status = pthread_detach( t );
8378 #ifdef HAVE_LINUX_THREADS
8379 pthread_kill_other_threads_np();
8387 if { (eval echo configure:8365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8389 ol_cv_pthread_lpthread=yes
8391 echo "configure: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8394 ol_cv_pthread_lpthread=no
8405 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8407 if test $ol_cv_pthread_lpthread = yes ; then
8408 ol_link_pthreads="-lpthread"
8409 ol_link_threads=posix
8413 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8414 if test "$ol_link_threads" = no ; then
8416 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8417 echo "configure:8395: checking for pthread link with -lc_r" >&5
8418 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8426 if test "$cross_compiling" = yes; then
8427 cat > conftest.$ac_ext <<EOF
8428 #line 8406 "configure"
8429 #include "confdefs.h"
8430 /* pthread test headers */
8431 #include <pthread.h>
8433 #define NULL (void*)0
8436 static void *task(p)
8439 return (void *) (p == NULL);
8444 /* pthread test function */
8448 /* make sure pthread_create() isn't just a stub */
8449 #if HAVE_PTHREADS_D4
8450 status = pthread_create(&t, pthread_attr_default, task, NULL);
8452 status = pthread_create(&t, NULL, task, NULL);
8455 if( status ) exit( status );
8457 /* make sure pthread_detach() isn't just a stub */
8458 #if HAVE_PTHREADS_D4
8459 status = pthread_detach( &t );
8461 status = pthread_detach( t );
8464 #ifdef HAVE_LINUX_THREADS
8465 pthread_kill_other_threads_np();
8472 if { (eval echo configure:8450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8474 ol_cv_pthread_lc_r=yes
8476 echo "configure: failed program was:" >&5
8477 cat conftest.$ac_ext >&5
8479 ol_cv_pthread_lc_r=no
8483 cat > conftest.$ac_ext <<EOF
8484 #line 8462 "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);
8499 int main(argc, argv)
8504 /* pthread test function */
8508 /* make sure pthread_create() isn't just a stub */
8509 #if HAVE_PTHREADS_D4
8510 status = pthread_create(&t, pthread_attr_default, task, NULL);
8512 status = pthread_create(&t, NULL, task, NULL);
8515 if( status ) exit( status );
8517 /* make sure pthread_detach() isn't just a stub */
8518 #if HAVE_PTHREADS_D4
8519 status = pthread_detach( &t );
8521 status = pthread_detach( t );
8524 #ifdef HAVE_LINUX_THREADS
8525 pthread_kill_other_threads_np();
8533 if { (eval echo configure:8511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8535 ol_cv_pthread_lc_r=yes
8537 echo "configure: failed program was:" >&5
8538 cat conftest.$ac_ext >&5
8540 ol_cv_pthread_lc_r=no
8551 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8553 if test $ol_cv_pthread_lc_r = yes ; then
8554 ol_link_pthreads="-lc_r"
8555 ol_link_threads=posix
8560 # Pthread try link: -threads (ol_cv_pthread_threads)
8561 if test "$ol_link_threads" = no ; then
8563 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8564 echo "configure:8542: checking for pthread link with -threads" >&5
8565 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8566 echo $ac_n "(cached) $ac_c" 1>&6
8571 LIBS="-threads $LIBS"
8573 if test "$cross_compiling" = yes; then
8574 cat > conftest.$ac_ext <<EOF
8575 #line 8553 "configure"
8576 #include "confdefs.h"
8577 /* pthread test headers */
8578 #include <pthread.h>
8580 #define NULL (void*)0
8583 static void *task(p)
8586 return (void *) (p == NULL);
8591 /* pthread test function */
8595 /* make sure pthread_create() isn't just a stub */
8596 #if HAVE_PTHREADS_D4
8597 status = pthread_create(&t, pthread_attr_default, task, NULL);
8599 status = pthread_create(&t, NULL, task, NULL);
8602 if( status ) exit( status );
8604 /* make sure pthread_detach() isn't just a stub */
8605 #if HAVE_PTHREADS_D4
8606 status = pthread_detach( &t );
8608 status = pthread_detach( t );
8611 #ifdef HAVE_LINUX_THREADS
8612 pthread_kill_other_threads_np();
8619 if { (eval echo configure:8597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8621 ol_cv_pthread_threads=yes
8623 echo "configure: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8626 ol_cv_pthread_threads=no
8630 cat > conftest.$ac_ext <<EOF
8631 #line 8609 "configure"
8632 #include "confdefs.h"
8633 /* pthread test headers */
8634 #include <pthread.h>
8636 #define NULL (void*)0
8639 static void *task(p)
8642 return (void *) (p == NULL);
8646 int main(argc, argv)
8651 /* pthread test function */
8655 /* make sure pthread_create() isn't just a stub */
8656 #if HAVE_PTHREADS_D4
8657 status = pthread_create(&t, pthread_attr_default, task, NULL);
8659 status = pthread_create(&t, NULL, task, NULL);
8662 if( status ) exit( status );
8664 /* make sure pthread_detach() isn't just a stub */
8665 #if HAVE_PTHREADS_D4
8666 status = pthread_detach( &t );
8668 status = pthread_detach( t );
8671 #ifdef HAVE_LINUX_THREADS
8672 pthread_kill_other_threads_np();
8680 if { (eval echo configure:8658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8682 ol_cv_pthread_threads=yes
8684 echo "configure: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8687 ol_cv_pthread_threads=no
8698 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
8700 if test $ol_cv_pthread_threads = yes ; then
8701 ol_link_pthreads="-threads"
8702 ol_link_threads=posix
8707 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
8708 if test "$ol_link_threads" = no ; then
8709 # try -lpthreads -lmach -lexc -lc_r
8710 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
8711 echo "configure:8689: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
8712 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
8713 echo $ac_n "(cached) $ac_c" 1>&6
8718 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
8720 if test "$cross_compiling" = yes; then
8721 cat > conftest.$ac_ext <<EOF
8722 #line 8700 "configure"
8723 #include "confdefs.h"
8724 /* pthread test headers */
8725 #include <pthread.h>
8727 #define NULL (void*)0
8730 static void *task(p)
8733 return (void *) (p == NULL);
8738 /* pthread test function */
8742 /* make sure pthread_create() isn't just a stub */
8743 #if HAVE_PTHREADS_D4
8744 status = pthread_create(&t, pthread_attr_default, task, NULL);
8746 status = pthread_create(&t, NULL, task, NULL);
8749 if( status ) exit( status );
8751 /* make sure pthread_detach() isn't just a stub */
8752 #if HAVE_PTHREADS_D4
8753 status = pthread_detach( &t );
8755 status = pthread_detach( t );
8758 #ifdef HAVE_LINUX_THREADS
8759 pthread_kill_other_threads_np();
8766 if { (eval echo configure:8744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8768 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8770 echo "configure: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8773 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8777 cat > conftest.$ac_ext <<EOF
8778 #line 8756 "configure"
8779 #include "confdefs.h"
8780 /* pthread test headers */
8781 #include <pthread.h>
8783 #define NULL (void*)0
8786 static void *task(p)
8789 return (void *) (p == NULL);
8793 int main(argc, argv)
8798 /* pthread test function */
8802 /* make sure pthread_create() isn't just a stub */
8803 #if HAVE_PTHREADS_D4
8804 status = pthread_create(&t, pthread_attr_default, task, NULL);
8806 status = pthread_create(&t, NULL, task, NULL);
8809 if( status ) exit( status );
8811 /* make sure pthread_detach() isn't just a stub */
8812 #if HAVE_PTHREADS_D4
8813 status = pthread_detach( &t );
8815 status = pthread_detach( t );
8818 #ifdef HAVE_LINUX_THREADS
8819 pthread_kill_other_threads_np();
8827 if { (eval echo configure:8805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8829 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8831 echo "configure: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8834 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8845 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
8847 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
8848 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
8849 ol_link_threads=posix
8853 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
8854 if test "$ol_link_threads" = no ; then
8855 # try -lpthreads -lmach -lexc
8856 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
8857 echo "configure:8835: checking for pthread link with -lpthreads -lmach -lexc" >&5
8858 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
8859 echo $ac_n "(cached) $ac_c" 1>&6
8864 LIBS="-lpthreads -lmach -lexc $LIBS"
8866 if test "$cross_compiling" = yes; then
8867 cat > conftest.$ac_ext <<EOF
8868 #line 8846 "configure"
8869 #include "confdefs.h"
8870 /* pthread test headers */
8871 #include <pthread.h>
8873 #define NULL (void*)0
8876 static void *task(p)
8879 return (void *) (p == NULL);
8884 /* pthread test function */
8888 /* make sure pthread_create() isn't just a stub */
8889 #if HAVE_PTHREADS_D4
8890 status = pthread_create(&t, pthread_attr_default, task, NULL);
8892 status = pthread_create(&t, NULL, task, NULL);
8895 if( status ) exit( status );
8897 /* make sure pthread_detach() isn't just a stub */
8898 #if HAVE_PTHREADS_D4
8899 status = pthread_detach( &t );
8901 status = pthread_detach( t );
8904 #ifdef HAVE_LINUX_THREADS
8905 pthread_kill_other_threads_np();
8912 if { (eval echo configure:8890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8914 ol_cv_pthread_lpthreads_lmach_lexc=yes
8916 echo "configure: failed program was:" >&5
8917 cat conftest.$ac_ext >&5
8919 ol_cv_pthread_lpthreads_lmach_lexc=no
8923 cat > conftest.$ac_ext <<EOF
8924 #line 8902 "configure"
8925 #include "confdefs.h"
8926 /* pthread test headers */
8927 #include <pthread.h>
8929 #define NULL (void*)0
8932 static void *task(p)
8935 return (void *) (p == NULL);
8939 int main(argc, argv)
8944 /* pthread test function */
8948 /* make sure pthread_create() isn't just a stub */
8949 #if HAVE_PTHREADS_D4
8950 status = pthread_create(&t, pthread_attr_default, task, NULL);
8952 status = pthread_create(&t, NULL, task, NULL);
8955 if( status ) exit( status );
8957 /* make sure pthread_detach() isn't just a stub */
8958 #if HAVE_PTHREADS_D4
8959 status = pthread_detach( &t );
8961 status = pthread_detach( t );
8964 #ifdef HAVE_LINUX_THREADS
8965 pthread_kill_other_threads_np();
8973 if { (eval echo configure:8951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8975 ol_cv_pthread_lpthreads_lmach_lexc=yes
8977 echo "configure: failed program was:" >&5
8978 cat conftest.$ac_ext >&5
8980 ol_cv_pthread_lpthreads_lmach_lexc=no
8991 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
8993 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
8994 ol_link_pthreads="-lpthreads -lmach -lexc"
8995 ol_link_threads=posix
8999 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9000 if test "$ol_link_threads" = no ; then
9001 # try -lpthreads -lexc
9002 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9003 echo "configure:8981: checking for pthread link with -lpthreads -lexc" >&5
9004 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9005 echo $ac_n "(cached) $ac_c" 1>&6
9010 LIBS="-lpthreads -lexc $LIBS"
9012 if test "$cross_compiling" = yes; then
9013 cat > conftest.$ac_ext <<EOF
9014 #line 8992 "configure"
9015 #include "confdefs.h"
9016 /* pthread test headers */
9017 #include <pthread.h>
9019 #define NULL (void*)0
9022 static void *task(p)
9025 return (void *) (p == NULL);
9030 /* pthread test function */
9034 /* make sure pthread_create() isn't just a stub */
9035 #if HAVE_PTHREADS_D4
9036 status = pthread_create(&t, pthread_attr_default, task, NULL);
9038 status = pthread_create(&t, NULL, task, NULL);
9041 if( status ) exit( status );
9043 /* make sure pthread_detach() isn't just a stub */
9044 #if HAVE_PTHREADS_D4
9045 status = pthread_detach( &t );
9047 status = pthread_detach( t );
9050 #ifdef HAVE_LINUX_THREADS
9051 pthread_kill_other_threads_np();
9058 if { (eval echo configure:9036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9060 ol_cv_pthread_lpthreads_lexc=yes
9062 echo "configure: failed program was:" >&5
9063 cat conftest.$ac_ext >&5
9065 ol_cv_pthread_lpthreads_lexc=no
9069 cat > conftest.$ac_ext <<EOF
9070 #line 9048 "configure"
9071 #include "confdefs.h"
9072 /* pthread test headers */
9073 #include <pthread.h>
9075 #define NULL (void*)0
9078 static void *task(p)
9081 return (void *) (p == NULL);
9085 int main(argc, argv)
9090 /* pthread test function */
9094 /* make sure pthread_create() isn't just a stub */
9095 #if HAVE_PTHREADS_D4
9096 status = pthread_create(&t, pthread_attr_default, task, NULL);
9098 status = pthread_create(&t, NULL, task, NULL);
9101 if( status ) exit( status );
9103 /* make sure pthread_detach() isn't just a stub */
9104 #if HAVE_PTHREADS_D4
9105 status = pthread_detach( &t );
9107 status = pthread_detach( t );
9110 #ifdef HAVE_LINUX_THREADS
9111 pthread_kill_other_threads_np();
9119 if { (eval echo configure:9097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9121 ol_cv_pthread_lpthreads_lexc=yes
9123 echo "configure: failed program was:" >&5
9124 cat conftest.$ac_ext >&5
9126 ol_cv_pthread_lpthreads_lexc=no
9137 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9139 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9140 ol_link_pthreads="-lpthreads -lexc"
9141 ol_link_threads=posix
9146 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9147 if test "$ol_link_threads" = no ; then
9149 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9150 echo "configure:9128: checking for pthread link with -lpthreads" >&5
9151 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9152 echo $ac_n "(cached) $ac_c" 1>&6
9157 LIBS="-lpthreads $LIBS"
9159 if test "$cross_compiling" = yes; then
9160 cat > conftest.$ac_ext <<EOF
9161 #line 9139 "configure"
9162 #include "confdefs.h"
9163 /* pthread test headers */
9164 #include <pthread.h>
9166 #define NULL (void*)0
9169 static void *task(p)
9172 return (void *) (p == NULL);
9177 /* pthread test function */
9181 /* make sure pthread_create() isn't just a stub */
9182 #if HAVE_PTHREADS_D4
9183 status = pthread_create(&t, pthread_attr_default, task, NULL);
9185 status = pthread_create(&t, NULL, task, NULL);
9188 if( status ) exit( status );
9190 /* make sure pthread_detach() isn't just a stub */
9191 #if HAVE_PTHREADS_D4
9192 status = pthread_detach( &t );
9194 status = pthread_detach( t );
9197 #ifdef HAVE_LINUX_THREADS
9198 pthread_kill_other_threads_np();
9205 if { (eval echo configure:9183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9207 ol_cv_pthread_lib_lpthreads=yes
9209 echo "configure: failed program was:" >&5
9210 cat conftest.$ac_ext >&5
9212 ol_cv_pthread_lib_lpthreads=no
9216 cat > conftest.$ac_ext <<EOF
9217 #line 9195 "configure"
9218 #include "confdefs.h"
9219 /* pthread test headers */
9220 #include <pthread.h>
9222 #define NULL (void*)0
9225 static void *task(p)
9228 return (void *) (p == NULL);
9232 int main(argc, argv)
9237 /* pthread test function */
9241 /* make sure pthread_create() isn't just a stub */
9242 #if HAVE_PTHREADS_D4
9243 status = pthread_create(&t, pthread_attr_default, task, NULL);
9245 status = pthread_create(&t, NULL, task, NULL);
9248 if( status ) exit( status );
9250 /* make sure pthread_detach() isn't just a stub */
9251 #if HAVE_PTHREADS_D4
9252 status = pthread_detach( &t );
9254 status = pthread_detach( t );
9257 #ifdef HAVE_LINUX_THREADS
9258 pthread_kill_other_threads_np();
9266 if { (eval echo configure:9244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9268 ol_cv_pthread_lib_lpthreads=yes
9270 echo "configure: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9273 ol_cv_pthread_lib_lpthreads=no
9284 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9286 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9287 ol_link_pthreads="-lpthreads"
9288 ol_link_threads=posix
9293 if test $ol_link_threads != no ; then
9294 cat >> confdefs.h <<\EOF
9295 #define HAVE_PTHREADS 1
9299 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9301 save_CPPFLAGS="$CPPFLAGS"
9303 LIBS="$LTHREAD_LIBS $LIBS"
9305 for ac_func in sched_yield pthread_yield
9307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9308 echo "configure:9286: checking for $ac_func" >&5
9309 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9310 echo $ac_n "(cached) $ac_c" 1>&6
9312 cat > conftest.$ac_ext <<EOF
9313 #line 9291 "configure"
9314 #include "confdefs.h"
9315 /* System header to define __stub macros and hopefully few prototypes,
9316 which can conflict with char $ac_func(); below. */
9318 /* Override any gcc2 internal prototype to avoid an error. */
9319 /* We use char because int might match the return type of a gcc2
9320 builtin and then its argument prototype would still apply. */
9326 /* The GNU C library defines this for functions which it implements
9327 to always fail with ENOSYS. Some functions are actually named
9328 something starting with __ and the normal name is an alias. */
9329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9337 if { (eval echo configure:9315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9339 eval "ac_cv_func_$ac_func=yes"
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9344 eval "ac_cv_func_$ac_func=no"
9349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9350 echo "$ac_t""yes" 1>&6
9351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9352 cat >> confdefs.h <<EOF
9353 #define $ac_tr_func 1
9357 echo "$ac_t""no" 1>&6
9362 if test $ac_cv_func_sched_yield = no -a \
9363 $ac_cv_func_pthread_yield = no ; then
9364 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9365 echo "configure:9343: checking for sched_yield in -lrt" >&5
9366 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9367 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9368 echo $ac_n "(cached) $ac_c" 1>&6
9370 ac_save_LIBS="$LIBS"
9372 cat > conftest.$ac_ext <<EOF
9373 #line 9351 "configure"
9374 #include "confdefs.h"
9375 /* Override any gcc2 internal prototype to avoid an error. */
9376 /* We use char because int might match the return type of a gcc2
9377 builtin and then its argument prototype would still apply. */
9384 if { (eval echo configure:9362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9386 eval "ac_cv_lib_$ac_lib_var=yes"
9388 echo "configure: failed program was:" >&5
9389 cat conftest.$ac_ext >&5
9391 eval "ac_cv_lib_$ac_lib_var=no"
9394 LIBS="$ac_save_LIBS"
9397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9398 echo "$ac_t""yes" 1>&6
9399 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9400 cat >> confdefs.h <<\EOF
9401 #define HAVE_SCHED_YIELD 1
9404 ac_cv_func_sched_yield=yes
9406 echo "$ac_t""no" 1>&6
9407 ac_cv_func_sched_yield=no
9411 if test $ac_cv_func_sched_yield = no -a \
9412 $ac_cv_func_pthread_yield = no ; then
9413 for ac_func in thr_yield
9415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9416 echo "configure:9394: checking for $ac_func" >&5
9417 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9418 echo $ac_n "(cached) $ac_c" 1>&6
9420 cat > conftest.$ac_ext <<EOF
9421 #line 9399 "configure"
9422 #include "confdefs.h"
9423 /* System header to define __stub macros and hopefully few prototypes,
9424 which can conflict with char $ac_func(); below. */
9426 /* Override any gcc2 internal prototype to avoid an error. */
9427 /* We use char because int might match the return type of a gcc2
9428 builtin and then its argument prototype would still apply. */
9434 /* The GNU C library defines this for functions which it implements
9435 to always fail with ENOSYS. Some functions are actually named
9436 something starting with __ and the normal name is an alias. */
9437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9445 if { (eval echo configure:9423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9447 eval "ac_cv_func_$ac_func=yes"
9449 echo "configure: failed program was:" >&5
9450 cat conftest.$ac_ext >&5
9452 eval "ac_cv_func_$ac_func=no"
9457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9458 echo "$ac_t""yes" 1>&6
9459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9460 cat >> confdefs.h <<EOF
9461 #define $ac_tr_func 1
9465 echo "$ac_t""no" 1>&6
9470 if test $ac_cv_func_sched_yield = no -a \
9471 $ac_cv_func_pthread_yield = no -a \
9472 "$ac_cv_func_thr_yield" = no ; then
9473 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9476 for ac_func in pthread_kill
9478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9479 echo "configure:9457: checking for $ac_func" >&5
9480 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9481 echo $ac_n "(cached) $ac_c" 1>&6
9483 cat > conftest.$ac_ext <<EOF
9484 #line 9462 "configure"
9485 #include "confdefs.h"
9486 /* System header to define __stub macros and hopefully few prototypes,
9487 which can conflict with char $ac_func(); below. */
9489 /* Override any gcc2 internal prototype to avoid an error. */
9490 /* We use char because int might match the return type of a gcc2
9491 builtin and then its argument prototype would still apply. */
9497 /* The GNU C library defines this for functions which it implements
9498 to always fail with ENOSYS. Some functions are actually named
9499 something starting with __ and the normal name is an alias. */
9500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9508 if { (eval echo configure:9486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9510 eval "ac_cv_func_$ac_func=yes"
9512 echo "configure: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9515 eval "ac_cv_func_$ac_func=no"
9520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9521 echo "$ac_t""yes" 1>&6
9522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9523 cat >> confdefs.h <<EOF
9524 #define $ac_tr_func 1
9528 echo "$ac_t""no" 1>&6
9533 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9534 echo "configure:9512: checking for pthread_detach with <pthread.h>" >&5
9535 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9536 echo $ac_n "(cached) $ac_c" 1>&6
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9518 "configure"
9541 #include "confdefs.h"
9543 #include <pthread.h>
9545 #define NULL (void*)0
9549 pthread_detach(NULL);
9552 if { (eval echo configure:9530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9554 ol_cv_func_pthread_detach=yes
9556 echo "configure: failed program was:" >&5
9557 cat conftest.$ac_ext >&5
9559 ol_cv_func_pthread_detach=no
9565 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9567 if test $ol_cv_func_pthread_detach = no ; then
9568 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9571 cat >> confdefs.h <<\EOF
9572 #define HAVE_PTHREAD_DETACH 1
9577 pthread_setconcurrency \
9578 pthread_getconcurrency \
9579 thr_setconcurrency \
9580 thr_getconcurrency \
9583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9584 echo "configure:9562: checking for $ac_func" >&5
9585 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9588 cat > conftest.$ac_ext <<EOF
9589 #line 9567 "configure"
9590 #include "confdefs.h"
9591 /* System header to define __stub macros and hopefully few prototypes,
9592 which can conflict with char $ac_func(); below. */
9594 /* Override any gcc2 internal prototype to avoid an error. */
9595 /* We use char because int might match the return type of a gcc2
9596 builtin and then its argument prototype would still apply. */
9602 /* The GNU C library defines this for functions which it implements
9603 to always fail with ENOSYS. Some functions are actually named
9604 something starting with __ and the normal name is an alias. */
9605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9613 if { (eval echo configure:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9615 eval "ac_cv_func_$ac_func=yes"
9617 echo "configure: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9620 eval "ac_cv_func_$ac_func=no"
9625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9626 echo "$ac_t""yes" 1>&6
9627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9628 cat >> confdefs.h <<EOF
9629 #define $ac_tr_func 1
9633 echo "$ac_t""no" 1>&6
9639 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
9640 echo "configure:9618: checking for pthread_kill_other_threads_np" >&5
9641 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
9642 echo $ac_n "(cached) $ac_c" 1>&6
9644 cat > conftest.$ac_ext <<EOF
9645 #line 9623 "configure"
9646 #include "confdefs.h"
9647 /* System header to define __stub macros and hopefully few prototypes,
9648 which can conflict with char pthread_kill_other_threads_np(); below. */
9650 /* Override any gcc2 internal prototype to avoid an error. */
9651 /* We use char because int might match the return type of a gcc2
9652 builtin and then its argument prototype would still apply. */
9653 char pthread_kill_other_threads_np();
9658 /* The GNU C library defines this for functions which it implements
9659 to always fail with ENOSYS. Some functions are actually named
9660 something starting with __ and the normal name is an alias. */
9661 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
9664 f = pthread_kill_other_threads_np;
9669 if { (eval echo configure:9647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9671 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
9673 echo "configure: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9676 eval "ac_cv_func_pthread_kill_other_threads_np=no"
9681 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
9682 echo "$ac_t""yes" 1>&6
9685 echo "$ac_t""no" 1>&6
9688 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
9689 echo "configure:9667: checking for LinuxThreads implementation" >&5
9690 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
9691 echo $ac_n "(cached) $ac_c" 1>&6
9693 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
9696 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
9701 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
9702 echo "configure:9680: checking for LinuxThreads consistency" >&5
9703 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9707 if test $ol_cv_header_linux_threads = yes -a \
9708 $ol_cv_sys_linux_threads = yes; then
9709 ol_cv_linux_threads=yes
9710 elif test $ol_cv_header_linux_threads = no -a \
9711 $ol_cv_sys_linux_threads = no; then
9712 ol_cv_linux_threads=no
9714 ol_cv_linux_threads=error
9719 echo "$ac_t""$ol_cv_linux_threads" 1>&6
9722 if test $ol_cv_linux_threads = error; then
9723 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
9726 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
9727 echo "configure:9705: checking if pthread_create() works" >&5
9728 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
9729 echo $ac_n "(cached) $ac_c" 1>&6
9732 if test "$cross_compiling" = yes; then
9733 ol_cv_pthread_create_works=yes
9735 cat > conftest.$ac_ext <<EOF
9736 #line 9714 "configure"
9737 #include "confdefs.h"
9738 /* pthread test headers */
9739 #include <pthread.h>
9741 #define NULL (void*)0
9744 static void *task(p)
9747 return (void *) (p == NULL);
9751 int main(argc, argv)
9756 /* pthread test function */
9760 /* make sure pthread_create() isn't just a stub */
9761 #if HAVE_PTHREADS_D4
9762 status = pthread_create(&t, pthread_attr_default, task, NULL);
9764 status = pthread_create(&t, NULL, task, NULL);
9767 if( status ) exit( status );
9769 /* make sure pthread_detach() isn't just a stub */
9770 #if HAVE_PTHREADS_D4
9771 status = pthread_detach( &t );
9773 status = pthread_detach( t );
9776 #ifdef HAVE_LINUX_THREADS
9777 pthread_kill_other_threads_np();
9785 if { (eval echo configure:9763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9787 ol_cv_pthread_create_works=yes
9789 echo "configure: failed program was:" >&5
9790 cat conftest.$ac_ext >&5
9792 ol_cv_pthread_create_works=no
9799 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
9801 if test $ol_cv_pthread_create_works = no ; then
9802 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
9805 if test $ol_with_yielding_select = auto ; then
9806 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
9807 echo "configure:9785: checking if select yields when using pthreads" >&5
9808 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
9809 echo $ac_n "(cached) $ac_c" 1>&6
9812 if test "$cross_compiling" = yes; then
9813 ol_cv_pthread_select_yields=cross
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9794 "configure"
9817 #include "confdefs.h"
9819 #include <sys/types.h>
9820 #include <sys/time.h>
9822 #include <pthread.h>
9824 #define NULL (void*) 0
9827 static int fildes[2];
9829 static void *task(p)
9841 FD_SET(fildes[0], &rfds);
9843 /* we're not interested in any fds */
9844 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
9851 exit(0); /* if we exit here, the select blocked the whole process */
9854 int main(argc, argv)
9860 /* create a pipe to select */
9861 if(pipe(&fildes[0])) {
9866 #ifdef HAVE_PTHREAD_SETCONCURRENCY
9867 (void) pthread_setconcurrency(2);
9869 #ifdef HAVE_THR_SETCONCURRENCY
9870 /* Set Solaris LWP concurrency to 2 */
9871 thr_setconcurrency(2);
9875 #if HAVE_PTHREADS_D4
9876 pthread_create(&t, pthread_attr_default, task, NULL);
9878 pthread_create(&t, NULL, task, NULL);
9881 #if HAVE_SCHED_YIELD
9882 sched_yield(); /* make sure task runs first */
9884 #ifdef HAVE_PTHREAD_YIELD
9885 pthread_yield(); /* make sure task runs first */
9892 if { (eval echo configure:9870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9894 ol_cv_pthread_select_yields=no
9896 echo "configure: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9899 ol_cv_pthread_select_yields=yes
9906 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
9908 if test $ol_cv_pthread_select_yields = cross ; then
9909 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
9912 if test $ol_cv_pthread_select_yields = yes ; then
9913 ol_with_yielding_select=yes
9917 CPPFLAGS="$save_CPPFLAGS"
9920 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
9924 if test $ol_with_threads = posix ; then
9925 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
9929 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9930 -o $ol_with_threads = mach ; then
9932 for ac_hdr in mach/cthreads.h
9934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9936 echo "configure:9914: checking for $ac_hdr" >&5
9937 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9938 echo $ac_n "(cached) $ac_c" 1>&6
9940 cat > conftest.$ac_ext <<EOF
9941 #line 9919 "configure"
9942 #include "confdefs.h"
9945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9946 { (eval echo configure:9924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9948 if test -z "$ac_err"; then
9950 eval "ac_cv_header_$ac_safe=yes"
9953 echo "configure: failed program was:" >&5
9954 cat conftest.$ac_ext >&5
9956 eval "ac_cv_header_$ac_safe=no"
9960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9961 echo "$ac_t""yes" 1>&6
9962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9963 cat >> confdefs.h <<EOF
9964 #define $ac_tr_hdr 1
9968 echo "$ac_t""no" 1>&6
9972 if test $ac_cv_header_mach_cthreads_h = yes ; then
9973 ol_with_threads=found
9975 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
9976 echo "configure:9954: checking for cthread_fork" >&5
9977 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
9978 echo $ac_n "(cached) $ac_c" 1>&6
9980 cat > conftest.$ac_ext <<EOF
9981 #line 9959 "configure"
9982 #include "confdefs.h"
9983 /* System header to define __stub macros and hopefully few prototypes,
9984 which can conflict with char cthread_fork(); below. */
9986 /* Override any gcc2 internal prototype to avoid an error. */
9987 /* We use char because int might match the return type of a gcc2
9988 builtin and then its argument prototype would still apply. */
9989 char cthread_fork();
9994 /* The GNU C library defines this for functions which it implements
9995 to always fail with ENOSYS. Some functions are actually named
9996 something starting with __ and the normal name is an alias. */
9997 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10005 if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10007 eval "ac_cv_func_cthread_fork=yes"
10009 echo "configure: failed program was:" >&5
10010 cat conftest.$ac_ext >&5
10012 eval "ac_cv_func_cthread_fork=no"
10017 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10018 echo "$ac_t""yes" 1>&6
10019 ol_link_threads=yes
10021 echo "$ac_t""no" 1>&6
10025 if test $ol_link_threads = no ; then
10026 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10027 echo "configure:10005: checking for cthread_fork with -all_load" >&5
10028 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10029 echo $ac_n "(cached) $ac_c" 1>&6
10033 LIBS="-all_load $LIBS"
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10013 "configure"
10036 #include "confdefs.h"
10037 #include <mach/cthreads.h>
10040 cthread_fork((void *)0, (void *)0);
10044 if { (eval echo configure:10022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10046 ol_cv_cthread_all_load=yes
10048 echo "configure: failed program was:" >&5
10049 cat conftest.$ac_ext >&5
10051 ol_cv_cthread_all_load=no
10058 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10060 if test $ol_cv_cthread_all_load = yes ; then
10061 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10062 ol_link_threads=mach
10066 if test $ol_link_threads != no ; then
10067 : check for cthread specific functionality here
10068 cat >> confdefs.h <<\EOF
10069 #define HAVE_MACH_CTHREADS 1
10073 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10077 if test $ol_with_threads = mach ; then
10078 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10082 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10083 -o $ol_with_threads = pth ; then
10085 for ac_hdr in pth.h
10087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10089 echo "configure:10067: checking for $ac_hdr" >&5
10090 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10091 echo $ac_n "(cached) $ac_c" 1>&6
10093 cat > conftest.$ac_ext <<EOF
10094 #line 10072 "configure"
10095 #include "confdefs.h"
10098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10099 { (eval echo configure:10077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10101 if test -z "$ac_err"; then
10103 eval "ac_cv_header_$ac_safe=yes"
10106 echo "configure: failed program was:" >&5
10107 cat conftest.$ac_ext >&5
10109 eval "ac_cv_header_$ac_safe=no"
10113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10114 echo "$ac_t""yes" 1>&6
10115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10116 cat >> confdefs.h <<EOF
10117 #define $ac_tr_hdr 1
10121 echo "$ac_t""no" 1>&6
10126 if test $ac_cv_header_pth_h = yes ; then
10127 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10128 echo "configure:10106: checking for pth_version in -lpth" >&5
10129 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10130 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10131 echo $ac_n "(cached) $ac_c" 1>&6
10133 ac_save_LIBS="$LIBS"
10135 cat > conftest.$ac_ext <<EOF
10136 #line 10114 "configure"
10137 #include "confdefs.h"
10138 /* Override any gcc2 internal prototype to avoid an error. */
10139 /* We use char because int might match the return type of a gcc2
10140 builtin and then its argument prototype would still apply. */
10141 char pth_version();
10147 if { (eval echo configure:10125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10149 eval "ac_cv_lib_$ac_lib_var=yes"
10151 echo "configure: failed program was:" >&5
10152 cat conftest.$ac_ext >&5
10154 eval "ac_cv_lib_$ac_lib_var=no"
10157 LIBS="$ac_save_LIBS"
10160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10161 echo "$ac_t""yes" 1>&6
10164 echo "$ac_t""no" 1>&6
10169 if test $have_pth = yes ; then
10170 cat >> confdefs.h <<\EOF
10171 #define HAVE_GNU_PTH 1
10174 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10175 ol_link_threads=pth
10177 if test $ol_with_yielding_select = auto ; then
10178 ol_with_yielding_select=yes
10184 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10185 -o $ol_with_threads = lwp ; then
10187 for ac_hdr in thread.h synch.h
10189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10191 echo "configure:10169: checking for $ac_hdr" >&5
10192 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10193 echo $ac_n "(cached) $ac_c" 1>&6
10195 cat > conftest.$ac_ext <<EOF
10196 #line 10174 "configure"
10197 #include "confdefs.h"
10200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10201 { (eval echo configure:10179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10203 if test -z "$ac_err"; then
10205 eval "ac_cv_header_$ac_safe=yes"
10208 echo "configure: failed program was:" >&5
10209 cat conftest.$ac_ext >&5
10211 eval "ac_cv_header_$ac_safe=no"
10215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10216 echo "$ac_t""yes" 1>&6
10217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10218 cat >> confdefs.h <<EOF
10219 #define $ac_tr_hdr 1
10223 echo "$ac_t""no" 1>&6
10227 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10228 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10229 echo "configure:10207: checking for thr_create in -lthread" >&5
10230 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10231 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10232 echo $ac_n "(cached) $ac_c" 1>&6
10234 ac_save_LIBS="$LIBS"
10235 LIBS="-lthread $LIBS"
10236 cat > conftest.$ac_ext <<EOF
10237 #line 10215 "configure"
10238 #include "confdefs.h"
10239 /* Override any gcc2 internal prototype to avoid an error. */
10240 /* We use char because int might match the return type of a gcc2
10241 builtin and then its argument prototype would still apply. */
10248 if { (eval echo configure:10226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10250 eval "ac_cv_lib_$ac_lib_var=yes"
10252 echo "configure: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10255 eval "ac_cv_lib_$ac_lib_var=no"
10258 LIBS="$ac_save_LIBS"
10261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10262 echo "$ac_t""yes" 1>&6
10265 echo "$ac_t""no" 1>&6
10270 if test $have_thr = yes ; then
10271 cat >> confdefs.h <<\EOF
10275 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10276 ol_link_threads=thr
10278 if test $ol_with_yielding_select = auto ; then
10279 ol_with_yielding_select=yes
10283 thr_setconcurrency \
10284 thr_getconcurrency \
10287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10288 echo "configure:10266: checking for $ac_func" >&5
10289 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10290 echo $ac_n "(cached) $ac_c" 1>&6
10292 cat > conftest.$ac_ext <<EOF
10293 #line 10271 "configure"
10294 #include "confdefs.h"
10295 /* System header to define __stub macros and hopefully few prototypes,
10296 which can conflict with char $ac_func(); below. */
10297 #include <assert.h>
10298 /* Override any gcc2 internal prototype to avoid an error. */
10299 /* We use char because int might match the return type of a gcc2
10300 builtin and then its argument prototype would still apply. */
10306 /* The GNU C library defines this for functions which it implements
10307 to always fail with ENOSYS. Some functions are actually named
10308 something starting with __ and the normal name is an alias. */
10309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10317 if { (eval echo configure:10295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10319 eval "ac_cv_func_$ac_func=yes"
10321 echo "configure: failed program was:" >&5
10322 cat conftest.$ac_ext >&5
10324 eval "ac_cv_func_$ac_func=no"
10329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10330 echo "$ac_t""yes" 1>&6
10331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10332 cat >> confdefs.h <<EOF
10333 #define $ac_tr_func 1
10337 echo "$ac_t""no" 1>&6
10344 for ac_hdr in lwp/lwp.h
10346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10348 echo "configure:10326: checking for $ac_hdr" >&5
10349 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10350 echo $ac_n "(cached) $ac_c" 1>&6
10352 cat > conftest.$ac_ext <<EOF
10353 #line 10331 "configure"
10354 #include "confdefs.h"
10357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10358 { (eval echo configure:10336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10360 if test -z "$ac_err"; then
10362 eval "ac_cv_header_$ac_safe=yes"
10365 echo "configure: failed program was:" >&5
10366 cat conftest.$ac_ext >&5
10368 eval "ac_cv_header_$ac_safe=no"
10372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10373 echo "$ac_t""yes" 1>&6
10374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10375 cat >> confdefs.h <<EOF
10376 #define $ac_tr_hdr 1
10380 echo "$ac_t""no" 1>&6
10384 if test $ac_cv_header_lwp_lwp_h = yes ; then
10385 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10386 echo "configure:10364: checking for lwp_create in -llwp" >&5
10387 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10388 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10389 echo $ac_n "(cached) $ac_c" 1>&6
10391 ac_save_LIBS="$LIBS"
10393 cat > conftest.$ac_ext <<EOF
10394 #line 10372 "configure"
10395 #include "confdefs.h"
10396 /* Override any gcc2 internal prototype to avoid an error. */
10397 /* We use char because int might match the return type of a gcc2
10398 builtin and then its argument prototype would still apply. */
10405 if { (eval echo configure:10383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10407 eval "ac_cv_lib_$ac_lib_var=yes"
10409 echo "configure: failed program was:" >&5
10410 cat conftest.$ac_ext >&5
10412 eval "ac_cv_lib_$ac_lib_var=no"
10415 LIBS="$ac_save_LIBS"
10418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10419 echo "$ac_t""yes" 1>&6
10422 echo "$ac_t""no" 1>&6
10427 if test $have_lwp = yes ; then
10428 cat >> confdefs.h <<\EOF
10432 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10433 ol_link_threads=lwp
10435 if test $ol_with_yielding_select = auto ; then
10436 ol_with_yielding_select=no
10442 if test $ol_with_yielding_select = yes ; then
10443 cat >> confdefs.h <<\EOF
10444 #define HAVE_YIELDING_SELECT 1
10449 if test $ol_with_threads = manual ; then
10450 ol_link_threads=yes
10452 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10454 for ac_hdr in pthread.h sched.h
10456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10458 echo "configure:10436: checking for $ac_hdr" >&5
10459 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10460 echo $ac_n "(cached) $ac_c" 1>&6
10462 cat > conftest.$ac_ext <<EOF
10463 #line 10441 "configure"
10464 #include "confdefs.h"
10467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10468 { (eval echo configure:10446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10470 if test -z "$ac_err"; then
10472 eval "ac_cv_header_$ac_safe=yes"
10475 echo "configure: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10478 eval "ac_cv_header_$ac_safe=no"
10482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10483 echo "$ac_t""yes" 1>&6
10484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10485 cat >> confdefs.h <<EOF
10486 #define $ac_tr_hdr 1
10490 echo "$ac_t""no" 1>&6
10494 for ac_func in sched_yield pthread_yield
10496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10497 echo "configure:10475: checking for $ac_func" >&5
10498 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10499 echo $ac_n "(cached) $ac_c" 1>&6
10501 cat > conftest.$ac_ext <<EOF
10502 #line 10480 "configure"
10503 #include "confdefs.h"
10504 /* System header to define __stub macros and hopefully few prototypes,
10505 which can conflict with char $ac_func(); below. */
10506 #include <assert.h>
10507 /* Override any gcc2 internal prototype to avoid an error. */
10508 /* We use char because int might match the return type of a gcc2
10509 builtin and then its argument prototype would still apply. */
10515 /* The GNU C library defines this for functions which it implements
10516 to always fail with ENOSYS. Some functions are actually named
10517 something starting with __ and the normal name is an alias. */
10518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10526 if { (eval echo configure:10504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10528 eval "ac_cv_func_$ac_func=yes"
10530 echo "configure: failed program was:" >&5
10531 cat conftest.$ac_ext >&5
10533 eval "ac_cv_func_$ac_func=no"
10538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10539 echo "$ac_t""yes" 1>&6
10540 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10541 cat >> confdefs.h <<EOF
10542 #define $ac_tr_func 1
10546 echo "$ac_t""no" 1>&6
10551 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10552 echo "configure:10530: checking for LinuxThreads pthread.h" >&5
10553 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
10554 echo $ac_n "(cached) $ac_c" 1>&6
10556 cat > conftest.$ac_ext <<EOF
10557 #line 10535 "configure"
10558 #include "confdefs.h"
10559 #include <pthread.h>
10561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10562 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10564 ol_cv_header_linux_threads=yes
10567 ol_cv_header_linux_threads=no
10574 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10575 if test $ol_cv_header_linux_threads = yes; then
10576 cat >> confdefs.h <<\EOF
10577 #define HAVE_LINUX_THREADS 1
10583 for ac_hdr in mach/cthreads.h
10585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10587 echo "configure:10565: checking for $ac_hdr" >&5
10588 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10589 echo $ac_n "(cached) $ac_c" 1>&6
10591 cat > conftest.$ac_ext <<EOF
10592 #line 10570 "configure"
10593 #include "confdefs.h"
10596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10597 { (eval echo configure:10575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10599 if test -z "$ac_err"; then
10601 eval "ac_cv_header_$ac_safe=yes"
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10607 eval "ac_cv_header_$ac_safe=no"
10611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10612 echo "$ac_t""yes" 1>&6
10613 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10614 cat >> confdefs.h <<EOF
10615 #define $ac_tr_hdr 1
10619 echo "$ac_t""no" 1>&6
10623 for ac_hdr in lwp/lwp.h
10625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10627 echo "configure:10605: checking for $ac_hdr" >&5
10628 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10629 echo $ac_n "(cached) $ac_c" 1>&6
10631 cat > conftest.$ac_ext <<EOF
10632 #line 10610 "configure"
10633 #include "confdefs.h"
10636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10637 { (eval echo configure:10615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10639 if test -z "$ac_err"; then
10641 eval "ac_cv_header_$ac_safe=yes"
10644 echo "configure: failed program was:" >&5
10645 cat conftest.$ac_ext >&5
10647 eval "ac_cv_header_$ac_safe=no"
10651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10652 echo "$ac_t""yes" 1>&6
10653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10654 cat >> confdefs.h <<EOF
10655 #define $ac_tr_hdr 1
10659 echo "$ac_t""no" 1>&6
10663 for ac_hdr in thread.h synch.h
10665 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10667 echo "configure:10645: checking for $ac_hdr" >&5
10668 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10669 echo $ac_n "(cached) $ac_c" 1>&6
10671 cat > conftest.$ac_ext <<EOF
10672 #line 10650 "configure"
10673 #include "confdefs.h"
10676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10677 { (eval echo configure:10655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10679 if test -z "$ac_err"; then
10681 eval "ac_cv_header_$ac_safe=yes"
10684 echo "configure: failed program was:" >&5
10685 cat conftest.$ac_ext >&5
10687 eval "ac_cv_header_$ac_safe=no"
10691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10692 echo "$ac_t""yes" 1>&6
10693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10694 cat >> confdefs.h <<EOF
10695 #define $ac_tr_hdr 1
10699 echo "$ac_t""no" 1>&6
10705 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
10706 cat >> confdefs.h <<\EOF
10707 #define REENTRANT 1
10710 cat >> confdefs.h <<\EOF
10711 #define _REENTRANT 1
10714 cat >> confdefs.h <<\EOF
10715 #define THREAD_SAFE 1
10718 cat >> confdefs.h <<\EOF
10719 #define _THREAD_SAFE 1
10722 cat >> confdefs.h <<\EOF
10723 #define THREADSAFE 1
10726 cat >> confdefs.h <<\EOF
10727 #define _THREADSAFE 1
10730 cat >> confdefs.h <<\EOF
10731 #define _SGI_MP_SOURCE 1
10735 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
10736 echo "configure:10714: checking for thread specific errno" >&5
10737 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
10738 echo $ac_n "(cached) $ac_c" 1>&6
10741 cat > conftest.$ac_ext <<EOF
10742 #line 10720 "configure"
10743 #include "confdefs.h"
10749 if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10751 ol_cv_errno_thread_specific=yes
10753 echo "configure: failed program was:" >&5
10754 cat conftest.$ac_ext >&5
10756 ol_cv_errno_thread_specific=no
10762 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
10764 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
10765 echo "configure:10743: checking for thread specific h_errno" >&5
10766 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
10767 echo $ac_n "(cached) $ac_c" 1>&6
10770 cat > conftest.$ac_ext <<EOF
10771 #line 10749 "configure"
10772 #include "confdefs.h"
10778 if { (eval echo configure:10756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10780 ol_cv_h_errno_thread_specific=yes
10782 echo "configure: failed program was:" >&5
10783 cat conftest.$ac_ext >&5
10785 ol_cv_h_errno_thread_specific=no
10791 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
10793 if test $ol_cv_errno_thread_specific != yes \
10794 -o $ol_cv_h_errno_thread_specific != yes ; then
10795 LIBS="$LTHREAD_LIBS $LIBS"
10801 if test $ol_link_threads = no ; then
10802 if test $ol_with_threads = yes ; then
10803 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
10806 if test $ol_with_threads = auto ; then
10807 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
10811 cat >> confdefs.h <<\EOF
10812 #define NO_THREADS 1
10818 if test $ol_link_threads != no ; then
10819 cat >> confdefs.h <<\EOF
10820 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
10827 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
10828 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
10829 echo "configure:10807: checking for DB2 library" >&5
10830 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
10831 echo $ac_n "(cached) $ac_c" 1>&6
10834 echo $ac_n "checking for db_appexit in -ldb""... $ac_c" 1>&6
10835 echo "configure:10813: checking for db_appexit in -ldb" >&5
10836 ac_lib_var=`echo db'_'db_appexit | sed 'y%./+-:%__p__%'`
10837 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10838 echo $ac_n "(cached) $ac_c" 1>&6
10840 ac_save_LIBS="$LIBS"
10842 cat > conftest.$ac_ext <<EOF
10843 #line 10821 "configure"
10844 #include "confdefs.h"
10845 /* Override any gcc2 internal prototype to avoid an error. */
10846 /* We use char because int might match the return type of a gcc2
10847 builtin and then its argument prototype would still apply. */
10854 if { (eval echo configure:10832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10856 eval "ac_cv_lib_$ac_lib_var=yes"
10858 echo "configure: failed program was:" >&5
10859 cat conftest.$ac_ext >&5
10861 eval "ac_cv_lib_$ac_lib_var=no"
10864 LIBS="$ac_save_LIBS"
10867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10868 echo "$ac_t""yes" 1>&6
10871 echo "$ac_t""no" 1>&6
10879 echo "$ac_t""$ol_cv_lib_db2" 1>&6
10883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10885 echo "configure:10863: checking for $ac_hdr" >&5
10886 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10887 echo $ac_n "(cached) $ac_c" 1>&6
10889 cat > conftest.$ac_ext <<EOF
10890 #line 10868 "configure"
10891 #include "confdefs.h"
10894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10895 { (eval echo configure:10873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10897 if test -z "$ac_err"; then
10899 eval "ac_cv_header_$ac_safe=yes"
10902 echo "configure: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10905 eval "ac_cv_header_$ac_safe=no"
10909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10910 echo "$ac_t""yes" 1>&6
10911 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10912 cat >> confdefs.h <<EOF
10913 #define $ac_tr_hdr 1
10917 echo "$ac_t""no" 1>&6
10921 if test $ac_cv_header_db_h = yes ; then
10922 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
10923 echo "configure:10901: checking if db.h is DB2" >&5
10924 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
10925 echo $ac_n "(cached) $ac_c" 1>&6
10928 cat > conftest.$ac_ext <<EOF
10929 #line 10907 "configure"
10930 #include "confdefs.h"
10933 /* this check could be improved */
10934 # ifdef DB_VERSION_MAJOR
10935 # if DB_VERSION_MAJOR == 2
10941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10942 egrep "__db_version_2" >/dev/null 2>&1; then
10944 ol_cv_header_db2=yes
10947 ol_cv_header_db2=no
10953 echo "$ac_t""$ol_cv_header_db2" 1>&6
10955 ol_cv_header_db2=no
10960 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
10961 echo "configure:10939: checking for Berkeley DB2" >&5
10962 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
10963 echo $ac_n "(cached) $ac_c" 1>&6
10966 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
10967 ol_cv_berkeley_db2=no
10969 ol_cv_berkeley_db2=yes
10974 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
10975 if test $ol_cv_berkeley_db2 = yes ; then
10976 cat >> confdefs.h <<\EOF
10977 #define HAVE_BERKELEY_DB2 1
10983 if test $ol_cv_berkeley_db2 = yes ; then
10985 ol_with_ldbm_api=db2
10987 if test $ol_with_ldbm_type = hash ; then
10988 cat >> confdefs.h <<\EOF
10989 #define LDBM_USE_DBHASH 1
10993 cat >> confdefs.h <<\EOF
10994 #define LDBM_USE_DBBTREE 1
10999 echo $ac_n "checking for DB_THREAD support""... $ac_c" 1>&6
11000 echo "configure:10978: checking for DB_THREAD support" >&5
11001 if eval "test \"\${ol_cv_berkeley_db2_db_thread+set}\" = set"; then
11002 echo $ac_n "(cached) $ac_c" 1>&6
11006 if test $ol_cv_lib_db2 != yes ; then
11007 LIBS="$ol_cv_lib_db2"
11010 if test "$cross_compiling" = yes; then
11011 ol_cv_berkeley_db2_db_thread=cross
11013 cat > conftest.$ac_ext <<EOF
11014 #line 10992 "configure"
11015 #include "confdefs.h"
11019 #define NULL ((void *)0)
11025 u_int32_t flags = DB_CREATE | DB_THREAD;
11027 memset( &env, '\0', sizeof(env) );
11029 rc = db_appinit( NULL, NULL, &env, flags );
11032 db_appexit( &env );
11038 if { (eval echo configure:11016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11040 ol_cv_berkeley_db2_db_thread=yes
11042 echo "configure: failed program was:" >&5
11043 cat conftest.$ac_ext >&5
11045 ol_cv_berkeley_db2_db_thread=no
11053 if test $ol_cv_berkeley_db2_db_thread != no ; then
11054 cat >> confdefs.h <<\EOF
11055 #define HAVE_BERKELEY_DB2_DB_THREAD 1
11062 echo "$ac_t""$ol_cv_berkeley_db2_db_thread" 1>&6
11064 if test $ol_cv_lib_db2 != yes ; then
11065 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
11071 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
11072 if test $ol_cv_berkeley_db2_db_thread != no ; then
11075 echo "configure: warning: Installed BerkeleyDB does not provide DB_THREAD support." 1>&2
11079 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
11080 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
11081 echo "configure:11059: checking for Berkeley DB library" >&5
11082 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
11083 echo $ac_n "(cached) $ac_c" 1>&6
11086 for ac_hdr in db1/db.h
11088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11090 echo "configure:11068: checking for $ac_hdr" >&5
11091 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11092 echo $ac_n "(cached) $ac_c" 1>&6
11094 cat > conftest.$ac_ext <<EOF
11095 #line 11073 "configure"
11096 #include "confdefs.h"
11099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11100 { (eval echo configure:11078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11102 if test -z "$ac_err"; then
11104 eval "ac_cv_header_$ac_safe=yes"
11107 echo "configure: failed program was:" >&5
11108 cat conftest.$ac_ext >&5
11110 eval "ac_cv_header_$ac_safe=no"
11114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11115 echo "$ac_t""yes" 1>&6
11116 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11117 cat >> confdefs.h <<EOF
11118 #define $ac_tr_hdr 1
11122 echo "$ac_t""no" 1>&6
11127 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
11128 echo "configure:11106: checking for dbopen" >&5
11129 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
11130 echo $ac_n "(cached) $ac_c" 1>&6
11132 cat > conftest.$ac_ext <<EOF
11133 #line 11111 "configure"
11134 #include "confdefs.h"
11135 /* System header to define __stub macros and hopefully few prototypes,
11136 which can conflict with char dbopen(); below. */
11137 #include <assert.h>
11138 /* Override any gcc2 internal prototype to avoid an error. */
11139 /* We use char because int might match the return type of a gcc2
11140 builtin and then its argument prototype would still apply. */
11146 /* The GNU C library defines this for functions which it implements
11147 to always fail with ENOSYS. Some functions are actually named
11148 something starting with __ and the normal name is an alias. */
11149 #if defined (__stub_dbopen) || defined (__stub___dbopen)
11157 if { (eval echo configure:11135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11159 eval "ac_cv_func_dbopen=yes"
11161 echo "configure: failed program was:" >&5
11162 cat conftest.$ac_ext >&5
11164 eval "ac_cv_func_dbopen=no"
11169 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
11170 echo "$ac_t""yes" 1>&6
11173 echo "$ac_t""no" 1>&6
11175 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
11176 echo "configure:11154: checking for dbopen in -ldb1" >&5
11177 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
11178 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11179 echo $ac_n "(cached) $ac_c" 1>&6
11181 ac_save_LIBS="$LIBS"
11183 cat > conftest.$ac_ext <<EOF
11184 #line 11162 "configure"
11185 #include "confdefs.h"
11186 /* Override any gcc2 internal prototype to avoid an error. */
11187 /* We use char because int might match the return type of a gcc2
11188 builtin and then its argument prototype would still apply. */
11195 if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11197 eval "ac_cv_lib_$ac_lib_var=yes"
11199 echo "configure: failed program was:" >&5
11200 cat conftest.$ac_ext >&5
11202 eval "ac_cv_lib_$ac_lib_var=no"
11205 LIBS="$ac_save_LIBS"
11208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11209 echo "$ac_t""yes" 1>&6
11212 echo "$ac_t""no" 1>&6
11214 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
11215 echo "configure:11193: checking for dbopen in -ldb" >&5
11216 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
11217 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11218 echo $ac_n "(cached) $ac_c" 1>&6
11220 ac_save_LIBS="$LIBS"
11222 cat > conftest.$ac_ext <<EOF
11223 #line 11201 "configure"
11224 #include "confdefs.h"
11225 /* Override any gcc2 internal prototype to avoid an error. */
11226 /* We use char because int might match the return type of a gcc2
11227 builtin and then its argument prototype would still apply. */
11234 if { (eval echo configure:11212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11236 eval "ac_cv_lib_$ac_lib_var=yes"
11238 echo "configure: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11241 eval "ac_cv_lib_$ac_lib_var=no"
11244 LIBS="$ac_save_LIBS"
11247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11248 echo "$ac_t""yes" 1>&6
11251 echo "$ac_t""no" 1>&6
11265 echo "$ac_t""$ol_cv_lib_db" 1>&6
11268 for ac_hdr in db_185.h
11270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11272 echo "configure:11250: checking for $ac_hdr" >&5
11273 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11274 echo $ac_n "(cached) $ac_c" 1>&6
11276 cat > conftest.$ac_ext <<EOF
11277 #line 11255 "configure"
11278 #include "confdefs.h"
11281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11282 { (eval echo configure:11260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11284 if test -z "$ac_err"; then
11286 eval "ac_cv_header_$ac_safe=yes"
11289 echo "configure: failed program was:" >&5
11290 cat conftest.$ac_ext >&5
11292 eval "ac_cv_header_$ac_safe=no"
11296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11297 echo "$ac_t""yes" 1>&6
11298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11299 cat >> confdefs.h <<EOF
11300 #define $ac_tr_hdr 1
11304 echo "$ac_t""no" 1>&6
11308 if test "$ol_cv_header_db2" = yes ; then
11310 ol_cv_header_db=$ac_cv_header_db_185_h
11312 ol_cv_header_db=$ac_cv_header_db_h
11317 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
11318 echo "configure:11296: checking for Berkeley DB" >&5
11319 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
11320 echo $ac_n "(cached) $ac_c" 1>&6
11323 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
11324 ol_cv_berkeley_db=no
11326 ol_cv_berkeley_db=yes
11331 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
11332 if test $ol_cv_berkeley_db = yes ; then
11333 cat >> confdefs.h <<\EOF
11334 #define HAVE_BERKELEY_DB 1
11340 if test $ol_cv_berkeley_db = yes ; then
11342 ol_with_ldbm_api=db
11344 if test $ol_with_ldbm_type = hash ; then
11345 cat >> confdefs.h <<\EOF
11346 #define LDBM_USE_DBHASH 1
11350 cat >> confdefs.h <<\EOF
11351 #define LDBM_USE_DBBTREE 1
11356 if test $ol_cv_lib_db != yes ; then
11357 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
11362 if test $ol_with_ldbm_api = manual ; then
11365 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
11367 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
11369 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11370 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11371 echo "configure:11349: checking for $ac_hdr" >&5
11372 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11373 echo $ac_n "(cached) $ac_c" 1>&6
11375 cat > conftest.$ac_ext <<EOF
11376 #line 11354 "configure"
11377 #include "confdefs.h"
11380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11381 { (eval echo configure:11359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11383 if test -z "$ac_err"; then
11385 eval "ac_cv_header_$ac_safe=yes"
11388 echo "configure: failed program was:" >&5
11389 cat conftest.$ac_ext >&5
11391 eval "ac_cv_header_$ac_safe=no"
11395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11396 echo "$ac_t""yes" 1>&6
11397 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11398 cat >> confdefs.h <<EOF
11399 #define $ac_tr_hdr 1
11403 echo "$ac_t""no" 1>&6
11409 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
11410 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
11411 ol_with_ldbm_api=none
11414 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
11415 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
11416 echo "configure:11394: checking for MDBM library" >&5
11417 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
11418 echo $ac_n "(cached) $ac_c" 1>&6
11421 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
11422 echo "configure:11400: checking for mdbm_set_chain" >&5
11423 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
11424 echo $ac_n "(cached) $ac_c" 1>&6
11426 cat > conftest.$ac_ext <<EOF
11427 #line 11405 "configure"
11428 #include "confdefs.h"
11429 /* System header to define __stub macros and hopefully few prototypes,
11430 which can conflict with char mdbm_set_chain(); below. */
11431 #include <assert.h>
11432 /* Override any gcc2 internal prototype to avoid an error. */
11433 /* We use char because int might match the return type of a gcc2
11434 builtin and then its argument prototype would still apply. */
11435 char mdbm_set_chain();
11440 /* The GNU C library defines this for functions which it implements
11441 to always fail with ENOSYS. Some functions are actually named
11442 something starting with __ and the normal name is an alias. */
11443 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
11446 f = mdbm_set_chain;
11451 if { (eval echo configure:11429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11453 eval "ac_cv_func_mdbm_set_chain=yes"
11455 echo "configure: failed program was:" >&5
11456 cat conftest.$ac_ext >&5
11458 eval "ac_cv_func_mdbm_set_chain=no"
11463 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
11464 echo "$ac_t""yes" 1>&6
11467 echo "$ac_t""no" 1>&6
11469 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
11470 echo "configure:11448: checking for mdbm_set_chain in -lmdbm" >&5
11471 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
11472 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11473 echo $ac_n "(cached) $ac_c" 1>&6
11475 ac_save_LIBS="$LIBS"
11476 LIBS="-lmdbm $LIBS"
11477 cat > conftest.$ac_ext <<EOF
11478 #line 11456 "configure"
11479 #include "confdefs.h"
11480 /* Override any gcc2 internal prototype to avoid an error. */
11481 /* We use char because int might match the return type of a gcc2
11482 builtin and then its argument prototype would still apply. */
11483 char mdbm_set_chain();
11489 if { (eval echo configure:11467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11491 eval "ac_cv_lib_$ac_lib_var=yes"
11493 echo "configure: failed program was:" >&5
11494 cat conftest.$ac_ext >&5
11496 eval "ac_cv_lib_$ac_lib_var=no"
11499 LIBS="$ac_save_LIBS"
11502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11503 echo "$ac_t""yes" 1>&6
11504 ol_cv_lib_mdbm=-lmdbm
11506 echo "$ac_t""no" 1>&6
11517 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
11520 for ac_hdr in mdbm.h
11522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11524 echo "configure:11502: checking for $ac_hdr" >&5
11525 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11526 echo $ac_n "(cached) $ac_c" 1>&6
11528 cat > conftest.$ac_ext <<EOF
11529 #line 11507 "configure"
11530 #include "confdefs.h"
11533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11534 { (eval echo configure:11512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11536 if test -z "$ac_err"; then
11538 eval "ac_cv_header_$ac_safe=yes"
11541 echo "configure: failed program was:" >&5
11542 cat conftest.$ac_ext >&5
11544 eval "ac_cv_header_$ac_safe=no"
11548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11549 echo "$ac_t""yes" 1>&6
11550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11551 cat >> confdefs.h <<EOF
11552 #define $ac_tr_hdr 1
11556 echo "$ac_t""no" 1>&6
11560 echo $ac_n "checking for db""... $ac_c" 1>&6
11561 echo "configure:11539: checking for db" >&5
11562 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
11563 echo $ac_n "(cached) $ac_c" 1>&6
11566 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
11574 echo "$ac_t""$ol_cv_mdbm" 1>&6
11575 if test $ol_cv_mdbm = yes ; then
11576 cat >> confdefs.h <<\EOF
11577 #define HAVE_MDBM 1
11583 if test $ol_cv_mdbm = yes ; then
11585 ol_with_ldbm_api=mdbm
11586 if test $ol_cv_lib_mdbm != yes ; then
11587 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
11592 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
11593 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
11594 echo "configure:11572: checking for GDBM library" >&5
11595 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
11596 echo $ac_n "(cached) $ac_c" 1>&6
11599 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
11600 echo "configure:11578: checking for gdbm_open" >&5
11601 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
11602 echo $ac_n "(cached) $ac_c" 1>&6
11604 cat > conftest.$ac_ext <<EOF
11605 #line 11583 "configure"
11606 #include "confdefs.h"
11607 /* System header to define __stub macros and hopefully few prototypes,
11608 which can conflict with char gdbm_open(); below. */
11609 #include <assert.h>
11610 /* Override any gcc2 internal prototype to avoid an error. */
11611 /* We use char because int might match the return type of a gcc2
11612 builtin and then its argument prototype would still apply. */
11618 /* The GNU C library defines this for functions which it implements
11619 to always fail with ENOSYS. Some functions are actually named
11620 something starting with __ and the normal name is an alias. */
11621 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
11629 if { (eval echo configure:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11631 eval "ac_cv_func_gdbm_open=yes"
11633 echo "configure: failed program was:" >&5
11634 cat conftest.$ac_ext >&5
11636 eval "ac_cv_func_gdbm_open=no"
11641 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
11642 echo "$ac_t""yes" 1>&6
11645 echo "$ac_t""no" 1>&6
11647 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
11648 echo "configure:11626: checking for gdbm_open in -lgdbm" >&5
11649 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
11650 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11651 echo $ac_n "(cached) $ac_c" 1>&6
11653 ac_save_LIBS="$LIBS"
11654 LIBS="-lgdbm $LIBS"
11655 cat > conftest.$ac_ext <<EOF
11656 #line 11634 "configure"
11657 #include "confdefs.h"
11658 /* Override any gcc2 internal prototype to avoid an error. */
11659 /* We use char because int might match the return type of a gcc2
11660 builtin and then its argument prototype would still apply. */
11667 if { (eval echo configure:11645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11669 eval "ac_cv_lib_$ac_lib_var=yes"
11671 echo "configure: failed program was:" >&5
11672 cat conftest.$ac_ext >&5
11674 eval "ac_cv_lib_$ac_lib_var=no"
11677 LIBS="$ac_save_LIBS"
11680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11681 echo "$ac_t""yes" 1>&6
11682 ol_cv_lib_gdbm=-lgdbm
11684 echo "$ac_t""no" 1>&6
11695 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
11698 for ac_hdr in gdbm.h
11700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11702 echo "configure:11680: checking for $ac_hdr" >&5
11703 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11704 echo $ac_n "(cached) $ac_c" 1>&6
11706 cat > conftest.$ac_ext <<EOF
11707 #line 11685 "configure"
11708 #include "confdefs.h"
11711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11712 { (eval echo configure:11690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11714 if test -z "$ac_err"; then
11716 eval "ac_cv_header_$ac_safe=yes"
11719 echo "configure: failed program was:" >&5
11720 cat conftest.$ac_ext >&5
11722 eval "ac_cv_header_$ac_safe=no"
11726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11727 echo "$ac_t""yes" 1>&6
11728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11729 cat >> confdefs.h <<EOF
11730 #define $ac_tr_hdr 1
11734 echo "$ac_t""no" 1>&6
11738 echo $ac_n "checking for db""... $ac_c" 1>&6
11739 echo "configure:11717: checking for db" >&5
11740 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
11741 echo $ac_n "(cached) $ac_c" 1>&6
11744 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
11752 echo "$ac_t""$ol_cv_gdbm" 1>&6
11753 if test $ol_cv_gdbm = yes ; then
11754 cat >> confdefs.h <<\EOF
11755 #define HAVE_GDBM 1
11761 if test $ol_cv_gdbm = yes ; then
11763 ol_with_ldbm_api=gdbm
11765 if test $ol_cv_lib_gdbm != yes ; then
11766 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
11771 if test $ol_with_ldbm_api = auto ; then
11772 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
11773 elif test $ol_with_ldbm_api = ndbm ; then
11774 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
11775 echo "configure:11753: checking for NDBM library" >&5
11776 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
11777 echo $ac_n "(cached) $ac_c" 1>&6
11780 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11781 echo "configure:11759: checking for dbm_open" >&5
11782 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
11783 echo $ac_n "(cached) $ac_c" 1>&6
11785 cat > conftest.$ac_ext <<EOF
11786 #line 11764 "configure"
11787 #include "confdefs.h"
11788 /* System header to define __stub macros and hopefully few prototypes,
11789 which can conflict with char dbm_open(); below. */
11790 #include <assert.h>
11791 /* Override any gcc2 internal prototype to avoid an error. */
11792 /* We use char because int might match the return type of a gcc2
11793 builtin and then its argument prototype would still apply. */
11799 /* The GNU C library defines this for functions which it implements
11800 to always fail with ENOSYS. Some functions are actually named
11801 something starting with __ and the normal name is an alias. */
11802 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11810 if { (eval echo configure:11788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11812 eval "ac_cv_func_dbm_open=yes"
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11817 eval "ac_cv_func_dbm_open=no"
11822 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11823 echo "$ac_t""yes" 1>&6
11826 echo "$ac_t""no" 1>&6
11828 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
11829 echo "configure:11807: checking for dbm_open in -lndbm" >&5
11830 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11831 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11832 echo $ac_n "(cached) $ac_c" 1>&6
11834 ac_save_LIBS="$LIBS"
11835 LIBS="-lndbm $LIBS"
11836 cat > conftest.$ac_ext <<EOF
11837 #line 11815 "configure"
11838 #include "confdefs.h"
11839 /* Override any gcc2 internal prototype to avoid an error. */
11840 /* We use char because int might match the return type of a gcc2
11841 builtin and then its argument prototype would still apply. */
11848 if { (eval echo configure:11826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11850 eval "ac_cv_lib_$ac_lib_var=yes"
11852 echo "configure: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11855 eval "ac_cv_lib_$ac_lib_var=no"
11858 LIBS="$ac_save_LIBS"
11861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11862 echo "$ac_t""yes" 1>&6
11863 ol_cv_lib_ndbm=-lndbm
11865 echo "$ac_t""no" 1>&6
11867 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11868 echo "configure:11846: checking for dbm_open in -ldbm" >&5
11869 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11870 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11871 echo $ac_n "(cached) $ac_c" 1>&6
11873 ac_save_LIBS="$LIBS"
11875 cat > conftest.$ac_ext <<EOF
11876 #line 11854 "configure"
11877 #include "confdefs.h"
11878 /* Override any gcc2 internal prototype to avoid an error. */
11879 /* We use char because int might match the return type of a gcc2
11880 builtin and then its argument prototype would still apply. */
11887 if { (eval echo configure:11865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11889 eval "ac_cv_lib_$ac_lib_var=yes"
11891 echo "configure: failed program was:" >&5
11892 cat conftest.$ac_ext >&5
11894 eval "ac_cv_lib_$ac_lib_var=no"
11897 LIBS="$ac_save_LIBS"
11900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11901 echo "$ac_t""yes" 1>&6
11902 ol_cv_lib_ndbm=-ldbm
11904 echo "$ac_t""no" 1>&6
11917 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
11920 for ac_hdr in ndbm.h
11922 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11924 echo "configure:11902: checking for $ac_hdr" >&5
11925 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11926 echo $ac_n "(cached) $ac_c" 1>&6
11928 cat > conftest.$ac_ext <<EOF
11929 #line 11907 "configure"
11930 #include "confdefs.h"
11933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11934 { (eval echo configure:11912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11936 if test -z "$ac_err"; then
11938 eval "ac_cv_header_$ac_safe=yes"
11941 echo "configure: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11944 eval "ac_cv_header_$ac_safe=no"
11948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11949 echo "$ac_t""yes" 1>&6
11950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11951 cat >> confdefs.h <<EOF
11952 #define $ac_tr_hdr 1
11956 echo "$ac_t""no" 1>&6
11960 echo $ac_n "checking for db""... $ac_c" 1>&6
11961 echo "configure:11939: checking for db" >&5
11962 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
11963 echo $ac_n "(cached) $ac_c" 1>&6
11966 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
11974 echo "$ac_t""$ol_cv_ndbm" 1>&6
11975 if test $ol_cv_ndbm = yes ; then
11976 cat >> confdefs.h <<\EOF
11977 #define HAVE_NDBM 1
11983 if test $ol_cv_ndbm = yes ; then
11985 ol_with_ldbm_api=ndbm
11987 if test $ol_cv_lib_ndbm != yes ; then
11988 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
11993 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
11994 echo "configure: warning: could not find suitable LDBM backend" 1>&2
11995 if test $ol_enable_ldbm = yes ; then
11996 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
11999 echo "configure: warning: disabling LDBM" 1>&2
12003 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12004 LINK_BINS_DYNAMIC="yes"
12006 LINK_BINS_DYNAMIC="no"
12009 if test $ol_enable_wrappers != no ; then
12010 for ac_hdr in tcpd.h
12012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12014 echo "configure:11992: checking for $ac_hdr" >&5
12015 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12016 echo $ac_n "(cached) $ac_c" 1>&6
12018 cat > conftest.$ac_ext <<EOF
12019 #line 11997 "configure"
12020 #include "confdefs.h"
12023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12024 { (eval echo configure:12002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12026 if test -z "$ac_err"; then
12028 eval "ac_cv_header_$ac_safe=yes"
12031 echo "configure: failed program was:" >&5
12032 cat conftest.$ac_ext >&5
12034 eval "ac_cv_header_$ac_safe=no"
12038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12039 echo "$ac_t""yes" 1>&6
12040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12041 cat >> confdefs.h <<EOF
12042 #define $ac_tr_hdr 1
12046 echo "$ac_t""no" 1>&6
12051 if test $ac_cv_header_tcpd_h != yes ; then
12054 cat > conftest.$ac_ext <<EOF
12055 #line 12033 "configure"
12056 #include "confdefs.h"
12058 int allow_severity = 0;
12059 int deny_severity = 0;
12065 if { (eval echo configure:12043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12069 echo "configure: failed program was:" >&5
12070 cat conftest.$ac_ext >&5
12077 if test $have_wrappers = yes ; then
12078 cat >> confdefs.h <<\EOF
12079 #define HAVE_TCPD 1
12084 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12085 echo "configure:12063: checking for main in -lnsl" >&5
12086 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12087 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12088 echo $ac_n "(cached) $ac_c" 1>&6
12090 ac_save_LIBS="$LIBS"
12092 cat > conftest.$ac_ext <<EOF
12093 #line 12071 "configure"
12094 #include "confdefs.h"
12100 if { (eval echo configure:12078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12102 eval "ac_cv_lib_$ac_lib_var=yes"
12104 echo "configure: failed program was:" >&5
12105 cat conftest.$ac_ext >&5
12107 eval "ac_cv_lib_$ac_lib_var=no"
12110 LIBS="$ac_save_LIBS"
12113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12114 echo "$ac_t""yes" 1>&6
12115 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12116 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12117 cat >> confdefs.h <<EOF
12118 #define $ac_tr_lib 1
12124 echo "$ac_t""no" 1>&6
12128 echo "configure: warning: could not find -lwrap" 1>&2
12129 if test $ol_enable_wrappers = yes ; then
12130 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12133 echo "configure: warning: disabling wrappers support" 1>&2
12134 ol_enable_wrappers=no
12139 if test $ol_enable_syslog != no ; then
12140 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12141 echo "configure:12119: checking for openlog" >&5
12142 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12143 echo $ac_n "(cached) $ac_c" 1>&6
12145 cat > conftest.$ac_ext <<EOF
12146 #line 12124 "configure"
12147 #include "confdefs.h"
12148 /* System header to define __stub macros and hopefully few prototypes,
12149 which can conflict with char openlog(); below. */
12150 #include <assert.h>
12151 /* Override any gcc2 internal prototype to avoid an error. */
12152 /* We use char because int might match the return type of a gcc2
12153 builtin and then its argument prototype would still apply. */
12159 /* The GNU C library defines this for functions which it implements
12160 to always fail with ENOSYS. Some functions are actually named
12161 something starting with __ and the normal name is an alias. */
12162 #if defined (__stub_openlog) || defined (__stub___openlog)
12170 if { (eval echo configure:12148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12172 eval "ac_cv_func_openlog=yes"
12174 echo "configure: failed program was:" >&5
12175 cat conftest.$ac_ext >&5
12177 eval "ac_cv_func_openlog=no"
12182 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
12183 echo "$ac_t""yes" 1>&6
12186 echo "$ac_t""no" 1>&6
12189 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
12190 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
12192 ol_enable_syslog=$ac_cv_func_openlog
12195 if test $ol_enable_dmalloc != no ; then
12196 for ac_hdr in dmalloc.h
12198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12200 echo "configure:12178: checking for $ac_hdr" >&5
12201 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12202 echo $ac_n "(cached) $ac_c" 1>&6
12204 cat > conftest.$ac_ext <<EOF
12205 #line 12183 "configure"
12206 #include "confdefs.h"
12209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12210 { (eval echo configure:12188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12212 if test -z "$ac_err"; then
12214 eval "ac_cv_header_$ac_safe=yes"
12217 echo "configure: failed program was:" >&5
12218 cat conftest.$ac_ext >&5
12220 eval "ac_cv_header_$ac_safe=no"
12224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12225 echo "$ac_t""yes" 1>&6
12226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12227 cat >> confdefs.h <<EOF
12228 #define $ac_tr_hdr 1
12232 echo "$ac_t""no" 1>&6
12236 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
12237 echo "configure:12215: checking for dmalloc_shutdown in -ldmalloc" >&5
12238 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
12239 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12240 echo $ac_n "(cached) $ac_c" 1>&6
12242 ac_save_LIBS="$LIBS"
12243 LIBS="-ldmalloc $LIBS"
12244 cat > conftest.$ac_ext <<EOF
12245 #line 12223 "configure"
12246 #include "confdefs.h"
12247 /* Override any gcc2 internal prototype to avoid an error. */
12248 /* We use char because int might match the return type of a gcc2
12249 builtin and then its argument prototype would still apply. */
12250 char dmalloc_shutdown();
12256 if { (eval echo configure:12234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12258 eval "ac_cv_lib_$ac_lib_var=yes"
12260 echo "configure: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12263 eval "ac_cv_lib_$ac_lib_var=no"
12266 LIBS="$ac_save_LIBS"
12269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12270 echo "$ac_t""yes" 1>&6
12271 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12272 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12273 cat >> confdefs.h <<EOF
12274 #define $ac_tr_lib 1
12277 LIBS="-ldmalloc $LIBS"
12280 echo "$ac_t""no" 1>&6
12285 if test $ol_enable_tcl != no ; then
12286 for ac_hdr in tcl.h
12288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12290 echo "configure:12268: checking for $ac_hdr" >&5
12291 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12292 echo $ac_n "(cached) $ac_c" 1>&6
12294 cat > conftest.$ac_ext <<EOF
12295 #line 12273 "configure"
12296 #include "confdefs.h"
12299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12300 { (eval echo configure:12278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12302 if test -z "$ac_err"; then
12304 eval "ac_cv_header_$ac_safe=yes"
12307 echo "configure: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12310 eval "ac_cv_header_$ac_safe=no"
12314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12315 echo "$ac_t""yes" 1>&6
12316 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12317 cat >> confdefs.h <<EOF
12318 #define $ac_tr_hdr 1
12322 echo "$ac_t""no" 1>&6
12327 if test $ac_cv_header_tcl_h != yes ; then
12330 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
12331 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
12332 echo "configure:12310: checking for main in -l$lib" >&5
12333 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
12334 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12335 echo $ac_n "(cached) $ac_c" 1>&6
12337 ac_save_LIBS="$LIBS"
12338 LIBS="-l$lib $LIBS"
12339 cat > conftest.$ac_ext <<EOF
12340 #line 12318 "configure"
12341 #include "confdefs.h"
12347 if { (eval echo configure:12325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12349 eval "ac_cv_lib_$ac_lib_var=yes"
12351 echo "configure: failed program was:" >&5
12352 cat conftest.$ac_ext >&5
12354 eval "ac_cv_lib_$ac_lib_var=no"
12357 LIBS="$ac_save_LIBS"
12360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12361 echo "$ac_t""yes" 1>&6
12363 if test x"$ol_with_tcl_module" = "xstatic" ; then
12364 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
12366 MOD_TCL_LIB="-l${lib}"
12369 echo "$ac_t""no" 1>&6
12376 if test $have_tcl != yes ; then
12377 echo "configure: warning: could not find -ltcl" 1>&2
12378 if test $ol_enable_tcl = yes ; then
12379 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
12387 for ac_hdr in termcap.h ncurses.h
12389 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12390 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12391 echo "configure:12369: checking for $ac_hdr" >&5
12392 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12393 echo $ac_n "(cached) $ac_c" 1>&6
12395 cat > conftest.$ac_ext <<EOF
12396 #line 12374 "configure"
12397 #include "confdefs.h"
12400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12401 { (eval echo configure:12379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12403 if test -z "$ac_err"; then
12405 eval "ac_cv_header_$ac_safe=yes"
12408 echo "configure: failed program was:" >&5
12409 cat conftest.$ac_ext >&5
12411 eval "ac_cv_header_$ac_safe=no"
12415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12416 echo "$ac_t""yes" 1>&6
12417 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12418 cat >> confdefs.h <<EOF
12419 #define $ac_tr_hdr 1
12423 echo "$ac_t""no" 1>&6
12428 if test $ol_link_termcap = no ; then
12429 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
12430 echo "configure:12408: checking for tputs in -ltermcap" >&5
12431 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
12432 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12433 echo $ac_n "(cached) $ac_c" 1>&6
12435 ac_save_LIBS="$LIBS"
12436 LIBS="-ltermcap $LIBS"
12437 cat > conftest.$ac_ext <<EOF
12438 #line 12416 "configure"
12439 #include "confdefs.h"
12440 /* Override any gcc2 internal prototype to avoid an error. */
12441 /* We use char because int might match the return type of a gcc2
12442 builtin and then its argument prototype would still apply. */
12449 if { (eval echo configure:12427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12451 eval "ac_cv_lib_$ac_lib_var=yes"
12453 echo "configure: failed program was:" >&5
12454 cat conftest.$ac_ext >&5
12456 eval "ac_cv_lib_$ac_lib_var=no"
12459 LIBS="$ac_save_LIBS"
12462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12463 echo "$ac_t""yes" 1>&6
12466 echo "$ac_t""no" 1>&6
12470 if test $have_termcap = yes ; then
12471 cat >> confdefs.h <<\EOF
12472 #define HAVE_TERMCAP 1
12475 ol_link_termcap=yes
12476 TERMCAP_LIBS=-ltermcap
12480 if test $ol_link_termcap = no ; then
12481 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
12482 echo "configure:12460: checking for initscr in -lncurses" >&5
12483 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
12484 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12485 echo $ac_n "(cached) $ac_c" 1>&6
12487 ac_save_LIBS="$LIBS"
12488 LIBS="-lncurses $LIBS"
12489 cat > conftest.$ac_ext <<EOF
12490 #line 12468 "configure"
12491 #include "confdefs.h"
12492 /* Override any gcc2 internal prototype to avoid an error. */
12493 /* We use char because int might match the return type of a gcc2
12494 builtin and then its argument prototype would still apply. */
12501 if { (eval echo configure:12479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12503 eval "ac_cv_lib_$ac_lib_var=yes"
12505 echo "configure: failed program was:" >&5
12506 cat conftest.$ac_ext >&5
12508 eval "ac_cv_lib_$ac_lib_var=no"
12511 LIBS="$ac_save_LIBS"
12514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12515 echo "$ac_t""yes" 1>&6
12518 echo "$ac_t""no" 1>&6
12522 if test $have_ncurses = yes ; then
12523 cat >> confdefs.h <<\EOF
12524 #define HAVE_NCURSES 1
12527 ol_link_termcap=yes
12528 TERMCAP_LIBS=-lncurses
12532 if test $ol_link_termcap = no ; then
12533 cat >> confdefs.h <<\EOF
12534 #define NO_TERMCAP 1
12541 if test $ol_with_cyrus_sasl != no ; then
12542 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12543 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12544 echo "configure:12522: checking for sasl.h" >&5
12545 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12546 echo $ac_n "(cached) $ac_c" 1>&6
12548 cat > conftest.$ac_ext <<EOF
12549 #line 12527 "configure"
12550 #include "confdefs.h"
12553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12554 { (eval echo configure:12532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12556 if test -z "$ac_err"; then
12558 eval "ac_cv_header_$ac_safe=yes"
12561 echo "configure: failed program was:" >&5
12562 cat conftest.$ac_ext >&5
12564 eval "ac_cv_header_$ac_safe=no"
12568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12569 echo "$ac_t""yes" 1>&6
12572 echo "$ac_t""no" 1>&6
12576 if test $ac_cv_header_sasl_h = yes ; then
12577 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12578 echo "configure:12556: checking for sasl_client_init in -lsasl" >&5
12579 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
12580 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12581 echo $ac_n "(cached) $ac_c" 1>&6
12583 ac_save_LIBS="$LIBS"
12584 LIBS="-lsasl $LIBS"
12585 cat > conftest.$ac_ext <<EOF
12586 #line 12564 "configure"
12587 #include "confdefs.h"
12588 /* Override any gcc2 internal prototype to avoid an error. */
12589 /* We use char because int might match the return type of a gcc2
12590 builtin and then its argument prototype would still apply. */
12591 char sasl_client_init();
12597 if { (eval echo configure:12575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12599 eval "ac_cv_lib_$ac_lib_var=yes"
12601 echo "configure: failed program was:" >&5
12602 cat conftest.$ac_ext >&5
12604 eval "ac_cv_lib_$ac_lib_var=no"
12607 LIBS="$ac_save_LIBS"
12610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12611 echo "$ac_t""yes" 1>&6
12612 have_cyrus_sasl=yes
12614 echo "$ac_t""no" 1>&6
12619 if test $have_cyrus_sasl != no ; then
12621 cat >> confdefs.h <<\EOF
12622 #define HAVE_CYRUS_SASL 1
12629 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
12630 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
12634 if test $cross_compiling != yes ; then
12636 if test -r /dev/urandom ; then
12637 dev="/dev/urandom";
12638 elif test -r /idev/urandom ; then
12639 dev="/idev/urandom";
12640 elif test -r /dev/srandom ; then
12641 dev="/dev/srandom";
12642 elif test -r /dev/random ; then
12644 elif test -r /idev/random ; then
12645 dev="/idev/random";
12648 if test $dev != no ; then
12649 cat >> confdefs.h <<EOF
12650 #define URANDOM_DEVICE "$dev"
12657 if test $ol_with_fetch != no ; then
12659 LIBS="-lfetch -lcom_err $LIBS"
12660 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
12661 echo "configure:12639: checking fetch(3) library" >&5
12662 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
12663 echo $ac_n "(cached) $ac_c" 1>&6
12666 cat > conftest.$ac_ext <<EOF
12667 #line 12645 "configure"
12668 #include "confdefs.h"
12670 #include <sys/param.h>
12674 struct url *u = fetchParseURL("file:///");
12677 if { (eval echo configure:12655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12679 ol_cv_lib_fetch=yes
12681 echo "configure: failed program was:" >&5
12682 cat conftest.$ac_ext >&5
12689 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
12691 if test $ol_cv_lib_fetch != no ; then
12692 ol_link_fetch="-lfetch -lcom_err"
12693 cat >> confdefs.h <<\EOF
12694 #define HAVE_FETCH 1
12700 if test $ol_cv_lib_fetch != no ; then
12701 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
12702 ol_link_fetch=freebsd
12704 elif test $ol_with_fetch != auto ; then
12705 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
12709 ol_link_readline=no
12710 if test $ol_with_readline != no ; then
12711 for ac_hdr in readline/readline.h readline/history.h
12713 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12715 echo "configure:12693: checking for $ac_hdr" >&5
12716 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12717 echo $ac_n "(cached) $ac_c" 1>&6
12719 cat > conftest.$ac_ext <<EOF
12720 #line 12698 "configure"
12721 #include "confdefs.h"
12724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12725 { (eval echo configure:12703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12727 if test -z "$ac_err"; then
12729 eval "ac_cv_header_$ac_safe=yes"
12732 echo "configure: failed program was:" >&5
12733 cat conftest.$ac_ext >&5
12735 eval "ac_cv_header_$ac_safe=no"
12739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12740 echo "$ac_t""yes" 1>&6
12741 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12742 cat >> confdefs.h <<EOF
12743 #define $ac_tr_hdr 1
12747 echo "$ac_t""no" 1>&6
12752 if test $ac_cv_header_readline_readline_h = yes ; then
12754 LIBS="$TERMCAP_LIBS $LIBS"
12755 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
12756 echo "configure:12734: checking for readline in -lreadline" >&5
12757 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
12758 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12759 echo $ac_n "(cached) $ac_c" 1>&6
12761 ac_save_LIBS="$LIBS"
12762 LIBS="-lreadline $LIBS"
12763 cat > conftest.$ac_ext <<EOF
12764 #line 12742 "configure"
12765 #include "confdefs.h"
12766 /* Override any gcc2 internal prototype to avoid an error. */
12767 /* We use char because int might match the return type of a gcc2
12768 builtin and then its argument prototype would still apply. */
12775 if { (eval echo configure:12753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12777 eval "ac_cv_lib_$ac_lib_var=yes"
12779 echo "configure: failed program was:" >&5
12780 cat conftest.$ac_ext >&5
12782 eval "ac_cv_lib_$ac_lib_var=no"
12785 LIBS="$ac_save_LIBS"
12788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12789 echo "$ac_t""yes" 1>&6
12792 echo "$ac_t""no" 1>&6
12798 if test $have_readline = yes ; then
12799 ol_with_readline=found
12800 ol_link_readline=yes
12802 READLINE_LIBS="-lreadline"
12807 if test $ol_link_readline = yes ; then
12808 cat >> confdefs.h <<\EOF
12809 #define HAVE_READLINE 1
12815 if test $ol_enable_crypt != no ; then
12816 echo $ac_n "checking for crypt""... $ac_c" 1>&6
12817 echo "configure:12795: checking for crypt" >&5
12818 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
12819 echo $ac_n "(cached) $ac_c" 1>&6
12821 cat > conftest.$ac_ext <<EOF
12822 #line 12800 "configure"
12823 #include "confdefs.h"
12824 /* System header to define __stub macros and hopefully few prototypes,
12825 which can conflict with char crypt(); below. */
12826 #include <assert.h>
12827 /* Override any gcc2 internal prototype to avoid an error. */
12828 /* We use char because int might match the return type of a gcc2
12829 builtin and then its argument prototype would still apply. */
12835 /* The GNU C library defines this for functions which it implements
12836 to always fail with ENOSYS. Some functions are actually named
12837 something starting with __ and the normal name is an alias. */
12838 #if defined (__stub_crypt) || defined (__stub___crypt)
12846 if { (eval echo configure:12824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12848 eval "ac_cv_func_crypt=yes"
12850 echo "configure: failed program was:" >&5
12851 cat conftest.$ac_ext >&5
12853 eval "ac_cv_func_crypt=no"
12858 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
12859 echo "$ac_t""yes" 1>&6
12862 echo "$ac_t""no" 1>&6
12864 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12865 echo "configure:12843: checking for crypt in -lcrypt" >&5
12866 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
12867 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12868 echo $ac_n "(cached) $ac_c" 1>&6
12870 ac_save_LIBS="$LIBS"
12871 LIBS="-lcrypt $LIBS"
12872 cat > conftest.$ac_ext <<EOF
12873 #line 12851 "configure"
12874 #include "confdefs.h"
12875 /* Override any gcc2 internal prototype to avoid an error. */
12876 /* We use char because int might match the return type of a gcc2
12877 builtin and then its argument prototype would still apply. */
12884 if { (eval echo configure:12862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12886 eval "ac_cv_lib_$ac_lib_var=yes"
12888 echo "configure: failed program was:" >&5
12889 cat conftest.$ac_ext >&5
12891 eval "ac_cv_lib_$ac_lib_var=no"
12894 LIBS="$ac_save_LIBS"
12897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12898 echo "$ac_t""yes" 1>&6
12899 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
12902 echo "$ac_t""no" 1>&6
12909 if test $have_crypt = yes ; then
12910 cat >> confdefs.h <<\EOF
12911 #define HAVE_CRYPT 1
12915 echo "configure: warning: could not find crypt" 1>&2
12916 if test $ol_enable_crypt = yes ; then
12917 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
12920 echo "configure: warning: disabling crypt support" 1>&2
12925 if test $ol_enable_proctitle != no ; then
12926 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
12927 echo "configure:12905: checking for setproctitle" >&5
12928 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
12929 echo $ac_n "(cached) $ac_c" 1>&6
12931 cat > conftest.$ac_ext <<EOF
12932 #line 12910 "configure"
12933 #include "confdefs.h"
12934 /* System header to define __stub macros and hopefully few prototypes,
12935 which can conflict with char setproctitle(); below. */
12936 #include <assert.h>
12937 /* Override any gcc2 internal prototype to avoid an error. */
12938 /* We use char because int might match the return type of a gcc2
12939 builtin and then its argument prototype would still apply. */
12940 char setproctitle();
12945 /* The GNU C library defines this for functions which it implements
12946 to always fail with ENOSYS. Some functions are actually named
12947 something starting with __ and the normal name is an alias. */
12948 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
12956 if { (eval echo configure:12934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12958 eval "ac_cv_func_setproctitle=yes"
12960 echo "configure: failed program was:" >&5
12961 cat conftest.$ac_ext >&5
12963 eval "ac_cv_func_setproctitle=no"
12968 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
12969 echo "$ac_t""yes" 1>&6
12970 have_setproctitle=yes
12972 echo "$ac_t""no" 1>&6
12974 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
12975 echo "configure:12953: checking for setproctitle in -lutil" >&5
12976 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
12977 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12978 echo $ac_n "(cached) $ac_c" 1>&6
12980 ac_save_LIBS="$LIBS"
12981 LIBS="-lutil $LIBS"
12982 cat > conftest.$ac_ext <<EOF
12983 #line 12961 "configure"
12984 #include "confdefs.h"
12985 /* Override any gcc2 internal prototype to avoid an error. */
12986 /* We use char because int might match the return type of a gcc2
12987 builtin and then its argument prototype would still apply. */
12988 char setproctitle();
12994 if { (eval echo configure:12972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12996 eval "ac_cv_lib_$ac_lib_var=yes"
12998 echo "configure: failed program was:" >&5
12999 cat conftest.$ac_ext >&5
13001 eval "ac_cv_lib_$ac_lib_var=no"
13004 LIBS="$ac_save_LIBS"
13007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13008 echo "$ac_t""yes" 1>&6
13009 have_setproctitle=yes
13010 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13012 echo "$ac_t""no" 1>&6
13013 have_setproctitle=no
13014 LIBOBJS="$LIBOBJS setproctitle.o"
13015 LIBSRCS="$LIBSRCS setproctitle.c"
13021 if test $have_setproctitle = yes ; then
13022 cat >> confdefs.h <<\EOF
13023 #define HAVE_SETPROCTITLE 1
13029 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13030 echo "configure:13008: checking for ANSI C header files" >&5
13031 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13032 echo $ac_n "(cached) $ac_c" 1>&6
13034 cat > conftest.$ac_ext <<EOF
13035 #line 13013 "configure"
13036 #include "confdefs.h"
13037 #include <stdlib.h>
13038 #include <stdarg.h>
13039 #include <string.h>
13042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13043 { (eval echo configure:13021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13045 if test -z "$ac_err"; then
13047 ac_cv_header_stdc=yes
13050 echo "configure: failed program was:" >&5
13051 cat conftest.$ac_ext >&5
13053 ac_cv_header_stdc=no
13057 if test $ac_cv_header_stdc = yes; then
13058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13059 cat > conftest.$ac_ext <<EOF
13060 #line 13038 "configure"
13061 #include "confdefs.h"
13062 #include <string.h>
13064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13065 egrep "memchr" >/dev/null 2>&1; then
13069 ac_cv_header_stdc=no
13075 if test $ac_cv_header_stdc = yes; then
13076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13077 cat > conftest.$ac_ext <<EOF
13078 #line 13056 "configure"
13079 #include "confdefs.h"
13080 #include <stdlib.h>
13082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13083 egrep "free" >/dev/null 2>&1; then
13087 ac_cv_header_stdc=no
13093 if test $ac_cv_header_stdc = yes; then
13094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13095 if test "$cross_compiling" = yes; then
13098 cat > conftest.$ac_ext <<EOF
13099 #line 13077 "configure"
13100 #include "confdefs.h"
13102 #if ((' ' & 0x0FF) == 0x020)
13103 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13104 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13106 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13107 || ('j' <= (c) && (c) <= 'r') \
13108 || ('s' <= (c) && (c) <= 'z'))
13109 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13112 int main () { int i; for (i = 0; i < 256; i++)
13113 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13117 if { (eval echo configure:13095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13121 echo "configure: failed program was:" >&5
13122 cat conftest.$ac_ext >&5
13124 ac_cv_header_stdc=no
13132 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13133 if test $ac_cv_header_stdc = yes; then
13134 cat >> confdefs.h <<\EOF
13135 #define STDC_HEADERS 1
13140 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13141 echo "configure:13119: checking for mode_t" >&5
13142 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13143 echo $ac_n "(cached) $ac_c" 1>&6
13145 cat > conftest.$ac_ext <<EOF
13146 #line 13124 "configure"
13147 #include "confdefs.h"
13148 #include <sys/types.h>
13150 #include <stdlib.h>
13151 #include <stddef.h>
13155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13156 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13158 eval "ac_cv_type_mode_t=yes"
13161 eval "ac_cv_type_mode_t=no"
13166 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13167 echo "$ac_t""yes" 1>&6
13169 echo "$ac_t""no" 1>&6
13170 cat >> confdefs.h <<EOF
13176 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13177 echo "configure:13155: checking for off_t" >&5
13178 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13179 echo $ac_n "(cached) $ac_c" 1>&6
13181 cat > conftest.$ac_ext <<EOF
13182 #line 13160 "configure"
13183 #include "confdefs.h"
13184 #include <sys/types.h>
13186 #include <stdlib.h>
13187 #include <stddef.h>
13191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13192 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13194 eval "ac_cv_type_off_t=yes"
13197 eval "ac_cv_type_off_t=no"
13202 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
13203 echo "$ac_t""yes" 1>&6
13205 echo "$ac_t""no" 1>&6
13206 cat >> confdefs.h <<EOF
13212 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13213 echo "configure:13191: checking for pid_t" >&5
13214 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
13215 echo $ac_n "(cached) $ac_c" 1>&6
13217 cat > conftest.$ac_ext <<EOF
13218 #line 13196 "configure"
13219 #include "confdefs.h"
13220 #include <sys/types.h>
13222 #include <stdlib.h>
13223 #include <stddef.h>
13227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13228 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13230 eval "ac_cv_type_pid_t=yes"
13233 eval "ac_cv_type_pid_t=no"
13238 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
13239 echo "$ac_t""yes" 1>&6
13241 echo "$ac_t""no" 1>&6
13242 cat >> confdefs.h <<EOF
13248 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13249 echo "configure:13227: checking for ptrdiff_t" >&5
13250 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
13251 echo $ac_n "(cached) $ac_c" 1>&6
13253 cat > conftest.$ac_ext <<EOF
13254 #line 13232 "configure"
13255 #include "confdefs.h"
13256 #include <stddef.h>
13261 if { (eval echo configure:13239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13263 am_cv_type_ptrdiff_t=yes
13265 echo "configure: failed program was:" >&5
13266 cat conftest.$ac_ext >&5
13268 am_cv_type_ptrdiff_t=no
13273 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
13274 if test $am_cv_type_ptrdiff_t = yes; then
13275 cat >> confdefs.h <<\EOF
13276 #define HAVE_PTRDIFF_T 1
13281 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
13282 echo "configure:13260: checking return type of signal handlers" >&5
13283 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
13284 echo $ac_n "(cached) $ac_c" 1>&6
13286 cat > conftest.$ac_ext <<EOF
13287 #line 13265 "configure"
13288 #include "confdefs.h"
13289 #include <sys/types.h>
13290 #include <signal.h>
13295 extern "C" void (*signal (int, void (*)(int)))(int);
13297 void (*signal ()) ();
13304 if { (eval echo configure:13282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13306 ac_cv_type_signal=void
13308 echo "configure: failed program was:" >&5
13309 cat conftest.$ac_ext >&5
13311 ac_cv_type_signal=int
13316 echo "$ac_t""$ac_cv_type_signal" 1>&6
13317 cat >> confdefs.h <<EOF
13318 #define RETSIGTYPE $ac_cv_type_signal
13322 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13323 echo "configure:13301: checking for size_t" >&5
13324 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
13325 echo $ac_n "(cached) $ac_c" 1>&6
13327 cat > conftest.$ac_ext <<EOF
13328 #line 13306 "configure"
13329 #include "confdefs.h"
13330 #include <sys/types.h>
13332 #include <stdlib.h>
13333 #include <stddef.h>
13337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13338 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13340 eval "ac_cv_type_size_t=yes"
13343 eval "ac_cv_type_size_t=no"
13348 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
13349 echo "$ac_t""yes" 1>&6
13351 echo "$ac_t""no" 1>&6
13352 cat >> confdefs.h <<EOF
13353 #define size_t unsigned
13359 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
13360 echo "configure:13338: checking for ssize_t" >&5
13361 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
13362 echo $ac_n "(cached) $ac_c" 1>&6
13364 cat > conftest.$ac_ext <<EOF
13365 #line 13343 "configure"
13366 #include "confdefs.h"
13367 #include <sys/types.h>
13369 #include <stdlib.h>
13370 #include <stddef.h>
13374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13375 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13377 eval "ac_cv_type_ssize_t=yes"
13380 eval "ac_cv_type_ssize_t=no"
13385 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
13386 echo "$ac_t""yes" 1>&6
13388 echo "$ac_t""no" 1>&6
13389 cat >> confdefs.h <<EOF
13390 #define ssize_t signed int
13395 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
13396 echo "configure:13374: checking for caddr_t" >&5
13397 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
13398 echo $ac_n "(cached) $ac_c" 1>&6
13400 cat > conftest.$ac_ext <<EOF
13401 #line 13379 "configure"
13402 #include "confdefs.h"
13403 #include <sys/types.h>
13405 #include <stdlib.h>
13406 #include <stddef.h>
13410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13411 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13413 eval "ac_cv_type_caddr_t=yes"
13416 eval "ac_cv_type_caddr_t=no"
13421 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
13422 echo "$ac_t""yes" 1>&6
13424 echo "$ac_t""no" 1>&6
13425 cat >> confdefs.h <<EOF
13426 #define caddr_t char *
13432 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
13433 echo "configure:13411: checking for socklen_t" >&5
13434 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
13435 echo $ac_n "(cached) $ac_c" 1>&6
13437 cat > conftest.$ac_ext <<EOF
13438 #line 13416 "configure"
13439 #include "confdefs.h"
13441 #ifdef HAVE_SYS_TYPES_H
13442 #include <sys/types.h>
13444 #ifdef HAVE_SYS_SOCKET_H
13445 #include <sys/socket.h>
13452 if { (eval echo configure:13430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13454 ol_cv_type_socklen_t=yes
13456 echo "configure: failed program was:" >&5
13457 cat conftest.$ac_ext >&5
13459 ol_cv_type_socklen_t=no
13464 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
13465 if test $ol_cv_type_socklen_t = no; then
13466 cat >> confdefs.h <<\EOF
13467 #define socklen_t int
13472 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
13473 echo "configure:13451: checking for member st_blksize in aggregate type struct stat" >&5
13474 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
13475 echo $ac_n "(cached) $ac_c" 1>&6
13477 cat > conftest.$ac_ext <<EOF
13478 #line 13456 "configure"
13479 #include "confdefs.h"
13480 #include <sys/types.h>
13481 #include <sys/stat.h>
13483 struct stat foo; foo.st_blksize;
13486 if { (eval echo configure:13464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13488 ac_cv_c_struct_member_st_blksize=yes
13490 echo "configure: failed program was:" >&5
13491 cat conftest.$ac_ext >&5
13493 ac_cv_c_struct_member_st_blksize=no
13498 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
13499 st_blksize="$ac_cv_c_struct_member_st_blksize"
13500 if test $ac_cv_c_struct_member_st_blksize = yes; then
13501 cat >> confdefs.h <<\EOF
13502 #define HAVE_ST_BLKSIZE 1
13507 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13508 echo "configure:13486: checking whether time.h and sys/time.h may both be included" >&5
13509 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
13510 echo $ac_n "(cached) $ac_c" 1>&6
13512 cat > conftest.$ac_ext <<EOF
13513 #line 13491 "configure"
13514 #include "confdefs.h"
13515 #include <sys/types.h>
13516 #include <sys/time.h>
13522 if { (eval echo configure:13500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13524 ac_cv_header_time=yes
13526 echo "configure: failed program was:" >&5
13527 cat conftest.$ac_ext >&5
13529 ac_cv_header_time=no
13534 echo "$ac_t""$ac_cv_header_time" 1>&6
13535 if test $ac_cv_header_time = yes; then
13536 cat >> confdefs.h <<\EOF
13537 #define TIME_WITH_SYS_TIME 1
13542 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13543 echo "configure:13521: checking whether struct tm is in sys/time.h or time.h" >&5
13544 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
13545 echo $ac_n "(cached) $ac_c" 1>&6
13547 cat > conftest.$ac_ext <<EOF
13548 #line 13526 "configure"
13549 #include "confdefs.h"
13550 #include <sys/types.h>
13553 struct tm *tp; tp->tm_sec;
13556 if { (eval echo configure:13534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13558 ac_cv_struct_tm=time.h
13560 echo "configure: failed program was:" >&5
13561 cat conftest.$ac_ext >&5
13563 ac_cv_struct_tm=sys/time.h
13568 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13569 if test $ac_cv_struct_tm = sys/time.h; then
13570 cat >> confdefs.h <<\EOF
13571 #define TM_IN_SYS_TIME 1
13576 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13577 echo "configure:13555: checking for uid_t in sys/types.h" >&5
13578 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
13579 echo $ac_n "(cached) $ac_c" 1>&6
13581 cat > conftest.$ac_ext <<EOF
13582 #line 13560 "configure"
13583 #include "confdefs.h"
13584 #include <sys/types.h>
13586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13587 egrep "uid_t" >/dev/null 2>&1; then
13589 ac_cv_type_uid_t=yes
13592 ac_cv_type_uid_t=no
13598 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13599 if test $ac_cv_type_uid_t = no; then
13600 cat >> confdefs.h <<\EOF
13604 cat >> confdefs.h <<\EOF
13610 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
13611 echo "configure:13589: checking for sig_atomic_t" >&5
13612 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
13613 echo $ac_n "(cached) $ac_c" 1>&6
13615 cat > conftest.$ac_ext <<EOF
13616 #line 13594 "configure"
13617 #include "confdefs.h"
13618 #include <signal.h>
13620 sig_atomic_t atomic;
13623 if { (eval echo configure:13601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13625 ol_cv_type_sig_atomic_t=yes
13627 echo "configure: failed program was:" >&5
13628 cat conftest.$ac_ext >&5
13630 ol_cv_type_sig_atomic_t=no
13635 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
13636 if test $ol_cv_type_sig_atomic_t = no; then
13637 cat >> confdefs.h <<\EOF
13638 #define sig_atomic_t int
13645 # test for pw_gecos in struct passwd
13646 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
13647 echo "configure:13625: checking struct passwd for pw_gecos" >&5
13648 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
13649 echo $ac_n "(cached) $ac_c" 1>&6
13652 cat > conftest.$ac_ext <<EOF
13653 #line 13631 "configure"
13654 #include "confdefs.h"
13659 pwd.pw_gecos = pwd.pw_name;
13663 if { (eval echo configure:13641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13665 ol_cv_struct_passwd_pw_gecos=yes
13667 echo "configure: failed program was:" >&5
13668 cat conftest.$ac_ext >&5
13670 ol_cv_struct_passwd_pw_gecos=no
13675 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
13676 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
13677 cat >> confdefs.h <<\EOF
13678 #define HAVE_PW_GECOS 1
13683 # test for pw_passwd in struct passwd
13684 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
13685 echo "configure:13663: checking struct passwd for pw_passwd" >&5
13686 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
13687 echo $ac_n "(cached) $ac_c" 1>&6
13690 cat > conftest.$ac_ext <<EOF
13691 #line 13669 "configure"
13692 #include "confdefs.h"
13697 pwd.pw_passwd = pwd.pw_name;
13701 if { (eval echo configure:13679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13703 ol_cv_struct_passwd_pw_passwd=yes
13705 echo "configure: failed program was:" >&5
13706 cat conftest.$ac_ext >&5
13708 ol_cv_struct_passwd_pw_passwd=no
13713 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
13714 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
13715 cat >> confdefs.h <<\EOF
13716 #define HAVE_PW_PASSWD 1
13722 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
13723 echo "configure:13701: checking if toupper() requires islower()" >&5
13724 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
13725 echo $ac_n "(cached) $ac_c" 1>&6
13728 if test "$cross_compiling" = yes; then
13729 ol_cv_c_upper_lower=safe
13731 cat > conftest.$ac_ext <<EOF
13732 #line 13710 "configure"
13733 #include "confdefs.h"
13738 if ('C' == toupper('C'))
13744 if { (eval echo configure:13722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13746 ol_cv_c_upper_lower=no
13748 echo "configure: failed program was:" >&5
13749 cat conftest.$ac_ext >&5
13751 ol_cv_c_upper_lower=yes
13758 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
13759 if test $ol_cv_c_upper_lower != no ; then
13760 cat >> confdefs.h <<\EOF
13761 #define C_UPPER_LOWER 1
13766 echo $ac_n "checking for working const""... $ac_c" 1>&6
13767 echo "configure:13745: checking for working const" >&5
13768 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
13769 echo $ac_n "(cached) $ac_c" 1>&6
13771 cat > conftest.$ac_ext <<EOF
13772 #line 13750 "configure"
13773 #include "confdefs.h"
13777 /* Ultrix mips cc rejects this. */
13778 typedef int charset[2]; const charset x;
13779 /* SunOS 4.1.1 cc rejects this. */
13780 char const *const *ccp;
13782 /* NEC SVR4.0.2 mips cc rejects this. */
13783 struct point {int x, y;};
13784 static struct point const zero = {0,0};
13785 /* AIX XL C 1.02.0.0 rejects this.
13786 It does not let you subtract one const X* pointer from another in an arm
13787 of an if-expression whose if-part is not a constant expression */
13788 const char *g = "string";
13789 ccp = &g + (g ? g-g : 0);
13790 /* HPUX 7.0 cc rejects these. */
13793 ccp = (char const *const *) p;
13794 { /* SCO 3.2v4 cc rejects this. */
13796 char const *s = 0 ? (char *) 0 : (char const *) 0;
13800 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13801 int x[] = {25, 17};
13802 const int *foo = &x[0];
13805 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13806 typedef const int *iptr;
13810 { /* AIX XL C 1.02.0.0 rejects this saying
13811 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13812 struct s { int j; const int *ap[3]; };
13813 struct s *b; b->j = 5;
13815 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13816 const int foo = 10;
13821 if { (eval echo configure:13799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13825 echo "configure: failed program was:" >&5
13826 cat conftest.$ac_ext >&5
13833 echo "$ac_t""$ac_cv_c_const" 1>&6
13834 if test $ac_cv_c_const = no; then
13835 cat >> confdefs.h <<\EOF
13841 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
13842 echo "configure:13820: checking if compiler understands volatile" >&5
13843 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
13844 echo $ac_n "(cached) $ac_c" 1>&6
13846 cat > conftest.$ac_ext <<EOF
13847 #line 13825 "configure"
13848 #include "confdefs.h"
13851 volatile int a; int * volatile b = x ? &y : &z;
13852 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
13856 if { (eval echo configure:13834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13858 ol_cv_c_volatile=yes
13860 echo "configure: failed program was:" >&5
13861 cat conftest.$ac_ext >&5
13863 ol_cv_c_volatile=no
13868 echo "$ac_t""$ol_cv_c_volatile" 1>&6
13869 if test $ol_cv_c_volatile = yes; then
13872 cat >> confdefs.h <<\EOF
13879 if test $cross_compiling = yes ; then
13880 cat >> confdefs.h <<\EOF
13881 #define CROSS_COMPILING 1
13885 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13886 echo "configure:13864: checking whether byte ordering is bigendian" >&5
13887 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
13888 echo $ac_n "(cached) $ac_c" 1>&6
13890 ac_cv_c_bigendian=unknown
13891 # See if sys/param.h defines the BYTE_ORDER macro.
13892 cat > conftest.$ac_ext <<EOF
13893 #line 13871 "configure"
13894 #include "confdefs.h"
13895 #include <sys/types.h>
13896 #include <sys/param.h>
13899 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13900 bogus endian macros
13904 if { (eval echo configure:13882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13906 # It does; now see whether it defined to BIG_ENDIAN or not.
13907 cat > conftest.$ac_ext <<EOF
13908 #line 13886 "configure"
13909 #include "confdefs.h"
13910 #include <sys/types.h>
13911 #include <sys/param.h>
13914 #if BYTE_ORDER != BIG_ENDIAN
13919 if { (eval echo configure:13897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13921 ac_cv_c_bigendian=yes
13923 echo "configure: failed program was:" >&5
13924 cat conftest.$ac_ext >&5
13926 ac_cv_c_bigendian=no
13930 echo "configure: failed program was:" >&5
13931 cat conftest.$ac_ext >&5
13934 if test $ac_cv_c_bigendian = unknown; then
13935 if test "$cross_compiling" = yes; then
13936 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13938 cat > conftest.$ac_ext <<EOF
13939 #line 13917 "configure"
13940 #include "confdefs.h"
13942 /* Are we little or big endian? From Harbison&Steele. */
13946 char c[sizeof (long)];
13949 exit (u.c[sizeof (long) - 1] == 1);
13952 if { (eval echo configure:13930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13954 ac_cv_c_bigendian=no
13956 echo "configure: failed program was:" >&5
13957 cat conftest.$ac_ext >&5
13959 ac_cv_c_bigendian=yes
13967 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13968 if test $ac_cv_c_bigendian = yes; then
13969 cat >> confdefs.h <<\EOF
13970 #define WORDS_BIGENDIAN 1
13977 echo $ac_n "checking size of short""... $ac_c" 1>&6
13978 echo "configure:13956: checking size of short" >&5
13979 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
13980 echo $ac_n "(cached) $ac_c" 1>&6
13982 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
13983 cat > conftest.$ac_ext <<EOF
13984 #line 13962 "configure"
13985 #include "confdefs.h"
13986 #include "confdefs.h"
13987 #include <sys/types.h>
13991 switch (0) case 0: case (sizeof (short) == $ac_size):;
13994 if { (eval echo configure:13972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13996 ac_cv_sizeof_short=$ac_size
13998 echo "configure: failed program was:" >&5
13999 cat conftest.$ac_ext >&5
14002 if test x$ac_cv_sizeof_short != x ; then break; fi
14007 if test x$ac_cv_sizeof_short = x ; then
14008 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14010 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14011 cat >> confdefs.h <<EOF
14012 #define SIZEOF_SHORT $ac_cv_sizeof_short
14016 echo $ac_n "checking size of int""... $ac_c" 1>&6
14017 echo "configure:13995: checking size of int" >&5
14018 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14019 echo $ac_n "(cached) $ac_c" 1>&6
14021 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14022 cat > conftest.$ac_ext <<EOF
14023 #line 14001 "configure"
14024 #include "confdefs.h"
14025 #include "confdefs.h"
14026 #include <sys/types.h>
14030 switch (0) case 0: case (sizeof (int) == $ac_size):;
14033 if { (eval echo configure:14011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14035 ac_cv_sizeof_int=$ac_size
14037 echo "configure: failed program was:" >&5
14038 cat conftest.$ac_ext >&5
14041 if test x$ac_cv_sizeof_int != x ; then break; fi
14046 if test x$ac_cv_sizeof_int = x ; then
14047 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14049 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14050 cat >> confdefs.h <<EOF
14051 #define SIZEOF_INT $ac_cv_sizeof_int
14055 echo $ac_n "checking size of long""... $ac_c" 1>&6
14056 echo "configure:14034: checking size of long" >&5
14057 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14058 echo $ac_n "(cached) $ac_c" 1>&6
14060 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14061 cat > conftest.$ac_ext <<EOF
14062 #line 14040 "configure"
14063 #include "confdefs.h"
14064 #include "confdefs.h"
14065 #include <sys/types.h>
14069 switch (0) case 0: case (sizeof (long) == $ac_size):;
14072 if { (eval echo configure:14050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14074 ac_cv_sizeof_long=$ac_size
14076 echo "configure: failed program was:" >&5
14077 cat conftest.$ac_ext >&5
14080 if test x$ac_cv_sizeof_long != x ; then break; fi
14085 if test x$ac_cv_sizeof_long = x ; then
14086 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14088 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14089 cat >> confdefs.h <<EOF
14090 #define SIZEOF_LONG $ac_cv_sizeof_long
14095 if test "$ac_cv_sizeof_int" -lt 4 ; then
14096 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14098 cat >> confdefs.h <<\EOF
14099 #define LBER_INT_T long
14103 cat >> confdefs.h <<\EOF
14104 #define LBER_INT_T int
14109 cat >> confdefs.h <<\EOF
14110 #define LBER_LEN_T long
14113 cat >> confdefs.h <<\EOF
14114 #define LBER_SOCKET_T int
14117 cat >> confdefs.h <<\EOF
14118 #define LBER_TAG_T long
14122 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14123 echo "configure:14101: checking for 8-bit clean memcmp" >&5
14124 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14125 echo $ac_n "(cached) $ac_c" 1>&6
14127 if test "$cross_compiling" = yes; then
14128 ac_cv_func_memcmp_clean=no
14130 cat > conftest.$ac_ext <<EOF
14131 #line 14109 "configure"
14132 #include "confdefs.h"
14136 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14137 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14141 if { (eval echo configure:14119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14143 ac_cv_func_memcmp_clean=yes
14145 echo "configure: failed program was:" >&5
14146 cat conftest.$ac_ext >&5
14148 ac_cv_func_memcmp_clean=no
14155 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14156 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14158 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14159 echo "configure:14137: checking for strftime" >&5
14160 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14161 echo $ac_n "(cached) $ac_c" 1>&6
14163 cat > conftest.$ac_ext <<EOF
14164 #line 14142 "configure"
14165 #include "confdefs.h"
14166 /* System header to define __stub macros and hopefully few prototypes,
14167 which can conflict with char strftime(); below. */
14168 #include <assert.h>
14169 /* Override any gcc2 internal prototype to avoid an error. */
14170 /* We use char because int might match the return type of a gcc2
14171 builtin and then its argument prototype would still apply. */
14177 /* The GNU C library defines this for functions which it implements
14178 to always fail with ENOSYS. Some functions are actually named
14179 something starting with __ and the normal name is an alias. */
14180 #if defined (__stub_strftime) || defined (__stub___strftime)
14188 if { (eval echo configure:14166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14190 eval "ac_cv_func_strftime=yes"
14192 echo "configure: failed program was:" >&5
14193 cat conftest.$ac_ext >&5
14195 eval "ac_cv_func_strftime=no"
14200 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14201 echo "$ac_t""yes" 1>&6
14202 cat >> confdefs.h <<\EOF
14203 #define HAVE_STRFTIME 1
14207 echo "$ac_t""no" 1>&6
14208 # strftime is in -lintl on SCO UNIX.
14209 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14210 echo "configure:14188: checking for strftime in -lintl" >&5
14211 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
14212 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14213 echo $ac_n "(cached) $ac_c" 1>&6
14215 ac_save_LIBS="$LIBS"
14216 LIBS="-lintl $LIBS"
14217 cat > conftest.$ac_ext <<EOF
14218 #line 14196 "configure"
14219 #include "confdefs.h"
14220 /* Override any gcc2 internal prototype to avoid an error. */
14221 /* We use char because int might match the return type of a gcc2
14222 builtin and then its argument prototype would still apply. */
14229 if { (eval echo configure:14207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14231 eval "ac_cv_lib_$ac_lib_var=yes"
14233 echo "configure: failed program was:" >&5
14234 cat conftest.$ac_ext >&5
14236 eval "ac_cv_lib_$ac_lib_var=no"
14239 LIBS="$ac_save_LIBS"
14242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14243 echo "$ac_t""yes" 1>&6
14244 cat >> confdefs.h <<\EOF
14245 #define HAVE_STRFTIME 1
14248 LIBS="-lintl $LIBS"
14250 echo "$ac_t""no" 1>&6
14256 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
14257 echo "configure:14235: checking for inet_aton()" >&5
14258 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
14259 echo $ac_n "(cached) $ac_c" 1>&6
14261 cat > conftest.$ac_ext <<EOF
14262 #line 14240 "configure"
14263 #include "confdefs.h"
14265 #ifdef HAVE_SYS_TYPES_H
14266 # include <sys/types.h>
14268 #ifdef HAVE_SYS_SOCKET_H
14269 # include <sys/socket.h>
14270 # ifdef HAVE_SYS_SELECT_H
14271 # include <sys/select.h>
14273 # include <netinet/in.h>
14274 # ifdef HAVE_ARPA_INET_H
14275 # include <arpa/inet.h>
14281 int rc = inet_aton( "255.255.255.255", &in );
14284 if { (eval echo configure:14262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14286 ol_cv_func_inet_aton=yes
14288 echo "configure: failed program was:" >&5
14289 cat conftest.$ac_ext >&5
14291 ol_cv_func_inet_aton=no
14296 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
14297 if test $ol_cv_func_inet_aton != no; then
14298 cat >> confdefs.h <<\EOF
14299 #define HAVE_INET_ATON 1
14305 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
14306 echo "configure:14284: checking for _spawnlp" >&5
14307 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
14308 echo $ac_n "(cached) $ac_c" 1>&6
14310 cat > conftest.$ac_ext <<EOF
14311 #line 14289 "configure"
14312 #include "confdefs.h"
14313 /* System header to define __stub macros and hopefully few prototypes,
14314 which can conflict with char _spawnlp(); below. */
14315 #include <assert.h>
14316 /* Override any gcc2 internal prototype to avoid an error. */
14317 /* We use char because int might match the return type of a gcc2
14318 builtin and then its argument prototype would still apply. */
14324 /* The GNU C library defines this for functions which it implements
14325 to always fail with ENOSYS. Some functions are actually named
14326 something starting with __ and the normal name is an alias. */
14327 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
14335 if { (eval echo configure:14313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14337 eval "ac_cv_func__spawnlp=yes"
14339 echo "configure: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14342 eval "ac_cv_func__spawnlp=no"
14347 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
14348 echo "$ac_t""yes" 1>&6
14349 cat >> confdefs.h <<\EOF
14350 #define HAVE_SPAWNLP 1
14354 echo "$ac_t""no" 1>&6
14358 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
14359 echo "configure:14337: checking for _snprintf" >&5
14360 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
14361 echo $ac_n "(cached) $ac_c" 1>&6
14363 cat > conftest.$ac_ext <<EOF
14364 #line 14342 "configure"
14365 #include "confdefs.h"
14366 /* System header to define __stub macros and hopefully few prototypes,
14367 which can conflict with char _snprintf(); below. */
14368 #include <assert.h>
14369 /* Override any gcc2 internal prototype to avoid an error. */
14370 /* We use char because int might match the return type of a gcc2
14371 builtin and then its argument prototype would still apply. */
14377 /* The GNU C library defines this for functions which it implements
14378 to always fail with ENOSYS. Some functions are actually named
14379 something starting with __ and the normal name is an alias. */
14380 #if defined (__stub__snprintf) || defined (__stub____snprintf)
14388 if { (eval echo configure:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14390 eval "ac_cv_func__snprintf=yes"
14392 echo "configure: failed program was:" >&5
14393 cat conftest.$ac_ext >&5
14395 eval "ac_cv_func__snprintf=no"
14400 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
14401 echo "$ac_t""yes" 1>&6
14402 ac_cv_func_snprintf=yes
14403 cat >> confdefs.h <<\EOF
14404 #define snprintf _snprintf
14409 echo "$ac_t""no" 1>&6
14413 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
14414 echo "configure:14392: checking for _vsnprintf" >&5
14415 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
14416 echo $ac_n "(cached) $ac_c" 1>&6
14418 cat > conftest.$ac_ext <<EOF
14419 #line 14397 "configure"
14420 #include "confdefs.h"
14421 /* System header to define __stub macros and hopefully few prototypes,
14422 which can conflict with char _vsnprintf(); below. */
14423 #include <assert.h>
14424 /* Override any gcc2 internal prototype to avoid an error. */
14425 /* We use char because int might match the return type of a gcc2
14426 builtin and then its argument prototype would still apply. */
14432 /* The GNU C library defines this for functions which it implements
14433 to always fail with ENOSYS. Some functions are actually named
14434 something starting with __ and the normal name is an alias. */
14435 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
14443 if { (eval echo configure:14421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14445 eval "ac_cv_func__vsnprintf=yes"
14447 echo "configure: failed program was:" >&5
14448 cat conftest.$ac_ext >&5
14450 eval "ac_cv_func__vsnprintf=no"
14455 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
14456 echo "$ac_t""yes" 1>&6
14457 ac_cv_func_vsnprintf=yes
14458 cat >> confdefs.h <<\EOF
14459 #define vsnprintf _vsnprintf
14464 echo "$ac_t""no" 1>&6
14468 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14469 echo "configure:14447: checking for vprintf" >&5
14470 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
14471 echo $ac_n "(cached) $ac_c" 1>&6
14473 cat > conftest.$ac_ext <<EOF
14474 #line 14452 "configure"
14475 #include "confdefs.h"
14476 /* System header to define __stub macros and hopefully few prototypes,
14477 which can conflict with char vprintf(); below. */
14478 #include <assert.h>
14479 /* Override any gcc2 internal prototype to avoid an error. */
14480 /* We use char because int might match the return type of a gcc2
14481 builtin and then its argument prototype would still apply. */
14487 /* The GNU C library defines this for functions which it implements
14488 to always fail with ENOSYS. Some functions are actually named
14489 something starting with __ and the normal name is an alias. */
14490 #if defined (__stub_vprintf) || defined (__stub___vprintf)
14498 if { (eval echo configure:14476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14500 eval "ac_cv_func_vprintf=yes"
14502 echo "configure: failed program was:" >&5
14503 cat conftest.$ac_ext >&5
14505 eval "ac_cv_func_vprintf=no"
14510 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14511 echo "$ac_t""yes" 1>&6
14512 cat >> confdefs.h <<\EOF
14513 #define HAVE_VPRINTF 1
14517 echo "$ac_t""no" 1>&6
14520 if test "$ac_cv_func_vprintf" != yes; then
14521 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14522 echo "configure:14500: checking for _doprnt" >&5
14523 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
14524 echo $ac_n "(cached) $ac_c" 1>&6
14526 cat > conftest.$ac_ext <<EOF
14527 #line 14505 "configure"
14528 #include "confdefs.h"
14529 /* System header to define __stub macros and hopefully few prototypes,
14530 which can conflict with char _doprnt(); below. */
14531 #include <assert.h>
14532 /* Override any gcc2 internal prototype to avoid an error. */
14533 /* We use char because int might match the return type of a gcc2
14534 builtin and then its argument prototype would still apply. */
14540 /* The GNU C library defines this for functions which it implements
14541 to always fail with ENOSYS. Some functions are actually named
14542 something starting with __ and the normal name is an alias. */
14543 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14551 if { (eval echo configure:14529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14553 eval "ac_cv_func__doprnt=yes"
14555 echo "configure: failed program was:" >&5
14556 cat conftest.$ac_ext >&5
14558 eval "ac_cv_func__doprnt=no"
14563 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14564 echo "$ac_t""yes" 1>&6
14565 cat >> confdefs.h <<\EOF
14566 #define HAVE_DOPRNT 1
14570 echo "$ac_t""no" 1>&6
14576 if test $ac_cv_func_vprintf = yes ; then
14577 for ac_func in vsnprintf vsprintf
14579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14580 echo "configure:14558: checking for $ac_func" >&5
14581 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14582 echo $ac_n "(cached) $ac_c" 1>&6
14584 cat > conftest.$ac_ext <<EOF
14585 #line 14563 "configure"
14586 #include "confdefs.h"
14587 /* System header to define __stub macros and hopefully few prototypes,
14588 which can conflict with char $ac_func(); below. */
14589 #include <assert.h>
14590 /* Override any gcc2 internal prototype to avoid an error. */
14591 /* We use char because int might match the return type of a gcc2
14592 builtin and then its argument prototype would still apply. */
14598 /* The GNU C library defines this for functions which it implements
14599 to always fail with ENOSYS. Some functions are actually named
14600 something starting with __ and the normal name is an alias. */
14601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14609 if { (eval echo configure:14587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14611 eval "ac_cv_func_$ac_func=yes"
14613 echo "configure: failed program was:" >&5
14614 cat conftest.$ac_ext >&5
14616 eval "ac_cv_func_$ac_func=no"
14621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14622 echo "$ac_t""yes" 1>&6
14623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14624 cat >> confdefs.h <<EOF
14625 #define $ac_tr_func 1
14629 echo "$ac_t""no" 1>&6
14685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14686 echo "configure:14664: checking for $ac_func" >&5
14687 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14688 echo $ac_n "(cached) $ac_c" 1>&6
14690 cat > conftest.$ac_ext <<EOF
14691 #line 14669 "configure"
14692 #include "confdefs.h"
14693 /* System header to define __stub macros and hopefully few prototypes,
14694 which can conflict with char $ac_func(); below. */
14695 #include <assert.h>
14696 /* Override any gcc2 internal prototype to avoid an error. */
14697 /* We use char because int might match the return type of a gcc2
14698 builtin and then its argument prototype would still apply. */
14704 /* The GNU C library defines this for functions which it implements
14705 to always fail with ENOSYS. Some functions are actually named
14706 something starting with __ and the normal name is an alias. */
14707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14715 if { (eval echo configure:14693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14717 eval "ac_cv_func_$ac_func=yes"
14719 echo "configure: failed program was:" >&5
14720 cat conftest.$ac_ext >&5
14722 eval "ac_cv_func_$ac_func=no"
14727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14728 echo "$ac_t""yes" 1>&6
14729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14730 cat >> confdefs.h <<EOF
14731 #define $ac_tr_func 1
14735 echo "$ac_t""no" 1>&6
14740 for ac_func in getopt tempnam
14742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14743 echo "configure:14721: checking for $ac_func" >&5
14744 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14745 echo $ac_n "(cached) $ac_c" 1>&6
14747 cat > conftest.$ac_ext <<EOF
14748 #line 14726 "configure"
14749 #include "confdefs.h"
14750 /* System header to define __stub macros and hopefully few prototypes,
14751 which can conflict with char $ac_func(); below. */
14752 #include <assert.h>
14753 /* Override any gcc2 internal prototype to avoid an error. */
14754 /* We use char because int might match the return type of a gcc2
14755 builtin and then its argument prototype would still apply. */
14761 /* The GNU C library defines this for functions which it implements
14762 to always fail with ENOSYS. Some functions are actually named
14763 something starting with __ and the normal name is an alias. */
14764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14772 if { (eval echo configure:14750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14774 eval "ac_cv_func_$ac_func=yes"
14776 echo "configure: failed program was:" >&5
14777 cat conftest.$ac_ext >&5
14779 eval "ac_cv_func_$ac_func=no"
14784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14785 echo "$ac_t""yes" 1>&6
14786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14787 cat >> confdefs.h <<EOF
14788 #define $ac_tr_func 1
14792 echo "$ac_t""no" 1>&6
14793 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
14799 if test "$ac_cv_func_getopt" != yes; then
14800 LIBSRCS="$LIBSRCS getopt.c"
14803 if test "$ac_cv_func_tempnam" != yes; then
14804 LIBSRCS="$LIBSRCS tempnam.c"
14807 # Check Configuration
14808 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
14809 echo "configure:14787: checking declaration of sys_errlist" >&5
14810 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
14811 echo $ac_n "(cached) $ac_c" 1>&6
14814 cat > conftest.$ac_ext <<EOF
14815 #line 14793 "configure"
14816 #include "confdefs.h"
14819 #include <sys/types.h>
14822 #include <stdlib.h>
14825 char *c = (char *) *sys_errlist
14828 if { (eval echo configure:14806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14830 ol_cv_dcl_sys_errlist=yes
14831 ol_cv_have_sys_errlist=yes
14833 echo "configure: failed program was:" >&5
14834 cat conftest.$ac_ext >&5
14836 ol_cv_dcl_sys_errlist=no
14841 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
14843 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14844 if test $ol_cv_dcl_sys_errlist = no ; then
14845 cat >> confdefs.h <<\EOF
14846 #define DECL_SYS_ERRLIST 1
14850 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
14851 echo "configure:14829: checking existence of sys_errlist" >&5
14852 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
14853 echo $ac_n "(cached) $ac_c" 1>&6
14856 cat > conftest.$ac_ext <<EOF
14857 #line 14835 "configure"
14858 #include "confdefs.h"
14861 char *c = (char *) *sys_errlist
14864 if { (eval echo configure:14842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14866 ol_cv_have_sys_errlist=yes
14868 echo "configure: failed program was:" >&5
14869 cat conftest.$ac_ext >&5
14871 ol_cv_have_sys_errlist=no
14876 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
14878 if test $ol_cv_have_sys_errlist = yes ; then
14879 cat >> confdefs.h <<\EOF
14880 #define HAVE_SYS_ERRLIST 1
14887 if test "$ol_enable_debug" != no ; then
14888 cat >> confdefs.h <<\EOF
14889 #define LDAP_DEBUG 1
14893 if test "$ol_enable_syslog" = yes ; then
14894 cat >> confdefs.h <<\EOF
14895 #define LDAP_SYSLOG 1
14899 if test "$ol_enable_libui" = yes ; then
14900 cat >> confdefs.h <<\EOF
14901 #define LDAP_LIBUI 1
14905 if test "$ol_enable_cache" = no ; then
14906 cat >> confdefs.h <<\EOF
14907 #define LDAP_NOCACHE 1
14911 if test "$ol_enable_dns" != no ; then
14912 cat >> confdefs.h <<\EOF
14913 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
14917 if test "$ol_enable_proctitle" != no ; then
14918 cat >> confdefs.h <<\EOF
14919 #define LDAP_PROCTITLE 1
14923 if test "$ol_enable_referrals" != no ; then
14924 cat >> confdefs.h <<\EOF
14925 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
14929 if test "$ol_enable_cldap" != no ; then
14930 cat >> confdefs.h <<\EOF
14931 #define LDAP_CONNECTIONLESS 1
14935 if test "$ol_enable_ldapi" != no ; then
14936 cat >> confdefs.h <<\EOF
14937 #define LDAP_PF_LOCAL 1
14941 if test "$ol_enable_crypt" != no ; then
14942 cat >> confdefs.h <<\EOF
14943 #define SLAPD_CRYPT 1
14947 if test "$ol_enable_cleartext" != no ; then
14948 cat >> confdefs.h <<\EOF
14949 #define SLAPD_CLEARTEXT 1
14953 if test "$ol_enable_multimaster" != no ; then
14954 cat >> confdefs.h <<\EOF
14955 #define SLAPD_MULTIMASTER 1
14959 if test "$ol_enable_phonetic" != no ; then
14960 cat >> confdefs.h <<\EOF
14961 #define SLAPD_PHONETIC 1
14965 if test "$ol_enable_rlookups" != no ; then
14966 cat >> confdefs.h <<\EOF
14967 #define SLAPD_RLOOKUPS 1
14971 if test "$ol_enable_aci" != no ; then
14972 cat >> confdefs.h <<\EOF
14973 #define SLAPD_ACI_ENABLED 1
14977 if test "$ol_enable_discreteaci" != no ; then
14978 cat >> confdefs.h <<\EOF
14979 #define SLAPD_ACI_DISCRETE_RIGHTS 1
14984 if test "$ol_link_modules" != no ; then
14985 cat >> confdefs.h <<\EOF
14986 #define SLAPD_MODULES 1
14990 SLAPD_MODULES_LDFLAGS="-dlopen self"
14993 if test "$ol_link_bdb2" != no ; then
14994 cat >> confdefs.h <<\EOF
14995 #define SLAPD_BDB2 1
15000 if test "$ol_with_bdb2_module" != static ; then
15001 cat >> confdefs.h <<\EOF
15002 #define SLAPD_BDB2_DYNAMIC 1
15006 BUILD_BDB2_DYNAMIC=shared
15007 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
15011 if test "$ol_enable_ldap" != no ; then
15012 cat >> confdefs.h <<\EOF
15013 #define SLAPD_LDAP 1
15018 if test "$ol_with_ldap_module" != static ; then
15019 cat >> confdefs.h <<\EOF
15020 #define SLAPD_LDAP_DYNAMIC 1
15024 BUILD_LDAP_DYNAMIC=shared
15025 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15029 if test "$ol_link_ldbm" != no ; then
15030 cat >> confdefs.h <<\EOF
15031 #define SLAPD_LDBM 1
15036 if test "$ol_with_ldbm_module" != static ; then
15037 cat >> confdefs.h <<\EOF
15038 #define SLAPD_LDBM_DYNAMIC 1
15042 BUILD_LDBM_DYNAMIC=shared
15043 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15047 if test "$ol_enable_passwd" != no ; then
15048 cat >> confdefs.h <<\EOF
15049 #define SLAPD_PASSWD 1
15054 if test "$ol_with_passwd_module" != static ; then
15055 cat >> confdefs.h <<\EOF
15056 #define SLAPD_PASSWD_DYNAMIC 1
15060 BUILD_PASSWD_DYNAMIC=shared
15061 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15065 if test "$ol_link_perl" != no ; then
15066 cat >> confdefs.h <<\EOF
15067 #define SLAPD_PERL 1
15072 if test "$ol_with_perl_module" != static ; then
15073 cat >> confdefs.h <<\EOF
15074 #define SLAPD_PERL_DYNAMIC 1
15078 BUILD_PERL_DYNAMIC=shared
15079 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15083 if test "$ol_enable_shell" != no ; then
15084 cat >> confdefs.h <<\EOF
15085 #define SLAPD_SHELL 1
15090 if test "$ol_with_shell_module" != static ; then
15091 cat >> confdefs.h <<\EOF
15092 #define SLAPD_SHELL_DYNAMIC 1
15096 BUILD_SHELL_DYNAMIC=shared
15097 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15101 if test "$ol_enable_tcl" != no ; then
15102 cat >> confdefs.h <<\EOF
15103 #define SLAPD_TCL 1
15108 if test "$ol_with_tcl_module" != static; then
15109 cat >> confdefs.h <<\EOF
15110 #define SLAPD_TCL_DYNAMIC 1
15114 BUILD_TCL_DYNAMIC=shared
15115 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15119 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15120 $BUILD_SLAPD = yes ; then
15124 if test "$ol_link_isode" != no ; then
15129 if test "$LINK_BINS_DYNAMIC" = yes; then
15131 LT_LIB_LINKAGE=shared
15134 LT_LIB_LINKAGE=static
15137 if test "$ac_cv_mingw32" = yes ; then
15201 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15203 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15204 # Let make expand exec_prefix.
15205 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15207 # Any assignment to VPATH causes Sun make to only execute
15208 # the first set of double-colon rules, so remove it if not needed.
15209 # If there is a colon in the path, we need to keep it.
15210 if test "x$srcdir" = x.; then
15211 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15214 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15216 DEFS=-DHAVE_CONFIG_H
15218 # Without the "./", some shells look in PATH for config.status.
15219 : ${CONFIG_STATUS=./config.status}
15221 echo creating $CONFIG_STATUS
15222 rm -f $CONFIG_STATUS
15223 cat > $CONFIG_STATUS <<EOF
15225 # Generated automatically by configure.
15226 # Run this file to recreate the current configuration.
15227 # This directory was configured as follows,
15228 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15230 # $0 $ac_configure_args
15232 # Compiler output produced by configure, useful for debugging
15233 # configure, is in ./config.log if it exists.
15235 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15238 case "\$ac_option" in
15239 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15240 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15241 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15242 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15243 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
15245 -help | --help | --hel | --he | --h)
15246 echo "\$ac_cs_usage"; exit 0 ;;
15247 *) echo "\$ac_cs_usage"; exit 1 ;;
15251 ac_given_srcdir=$srcdir
15252 ac_given_INSTALL="$INSTALL"
15254 trap 'rm -fr `echo "\
15255 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15256 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15257 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15258 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15259 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15260 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15261 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15262 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15263 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15264 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15265 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15266 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15267 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15268 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15269 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15270 include/Makefile:build/top.mk:include/Makefile.in \
15271 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15272 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15273 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15274 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15275 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15276 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15277 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15278 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15279 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15280 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15281 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15282 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15283 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15284 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15285 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15286 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15287 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15288 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15289 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15290 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15291 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15292 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15293 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15294 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15295 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15296 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15297 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15299 cat >> $CONFIG_STATUS <<EOF
15301 # Protect against being on the right side of a sed subst in config.status.
15302 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15303 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15307 s%@CFLAGS@%$CFLAGS%g
15308 s%@CPPFLAGS@%$CPPFLAGS%g
15309 s%@CXXFLAGS@%$CXXFLAGS%g
15310 s%@FFLAGS@%$FFLAGS%g
15312 s%@LDFLAGS@%$LDFLAGS%g
15314 s%@exec_prefix@%$exec_prefix%g
15315 s%@prefix@%$prefix%g
15316 s%@program_transform_name@%$program_transform_name%g
15317 s%@bindir@%$bindir%g
15318 s%@sbindir@%$sbindir%g
15319 s%@libexecdir@%$libexecdir%g
15320 s%@datadir@%$datadir%g
15321 s%@sysconfdir@%$sysconfdir%g
15322 s%@sharedstatedir@%$sharedstatedir%g
15323 s%@localstatedir@%$localstatedir%g
15324 s%@libdir@%$libdir%g
15325 s%@includedir@%$includedir%g
15326 s%@oldincludedir@%$oldincludedir%g
15327 s%@infodir@%$infodir%g
15328 s%@mandir@%$mandir%g
15330 s%@host_alias@%$host_alias%g
15331 s%@host_cpu@%$host_cpu%g
15332 s%@host_vendor@%$host_vendor%g
15333 s%@host_os@%$host_os%g
15334 s%@target@%$target%g
15335 s%@target_alias@%$target_alias%g
15336 s%@target_cpu@%$target_cpu%g
15337 s%@target_vendor@%$target_vendor%g
15338 s%@target_os@%$target_os%g
15340 s%@build_alias@%$build_alias%g
15341 s%@build_cpu@%$build_cpu%g
15342 s%@build_vendor@%$build_vendor%g
15343 s%@build_os@%$build_os%g
15344 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15345 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15346 s%@INSTALL_DATA@%$INSTALL_DATA%g
15347 s%@PACKAGE@%$PACKAGE%g
15348 s%@VERSION@%$VERSION%g
15349 s%@ACLOCAL@%$ACLOCAL%g
15350 s%@AUTOCONF@%$AUTOCONF%g
15351 s%@AUTOMAKE@%$AUTOMAKE%g
15352 s%@AUTOHEADER@%$AUTOHEADER%g
15353 s%@MAKEINFO@%$MAKEINFO%g
15354 s%@install_sh@%$install_sh%g
15357 s%@AMTARFLAGS@%$AMTARFLAGS%g
15358 s%@SET_MAKE@%$SET_MAKE%g
15359 s%@top_builddir@%$top_builddir%g
15360 s%@ldap_subdir@%$ldap_subdir%g
15362 s%@RANLIB@%$RANLIB%g
15366 s%@DLLTOOL@%$DLLTOOL%g
15368 s%@OBJDUMP@%$OBJDUMP%g
15369 s%@LIBTOOL@%$LIBTOOL%g
15371 s%@SENDMAIL@%$SENDMAIL%g
15372 s%@EDITOR@%$EDITOR%g
15373 s%@FINGER@%$FINGER%g
15374 s%@PERLBIN@%$PERLBIN%g
15376 s%@EXEEXT@%$EXEEXT%g
15377 s%@OBJEXT@%$OBJEXT%g
15378 s%@OL_MKDEP@%$OL_MKDEP%g
15379 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
15381 s%@LIBOBJS@%$LIBOBJS%g
15382 s%@LIBSRCS@%$LIBSRCS%g
15384 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
15385 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
15386 s%@DYN_EXT@%$DYN_EXT%g
15387 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
15388 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
15389 s%@BUILD_BDB2@%$BUILD_BDB2%g
15390 s%@BUILD_LDAP@%$BUILD_LDAP%g
15391 s%@BUILD_LDBM@%$BUILD_LDBM%g
15392 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
15393 s%@BUILD_PERL@%$BUILD_PERL%g
15394 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
15395 s%@BUILD_SHELL@%$BUILD_SHELL%g
15396 s%@BUILD_TCL@%$BUILD_TCL%g
15397 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
15398 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
15399 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
15400 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
15401 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
15402 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
15403 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
15404 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
15405 s%@LDAP_LIBS@%$LDAP_LIBS%g
15406 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
15407 s%@LDIF_LIBS@%$LDIF_LIBS%g
15408 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
15409 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
15410 s%@LDBM_LIBS@%$LDBM_LIBS%g
15411 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
15412 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
15413 s%@WRAP_LIBS@%$WRAP_LIBS%g
15414 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
15415 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
15416 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
15417 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
15418 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
15419 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
15420 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
15421 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
15422 s%@KRB_LIBS@%$KRB_LIBS%g
15423 s%@READLINE_LIBS@%$READLINE_LIBS%g
15424 s%@SASL_LIBS@%$SASL_LIBS%g
15425 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
15426 s%@TLS_LIBS@%$TLS_LIBS%g
15427 s%@MODULES_LIBS@%$MODULES_LIBS%g
15432 cat >> $CONFIG_STATUS <<\EOF
15434 # Split the substitutions into bite-sized pieces for seds with
15435 # small command number limits, like on Digital OSF/1 and HP-UX.
15436 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15437 ac_file=1 # Number of current file.
15438 ac_beg=1 # First line for current file.
15439 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15442 while $ac_more_lines; do
15443 if test $ac_beg -gt 1; then
15444 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15446 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15448 if test ! -s conftest.s$ac_file; then
15449 ac_more_lines=false
15450 rm -f conftest.s$ac_file
15452 if test -z "$ac_sed_cmds"; then
15453 ac_sed_cmds="sed -f conftest.s$ac_file"
15455 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15457 ac_file=`expr $ac_file + 1`
15459 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15462 if test -z "$ac_sed_cmds"; then
15467 cat >> $CONFIG_STATUS <<EOF
15469 CONFIG_FILES=\${CONFIG_FILES-"\
15470 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15471 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15472 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15473 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15474 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15475 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15476 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15477 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15478 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15479 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15480 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15481 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15482 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15483 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15484 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15485 include/Makefile:build/top.mk:include/Makefile.in \
15486 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15487 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15488 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15489 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15490 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15491 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15492 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15493 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15494 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15495 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15496 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15497 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15498 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15499 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15500 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15501 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15502 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15503 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15504 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15505 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15506 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15507 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15508 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15509 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15510 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15511 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15514 cat >> $CONFIG_STATUS <<\EOF
15515 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15516 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15518 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15519 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15520 *) ac_file_in="${ac_file}.in" ;;
15523 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15525 # Remove last slash and all that follows it. Not all systems have dirname.
15526 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15527 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15528 # The file is in a subdirectory.
15529 test ! -d "$ac_dir" && mkdir "$ac_dir"
15530 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15531 # A "../" for each directory in $ac_dir_suffix.
15532 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15534 ac_dir_suffix= ac_dots=
15537 case "$ac_given_srcdir" in
15539 if test -z "$ac_dots"; then top_srcdir=.
15540 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15541 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15542 *) # Relative path.
15543 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15544 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15547 case "$ac_given_INSTALL" in
15548 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15549 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15552 echo creating "$ac_file"
15554 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15556 *[Mm]akefile*) ac_comsub="1i\\
15557 # $configure_input" ;;
15561 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15563 s%@configure_input@%$configure_input%g
15564 s%@srcdir@%$srcdir%g
15565 s%@top_srcdir@%$top_srcdir%g
15566 s%@INSTALL@%$INSTALL%g
15567 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15571 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15572 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15574 # ac_d sets the value in "#define NAME VALUE" lines.
15575 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15576 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15579 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15580 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15581 ac_uB='\([ ]\)%\1#\2define\3'
15584 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15585 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15586 ac_eB='$%\1#\2define\3'
15590 if test "${CONFIG_HEADERS+set}" != set; then
15592 cat >> $CONFIG_STATUS <<EOF
15593 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
15595 cat >> $CONFIG_STATUS <<\EOF
15597 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15600 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15601 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15602 *) ac_file_in="${ac_file}.in" ;;
15605 echo creating $ac_file
15607 rm -f conftest.frag conftest.in conftest.out
15608 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15609 cat $ac_file_inputs > conftest.in
15613 # Transform confdefs.h into a sed script conftest.vals that substitutes
15614 # the proper values into config.h.in to produce config.h. And first:
15615 # Protect against being on the right side of a sed subst in config.status.
15616 # Protect against being in an unquoted here document in config.status.
15617 rm -f conftest.vals
15618 cat > conftest.hdr <<\EOF
15621 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15625 sed -n -f conftest.hdr confdefs.h > conftest.vals
15628 # This sed command replaces #undef with comments. This is necessary, for
15629 # example, in the case of _POSIX_SOURCE, which is predefined and required
15630 # on some systems where configure will not decide to define it.
15631 cat >> conftest.vals <<\EOF
15632 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15635 # Break up conftest.vals because some shells have a limit on
15636 # the size of here documents, and old seds have small limits too.
15638 rm -f conftest.tail
15641 ac_lines=`grep -c . conftest.vals`
15642 # grep -c gives empty output for an empty file on some AIX systems.
15643 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15644 # Write a limited-size here document to conftest.frag.
15645 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15646 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15648 sed -f conftest.frag conftest.in > conftest.out
15650 mv conftest.out conftest.in
15651 ' >> $CONFIG_STATUS
15652 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15653 rm -f conftest.vals
15654 mv conftest.tail conftest.vals
15656 rm -f conftest.vals
15658 cat >> $CONFIG_STATUS <<\EOF
15659 rm -f conftest.frag conftest.h
15660 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15661 cat conftest.in >> conftest.h
15663 if cmp -s $ac_file conftest.h 2>/dev/null; then
15664 echo "$ac_file is unchanged"
15667 # Remove last slash and all that follows it. Not all systems have dirname.
15668 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15669 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15670 # The file is in a subdirectory.
15671 test ! -d "$ac_dir" && mkdir "$ac_dir"
15674 mv conftest.h $ac_file
15679 cat >> $CONFIG_STATUS <<EOF
15682 cat >> $CONFIG_STATUS <<\EOF
15685 echo Please \"make depend\" to build dependencies
15689 chmod +x $CONFIG_STATUS
15690 rm -fr confdefs* $ac_clean_files
15691 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1