3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-cyrus-sasl with Cyrus SASL support (auto)"
38 --with-fetch with fetch URL support (auto)"
40 --with-kerberos with Kerberos support (auto)"
42 --with-readline with readline support (auto)"
44 --with-threads use threads (auto)"
46 --with-tls with TLS/SSL support (auto)"
48 --with-yielding-select with implicitly yielding select (auto)"
52 --enable-ldapd enable building ldapd (no)"
56 --enable-slapd enable building slapd (yes)"
58 --enable-cleartext enable cleartext passwords (yes)"
60 --enable-crypt enable crypt(3) passwords (auto)"
62 --enable-modules enable dynamic module support (no)"
64 --enable-multimaster enable multimaster replication (no)"
66 --enable-phonetic enable phonetic/soundex (no)"
68 --enable-quipu build quipu migration tools (no)"
70 --enable-rlookups enable reverse lookups (auto)"
72 --enable-aci enable per-object ACIs (no)"
74 --enable-discreteaci enable discrete rights in ACIs (no)"
76 --enable-wrappers enable tcp wrapper support (no)"
78 --enable-bdb2 enable bdb2 backend (no)"
80 --with-bdb2-module module type (static)"
82 --enable-ldap enable ldap backend (no)"
84 --with-ldap-module module type (static)"
86 --enable-ldbm enable ldbm backend (yes)"
88 --with-ldbm-api use LDBM API (auto)"
90 --with-ldbm-module module type (static)"
92 --with-ldbm-type use LDBM type (auto)"
94 --enable-passwd enable passwd backend (no)"
96 --with-passwd-module module type (static)"
98 --enable-perl enable perl backend (no)"
100 --with-perl-module module type (static)"
102 --enable-shell enable shell backend (no)"
104 --with-shell-module module type (static)"
106 --enable-tcl enable tcl backend (no)"
108 --with-tcl-module module type (static)"
112 --enable-slurpd enable building slurpd (auto)"
114 Library Generation & Linking Options"
116 --enable-static[=PKGS] build static libraries [default=yes]"
118 --enable-shared[=PKGS] build shared libraries [default=yes]"
120 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
122 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
124 --disable-libtool-lock avoid locking (might break parallel builds)"
126 # Initialize some variables set by options.
127 # The variables have the same names as the options, with
128 # dashes changed to underlines.
130 cache_file=./config.cache
139 program_transform_name=s,x,x,
147 bindir='${exec_prefix}/bin'
148 sbindir='${exec_prefix}/sbin'
149 libexecdir='${exec_prefix}/libexec'
150 datadir='${prefix}/share'
151 sysconfdir='${prefix}/etc'
152 sharedstatedir='${prefix}/com'
153 localstatedir='${prefix}/var'
154 libdir='${exec_prefix}/lib'
155 includedir='${prefix}/include'
156 oldincludedir='/usr/include'
157 infodir='${prefix}/info'
158 mandir='${prefix}/man'
160 # Initialize some other variables.
163 SHELL=${CONFIG_SHELL-/bin/sh}
164 # Maximum number of lines to put in a shell here document.
171 # If the previous option needs an argument, assign it.
172 if test -n "$ac_prev"; then
173 eval "$ac_prev=\$ac_option"
179 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
183 # Accept the important Cygnus configure options, so we can diagnose typos.
187 -bindir | --bindir | --bindi | --bind | --bin | --bi)
189 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
190 bindir="$ac_optarg" ;;
192 -build | --build | --buil | --bui | --bu)
194 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
195 build="$ac_optarg" ;;
197 -cache-file | --cache-file | --cache-fil | --cache-fi \
198 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
199 ac_prev=cache_file ;;
200 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
201 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
202 cache_file="$ac_optarg" ;;
204 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
206 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
208 datadir="$ac_optarg" ;;
210 -disable-* | --disable-*)
211 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
212 # Reject names that are not valid shell variable names.
213 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
214 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
216 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
217 eval "enable_${ac_feature}=no" ;;
219 -enable-* | --enable-*)
220 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
221 # Reject names that are not valid shell variable names.
222 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
223 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
225 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
230 eval "enable_${ac_feature}='$ac_optarg'" ;;
232 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
233 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
234 | --exec | --exe | --ex)
235 ac_prev=exec_prefix ;;
236 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
237 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
238 | --exec=* | --exe=* | --ex=*)
239 exec_prefix="$ac_optarg" ;;
241 -gas | --gas | --ga | --g)
242 # Obsolete; use --with-gas.
245 -help | --help | --hel | --he)
246 # Omit some internal or obsolete options to make the list less imposing.
247 # This message is too long to be a string in the A/UX 3.1 sh.
249 Usage: configure [options] [host]
250 Options: [defaults in brackets after descriptions]
252 --cache-file=FILE cache test results in FILE
253 --help print this message
254 --no-create do not create output files
255 --quiet, --silent do not print \`checking...' messages
256 --version print the version of autoconf that created configure
257 Directory and file names:
258 --prefix=PREFIX install architecture-independent files in PREFIX
260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
262 --bindir=DIR user executables in DIR [EPREFIX/bin]
263 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
264 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
265 --datadir=DIR read-only architecture-independent data in DIR
267 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
268 --sharedstatedir=DIR modifiable architecture-independent data in DIR
270 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
271 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
272 --includedir=DIR C header files in DIR [PREFIX/include]
273 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
274 --infodir=DIR info documentation in DIR [PREFIX/info]
275 --mandir=DIR man documentation in DIR [PREFIX/man]
276 --srcdir=DIR find the sources in DIR [configure dir or ..]
277 --program-prefix=PREFIX prepend PREFIX to installed program names
278 --program-suffix=SUFFIX append SUFFIX to installed program names
279 --program-transform-name=PROGRAM
280 run sed PROGRAM on installed program names
284 --build=BUILD configure for building on BUILD [BUILD=HOST]
285 --host=HOST configure for HOST [guessed]
286 --target=TARGET configure for TARGET [TARGET=HOST]
287 Features and packages:
288 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
289 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
290 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
291 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
292 --x-includes=DIR X include files are in DIR
293 --x-libraries=DIR X library files are in DIR
295 if test -n "$ac_help"; then
296 echo "--enable and --with options recognized:$ac_help"
300 -host | --host | --hos | --ho)
302 -host=* | --host=* | --hos=* | --ho=*)
305 -includedir | --includedir | --includedi | --included | --include \
306 | --includ | --inclu | --incl | --inc)
307 ac_prev=includedir ;;
308 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
309 | --includ=* | --inclu=* | --incl=* | --inc=*)
310 includedir="$ac_optarg" ;;
312 -infodir | --infodir | --infodi | --infod | --info | --inf)
314 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
315 infodir="$ac_optarg" ;;
317 -libdir | --libdir | --libdi | --libd)
319 -libdir=* | --libdir=* | --libdi=* | --libd=*)
320 libdir="$ac_optarg" ;;
322 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
323 | --libexe | --libex | --libe)
324 ac_prev=libexecdir ;;
325 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
326 | --libexe=* | --libex=* | --libe=*)
327 libexecdir="$ac_optarg" ;;
329 -localstatedir | --localstatedir | --localstatedi | --localstated \
330 | --localstate | --localstat | --localsta | --localst \
331 | --locals | --local | --loca | --loc | --lo)
332 ac_prev=localstatedir ;;
333 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
334 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
335 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
336 localstatedir="$ac_optarg" ;;
338 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
340 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
341 mandir="$ac_optarg" ;;
344 # Obsolete; use --without-fp.
347 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
351 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
352 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
355 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
356 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
357 | --oldin | --oldi | --old | --ol | --o)
358 ac_prev=oldincludedir ;;
359 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
360 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
361 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
362 oldincludedir="$ac_optarg" ;;
364 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
366 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
367 prefix="$ac_optarg" ;;
369 -program-prefix | --program-prefix | --program-prefi | --program-pref \
370 | --program-pre | --program-pr | --program-p)
371 ac_prev=program_prefix ;;
372 -program-prefix=* | --program-prefix=* | --program-prefi=* \
373 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
374 program_prefix="$ac_optarg" ;;
376 -program-suffix | --program-suffix | --program-suffi | --program-suff \
377 | --program-suf | --program-su | --program-s)
378 ac_prev=program_suffix ;;
379 -program-suffix=* | --program-suffix=* | --program-suffi=* \
380 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
381 program_suffix="$ac_optarg" ;;
383 -program-transform-name | --program-transform-name \
384 | --program-transform-nam | --program-transform-na \
385 | --program-transform-n | --program-transform- \
386 | --program-transform | --program-transfor \
387 | --program-transfo | --program-transf \
388 | --program-trans | --program-tran \
389 | --progr-tra | --program-tr | --program-t)
390 ac_prev=program_transform_name ;;
391 -program-transform-name=* | --program-transform-name=* \
392 | --program-transform-nam=* | --program-transform-na=* \
393 | --program-transform-n=* | --program-transform-=* \
394 | --program-transform=* | --program-transfor=* \
395 | --program-transfo=* | --program-transf=* \
396 | --program-trans=* | --program-tran=* \
397 | --progr-tra=* | --program-tr=* | --program-t=*)
398 program_transform_name="$ac_optarg" ;;
400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
401 | -silent | --silent | --silen | --sile | --sil)
404 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
406 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
408 sbindir="$ac_optarg" ;;
410 -sharedstatedir | --sharedstatedir | --sharedstatedi \
411 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
412 | --sharedst | --shareds | --shared | --share | --shar \
414 ac_prev=sharedstatedir ;;
415 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
416 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
417 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
419 sharedstatedir="$ac_optarg" ;;
421 -site | --site | --sit)
423 -site=* | --site=* | --sit=*)
426 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
428 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
429 srcdir="$ac_optarg" ;;
431 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
432 | --syscon | --sysco | --sysc | --sys | --sy)
433 ac_prev=sysconfdir ;;
434 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
435 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
436 sysconfdir="$ac_optarg" ;;
438 -target | --target | --targe | --targ | --tar | --ta | --t)
440 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
441 target="$ac_optarg" ;;
443 -v | -verbose | --verbose | --verbos | --verbo | --verb)
446 -version | --version | --versio | --versi | --vers)
447 echo "configure generated by autoconf version 2.13.1"
451 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
452 # Reject names that are not valid shell variable names.
453 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
454 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
456 ac_package=`echo $ac_package| sed 's/-/_/g'`
461 eval "with_${ac_package}='$ac_optarg'" ;;
463 -without-* | --without-*)
464 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
465 # Reject names that are not valid shell variable names.
466 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
467 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
469 ac_package=`echo $ac_package| sed 's/-/_/g'`
470 eval "with_${ac_package}=no" ;;
473 # Obsolete; use --with-x.
476 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
477 | --x-incl | --x-inc | --x-in | --x-i)
478 ac_prev=x_includes ;;
479 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
480 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
481 x_includes="$ac_optarg" ;;
483 -x-libraries | --x-libraries | --x-librarie | --x-librari \
484 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
485 ac_prev=x_libraries ;;
486 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
487 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
488 x_libraries="$ac_optarg" ;;
490 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
494 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
495 echo "configure: warning: $ac_option: invalid host type" 1>&2
497 if test "x$nonopt" != xNONE; then
498 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
506 if test -n "$ac_prev"; then
507 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
510 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
512 # File descriptor usage:
515 # 2 errors and warnings
516 # 3 some systems may open it to /dev/tty
517 # 4 used on the Kubota Titan
518 # 6 checking for... messages and results
519 # 5 compiler messages saved in config.log
520 if test "$silent" = yes; then
528 This file contains any messages produced by compilers while
529 running configure, to aid debugging if configure makes a mistake.
532 # Strip out --no-create and --no-recursion so they do not pile up.
533 # Also quote any args containing shell metacharacters.
538 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
539 | --no-cr | --no-c) ;;
540 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
541 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
542 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
543 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
544 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
549 # Only set these to C if already set. These must not be set unconditionally
550 # because not all systems understand e.g. LANG=C (notably SCO).
551 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
552 # Non-C LC_CTYPE values break the ctype check.
553 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
554 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
555 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
556 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
558 # confdefs.h avoids OS command line length limits that DEFS can exceed.
559 rm -rf conftest* confdefs.h
560 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
563 # A filename unique to this package, relative to the directory that
564 # configure is in, which we can look for to find out if srcdir is correct.
565 ac_unique_file=build/version
567 # Find the source files, if location was not specified.
568 if test -z "$srcdir"; then
569 ac_srcdir_defaulted=yes
570 # Try the directory containing this script, then its parent.
572 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
573 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
575 if test ! -r $srcdir/$ac_unique_file; then
579 ac_srcdir_defaulted=no
581 if test ! -r $srcdir/$ac_unique_file; then
582 if test "$ac_srcdir_defaulted" = yes; then
583 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
585 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
588 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
590 # Prefer explicitly selected file to automatically selected ones.
591 if test -z "$CONFIG_SITE"; then
592 if test "x$prefix" != xNONE; then
593 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
595 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
598 for ac_site_file in $CONFIG_SITE; do
599 if test -r "$ac_site_file"; then
600 echo "loading site script $ac_site_file"
607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
608 ac_cpp='$CPP $CPPFLAGS'
609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
611 cross_compiling=$ac_cv_prog_cc_cross
615 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
616 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
617 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
624 ac_n= ac_c='\c' ac_t=
628 for ac_dir in build $srcdir/build; do
629 if test -f $ac_dir/install-sh; then
631 ac_install_sh="$ac_aux_dir/install-sh -c"
633 elif test -f $ac_dir/install.sh; then
635 ac_install_sh="$ac_aux_dir/install.sh -c"
639 if test -z "$ac_aux_dir"; then
640 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
642 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
643 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
644 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
646 OL_VERSION=`cat $ac_aux_dir/version`
647 if test -z "$OL_VERSION"; then
648 { echo "configure: error: could not determine version" 1>&2; exit 1; }
652 echo $ac_n "checking host system type""... $ac_c" 1>&6
653 echo "configure:654: checking host system type" >&5
654 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
656 # Make sure we can run config.sub.
657 if $ac_config_sub sun4 >/dev/null 2>&1; then :
658 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
661 ac_cv_host_alias=$host
662 case "$ac_cv_host_alias" in
666 if ac_cv_host_alias=`$ac_config_guess`; then :
667 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
669 *) ac_cv_host_alias=$nonopt ;;
673 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
674 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
678 echo $ac_n "(cached) $ac_c" 1>&6
681 echo "$ac_t""$ac_cv_host" 1>&6
684 host_alias=$ac_cv_host_alias
685 host_cpu=$ac_cv_host_cpu
686 host_vendor=$ac_cv_host_vendor
687 host_os=$ac_cv_host_os
693 echo $ac_n "checking target system type""... $ac_c" 1>&6
694 echo "configure:695: checking target system type" >&5
695 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
697 # Make sure we can run config.sub.
698 if $ac_config_sub sun4 >/dev/null 2>&1; then :
699 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
702 ac_cv_target_alias=$target
703 case "$ac_cv_target_alias" in
707 ac_cv_target_alias=$host_alias ;;
709 *) ac_cv_target_alias=$nonopt ;;
713 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
714 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
715 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
716 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
718 echo $ac_n "(cached) $ac_c" 1>&6
721 echo "$ac_t""$ac_cv_target" 1>&6
724 target_alias=$ac_cv_target_alias
725 target_cpu=$ac_cv_target_cpu
726 target_vendor=$ac_cv_target_vendor
727 target_os=$ac_cv_target_os
733 echo $ac_n "checking build system type""... $ac_c" 1>&6
734 echo "configure:735: checking build system type" >&5
735 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
737 # Make sure we can run config.sub.
738 if $ac_config_sub sun4 >/dev/null 2>&1; then :
739 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
742 ac_cv_build_alias=$build
743 case "$ac_cv_build_alias" in
747 ac_cv_build_alias=$host_alias ;;
749 *) ac_cv_build_alias=$nonopt ;;
753 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
754 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
755 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
756 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
758 echo $ac_n "(cached) $ac_c" 1>&6
761 echo "$ac_t""$ac_cv_build" 1>&6
764 build_alias=$ac_cv_build_alias
765 build_cpu=$ac_cv_build_cpu
766 build_vendor=$ac_cv_build_vendor
767 build_os=$ac_cv_build_os
773 # Do some error checking and defaulting for the host and target type.
775 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
778 # 1. You are not allowed to specify --host, --target, and nonopt at the
780 # 2. Host defaults to nonopt.
781 # 3. If nonopt is not specified, then host defaults to the current host,
782 # as determined by config.guess.
783 # 4. Target and build default to nonopt.
784 # 5. If nonopt is not specified, then target and build default to host.
786 # The aliases save the names the user supplied, while $host etc.
787 # will get canonicalized.
788 case $host---$target---$nonopt in
789 NONE---*---* | *---NONE---* | *---*---NONE) ;;
790 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
793 test "$host_alias" != "$target_alias" &&
794 test "$program_prefix$program_suffix$program_transform_name" = \
796 program_prefix=${target_alias}-
799 # Find a good install program. We prefer a C program (faster),
800 # so one script is as good as another. But avoid the broken or
801 # incompatible versions:
802 # SysV /etc/install, /usr/sbin/install
803 # SunOS /usr/etc/install
806 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
809 # ./install, which can be erroneously created by make from ./install.sh.
810 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
811 echo "configure:812: checking for a BSD compatible install" >&5
812 if test -z "$INSTALL"; then
813 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
817 for ac_dir in $PATH; do
818 # Account for people who put trailing slashes in PATH elements.
820 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
822 # OSF1 and SCO ODT 3.0 have their own names for install.
823 # Don't use installbsd from OSF since it installs stuff as root
825 for ac_prog in ginstall scoinst install; do
826 if test -f $ac_dir/$ac_prog; then
827 if test $ac_prog = install &&
828 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
829 # AIX install. It has an incompatible calling convention.
831 elif test $ac_prog = install &&
832 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
833 # program-specific install script used by HP pwplus--don't use.
836 ac_cv_path_install="$ac_dir/$ac_prog -c"
847 if test "${ac_cv_path_install+set}" = set; then
848 INSTALL="$ac_cv_path_install"
850 # As a last resort, use the slow shell script. We don't cache a
851 # path for INSTALL within a source directory, because that will
852 # break other packages using the cache if that directory is
853 # removed, or if the path is relative.
854 INSTALL="$ac_install_sh"
857 echo "$ac_t""$INSTALL" 1>&6
859 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
860 # It thinks the first close brace ends the variable substitution.
861 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
863 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
865 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
867 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
868 echo "configure:869: checking whether build environment is sane" >&5
871 echo timestamp > conftestfile
872 # Do `set' in a subshell so we don't clobber the current shell's
873 # arguments. Must try -L first in case configure is actually a
874 # symlink; some systems play weird games with the mod time of symlinks
875 # (eg FreeBSD returns the mod time of the symlink's containing
878 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
879 if test "$*" = "X"; then
881 set X `ls -t $srcdir/configure conftestfile`
883 if test "$*" != "X $srcdir/configure conftestfile" \
884 && test "$*" != "X conftestfile $srcdir/configure"; then
886 # If neither matched, then we have a broken ls. This can happen
887 # if, for instance, CONFIG_SHELL is bash and it inherits a
888 # broken ls alias from the environment. This has actually
889 # happened. Such a system could not be considered "sane".
890 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
891 alias in your environment" 1>&2; exit 1; }
894 test "$2" = conftestfile
900 { echo "configure: error: newly created file is older than distributed files!
901 Check your system clock" 1>&2; exit 1; }
904 echo "$ac_t""yes" 1>&6
905 if test "$program_transform_name" = s,x,x,; then
906 program_transform_name=
908 # Double any \ or $. echo might interpret backslashes.
909 cat <<\EOF_SED > conftestsed
910 s,\\,\\\\,g; s,\$,$$,g
912 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
915 test "$program_prefix" != NONE &&
916 program_transform_name="s,^,${program_prefix},;$program_transform_name"
917 # Use a double $ so make ignores it.
918 test "$program_suffix" != NONE &&
919 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
921 # sed with no file args requires a program.
922 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
924 for ac_prog in mawk gawk nawk awk
926 # Extract the first word of "$ac_prog", so it can be a program name with args.
927 set dummy $ac_prog; ac_word=$2
928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
929 echo "configure:930: checking for $ac_word" >&5
930 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 if test -n "$AWK"; then
934 ac_cv_prog_AWK="$AWK" # Let the user override the test.
936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
938 for ac_dir in $ac_dummy; do
939 test -z "$ac_dir" && ac_dir=.
940 if test -f $ac_dir/$ac_word; then
941 ac_cv_prog_AWK="$ac_prog"
948 AWK="$ac_cv_prog_AWK"
949 if test -n "$AWK"; then
950 echo "$ac_t""$AWK" 1>&6
952 echo "$ac_t""no" 1>&6
955 test -n "$AWK" && break
958 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
959 echo "configure:960: checking whether ${MAKE-make} sets \${MAKE}" >&5
960 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
961 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
962 echo $ac_n "(cached) $ac_c" 1>&6
964 cat > conftestmake <<\EOF
966 @echo 'ac_maketemp="${MAKE}"'
968 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
969 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
970 if test -n "$ac_maketemp"; then
971 eval ac_cv_prog_make_${ac_make}_set=yes
973 eval ac_cv_prog_make_${ac_make}_set=no
977 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
978 echo "$ac_t""yes" 1>&6
981 echo "$ac_t""no" 1>&6
982 SET_MAKE="MAKE=${MAKE-make}"
991 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
992 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
997 missing_dir=`cd $ac_aux_dir && pwd`
998 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
999 echo "configure:1000: checking for working aclocal" >&5
1000 # Run test in a subshell; some versions of sh will print an error if
1001 # an executable is not found, even if stderr is redirected.
1002 # Redirect stdin to placate older versions of autoconf. Sigh.
1003 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1005 echo "$ac_t""found" 1>&6
1007 ACLOCAL="$missing_dir/missing aclocal"
1008 echo "$ac_t""missing" 1>&6
1011 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1012 echo "configure:1013: checking for working autoconf" >&5
1013 # Run test in a subshell; some versions of sh will print an error if
1014 # an executable is not found, even if stderr is redirected.
1015 # Redirect stdin to placate older versions of autoconf. Sigh.
1016 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1018 echo "$ac_t""found" 1>&6
1020 AUTOCONF="$missing_dir/missing autoconf"
1021 echo "$ac_t""missing" 1>&6
1024 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1025 echo "configure:1026: checking for working automake" >&5
1026 # Run test in a subshell; some versions of sh will print an error if
1027 # an executable is not found, even if stderr is redirected.
1028 # Redirect stdin to placate older versions of autoconf. Sigh.
1029 if (automake --version) < /dev/null > /dev/null 2>&1; then
1031 echo "$ac_t""found" 1>&6
1033 AUTOMAKE="$missing_dir/missing automake"
1034 echo "$ac_t""missing" 1>&6
1037 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1038 echo "configure:1039: checking for working autoheader" >&5
1039 # Run test in a subshell; some versions of sh will print an error if
1040 # an executable is not found, even if stderr is redirected.
1041 # Redirect stdin to placate older versions of autoconf. Sigh.
1042 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1043 AUTOHEADER=autoheader
1044 echo "$ac_t""found" 1>&6
1046 AUTOHEADER="$missing_dir/missing autoheader"
1047 echo "$ac_t""missing" 1>&6
1050 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1051 echo "configure:1052: checking for working makeinfo" >&5
1052 # Run test in a subshell; some versions of sh will print an error if
1053 # an executable is not found, even if stderr is redirected.
1054 # Redirect stdin to placate older versions of autoconf. Sigh.
1055 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1057 echo "$ac_t""found" 1>&6
1059 MAKEINFO="$missing_dir/missing makeinfo"
1060 echo "$ac_t""missing" 1>&6
1063 install_sh="$missing_dir/install-sh"
1064 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1066 for ac_prog in gnutar gtar tar
1068 # Extract the first word of "$ac_prog", so it can be a program name with args.
1069 set dummy $ac_prog; ac_word=$2
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1071 echo "configure:1072: checking for $ac_word" >&5
1072 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 if test -n "$AMTAR"; then
1076 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1080 for ac_dir in $ac_dummy; do
1081 test -z "$ac_dir" && ac_dir=.
1082 if test -f $ac_dir/$ac_word; then
1083 ac_cv_prog_AMTAR="$ac_prog"
1090 AMTAR="$ac_cv_prog_AMTAR"
1091 if test -n "$AMTAR"; then
1092 echo "$ac_t""$AMTAR" 1>&6
1094 echo "$ac_t""no" 1>&6
1097 test -n "$AMTAR" && break
1102 if test -n "$AMTAR"; then
1103 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1110 cat >> confdefs.h <<EOF
1111 #define OPENLDAP_PACKAGE "$PACKAGE"
1114 cat >> confdefs.h <<EOF
1115 #define OPENLDAP_VERSION "$VERSION"
1121 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1122 echo "configure:1123: checking configure arguments" >&5
1127 ldap_subdir="/openldap"
1129 # Check whether --with-subdir or --without-subdir was given.
1130 if test "${with_subdir+set}" = set; then
1131 withval="$with_subdir"
1138 ldap_subdir="$withval"
1141 ldap_subdir="/$withval"
1148 # OpenLDAP --enable-debug
1149 # Check whether --enable-debug or --disable-debug was given.
1150 if test "${enable_debug+set}" = set; then
1151 enableval="$enable_debug"
1154 for ol_val in auto yes no ; do
1155 if test "$enableval" = "$ol_val" ; then
1159 if test "$ol_arg" = "invalid" ; then
1160 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1162 ol_enable_debug="$ol_arg"
1165 ol_enable_debug="yes"
1167 # end --enable-debug
1168 # OpenLDAP --enable-syslog
1169 # Check whether --enable-syslog or --disable-syslog was given.
1170 if test "${enable_syslog+set}" = set; then
1171 enableval="$enable_syslog"
1174 for ol_val in auto yes no ; do
1175 if test "$enableval" = "$ol_val" ; then
1179 if test "$ol_arg" = "invalid" ; then
1180 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1182 ol_enable_syslog="$ol_arg"
1185 ol_enable_syslog="auto"
1187 # end --enable-syslog
1188 # OpenLDAP --enable-proctitle
1189 # Check whether --enable-proctitle or --disable-proctitle was given.
1190 if test "${enable_proctitle+set}" = set; then
1191 enableval="$enable_proctitle"
1194 for ol_val in auto yes no ; do
1195 if test "$enableval" = "$ol_val" ; then
1199 if test "$ol_arg" = "invalid" ; then
1200 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1202 ol_enable_proctitle="$ol_arg"
1205 ol_enable_proctitle="yes"
1207 # end --enable-proctitle
1208 # OpenLDAP --enable-cache
1209 # Check whether --enable-cache or --disable-cache was given.
1210 if test "${enable_cache+set}" = set; then
1211 enableval="$enable_cache"
1214 for ol_val in auto yes no ; do
1215 if test "$enableval" = "$ol_val" ; then
1219 if test "$ol_arg" = "invalid" ; then
1220 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1222 ol_enable_cache="$ol_arg"
1225 ol_enable_cache="yes"
1227 # end --enable-cache
1228 # OpenLDAP --enable-dns
1229 # Check whether --enable-dns or --disable-dns was given.
1230 if test "${enable_dns+set}" = set; then
1231 enableval="$enable_dns"
1234 for ol_val in auto yes no ; do
1235 if test "$enableval" = "$ol_val" ; then
1239 if test "$ol_arg" = "invalid" ; then
1240 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1242 ol_enable_dns="$ol_arg"
1248 # OpenLDAP --enable-referrals
1249 # Check whether --enable-referrals or --disable-referrals was given.
1250 if test "${enable_referrals+set}" = set; then
1251 enableval="$enable_referrals"
1254 for ol_val in auto yes no ; do
1255 if test "$enableval" = "$ol_val" ; then
1259 if test "$ol_arg" = "invalid" ; then
1260 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1262 ol_enable_referrals="$ol_arg"
1265 ol_enable_referrals="yes"
1267 # end --enable-referrals
1268 # OpenLDAP --enable-cldap
1269 # Check whether --enable-cldap or --disable-cldap was given.
1270 if test "${enable_cldap+set}" = set; then
1271 enableval="$enable_cldap"
1274 for ol_val in auto yes no ; do
1275 if test "$enableval" = "$ol_val" ; then
1279 if test "$ol_arg" = "invalid" ; then
1280 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1282 ol_enable_cldap="$ol_arg"
1285 ol_enable_cldap="no"
1287 # end --enable-cldap
1288 # OpenLDAP --enable-x_compile
1289 # Check whether --enable-x_compile or --disable-x_compile was given.
1290 if test "${enable_x_compile+set}" = set; then
1291 enableval="$enable_x_compile"
1294 for ol_val in yes no ; do
1295 if test "$enableval" = "$ol_val" ; then
1299 if test "$ol_arg" = "invalid" ; then
1300 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1302 ol_enable_x_compile="$ol_arg"
1305 ol_enable_x_compile="no"
1307 # end --enable-x_compile
1309 # OpenLDAP --enable-dmalloc
1310 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1311 if test "${enable_dmalloc+set}" = set; then
1312 enableval="$enable_dmalloc"
1315 for ol_val in auto yes no ; do
1316 if test "$enableval" = "$ol_val" ; then
1320 if test "$ol_arg" = "invalid" ; then
1321 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1323 ol_enable_dmalloc="$ol_arg"
1326 ol_enable_dmalloc="no"
1328 # end --enable-dmalloc
1330 # OpenLDAP --with-cyrus_sasl
1331 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1332 if test "${with_cyrus_sasl+set}" = set; then
1333 withval="$with_cyrus_sasl"
1336 for ol_val in auto yes no ; do
1337 if test "$withval" = "$ol_val" ; then
1341 if test "$ol_arg" = "invalid" ; then
1342 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1344 ol_with_cyrus_sasl="$ol_arg"
1347 ol_with_cyrus_sasl="auto"
1349 # end --with-cyrus_sasl
1351 # OpenLDAP --with-fetch
1352 # Check whether --with-fetch or --without-fetch was given.
1353 if test "${with_fetch+set}" = set; then
1354 withval="$with_fetch"
1357 for ol_val in auto yes no ; do
1358 if test "$withval" = "$ol_val" ; then
1362 if test "$ol_arg" = "invalid" ; then
1363 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1365 ol_with_fetch="$ol_arg"
1368 ol_with_fetch="auto"
1372 # OpenLDAP --with-kerberos
1373 # Check whether --with-kerberos or --without-kerberos was given.
1374 if test "${with_kerberos+set}" = set; then
1375 withval="$with_kerberos"
1378 for ol_val in auto k5 k4 afs 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-kerberos" 1>&2; exit 1; }
1386 ol_with_kerberos="$ol_arg"
1389 ol_with_kerberos="auto"
1391 # end --with-kerberos
1393 # OpenLDAP --with-readline
1394 # Check whether --with-readline or --without-readline was given.
1395 if test "${with_readline+set}" = set; then
1396 withval="$with_readline"
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-readline" 1>&2; exit 1; }
1407 ol_with_readline="$ol_arg"
1410 ol_with_readline="auto"
1412 # end --with-readline
1414 # OpenLDAP --with-threads
1415 # Check whether --with-threads or --without-threads was given.
1416 if test "${with_threads+set}" = set; then
1417 withval="$with_threads"
1420 for ol_val in auto posix mach pth lwp yes no manual ; do
1421 if test "$withval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1428 ol_with_threads="$ol_arg"
1431 ol_with_threads="auto"
1433 # end --with-threads
1435 # OpenLDAP --with-tls
1436 # Check whether --with-tls or --without-tls was given.
1437 if test "${with_tls+set}" = set; then
1441 for ol_val in auto ssleay openssl 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-tls" 1>&2; exit 1; }
1449 ol_with_tls="$ol_arg"
1456 # OpenLDAP --with-yielding_select
1457 # Check whether --with-yielding_select or --without-yielding_select was given.
1458 if test "${with_yielding_select+set}" = set; then
1459 withval="$with_yielding_select"
1462 for ol_val in auto 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-yielding_select" 1>&2; exit 1; }
1470 ol_with_yielding_select="$ol_arg"
1473 ol_with_yielding_select="auto"
1475 # end --with-yielding_select
1479 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1480 if test "${with_xxldapdoptions+set}" = set; then
1481 withval="$with_xxldapdoptions"
1485 # OpenLDAP --enable-ldapd
1486 # Check whether --enable-ldapd or --disable-ldapd was given.
1487 if test "${enable_ldapd+set}" = set; then
1488 enableval="$enable_ldapd"
1491 for ol_val in auto yes no ; do
1492 if test "$enableval" = "$ol_val" ; then
1496 if test "$ol_arg" = "invalid" ; then
1497 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1499 ol_enable_ldapd="$ol_arg"
1502 ol_enable_ldapd="no"
1504 # end --enable-ldapd
1506 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1507 if test "${with_xxslapdoptions+set}" = set; then
1508 withval="$with_xxslapdoptions"
1512 # OpenLDAP --enable-slapd
1513 # Check whether --enable-slapd or --disable-slapd was given.
1514 if test "${enable_slapd+set}" = set; then
1515 enableval="$enable_slapd"
1518 for ol_val in auto yes no ; do
1519 if test "$enableval" = "$ol_val" ; then
1523 if test "$ol_arg" = "invalid" ; then
1524 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1526 ol_enable_slapd="$ol_arg"
1529 ol_enable_slapd="yes"
1531 # end --enable-slapd
1532 # OpenLDAP --enable-cleartext
1533 # Check whether --enable-cleartext or --disable-cleartext was given.
1534 if test "${enable_cleartext+set}" = set; then
1535 enableval="$enable_cleartext"
1538 for ol_val in auto yes no ; do
1539 if test "$enableval" = "$ol_val" ; then
1543 if test "$ol_arg" = "invalid" ; then
1544 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1546 ol_enable_cleartext="$ol_arg"
1549 ol_enable_cleartext="yes"
1551 # end --enable-cleartext
1552 # OpenLDAP --enable-crypt
1553 # Check whether --enable-crypt or --disable-crypt was given.
1554 if test "${enable_crypt+set}" = set; then
1555 enableval="$enable_crypt"
1558 for ol_val in auto yes no ; do
1559 if test "$enableval" = "$ol_val" ; then
1563 if test "$ol_arg" = "invalid" ; then
1564 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1566 ol_enable_crypt="$ol_arg"
1569 ol_enable_crypt="auto"
1571 # end --enable-crypt
1572 # OpenLDAP --enable-modules
1573 # Check whether --enable-modules or --disable-modules was given.
1574 if test "${enable_modules+set}" = set; then
1575 enableval="$enable_modules"
1578 for ol_val in auto yes no ; do
1579 if test "$enableval" = "$ol_val" ; then
1583 if test "$ol_arg" = "invalid" ; then
1584 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1586 ol_enable_modules="$ol_arg"
1589 ol_enable_modules="no"
1591 # end --enable-modules
1592 # OpenLDAP --enable-multimaster
1593 # Check whether --enable-multimaster or --disable-multimaster was given.
1594 if test "${enable_multimaster+set}" = set; then
1595 enableval="$enable_multimaster"
1598 for ol_val in auto yes no ; do
1599 if test "$enableval" = "$ol_val" ; then
1603 if test "$ol_arg" = "invalid" ; then
1604 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1606 ol_enable_multimaster="$ol_arg"
1609 ol_enable_multimaster="no"
1611 # end --enable-multimaster
1612 # OpenLDAP --enable-phonetic
1613 # Check whether --enable-phonetic or --disable-phonetic was given.
1614 if test "${enable_phonetic+set}" = set; then
1615 enableval="$enable_phonetic"
1618 for ol_val in auto yes no ; do
1619 if test "$enableval" = "$ol_val" ; then
1623 if test "$ol_arg" = "invalid" ; then
1624 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1626 ol_enable_phonetic="$ol_arg"
1629 ol_enable_phonetic="no"
1631 # end --enable-phonetic
1632 # OpenLDAP --enable-quipu
1633 # Check whether --enable-quipu or --disable-quipu was given.
1634 if test "${enable_quipu+set}" = set; then
1635 enableval="$enable_quipu"
1638 for ol_val in auto yes no ; do
1639 if test "$enableval" = "$ol_val" ; then
1643 if test "$ol_arg" = "invalid" ; then
1644 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1646 ol_enable_quipu="$ol_arg"
1649 ol_enable_quipu="no"
1651 # end --enable-quipu
1652 # OpenLDAP --enable-rlookups
1653 # Check whether --enable-rlookups or --disable-rlookups was given.
1654 if test "${enable_rlookups+set}" = set; then
1655 enableval="$enable_rlookups"
1658 for ol_val in auto yes no ; do
1659 if test "$enableval" = "$ol_val" ; then
1663 if test "$ol_arg" = "invalid" ; then
1664 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1666 ol_enable_rlookups="$ol_arg"
1669 ol_enable_rlookups="auto"
1671 # end --enable-rlookups
1672 # OpenLDAP --enable-aci
1673 # Check whether --enable-aci or --disable-aci was given.
1674 if test "${enable_aci+set}" = set; then
1675 enableval="$enable_aci"
1678 for ol_val in auto yes no ; do
1679 if test "$enableval" = "$ol_val" ; then
1683 if test "$ol_arg" = "invalid" ; then
1684 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1686 ol_enable_aci="$ol_arg"
1692 # OpenLDAP --enable-discreteaci
1693 # Check whether --enable-discreteaci or --disable-discreteaci was given.
1694 if test "${enable_discreteaci+set}" = set; then
1695 enableval="$enable_discreteaci"
1698 for ol_val in auto yes no ; do
1699 if test "$enableval" = "$ol_val" ; then
1703 if test "$ol_arg" = "invalid" ; then
1704 { echo "configure: error: bad value $enableval for --enable-discreteaci" 1>&2; exit 1; }
1706 ol_enable_discreteaci="$ol_arg"
1709 ol_enable_discreteaci="no"
1711 # end --enable-discreteaci
1712 # OpenLDAP --enable-wrappers
1713 # Check whether --enable-wrappers or --disable-wrappers was given.
1714 if test "${enable_wrappers+set}" = set; then
1715 enableval="$enable_wrappers"
1718 for ol_val in auto yes no ; do
1719 if test "$enableval" = "$ol_val" ; then
1723 if test "$ol_arg" = "invalid" ; then
1724 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1726 ol_enable_wrappers="$ol_arg"
1729 ol_enable_wrappers="no"
1731 # end --enable-wrappers
1733 # OpenLDAP --enable-bdb2
1734 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1735 if test "${enable_bdb2+set}" = set; then
1736 enableval="$enable_bdb2"
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-bdb2" 1>&2; exit 1; }
1747 ol_enable_bdb2="$ol_arg"
1753 # OpenLDAP --with-bdb2_module
1754 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1755 if test "${with_bdb2_module+set}" = set; then
1756 withval="$with_bdb2_module"
1759 for ol_val in static dynamic ; do
1760 if test "$withval" = "$ol_val" ; then
1764 if test "$ol_arg" = "invalid" ; then
1765 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1767 ol_with_bdb2_module="$ol_arg"
1770 ol_with_bdb2_module="static"
1772 # end --with-bdb2_module
1774 # OpenLDAP --enable-ldap
1775 # Check whether --enable-ldap or --disable-ldap was given.
1776 if test "${enable_ldap+set}" = set; then
1777 enableval="$enable_ldap"
1780 for ol_val in auto yes no ; do
1781 if test "$enableval" = "$ol_val" ; then
1785 if test "$ol_arg" = "invalid" ; then
1786 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1788 ol_enable_ldap="$ol_arg"
1794 # OpenLDAP --with-ldap_module
1795 # Check whether --with-ldap_module or --without-ldap_module was given.
1796 if test "${with_ldap_module+set}" = set; then
1797 withval="$with_ldap_module"
1800 for ol_val in static dynamic ; do
1801 if test "$withval" = "$ol_val" ; then
1805 if test "$ol_arg" = "invalid" ; then
1806 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1808 ol_with_ldap_module="$ol_arg"
1811 ol_with_ldap_module="static"
1813 # end --with-ldap_module
1815 # OpenLDAP --enable-ldbm
1816 # Check whether --enable-ldbm or --disable-ldbm was given.
1817 if test "${enable_ldbm+set}" = set; then
1818 enableval="$enable_ldbm"
1821 for ol_val in auto yes no ; do
1822 if test "$enableval" = "$ol_val" ; then
1826 if test "$ol_arg" = "invalid" ; then
1827 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1829 ol_enable_ldbm="$ol_arg"
1832 ol_enable_ldbm="yes"
1835 # OpenLDAP --with-ldbm_api
1836 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1837 if test "${with_ldbm_api+set}" = set; then
1838 withval="$with_ldbm_api"
1841 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1842 if test "$withval" = "$ol_val" ; then
1846 if test "$ol_arg" = "invalid" ; then
1847 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1849 ol_with_ldbm_api="$ol_arg"
1852 ol_with_ldbm_api="auto"
1854 # end --with-ldbm_api
1856 # OpenLDAP --with-ldbm_module
1857 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1858 if test "${with_ldbm_module+set}" = set; then
1859 withval="$with_ldbm_module"
1862 for ol_val in static dynamic ; do
1863 if test "$withval" = "$ol_val" ; then
1867 if test "$ol_arg" = "invalid" ; then
1868 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1870 ol_with_ldbm_module="$ol_arg"
1873 ol_with_ldbm_module="static"
1875 # end --with-ldbm_module
1877 # OpenLDAP --with-ldbm_type
1878 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1879 if test "${with_ldbm_type+set}" = set; then
1880 withval="$with_ldbm_type"
1883 for ol_val in auto btree hash ; do
1884 if test "$withval" = "$ol_val" ; then
1888 if test "$ol_arg" = "invalid" ; then
1889 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1891 ol_with_ldbm_type="$ol_arg"
1894 ol_with_ldbm_type="auto"
1896 # end --with-ldbm_type
1899 # OpenLDAP --enable-passwd
1900 # Check whether --enable-passwd or --disable-passwd was given.
1901 if test "${enable_passwd+set}" = set; then
1902 enableval="$enable_passwd"
1905 for ol_val in auto yes no ; do
1906 if test "$enableval" = "$ol_val" ; then
1910 if test "$ol_arg" = "invalid" ; then
1911 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1913 ol_enable_passwd="$ol_arg"
1916 ol_enable_passwd="no"
1918 # end --enable-passwd
1919 # OpenLDAP --with-passwd_module
1920 # Check whether --with-passwd_module or --without-passwd_module was given.
1921 if test "${with_passwd_module+set}" = set; then
1922 withval="$with_passwd_module"
1925 for ol_val in static dynamic ; do
1926 if test "$withval" = "$ol_val" ; then
1930 if test "$ol_arg" = "invalid" ; then
1931 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1933 ol_with_passwd_module="$ol_arg"
1936 ol_with_passwd_module="static"
1938 # end --with-passwd_module
1940 # OpenLDAP --enable-perl
1941 # Check whether --enable-perl or --disable-perl was given.
1942 if test "${enable_perl+set}" = set; then
1943 enableval="$enable_perl"
1946 for ol_val in auto yes no ; do
1947 if test "$enableval" = "$ol_val" ; then
1951 if test "$ol_arg" = "invalid" ; then
1952 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1954 ol_enable_perl="$ol_arg"
1960 # OpenLDAP --with-perl_module
1961 # Check whether --with-perl_module or --without-perl_module was given.
1962 if test "${with_perl_module+set}" = set; then
1963 withval="$with_perl_module"
1966 for ol_val in static dynamic ; do
1967 if test "$withval" = "$ol_val" ; then
1971 if test "$ol_arg" = "invalid" ; then
1972 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1974 ol_with_perl_module="$ol_arg"
1977 ol_with_perl_module="static"
1979 # end --with-perl_module
1981 # OpenLDAP --enable-shell
1982 # Check whether --enable-shell or --disable-shell was given.
1983 if test "${enable_shell+set}" = set; then
1984 enableval="$enable_shell"
1987 for ol_val in auto yes no ; do
1988 if test "$enableval" = "$ol_val" ; then
1992 if test "$ol_arg" = "invalid" ; then
1993 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1995 ol_enable_shell="$ol_arg"
1998 ol_enable_shell="no"
2000 # end --enable-shell
2001 # OpenLDAP --with-shell_module
2002 # Check whether --with-shell_module or --without-shell_module was given.
2003 if test "${with_shell_module+set}" = set; then
2004 withval="$with_shell_module"
2007 for ol_val in static dynamic ; do
2008 if test "$withval" = "$ol_val" ; then
2012 if test "$ol_arg" = "invalid" ; then
2013 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2015 ol_with_shell_module="$ol_arg"
2018 ol_with_shell_module="static"
2020 # end --with-shell_module
2022 # OpenLDAP --enable-tcl
2023 # Check whether --enable-tcl or --disable-tcl was given.
2024 if test "${enable_tcl+set}" = set; then
2025 enableval="$enable_tcl"
2028 for ol_val in auto yes no ; do
2029 if test "$enableval" = "$ol_val" ; then
2033 if test "$ol_arg" = "invalid" ; then
2034 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2036 ol_enable_tcl="$ol_arg"
2042 # OpenLDAP --with-tcl_module
2043 # Check whether --with-tcl_module or --without-tcl_module was given.
2044 if test "${with_tcl_module+set}" = set; then
2045 withval="$with_tcl_module"
2048 for ol_val in static dynamic ; do
2049 if test "$withval" = "$ol_val" ; then
2053 if test "$ol_arg" = "invalid" ; then
2054 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2056 ol_with_tcl_module="$ol_arg"
2059 ol_with_tcl_module="static"
2061 # end --with-tcl_module
2064 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2065 if test "${with_xxslurpdoptions+set}" = set; then
2066 withval="$with_xxslurpdoptions"
2070 # OpenLDAP --enable-slurpd
2071 # Check whether --enable-slurpd or --disable-slurpd was given.
2072 if test "${enable_slurpd+set}" = set; then
2073 enableval="$enable_slurpd"
2076 for ol_val in auto yes no ; do
2077 if test "$enableval" = "$ol_val" ; then
2081 if test "$ol_arg" = "invalid" ; then
2082 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2084 ol_enable_slurpd="$ol_arg"
2087 ol_enable_slurpd="auto"
2089 # end --enable-slurpd
2091 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2092 if test "${with_xxliboptions+set}" = set; then
2093 withval="$with_xxliboptions"
2097 # Check whether --enable-static or --disable-static was given.
2098 if test "${enable_static+set}" = set; then
2099 enableval="$enable_static"
2100 p=${PACKAGE-default}
2101 case "$enableval" in
2102 yes) enable_static=yes ;;
2103 no) enable_static=no ;;
2106 # Look at the argument we got. We use all the common list separators.
2107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2108 for pkg in $enableval; do
2109 if test "X$pkg" = "X$p"; then
2120 # Check whether --enable-shared or --disable-shared was given.
2121 if test "${enable_shared+set}" = set; then
2122 enableval="$enable_shared"
2123 p=${PACKAGE-default}
2124 case "$enableval" in
2125 yes) enable_shared=yes ;;
2126 no) enable_shared=no ;;
2129 # Look at the argument we got. We use all the common list separators.
2130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2131 for pkg in $enableval; do
2132 if test "X$pkg" = "X$p"; then
2145 if test $ol_enable_dns = yes ; then
2146 if test $ol_enable_referrals = no ; then
2147 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2149 if test $ol_enable_referrals = auto ; then
2150 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2151 ol_enable_referrals=yes
2155 if test $ol_enable_slapd = no ; then
2156 if test $ol_enable_bdb2 = yes ; then
2157 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2159 if test $ol_enable_ldap = yes ; then
2160 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2162 if test $ol_enable_ldbm = yes ; then
2163 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2165 if test $ol_enable_passwd = yes ; then
2166 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2168 if test $ol_enable_perl = yes ; then
2169 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2171 if test $ol_enable_shell = yes ; then
2172 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2174 if test $ol_enable_tcl = yes ; then
2175 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2177 if test $ol_enable_modules = yes ; then
2178 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2180 if test $ol_enable_multimaster = yes ; then
2181 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2183 if test $ol_enable_wrappers = yes ; then
2184 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2186 if test $ol_enable_phonetic = yes ; then
2187 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2189 if test $ol_enable_quipu = yes ; then
2190 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2192 if test $ol_enable_rlookups = yes ; then
2193 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2195 if test $ol_enable_aci = yes ; then
2196 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2198 if test $ol_enable_discreteaci = yes ; then
2199 echo "configure: warning: slapd disabled, ignoring --enable-discreteaci argument" 1>&2
2201 if test $ol_with_ldbm_api != auto ; then
2202 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2204 if test $ol_with_ldbm_type != auto ; then
2205 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2207 if test $ol_with_bdb2_module != static ; then
2208 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2210 if test $ol_with_ldap_module != static ; then
2211 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2213 if test $ol_with_ldbm_module != static ; then
2214 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2216 if test $ol_with_passwd_module != static ; then
2217 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2219 if test $ol_with_perl_module != static ; then
2220 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2222 if test $ol_with_shell_module != static ; then
2223 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2225 if test $ol_with_tcl_module != static ; then
2226 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2228 if test $ol_enable_slurpd = yes ; then
2229 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2232 # force settings to no
2241 ol_enable_modules=no
2242 ol_enable_multimaster=no
2243 ol_enable_phonetic=no
2245 ol_enable_rlookups=no
2247 ol_enable_discreteaci=no
2248 ol_enable_wrappers=no
2251 ol_with_ldbm_type=no
2253 ol_with_bdb2_module=static
2254 ol_with_ldap_module=static
2255 ol_with_ldbm_module=static
2256 ol_with_passwd_module=static
2257 ol_with_perl_module=static
2258 ol_with_shell_module=static
2259 ol_with_tcl_module=static
2263 elif test $ol_enable_ldbm = no ; then
2265 if test $ol_with_ldbm_api != auto ; then
2266 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2269 if test $ol_with_ldbm_type != auto ; then
2270 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2273 if test $ol_with_ldbm_module != static ; then
2274 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2277 if test $ol_enable_bdb2 = yes ; then
2278 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2281 if test $ol_enable_modules != yes -a \
2282 $ol_enable_ldap = no -a \
2283 $ol_enable_passwd = no -a \
2284 $ol_enable_perl = no -a \
2285 $ol_enable_shell = no -a \
2286 $ol_enable_tcl = no ; then
2287 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2291 ol_with_ldbm_type=no
2292 ol_with_ldbm_module=static
2294 elif test $ol_enable_bdb2 = yes ; then
2296 if test $ol_with_ldbm_api != auto -a \
2297 $ol_with_ldbm_api != db2 ; then
2298 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2301 ol_with_ldbm_api=db2
2305 if test $ol_enable_bdb2 != no ; then
2306 if test $ol_with_ldbm_api != auto -a \
2307 $ol_with_ldbm_api != db2 ; then
2308 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2313 if test $ol_with_ldbm_api = gdbm -a \
2314 $ol_with_ldbm_type = btree ; then
2315 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2317 if test $ol_with_ldbm_api = mdbm -a \
2318 $ol_with_ldbm_type = btree ; then
2319 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2321 if test $ol_with_ldbm_api = ndbm -a \
2322 $ol_with_ldbm_type = btree ; then
2323 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2327 if test $ol_enable_slurpd = yes ; then
2328 if test $ol_with_threads = no ; then
2329 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2333 echo "$ac_t""done" 1>&6
2360 BUILD_BDB2_DYNAMIC=static
2361 BUILD_LDAP_DYNAMIC=static
2362 BUILD_LDBM_DYNAMIC=static
2363 BUILD_PASSWD_DYNAMIC=static
2364 BUILD_PERL_DYNAMIC=static
2365 BUILD_SHELL_DYNAMIC=static
2366 BUILD_TCL_DYNAMIC=static
2368 SLAPD_MODULES_LDFLAGS=
2369 SLAPD_MODULES_CPPFLAGS=
2373 SLAPD_PERL_CPPFLAGS=
2384 cat >> confdefs.h <<\EOF
2385 #define HAVE_MKVERSION 1
2394 *-*-aix*) if test -z "$CC" ; then
2395 case "$ol_with_threads" in
2396 auto | yes | posix) ol_aix_threads=yes ;;
2402 if test $ol_aix_threads = yes ; then
2403 if test -z "${CC}" ; then
2404 for ac_prog in cc_r xlc_r cc
2406 # Extract the first word of "$ac_prog", so it can be a program name with args.
2407 set dummy $ac_prog; ac_word=$2
2408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2409 echo "configure:2410: checking for $ac_word" >&5
2410 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2418 for ac_dir in $ac_dummy; do
2419 test -z "$ac_dir" && ac_dir=.
2420 if test -f $ac_dir/$ac_word; then
2421 ac_cv_prog_CC="$ac_prog"
2429 if test -n "$CC"; then
2430 echo "$ac_t""$CC" 1>&6
2432 echo "$ac_t""no" 1>&6
2435 test -n "$CC" && break
2439 if test "$CC" = cc ; then
2440 if test $ol_with_threads != auto ; then
2441 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2443 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2449 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2450 ol_with_threads=posix
2451 ol_cv_pthread_create=yes
2455 if test -z "${CC}"; then
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_word" >&5
2462 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2470 for ac_dir in $ac_dummy; do
2471 test -z "$ac_dir" && ac_dir=.
2472 if test -f $ac_dir/$ac_word; then
2473 ac_cv_prog_CC="$ac_prog"
2481 if test -n "$CC"; then
2482 echo "$ac_t""$CC" 1>&6
2484 echo "$ac_t""no" 1>&6
2487 test -n "$CC" && break
2494 # Check whether --enable-fast-install or --disable-fast-install was given.
2495 if test "${enable_fast_install+set}" = set; then
2496 enableval="$enable_fast_install"
2497 p=${PACKAGE-default}
2498 case "$enableval" in
2499 yes) enable_fast_install=yes ;;
2500 no) enable_fast_install=no ;;
2502 enable_fast_install=no
2503 # Look at the argument we got. We use all the common list separators.
2504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2505 for pkg in $enableval; do
2506 if test "X$pkg" = "X$p"; then
2507 enable_fast_install=yes
2514 enable_fast_install=yes
2517 # Extract the first word of "ranlib", so it can be a program name with args.
2518 set dummy ranlib; ac_word=$2
2519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2520 echo "configure:2521: checking for $ac_word" >&5
2521 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 if test -n "$RANLIB"; then
2525 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2529 for ac_dir in $ac_dummy; do
2530 test -z "$ac_dir" && ac_dir=.
2531 if test -f $ac_dir/$ac_word; then
2532 ac_cv_prog_RANLIB="ranlib"
2537 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2540 RANLIB="$ac_cv_prog_RANLIB"
2541 if test -n "$RANLIB"; then
2542 echo "$ac_t""$RANLIB" 1>&6
2544 echo "$ac_t""no" 1>&6
2547 # Extract the first word of "gcc", so it can be a program name with args.
2548 set dummy gcc; ac_word=$2
2549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_word" >&5
2551 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2559 for ac_dir in $ac_dummy; do
2560 test -z "$ac_dir" && ac_dir=.
2561 if test -f $ac_dir/$ac_word; then
2570 if test -n "$CC"; then
2571 echo "$ac_t""$CC" 1>&6
2573 echo "$ac_t""no" 1>&6
2576 if test -z "$CC"; then
2577 # Extract the first word of "cc", so it can be a program name with args.
2578 set dummy cc; ac_word=$2
2579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2580 echo "configure:2581: checking for $ac_word" >&5
2581 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2590 for ac_dir in $ac_dummy; do
2591 test -z "$ac_dir" && ac_dir=.
2592 if test -f $ac_dir/$ac_word; then
2593 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2594 ac_prog_rejected=yes
2602 if test $ac_prog_rejected = yes; then
2603 # We found a bogon in the path, so make sure we never use it.
2604 set dummy $ac_cv_prog_CC
2606 if test $# -gt 0; then
2607 # We chose a different compiler from the bogus one.
2608 # However, it has the same basename, so the bogon will be chosen
2609 # first if we set CC to just the basename; use the full file name.
2611 set dummy "$ac_dir/$ac_word" "$@"
2619 if test -n "$CC"; then
2620 echo "$ac_t""$CC" 1>&6
2622 echo "$ac_t""no" 1>&6
2625 if test -z "$CC"; then
2626 case "`uname -s`" in
2627 *win32* | *WIN32* | *CYGWIN*)
2628 # Extract the first word of "cl", so it can be a program name with args.
2629 set dummy cl; ac_word=$2
2630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2631 echo "configure:2632: checking for $ac_word" >&5
2632 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2640 for ac_dir in $ac_dummy; do
2641 test -z "$ac_dir" && ac_dir=.
2642 if test -f $ac_dir/$ac_word; then
2651 if test -n "$CC"; then
2652 echo "$ac_t""$CC" 1>&6
2654 echo "$ac_t""no" 1>&6
2659 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2662 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2663 echo "configure:2664: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2667 ac_cpp='$CPP $CPPFLAGS'
2668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2670 cross_compiling=$ac_cv_prog_cc_cross
2672 cat > conftest.$ac_ext << EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2679 if { (eval echo configure:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2680 ac_cv_prog_cc_works=yes
2681 # If we can't run a trivial program, we are probably using a cross compiler.
2682 if (./conftest; exit) 2>/dev/null; then
2683 ac_cv_prog_cc_cross=no
2685 ac_cv_prog_cc_cross=yes
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2690 ac_cv_prog_cc_works=no
2694 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2697 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2698 cross_compiling=$ac_cv_prog_cc_cross
2700 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2701 if test $ac_cv_prog_cc_works = no; then
2702 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2705 echo "configure:2706: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2706 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2707 cross_compiling=$ac_cv_prog_cc_cross
2709 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2710 echo "configure:2711: checking whether we are using GNU C" >&5
2711 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 cat > conftest.c <<EOF
2719 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2726 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2728 if test $ac_cv_prog_gcc = yes; then
2734 ac_test_CFLAGS="${CFLAGS+set}"
2735 ac_save_CFLAGS="$CFLAGS"
2737 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2738 echo "configure:2739: checking whether ${CC-cc} accepts -g" >&5
2739 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2740 echo $ac_n "(cached) $ac_c" 1>&6
2742 echo 'void f(){}' > conftest.c
2743 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2752 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2753 if test "$ac_test_CFLAGS" = set; then
2754 CFLAGS="$ac_save_CFLAGS"
2755 elif test $ac_cv_prog_cc_g = yes; then
2756 if test "$GCC" = yes; then
2762 if test "$GCC" = yes; then
2769 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2770 if test "${with_gnu_ld+set}" = set; then
2771 withval="$with_gnu_ld"
2772 test "$withval" = no || with_gnu_ld=yes
2778 if test "$ac_cv_prog_gcc" = yes; then
2779 # Check if gcc -print-prog-name=ld gives a path.
2780 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2781 echo "configure:2782: checking for ld used by GCC" >&5
2782 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2784 # Accept absolute paths.
2785 [\\/]* | [A-Za-z]:[\\/]*)
2786 re_direlt='/[^/][^/]*/\.\./'
2787 # Canonicalize the path of ld
2788 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2789 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2790 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2792 test -z "$LD" && LD="$ac_prog"
2795 # If it fails, then pretend we aren't using GCC.
2799 # If it is relative, then search for the first ld in PATH.
2803 elif test "$with_gnu_ld" = yes; then
2804 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2805 echo "configure:2806: checking for GNU ld" >&5
2807 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2808 echo "configure:2809: checking for non-GNU ld" >&5
2810 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 if test -z "$LD"; then
2814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2815 for ac_dir in $PATH; do
2816 test -z "$ac_dir" && ac_dir=.
2817 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2818 ac_cv_path_LD="$ac_dir/$ac_prog"
2819 # Check to see if the program is GNU ld. I'd rather use --version,
2820 # but apparently some GNU ld's only accept -v.
2821 # Break only if it was the GNU/non-GNU ld that we prefer.
2822 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2823 test "$with_gnu_ld" != no && break
2825 test "$with_gnu_ld" != yes && break
2831 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2836 if test -n "$LD"; then
2837 echo "$ac_t""$LD" 1>&6
2839 echo "$ac_t""no" 1>&6
2841 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2843 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2844 echo "configure:2845: checking if the linker ($LD) is GNU ld" >&5
2845 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2849 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2850 ac_cv_prog_gnu_ld=yes
2852 ac_cv_prog_gnu_ld=no
2856 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2859 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2860 echo "configure:2861: checking for BSD-compatible nm" >&5
2861 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2864 if test -n "$NM"; then
2865 # Let the user override the test.
2868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2869 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2870 test -z "$ac_dir" && ac_dir=.
2871 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2872 # Check to see if the nm accepts a BSD-compat flag.
2873 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2874 # nm: unknown option "B" ignored
2875 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2876 ac_cv_path_NM="$ac_dir/nm -B"
2878 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2879 ac_cv_path_NM="$ac_dir/nm -p"
2882 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2883 continue # so that we can try to find one that supports BSD flags
2888 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2893 echo "$ac_t""$NM" 1>&6
2896 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2897 echo "configure:2898: checking whether ln -s works" >&5
2898 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2902 if ln -s X conftestdata 2>/dev/null
2905 ac_cv_prog_LN_S="ln -s"
2910 LN_S="$ac_cv_prog_LN_S"
2911 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2912 echo "$ac_t""yes" 1>&6
2914 echo "$ac_t""no" 1>&6
2918 # Check for any special flags to pass to ltconfig.
2919 libtool_flags="--cache-file=$cache_file"
2920 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2921 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2922 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2923 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2924 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2925 libtool_flags="$libtool_flags --enable-dlopen"
2927 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2928 if test "${enable_libtool_lock+set}" = set; then
2929 enableval="$enable_libtool_lock"
2933 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2934 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2936 # Some flags need to be propagated to the compiler or linker for good
2940 # Find out which ABI we are using.
2941 echo '#line 2942 "configure"' > conftest.$ac_ext
2942 if { (eval echo configure:2943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2943 case "`/usr/bin/file conftest.o`" in
2959 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2960 SAVE_CFLAGS="$CFLAGS"
2961 CFLAGS="$CFLAGS -belf"
2962 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2963 echo "configure:2964: checking whether the C compiler needs -belf" >&5
2964 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2975 if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2977 lt_cv_cc_needs_belf=yes
2979 echo "configure: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2982 lt_cv_cc_needs_belf=no
2987 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2988 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2989 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2990 CFLAGS="$SAVE_CFLAGS"
2998 # Save cache, so that ltconfig can load it
3001 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3002 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3003 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3004 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3005 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3006 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3007 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3008 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3010 # Reload cache, that may have been modified by ltconfig
3013 # This can be used to rebuild libtool when needed
3014 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3016 # Always use our own libtool.
3017 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3019 # Redirect the config.log output again, so that the ltconfig log is not
3020 # clobbered by the next message.
3021 exec 5>>./config.log
3024 for ac_prog in mawk gawk nawk awk
3026 # Extract the first word of "$ac_prog", so it can be a program name with args.
3027 set dummy $ac_prog; ac_word=$2
3028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3029 echo "configure:3030: checking for $ac_word" >&5
3030 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 if test -n "$AWK"; then
3034 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3038 for ac_dir in $ac_dummy; do
3039 test -z "$ac_dir" && ac_dir=.
3040 if test -f $ac_dir/$ac_word; then
3041 ac_cv_prog_AWK="$ac_prog"
3048 AWK="$ac_cv_prog_AWK"
3049 if test -n "$AWK"; then
3050 echo "$ac_t""$AWK" 1>&6
3052 echo "$ac_t""no" 1>&6
3055 test -n "$AWK" && break
3058 # test for ln hardlink support
3059 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3060 echo "configure:3061: checking whether ln works" >&5
3061 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3062 echo $ac_n "(cached) $ac_c" 1>&6
3064 rm -f conftest.src conftest.dst
3065 echo "conftest" > conftest.src
3066 if ln conftest.src conftest.dst 2>/dev/null
3068 ol_cv_prog_LN_H="ln"
3070 ol_cv_prog_LN_H="cp"
3072 rm -f conftest.src conftest.dst
3075 LN_H="$ol_cv_prog_LN_H"
3076 if test "$ol_cv_prog_LN_H" = "ln"; then
3077 echo "$ac_t""yes" 1>&6
3079 echo "$ac_t""no" 1>&6
3082 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3083 echo "configure:3084: checking whether ln -s works" >&5
3084 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3088 if ln -s X conftestdata 2>/dev/null
3091 ac_cv_prog_LN_S="ln -s"
3096 LN_S="$ac_cv_prog_LN_S"
3097 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3098 echo "$ac_t""yes" 1>&6
3100 echo "$ac_t""no" 1>&6
3104 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3108 # Extract the first word of "sendmail", so it can be a program name with args.
3109 set dummy sendmail; ac_word=$2
3110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3111 echo "configure:3112: checking for $ac_word" >&5
3112 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3117 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3120 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3124 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3125 for ac_dir in $ac_dummy; do
3126 test -z "$ac_dir" && ac_dir=.
3127 if test -f $ac_dir/$ac_word; then
3128 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3133 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3137 SENDMAIL="$ac_cv_path_SENDMAIL"
3138 if test -n "$SENDMAIL"; then
3139 echo "$ac_t""$SENDMAIL" 1>&6
3141 echo "$ac_t""no" 1>&6
3144 # Extract the first word of "vi", so it can be a program name with args.
3145 set dummy vi; ac_word=$2
3146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3147 echo "configure:3148: checking for $ac_word" >&5
3148 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3153 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3156 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3160 ac_dummy="$PATH:/usr/ucb"
3161 for ac_dir in $ac_dummy; do
3162 test -z "$ac_dir" && ac_dir=.
3163 if test -f $ac_dir/$ac_word; then
3164 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3169 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3173 EDITOR="$ac_cv_path_EDITOR"
3174 if test -n "$EDITOR"; then
3175 echo "$ac_t""$EDITOR" 1>&6
3177 echo "$ac_t""no" 1>&6
3180 # Extract the first word of "finger", so it can be a program name with args.
3181 set dummy finger; ac_word=$2
3182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3183 echo "configure:3184: checking for $ac_word" >&5
3184 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3189 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3192 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3196 ac_dummy="$PATH:/usr/ucb"
3197 for ac_dir in $ac_dummy; do
3198 test -z "$ac_dir" && ac_dir=.
3199 if test -f $ac_dir/$ac_word; then
3200 ac_cv_path_FINGER="$ac_dir/$ac_word"
3205 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3209 FINGER="$ac_cv_path_FINGER"
3210 if test -n "$FINGER"; then
3211 echo "$ac_t""$FINGER" 1>&6
3213 echo "$ac_t""no" 1>&6
3218 if test $ol_enable_perl != no ; then
3219 # Extract the first word of "perl", so it can be a program name with args.
3220 set dummy perl; ac_word=$2
3221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_word" >&5
3223 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3228 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3231 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3236 for ac_dir in $ac_dummy; do
3237 test -z "$ac_dir" && ac_dir=.
3238 if test -f $ac_dir/$ac_word; then
3239 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3244 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3248 PERLBIN="$ac_cv_path_PERLBIN"
3249 if test -n "$PERLBIN"; then
3250 echo "$ac_t""$PERLBIN" 1>&6
3252 echo "$ac_t""no" 1>&6
3256 if test "no$PERLBIN" = "no" ; then
3257 if test $ol_enable_perl = yes ; then
3258 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3262 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3263 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3269 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3270 echo "configure:3271: checking how to run the C preprocessor" >&5
3271 # On Suns, sometimes $CPP names a directory.
3272 if test -n "$CPP" && test -d "$CPP"; then
3275 if test -z "$CPP"; then
3276 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3279 # This must be in double quotes, not single quotes, because CPP may get
3280 # substituted into the Makefile and "${CC-cc}" will confuse make.
3282 # On the NeXT, cc -E runs the code through the compiler's parser,
3283 # not just through cpp.
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3291 { (eval echo configure:3292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3293 if test -z "$ac_err"; then
3297 echo "configure: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3300 CPP="${CC-cc} -E -traditional-cpp"
3301 cat > conftest.$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3308 { (eval echo configure:3309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3310 if test -z "$ac_err"; then
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3317 CPP="${CC-cc} -nologo -E"
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3325 { (eval echo configure:3326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3327 if test -z "$ac_err"; then
3331 echo "configure: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3341 ac_cv_prog_CPP="$CPP"
3343 CPP="$ac_cv_prog_CPP"
3345 ac_cv_prog_CPP="$CPP"
3347 echo "$ac_t""$CPP" 1>&6
3350 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3351 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3353 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3354 echo "configure: warning: programs compiled here do run here..." 1>&2
3355 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3357 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3358 echo "configure: warning: programs compiled here do not run here..." 1>&2
3359 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3362 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3363 echo "configure:3364: checking for AIX" >&5
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3373 egrep "yes" >/dev/null 2>&1; then
3375 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3376 #define _ALL_SOURCE 1
3381 echo "$ac_t""no" 1>&6
3386 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3387 echo "configure:3388: checking for POSIXized ISC" >&5
3388 if test -d /etc/conf/kconfig.d &&
3389 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3391 echo "$ac_t""yes" 1>&6
3392 ISC=yes # If later tests want to check for ISC.
3393 cat >> confdefs.h <<\EOF
3394 #define _POSIX_SOURCE 1
3397 if test "$GCC" = yes; then
3403 echo "$ac_t""no" 1>&6
3407 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3408 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3409 echo "configure:3410: checking for minix/config.h" >&5
3410 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 #include <minix/config.h>
3418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3419 { (eval echo configure:3420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3421 if test -z "$ac_err"; then
3423 eval "ac_cv_header_$ac_safe=yes"
3426 echo "configure: failed program was:" >&5
3427 cat conftest.$ac_ext >&5
3429 eval "ac_cv_header_$ac_safe=no"
3433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3437 echo "$ac_t""no" 1>&6
3441 if test "$MINIX" = yes; then
3442 cat >> confdefs.h <<\EOF
3443 #define _POSIX_SOURCE 1
3446 cat >> confdefs.h <<\EOF
3447 #define _POSIX_1_SOURCE 2
3450 cat >> confdefs.h <<\EOF
3457 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3458 echo "configure:3459: checking for Cygwin environment" >&5
3459 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3469 #define __CYGWIN__ __CYGWIN32__
3474 if { (eval echo configure:3475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3486 echo "$ac_t""$ac_cv_cygwin" 1>&6
3488 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3489 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3490 echo "configure:3491: checking for mingw32 environment" >&5
3491 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3494 cat > conftest.$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3502 if { (eval echo configure:3503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506 echo "configure: failed program was:" >&5
3507 cat conftest.$ac_ext >&5
3514 echo "$ac_t""$ac_cv_mingw32" 1>&6
3516 test "$ac_cv_mingw32" = yes && MINGW32=yes
3517 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3518 echo "configure:3519: checking for EMX OS/2 environment" >&5
3519 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3530 if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3542 echo "$ac_t""$ac_cv_emxos2" 1>&6
3544 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3548 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3549 echo "configure:3550: checking for executable suffix" >&5
3550 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3557 echo 'int main () { return 0; }' > conftest.$ac_ext
3559 if { (eval echo configure:3560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3560 for file in conftest.*; do
3562 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3563 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3567 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3570 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3575 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3576 echo "$ac_t""${ac_cv_exeext}" 1>&6
3579 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3580 echo "configure:3581: checking for object suffix" >&5
3581 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3585 echo 'int i = 1;' > conftest.$ac_ext
3586 if { (eval echo configure:3587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587 for ac_file in conftest.*; do
3590 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3594 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3599 echo "$ac_t""$ac_cv_objext" 1>&6
3600 OBJEXT=$ac_cv_objext
3601 ac_objext=$ac_cv_objext
3604 cat >> confdefs.h <<EOF
3605 #define EXEEXT "${EXEEXT}"
3609 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3610 echo "configure:3611: checking for be_app in -lbe" >&5
3611 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3612 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3615 ac_save_LIBS="$LIBS"
3616 LIBS="-lbe -lroot -lnet $LIBS"
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 /* Override any gcc2 internal prototype to avoid an error. */
3621 /* We use char because int might match the return type of a gcc2
3622 builtin and then its argument prototype would still apply. */
3629 if { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3631 eval "ac_cv_lib_$ac_lib_var=yes"
3633 echo "configure: failed program was:" >&5
3634 cat conftest.$ac_ext >&5
3636 eval "ac_cv_lib_$ac_lib_var=no"
3639 LIBS="$ac_save_LIBS"
3642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3643 echo "$ac_t""yes" 1>&6
3644 LIBS="$LIBS -lbe -lroot -lnet"
3646 echo "$ac_t""no" 1>&6
3654 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3655 echo "configure:3656: checking for ${CC-cc} option to accept ANSI C" >&5
3656 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 am_cv_prog_cc_stdc=no
3661 # Don't try gcc -ansi; that turns off useful extensions and
3662 # breaks some systems' header files.
3663 # AIX -qlanglvl=ansi
3664 # Ultrix and OSF/1 -std1
3665 # HP-UX 10.20 and later -Ae
3666 # HP-UX older versions -Aa -D_HPUX_SOURCE
3667 # SVR4 -Xc -D__EXTENSIONS__
3668 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3670 CC="$ac_save_CC $ac_arg"
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3676 #include <sys/types.h>
3677 #include <sys/stat.h>
3678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3679 struct buf { int x; };
3680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3681 static char *e (p, i)
3687 static char *f (char * (*g) (char **, int), char **p, ...)
3692 s = g (p, va_arg (v,int));
3696 int test (int i, double x);
3697 struct s1 {int (*f) (int a);};
3698 struct s2 {int (*f) (double a);};
3699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3705 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3709 if { (eval echo configure:3710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3711 am_cv_prog_cc_stdc="$ac_arg"; break
3713 echo "configure: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
3722 if test -z "$am_cv_prog_cc_stdc"; then
3723 echo "$ac_t""none needed" 1>&6
3725 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3727 case "x$am_cv_prog_cc_stdc" in
3729 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3732 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3733 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3736 # test for make depend flag
3739 if test -z "${MKDEP}"; then
3741 if test -z "${MKDEP_FLAGS}"; then
3742 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3743 echo "configure:3744: checking for ${OL_MKDEP} depend flag" >&5
3744 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3749 for flag in "-M" "-xM"; do
3750 cat > conftest.c <<EOF
3753 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3754 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3756 if test ! -f conftest."${ac_object}" ; then
3758 OL_MKDEP_FLAGS="$flag"
3767 echo "$ac_t""$ol_cv_mkdep" 1>&6
3770 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3775 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3780 if test "${ol_cv_mkdep}" = no ; then
3781 # this will soon become an error
3782 echo "configure: warning: do not know how to generate dependencies" 1>&2
3786 if test $ol_enable_modules != no ; then
3787 for ac_hdr in ltdl.h
3789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3791 echo "configure:3792: checking for $ac_hdr" >&5
3792 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3801 { (eval echo configure:3802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3803 if test -z "$ac_err"; then
3805 eval "ac_cv_header_$ac_safe=yes"
3808 echo "configure: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3811 eval "ac_cv_header_$ac_safe=no"
3815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3816 echo "$ac_t""yes" 1>&6
3817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3818 cat >> confdefs.h <<EOF
3819 #define $ac_tr_hdr 1
3823 echo "$ac_t""no" 1>&6
3828 if test $ac_cv_header_ltdl_h = no ; then
3829 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3833 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3834 echo "configure:3835: checking for lt_dlinit in -lltdl" >&5
3835 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3836 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3839 ac_save_LIBS="$LIBS"
3841 cat > conftest.$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3844 /* Override any gcc2 internal prototype to avoid an error. */
3845 /* We use char because int might match the return type of a gcc2
3846 builtin and then its argument prototype would still apply. */
3853 if { (eval echo configure:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3855 eval "ac_cv_lib_$ac_lib_var=yes"
3857 echo "configure: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3860 eval "ac_cv_lib_$ac_lib_var=no"
3863 LIBS="$ac_save_LIBS"
3866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3867 echo "$ac_t""yes" 1>&6
3868 ac_tr_lib=HAVE_LIB`echo ltdl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3869 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3870 cat >> confdefs.h <<EOF
3871 #define $ac_tr_lib 1
3877 echo "$ac_t""no" 1>&6
3880 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
3881 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
3885 ol_with_bdb2_module=static
3886 ol_with_ldap_module=static
3887 ol_with_ldbm_module=static
3888 ol_with_passwd_module=static
3889 ol_with_perl_module=static
3890 ol_with_shell_module=static
3891 ol_with_tcl_module=static
3895 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
3896 echo "configure:3897: checking for EBCDIC" >&5
3897 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3906 #include <__ASCII__/generate_error.h>
3910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3911 { (eval echo configure:3912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3913 if test -z "$ac_err"; then
3915 ol_cv_cpp_ebcdic=yes
3918 echo "configure: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3926 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
3927 if test $ol_cv_cpp_ebcdic = yes ; then
3928 cat >> confdefs.h <<\EOF
3929 #define HAVE_EBCDIC 1
3934 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3935 echo "configure:3936: checking for ANSI C header files" >&5
3936 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
3937 echo $ac_n "(cached) $ac_c" 1>&6
3939 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure"
3941 #include "confdefs.h"
3947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3948 { (eval echo configure:3949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3950 if test -z "$ac_err"; then
3952 ol_cv_header_stdc=yes
3955 echo "configure: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3958 ol_cv_header_stdc=no
3962 if test $ol_cv_header_stdc = yes; then
3963 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3970 egrep "memchr" >/dev/null 2>&1; then
3974 ol_cv_header_stdc=no
3980 if test $ol_cv_header_stdc = yes; then
3981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3982 cat > conftest.$ac_ext <<EOF
3983 #line 3984 "configure"
3984 #include "confdefs.h"
3987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3988 egrep "free" >/dev/null 2>&1; then
3992 ol_cv_header_stdc=no
3998 if test $ol_cv_header_stdc = yes; then
3999 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4000 if test "$cross_compiling" = yes; then
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4008 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4009 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4011 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4012 || ('j' <= (c) && (c) <= 'r') \
4013 || ('s' <= (c) && (c) <= 'z'))
4014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4016 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4017 int main () { int i; for (i = 0; i < 256; i++)
4018 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4022 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4029 ol_cv_header_stdc=no
4037 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4038 if test $ol_cv_header_stdc = yes; then
4039 cat >> confdefs.h <<\EOF
4040 #define STDC_HEADERS 1
4044 ac_cv_header_stdc=disable
4047 if test $ol_cv_header_stdc != yes; then
4048 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4052 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4055 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4056 echo "configure:4057: checking for $ac_hdr that defines DIR" >&5
4057 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 #include <sys/types.h>
4069 if { (eval echo configure:4070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4071 eval "ac_cv_header_dirent_$ac_safe=yes"
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4076 eval "ac_cv_header_dirent_$ac_safe=no"
4080 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4081 echo "$ac_t""yes" 1>&6
4082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4083 cat >> confdefs.h <<EOF
4084 #define $ac_tr_hdr 1
4086 ac_header_dirent=$ac_hdr; break
4088 echo "$ac_t""no" 1>&6
4091 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4092 if test $ac_header_dirent = dirent.h; then
4093 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4094 echo "configure:4095: checking for opendir in -ldir" >&5
4095 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4096 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 ac_save_LIBS="$LIBS"
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 /* Override any gcc2 internal prototype to avoid an error. */
4105 /* We use char because int might match the return type of a gcc2
4106 builtin and then its argument prototype would still apply. */
4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4115 eval "ac_cv_lib_$ac_lib_var=yes"
4117 echo "configure: failed program was:" >&5
4118 cat conftest.$ac_ext >&5
4120 eval "ac_cv_lib_$ac_lib_var=no"
4123 LIBS="$ac_save_LIBS"
4126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4127 echo "$ac_t""yes" 1>&6
4130 echo "$ac_t""no" 1>&6
4134 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4135 echo "configure:4136: checking for opendir in -lx" >&5
4136 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4137 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 ac_save_LIBS="$LIBS"
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4156 eval "ac_cv_lib_$ac_lib_var=yes"
4158 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4161 eval "ac_cv_lib_$ac_lib_var=no"
4164 LIBS="$ac_save_LIBS"
4167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4168 echo "$ac_t""yes" 1>&6
4171 echo "$ac_t""no" 1>&6
4176 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4177 echo "configure:4178: checking for sys/wait.h that is POSIX.1 compatible" >&5
4178 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 #include <sys/types.h>
4185 #include <sys/wait.h>
4187 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4190 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4195 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4198 if { (eval echo configure:4199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4200 ac_cv_header_sys_wait_h=yes
4202 echo "configure: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4205 ac_cv_header_sys_wait_h=no
4210 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4211 if test $ac_cv_header_sys_wait_h = yes; then
4212 cat >> confdefs.h <<\EOF
4213 #define HAVE_SYS_WAIT_H 1
4218 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4219 echo "configure:4220: checking POSIX termios" >&5
4220 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4226 #include <sys/types.h>
4228 #include <termios.h>
4230 /* SunOS 4.0.3 has termios.h but not the library calls. */
4234 if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4236 am_cv_sys_posix_termios=yes
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4241 am_cv_sys_posix_termios=no
4246 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4249 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4250 echo "configure:4251: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4251 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4254 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4256 gwinsz_in_termios_h=no
4257 if test $am_cv_sys_posix_termios = yes; then
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 #include <sys/types.h>
4262 # include <termios.h>
4268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4269 egrep "yes" >/dev/null 2>&1; then
4271 gwinsz_in_termios_h=yes
4277 if test $gwinsz_in_termios_h = no; then
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 #include <sys/types.h>
4282 # include <sys/ioctl.h>
4288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4289 egrep "yes" >/dev/null 2>&1; then
4291 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4299 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4300 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4301 cat >> confdefs.h <<\EOF
4302 #define GWINSZ_IN_SYS_IOCTL 1
4307 if test $am_cv_sys_posix_termios = yes ; then
4308 cat >> confdefs.h <<\EOF
4309 #define HAVE_POSIX_TERMIOS 1
4355 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4356 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4357 echo "configure:4358: checking for $ac_hdr" >&5
4358 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4361 cat > conftest.$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4367 { (eval echo configure:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4369 if test -z "$ac_err"; then
4371 eval "ac_cv_header_$ac_safe=yes"
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4377 eval "ac_cv_header_$ac_safe=no"
4381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4382 echo "$ac_t""yes" 1>&6
4383 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4384 cat >> confdefs.h <<EOF
4385 #define $ac_tr_hdr 1
4389 echo "$ac_t""no" 1>&6
4396 echo $ac_n "checking for socket""... $ac_c" 1>&6
4397 echo "configure:4398: checking for socket" >&5
4398 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4404 /* System header to define __stub macros and hopefully few prototypes,
4405 which can conflict with char socket(); below. */
4407 /* Override any gcc2 internal prototype to avoid an error. */
4408 /* We use char because int might match the return type of a gcc2
4409 builtin and then its argument prototype would still apply. */
4415 /* The GNU C library defines this for functions which it implements
4416 to always fail with ENOSYS. Some functions are actually named
4417 something starting with __ and the normal name is an alias. */
4418 #if defined (__stub_socket) || defined (__stub___socket)
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4428 eval "ac_cv_func_socket=yes"
4430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4433 eval "ac_cv_func_socket=no"
4438 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4439 echo "$ac_t""yes" 1>&6
4442 echo "$ac_t""no" 1>&6
4444 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4445 echo "configure:4446: checking for main in -lsocket" >&5
4446 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4447 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 ac_save_LIBS="$LIBS"
4451 LIBS="-lsocket $LIBS"
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4460 if { (eval echo configure:4461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4462 eval "ac_cv_lib_$ac_lib_var=yes"
4464 echo "configure: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4467 eval "ac_cv_lib_$ac_lib_var=no"
4470 LIBS="$ac_save_LIBS"
4473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4474 echo "$ac_t""yes" 1>&6
4475 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4477 cat >> confdefs.h <<EOF
4478 #define $ac_tr_lib 1
4481 LIBS="-lsocket $LIBS"
4484 echo "$ac_t""no" 1>&6
4487 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4488 echo "configure:4489: checking for main in -lnet" >&5
4489 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4490 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 ac_save_LIBS="$LIBS"
4495 cat > conftest.$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4505 eval "ac_cv_lib_$ac_lib_var=yes"
4507 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4510 eval "ac_cv_lib_$ac_lib_var=no"
4513 LIBS="$ac_save_LIBS"
4516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4517 echo "$ac_t""yes" 1>&6
4518 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4519 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4520 cat >> confdefs.h <<EOF
4521 #define $ac_tr_lib 1
4527 echo "$ac_t""no" 1>&6
4530 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
4531 echo "configure:4532: checking for socket in -lnet" >&5
4532 ac_lib_var=`echo net'_'socket | sed 'y%./+-:%__p__%'`
4533 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 ac_save_LIBS="$LIBS"
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552 eval "ac_cv_lib_$ac_lib_var=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4557 eval "ac_cv_lib_$ac_lib_var=no"
4560 LIBS="$ac_save_LIBS"
4563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4566 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4567 cat >> confdefs.h <<EOF
4568 #define $ac_tr_lib 1
4574 echo "$ac_t""no" 1>&6
4577 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4578 echo "configure:4579: checking for main in -lnsl_s" >&5
4579 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4580 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 ac_save_LIBS="$LIBS"
4584 LIBS="-lnsl_s $LIBS"
4585 cat > conftest.$ac_ext <<EOF
4586 #line 4587 "configure"
4587 #include "confdefs.h"
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4595 eval "ac_cv_lib_$ac_lib_var=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4600 eval "ac_cv_lib_$ac_lib_var=no"
4603 LIBS="$ac_save_LIBS"
4606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4607 echo "$ac_t""yes" 1>&6
4608 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4609 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4610 cat >> confdefs.h <<EOF
4611 #define $ac_tr_lib 1
4614 LIBS="-lnsl_s $LIBS"
4617 echo "$ac_t""no" 1>&6
4620 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4621 echo "configure:4622: checking for main in -lnsl" >&5
4622 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4623 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 ac_save_LIBS="$LIBS"
4628 cat > conftest.$ac_ext <<EOF
4629 #line 4630 "configure"
4630 #include "confdefs.h"
4636 if { (eval echo configure:4637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4638 eval "ac_cv_lib_$ac_lib_var=yes"
4640 echo "configure: failed program was:" >&5
4641 cat conftest.$ac_ext >&5
4643 eval "ac_cv_lib_$ac_lib_var=no"
4646 LIBS="$ac_save_LIBS"
4649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4652 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4653 cat >> confdefs.h <<EOF
4654 #define $ac_tr_lib 1
4660 echo "$ac_t""no" 1>&6
4663 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4664 echo "configure:4665: checking for socket in -linet" >&5
4665 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4666 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 ac_save_LIBS="$LIBS"
4671 cat > conftest.$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4674 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4683 if { (eval echo configure:4684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4685 eval "ac_cv_lib_$ac_lib_var=yes"
4687 echo "configure: failed program was:" >&5
4688 cat conftest.$ac_ext >&5
4690 eval "ac_cv_lib_$ac_lib_var=no"
4693 LIBS="$ac_save_LIBS"
4696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4697 echo "$ac_t""yes" 1>&6
4698 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4699 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4700 cat >> confdefs.h <<EOF
4701 #define $ac_tr_lib 1
4707 echo "$ac_t""no" 1>&6
4710 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4711 echo "configure:4712: checking for main in -lgen" >&5
4712 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4713 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 ac_save_LIBS="$LIBS"
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4726 if { (eval echo configure:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4728 eval "ac_cv_lib_$ac_lib_var=yes"
4730 echo "configure: failed program was:" >&5
4731 cat conftest.$ac_ext >&5
4733 eval "ac_cv_lib_$ac_lib_var=no"
4736 LIBS="$ac_save_LIBS"
4739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4742 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4743 cat >> confdefs.h <<EOF
4744 #define $ac_tr_lib 1
4750 echo "$ac_t""no" 1>&6
4757 echo $ac_n "checking for select""... $ac_c" 1>&6
4758 echo "configure:4759: checking for select" >&5
4759 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 /* System header to define __stub macros and hopefully few prototypes,
4766 which can conflict with char select(); below. */
4768 /* Override any gcc2 internal prototype to avoid an error. */
4769 /* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */
4776 /* The GNU C library defines this for functions which it implements
4777 to always fail with ENOSYS. Some functions are actually named
4778 something starting with __ and the normal name is an alias. */
4779 #if defined (__stub_select) || defined (__stub___select)
4787 if { (eval echo configure:4788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4789 eval "ac_cv_func_select=yes"
4791 echo "configure: failed program was:" >&5
4792 cat conftest.$ac_ext >&5
4794 eval "ac_cv_func_select=no"
4799 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4800 echo "$ac_t""yes" 1>&6
4803 echo "$ac_t""no" 1>&6
4804 { echo "configure: error: select() required." 1>&2; exit 1; }
4808 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4809 echo "configure:4810: checking types of arguments for select()" >&5
4810 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4813 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4819 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4820 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4821 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4825 #ifdef HAVE_SYS_TYPES_H
4826 #include <sys/types.h>
4828 #ifdef HAVE_SYS_TIME_H
4829 #include <sys/time.h>
4831 #ifdef HAVE_SYS_SELECT_H
4832 #include <sys/select.h>
4834 #ifdef HAVE_SYS_SOCKET_H
4835 #include <sys/socket.h>
4837 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
4842 if { (eval echo configure:4843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4844 ac_not_found=no ; break 3
4846 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4861 if test "$ac_not_found" = yes; then
4862 ac_cv_func_select_arg1=int
4863 ac_cv_func_select_arg234='int *'
4864 ac_cv_func_select_arg5='struct timeval *'
4866 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4867 cat >> confdefs.h <<EOF
4868 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4871 cat >> confdefs.h <<EOF
4872 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4875 cat >> confdefs.h <<EOF
4876 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4882 for ac_hdr in regex.h
4884 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4885 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4886 echo "configure:4887: checking for $ac_hdr" >&5
4887 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4896 { (eval echo configure:4897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4898 if test -z "$ac_err"; then
4900 eval "ac_cv_header_$ac_safe=yes"
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4906 eval "ac_cv_header_$ac_safe=no"
4910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4912 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4913 cat >> confdefs.h <<EOF
4914 #define $ac_tr_hdr 1
4918 echo "$ac_t""no" 1>&6
4922 if test "$ac_cv_header_regex_h" != yes ; then
4923 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4925 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4926 echo "configure:4927: checking for regfree" >&5
4927 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4933 /* System header to define __stub macros and hopefully few prototypes,
4934 which can conflict with char regfree(); below. */
4936 /* Override any gcc2 internal prototype to avoid an error. */
4937 /* We use char because int might match the return type of a gcc2
4938 builtin and then its argument prototype would still apply. */
4944 /* The GNU C library defines this for functions which it implements
4945 to always fail with ENOSYS. Some functions are actually named
4946 something starting with __ and the normal name is an alias. */
4947 #if defined (__stub_regfree) || defined (__stub___regfree)
4955 if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4957 eval "ac_cv_func_regfree=yes"
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4962 eval "ac_cv_func_regfree=no"
4967 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4968 echo "$ac_t""yes" 1>&6
4971 echo "$ac_t""no" 1>&6
4972 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4977 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4978 echo "configure:4979: checking for compatible POSIX regex" >&5
4979 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
4980 echo $ac_n "(cached) $ac_c" 1>&6
4983 if test "$cross_compiling" = yes; then
4984 ol_cv_c_posix_regex=cross
4986 cat > conftest.$ac_ext <<EOF
4987 #line 4988 "configure"
4988 #include "confdefs.h"
4990 #include <sys/types.h>
4992 static char *pattern, *string;
5000 if(regcomp(&re, pattern, 0)) {
5004 string = "ALL MATCH";
5006 rc = regexec(&re, string, 0, (void*)0, 0);
5013 if { (eval echo configure:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5015 ol_cv_c_posix_regex=yes
5017 echo "configure: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5020 ol_cv_c_posix_regex=no
5027 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5029 if test "$ol_cv_c_posix_regex" = no ; then
5030 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5034 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5035 echo "configure:5036: checking for sigset in -lV3" >&5
5036 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5037 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 ac_save_LIBS="$LIBS"
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 /* Override any gcc2 internal prototype to avoid an error. */
5046 /* We use char because int might match the return type of a gcc2
5047 builtin and then its argument prototype would still apply. */
5054 if { (eval echo configure:5055: \"$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 V3 | 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
5082 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5083 echo "configure:5084: checking for res_search" >&5
5084 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5085 echo $ac_n "(cached) $ac_c" 1>&6
5087 cat > conftest.$ac_ext <<EOF
5088 #line 5089 "configure"
5089 #include "confdefs.h"
5090 /* System header to define __stub macros and hopefully few prototypes,
5091 which can conflict with char res_search(); below. */
5093 /* Override any gcc2 internal prototype to avoid an error. */
5094 /* We use char because int might match the return type of a gcc2
5095 builtin and then its argument prototype would still apply. */
5101 /* The GNU C library defines this for functions which it implements
5102 to always fail with ENOSYS. Some functions are actually named
5103 something starting with __ and the normal name is an alias. */
5104 #if defined (__stub_res_search) || defined (__stub___res_search)
5112 if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5114 eval "ac_cv_func_res_search=yes"
5116 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5119 eval "ac_cv_func_res_search=no"
5124 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5128 echo "$ac_t""no" 1>&6
5131 if test $ac_cv_func_res_search = no ; then
5132 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5133 echo "configure:5134: checking for res_search in -lbind" >&5
5134 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5135 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6
5138 ac_save_LIBS="$LIBS"
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5143 /* Override any gcc2 internal prototype to avoid an error. */
5144 /* We use char because int might match the return type of a gcc2
5145 builtin and then its argument prototype would still apply. */
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5154 eval "ac_cv_lib_$ac_lib_var=yes"
5156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5159 eval "ac_cv_lib_$ac_lib_var=no"
5162 LIBS="$ac_save_LIBS"
5165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5166 echo "$ac_t""yes" 1>&6
5167 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5169 cat >> confdefs.h <<EOF
5170 #define $ac_tr_lib 1
5176 echo "$ac_t""no" 1>&6
5179 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5182 if test $ac_cv_func_res_search = no ; then
5183 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5184 echo "configure:5185: checking for __res_search in -lbind" >&5
5185 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5186 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5187 echo $ac_n "(cached) $ac_c" 1>&6
5189 ac_save_LIBS="$LIBS"
5191 cat > conftest.$ac_ext <<EOF
5192 #line 5193 "configure"
5193 #include "confdefs.h"
5194 /* Override any gcc2 internal prototype to avoid an error. */
5195 /* We use char because int might match the return type of a gcc2
5196 builtin and then its argument prototype would still apply. */
5197 char __res_search();
5203 if { (eval echo configure:5204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5205 eval "ac_cv_lib_$ac_lib_var=yes"
5207 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5
5210 eval "ac_cv_lib_$ac_lib_var=no"
5213 LIBS="$ac_save_LIBS"
5216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5217 echo "$ac_t""yes" 1>&6
5218 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5220 cat >> confdefs.h <<EOF
5221 #define $ac_tr_lib 1
5227 echo "$ac_t""no" 1>&6
5230 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5233 if test $ac_cv_func_res_search = no ; then
5234 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5235 echo "configure:5236: checking for res_search in -lresolv" >&5
5236 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5237 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5240 ac_save_LIBS="$LIBS"
5241 LIBS="-lresolv $LIBS"
5242 cat > conftest.$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5245 /* Override any gcc2 internal prototype to avoid an error. */
5246 /* We use char because int might match the return type of a gcc2
5247 builtin and then its argument prototype would still apply. */
5254 if { (eval echo configure:5255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5256 eval "ac_cv_lib_$ac_lib_var=yes"
5258 echo "configure: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5261 eval "ac_cv_lib_$ac_lib_var=no"
5264 LIBS="$ac_save_LIBS"
5267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5268 echo "$ac_t""yes" 1>&6
5269 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5270 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5271 cat >> confdefs.h <<EOF
5272 #define $ac_tr_lib 1
5275 LIBS="-lresolv $LIBS"
5278 echo "$ac_t""no" 1>&6
5281 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5284 if test "$ac_cv_func_res_search" = yes ; then
5285 cat >> confdefs.h <<\EOF
5286 #define HAVE_RES_SEARCH 1
5289 elif test $ol_enable_dns = yes ; then
5290 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5291 elif test $ol_enable_dns != no ; then
5292 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5298 if test $ol_enable_ldapd != no ; then
5299 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5301 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5302 echo "configure:5303: checking for main in -lxtpp" >&5
5303 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5304 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5307 ac_save_LIBS="$LIBS"
5308 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5317 if { (eval echo configure:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5319 eval "ac_cv_lib_$ac_lib_var=yes"
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5324 eval "ac_cv_lib_$ac_lib_var=no"
5327 LIBS="$ac_save_LIBS"
5330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5331 echo "$ac_t""yes" 1>&6
5334 cat >> confdefs.h <<\EOF
5338 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5341 echo "$ac_t""no" 1>&6
5345 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5346 echo "configure:5347: checking for main in -ldsap" >&5
5347 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5348 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5351 ac_save_LIBS="$LIBS"
5352 LIBS="-ldsap -lisode $LIBS"
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5363 eval "ac_cv_lib_$ac_lib_var=yes"
5365 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
5368 eval "ac_cv_lib_$ac_lib_var=no"
5371 LIBS="$ac_save_LIBS"
5374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5375 echo "$ac_t""yes" 1>&6
5378 cat >> confdefs.h <<\EOF
5382 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5385 echo "$ac_t""no" 1>&6
5389 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5390 echo "configure:5391: checking for main in -lisode" >&5
5391 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5392 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5393 echo $ac_n "(cached) $ac_c" 1>&6
5395 ac_save_LIBS="$LIBS"
5396 LIBS="-lisode $LIBS"
5397 cat > conftest.$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5405 if { (eval echo configure:5406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5407 eval "ac_cv_lib_$ac_lib_var=yes"
5409 echo "configure: failed program was:" >&5
5410 cat conftest.$ac_ext >&5
5412 eval "ac_cv_lib_$ac_lib_var=no"
5415 LIBS="$ac_save_LIBS"
5418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5419 echo "$ac_t""yes" 1>&6
5422 cat >> confdefs.h <<\EOF
5423 #define HAVE_ISODE 1
5426 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5429 echo "$ac_t""no" 1>&6
5435 if test $ol_link_isode != no; then
5436 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5437 echo "configure:5438: checking for main in -lpp" >&5
5438 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5439 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5442 ac_save_LIBS="$LIBS"
5444 cat > conftest.$ac_ext <<EOF
5445 #line 5446 "configure"
5446 #include "confdefs.h"
5452 if { (eval echo configure:5453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5454 eval "ac_cv_lib_$ac_lib_var=yes"
5456 echo "configure: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5459 eval "ac_cv_lib_$ac_lib_var=no"
5462 LIBS="$ac_save_LIBS"
5465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5466 echo "$ac_t""yes" 1>&6
5468 cat >> confdefs.h <<\EOF
5472 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5475 echo "$ac_t""no" 1>&6
5480 # Extract the first word of "pepsy", so it can be a program name with args.
5481 set dummy pepsy; ac_word=$2
5482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5483 echo "configure:5484: checking for $ac_word" >&5
5484 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5489 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5492 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5497 for ac_dir in $ac_dummy; do
5498 test -z "$ac_dir" && ac_dir=.
5499 if test -f $ac_dir/$ac_word; then
5500 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5508 PEPSY="$ac_cv_path_PEPSY"
5509 if test -n "$PEPSY"; then
5510 echo "$ac_t""$PEPSY" 1>&6
5512 echo "$ac_t""no" 1>&6
5517 if test $ol_enable_quipu != no ; then
5518 for ac_hdr in quipu/commonarg.h
5520 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5521 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5522 echo "configure:5523: checking for $ac_hdr" >&5
5523 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5524 echo $ac_n "(cached) $ac_c" 1>&6
5526 cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5532 { (eval echo configure:5533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5534 if test -z "$ac_err"; then
5536 eval "ac_cv_header_$ac_safe=yes"
5539 echo "configure: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5542 eval "ac_cv_header_$ac_safe=no"
5546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5547 echo "$ac_t""yes" 1>&6
5548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5549 cat >> confdefs.h <<EOF
5550 #define $ac_tr_hdr 1
5554 echo "$ac_t""no" 1>&6
5559 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5561 elif test $ol_enable_quipu = auto ; then
5562 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5564 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5570 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
5571 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5573 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5575 echo "configure:5576: checking for $ac_hdr" >&5
5576 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5577 echo $ac_n "(cached) $ac_c" 1>&6
5579 cat > conftest.$ac_ext <<EOF
5580 #line 5581 "configure"
5581 #include "confdefs.h"
5584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5585 { (eval echo configure:5586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5587 if test -z "$ac_err"; then
5589 eval "ac_cv_header_$ac_safe=yes"
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5595 eval "ac_cv_header_$ac_safe=no"
5599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5600 echo "$ac_t""yes" 1>&6
5601 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5602 cat >> confdefs.h <<EOF
5603 #define $ac_tr_hdr 1
5607 echo "$ac_t""no" 1>&6
5612 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5613 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5614 echo "configure:5615: checking for main in -lkrb4" >&5
5615 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5616 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5617 echo $ac_n "(cached) $ac_c" 1>&6
5619 ac_save_LIBS="$LIBS"
5620 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
5621 cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5629 if { (eval echo configure:5630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5631 eval "ac_cv_lib_$ac_lib_var=yes"
5633 echo "configure: failed program was:" >&5
5634 cat conftest.$ac_ext >&5
5636 eval "ac_cv_lib_$ac_lib_var=no"
5639 LIBS="$ac_save_LIBS"
5642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5643 echo "$ac_t""yes" 1>&6
5646 echo "$ac_t""no" 1>&6
5651 if test $have_k5 = yes ; then
5652 ol_with_kerberos=found
5653 ol_link_kerberos=yes
5655 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
5657 LIBS="$KRB_LIBS $LIBS"
5659 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5660 echo "configure:5661: checking for des_debug in Kerberos libraries" >&5
5661 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5662 echo $ac_n "(cached) $ac_c" 1>&6
5666 LIBS="$KRB_LIBS $LIBS"
5667 cat > conftest.$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5671 #include <kerberosIV/krb.h>
5672 #include <kerberosIV/des.h>
5673 extern int des_debug;
5681 if { (eval echo configure:5682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5683 ol_cv_var_des_debug=yes
5685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5688 ol_cv_var_des_debug=no
5695 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5697 if test $ol_cv_var_des_debug = yes ; then
5698 cat >> confdefs.h <<\EOF
5699 #define HAVE_DES_DEBUG 1
5709 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
5710 for ac_hdr in krb.h des.h
5712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5714 echo "configure:5715: checking for $ac_hdr" >&5
5715 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5718 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5724 { (eval echo configure:5725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5726 if test -z "$ac_err"; then
5728 eval "ac_cv_header_$ac_safe=yes"
5731 echo "configure: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5734 eval "ac_cv_header_$ac_safe=no"
5738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5739 echo "$ac_t""yes" 1>&6
5740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5741 cat >> confdefs.h <<EOF
5742 #define $ac_tr_hdr 1
5746 echo "$ac_t""no" 1>&6
5751 if test $ac_cv_header_krb_h = yes ; then
5752 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
5753 echo "configure:5754: checking for main in -lkrb" >&5
5754 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
5755 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5756 echo $ac_n "(cached) $ac_c" 1>&6
5758 ac_save_LIBS="$LIBS"
5759 LIBS="-lkrb -ldes $LIBS"
5760 cat > conftest.$ac_ext <<EOF
5761 #line 5762 "configure"
5762 #include "confdefs.h"
5768 if { (eval echo configure:5769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5770 eval "ac_cv_lib_$ac_lib_var=yes"
5772 echo "configure: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5775 eval "ac_cv_lib_$ac_lib_var=no"
5778 LIBS="$ac_save_LIBS"
5781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5782 echo "$ac_t""yes" 1>&6
5785 echo "$ac_t""no" 1>&6
5790 if test $have_k4 = yes ; then
5791 ol_with_kerberos=found
5792 ol_link_kerberos=yes
5794 KRB_LIBS="-lkrb -ldes"
5799 if test $ol_link_kerberos = yes ; then
5800 cat >> confdefs.h <<\EOF
5801 #define HAVE_KERBEROS 1
5807 if test $ol_with_tls != no ; then
5809 for ac_hdr in openssl/ssl.h ssl.h
5811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5813 echo "configure:5814: checking for $ac_hdr" >&5
5814 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5823 { (eval echo configure:5824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5825 if test -z "$ac_err"; then
5827 eval "ac_cv_header_$ac_safe=yes"
5830 echo "configure: failed program was:" >&5
5831 cat conftest.$ac_ext >&5
5833 eval "ac_cv_header_$ac_safe=no"
5837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5838 echo "$ac_t""yes" 1>&6
5839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5840 cat >> confdefs.h <<EOF
5841 #define $ac_tr_hdr 1
5845 echo "$ac_t""no" 1>&6
5850 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
5851 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
5852 echo "configure:5853: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
5853 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
5854 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5855 echo $ac_n "(cached) $ac_c" 1>&6
5857 ac_save_LIBS="$LIBS"
5858 LIBS="-lssl -lcrypto $LIBS"
5859 cat > conftest.$ac_ext <<EOF
5860 #line 5861 "configure"
5861 #include "confdefs.h"
5862 /* Override any gcc2 internal prototype to avoid an error. */
5863 /* We use char because int might match the return type of a gcc2
5864 builtin and then its argument prototype would still apply. */
5865 char SSLeay_add_ssl_algorithms();
5868 SSLeay_add_ssl_algorithms()
5871 if { (eval echo configure:5872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5873 eval "ac_cv_lib_$ac_lib_var=yes"
5875 echo "configure: failed program was:" >&5
5876 cat conftest.$ac_ext >&5
5878 eval "ac_cv_lib_$ac_lib_var=no"
5881 LIBS="$ac_save_LIBS"
5884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5885 echo "$ac_t""yes" 1>&6
5889 echo "$ac_t""no" 1>&6
5894 if test $have_ssleay = no ; then
5895 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
5896 echo "configure:5897: checking for SSL_library_init in -lssl" >&5
5897 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
5898 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5899 echo $ac_n "(cached) $ac_c" 1>&6
5901 ac_save_LIBS="$LIBS"
5902 LIBS="-lssl -lcrypto $LIBS"
5903 cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5906 /* Override any gcc2 internal prototype to avoid an error. */
5907 /* We use char because int might match the return type of a gcc2
5908 builtin and then its argument prototype would still apply. */
5909 char SSL_library_init();
5915 if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5917 eval "ac_cv_lib_$ac_lib_var=yes"
5919 echo "configure: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5922 eval "ac_cv_lib_$ac_lib_var=no"
5925 LIBS="$ac_save_LIBS"
5928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5929 echo "$ac_t""yes" 1>&6
5933 echo "$ac_t""no" 1>&6
5939 if test $have_ssleay = no ; then
5940 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
5941 echo "configure:5942: checking for ssl3_accept in -lssl" >&5
5942 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
5943 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5944 echo $ac_n "(cached) $ac_c" 1>&6
5946 ac_save_LIBS="$LIBS"
5947 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5951 /* Override any gcc2 internal prototype to avoid an error. */
5952 /* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5960 if { (eval echo configure:5961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5962 eval "ac_cv_lib_$ac_lib_var=yes"
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5967 eval "ac_cv_lib_$ac_lib_var=no"
5970 LIBS="$ac_save_LIBS"
5973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5974 echo "$ac_t""yes" 1>&6
5978 echo "$ac_t""no" 1>&6
5984 if test $have_ssleay = yes ; then
5988 cat >> confdefs.h <<\EOF
5989 #define HAVE_SSLEAY 1
5993 if test $need_rsaref = yes; then
5994 cat >> confdefs.h <<\EOF
5995 #define HAVE_RSAREF 1
5999 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6001 TLS_LIBS="-lssl -lcrypto"
6007 if test $ol_link_tls = yes ; then
6008 cat >> confdefs.h <<\EOF
6016 gethostbyname_r gethostbyaddr_r \
6019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6020 echo "configure:6021: checking for $ac_func" >&5
6021 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6
6024 cat > conftest.$ac_ext <<EOF
6025 #line 6026 "configure"
6026 #include "confdefs.h"
6027 /* System header to define __stub macros and hopefully few prototypes,
6028 which can conflict with char $ac_func(); below. */
6030 /* Override any gcc2 internal prototype to avoid an error. */
6031 /* We use char because int might match the return type of a gcc2
6032 builtin and then its argument prototype would still apply. */
6038 /* The GNU C library defines this for functions which it implements
6039 to always fail with ENOSYS. Some functions are actually named
6040 something starting with __ and the normal name is an alias. */
6041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6051 eval "ac_cv_func_$ac_func=yes"
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6056 eval "ac_cv_func_$ac_func=no"
6061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6062 echo "$ac_t""yes" 1>&6
6063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6064 cat >> confdefs.h <<EOF
6065 #define $ac_tr_func 1
6069 echo "$ac_t""no" 1>&6
6074 if test "$ac_cv_func_ctime_r" = no ; then
6075 ol_cv_func_ctime_r_nargs=0
6077 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6078 echo "configure:6079: checking number of arguments of ctime_r" >&5
6079 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6082 cat > conftest.$ac_ext <<EOF
6083 #line 6084 "configure"
6084 #include "confdefs.h"
6087 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6090 if { (eval echo configure:6091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6092 ol_cv_func_ctime_r_nargs=3
6094 echo "configure: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6097 cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6102 time_t ti; char *buffer; ctime_r(&ti,buffer);
6105 if { (eval echo configure:6106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6107 ol_cv_func_ctime_r_nargs=2
6109 echo "configure: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6112 ol_cv_func_ctime_r_nargs=0
6119 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6120 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6121 cat >> confdefs.h <<EOF
6122 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6129 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6130 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6131 echo "configure:6132: checking number of arguments of gethostbyname_r" >&5
6132 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6133 echo $ac_n "(cached) $ac_c" 1>&6
6135 cat > conftest.$ac_ext <<EOF
6136 #line 6137 "configure"
6137 #include "confdefs.h"
6138 #include <sys/types.h>
6139 #include <sys/socket.h>
6140 #include <netinet/in.h>
6142 #define BUFSIZE (sizeof(struct hostent)+10)
6144 struct hostent hent; char buffer[BUFSIZE];
6145 int bufsize=BUFSIZE;int h_errno;
6146 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6147 buffer, bufsize, &h_errno);
6150 if { (eval echo configure:6151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6152 ol_cv_func_gethostbyname_r_nargs=5
6154 echo "configure: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6157 cat > conftest.$ac_ext <<EOF
6158 #line 6159 "configure"
6159 #include "confdefs.h"
6160 #include <sys/types.h>
6161 #include <sys/socket.h>
6162 #include <netinet/in.h>
6164 #define BUFSIZE (sizeof(struct hostent)+10)
6166 struct hostent hent;struct hostent *rhent;
6167 char buffer[BUFSIZE];
6168 int bufsize=BUFSIZE;int h_errno;
6169 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6173 if { (eval echo configure:6174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6175 ol_cv_func_gethostbyname_r_nargs=6
6177 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6180 ol_cv_func_gethostbyname_r_nargs=0
6187 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6188 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6189 cat >> confdefs.h <<EOF
6190 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6196 ol_cv_func_gethostbyname_r_nargs=0
6199 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6200 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6201 echo "configure:6202: checking number of arguments of gethostbyaddr_r" >&5
6202 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6203 echo $ac_n "(cached) $ac_c" 1>&6
6205 cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure"
6207 #include "confdefs.h"
6208 #include <sys/types.h>
6209 #include <sys/socket.h>
6210 #include <netinet/in.h>
6212 #define BUFSIZE (sizeof(struct hostent)+10)
6214 struct hostent hent; char buffer[BUFSIZE];
6216 size_t alen=sizeof(struct in_addr);
6217 int bufsize=BUFSIZE;int h_errno;
6218 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6219 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6222 if { (eval echo configure:6223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6224 ol_cv_func_gethostbyaddr_r_nargs=7
6226 echo "configure: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6229 cat > conftest.$ac_ext <<EOF
6230 #line 6231 "configure"
6231 #include "confdefs.h"
6232 #include <sys/types.h>
6233 #include <sys/socket.h>
6234 #include <netinet/in.h>
6236 #define BUFSIZE (sizeof(struct hostent)+10)
6238 struct hostent hent;
6239 struct hostent *rhent; char buffer[BUFSIZE];
6241 size_t alen=sizeof(struct in_addr);
6242 int bufsize=BUFSIZE;int h_errno;
6243 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6244 alen, AF_INET, &hent, buffer, bufsize,
6248 if { (eval echo configure:6249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6250 ol_cv_func_gethostbyaddr_r_nargs=8
6252 echo "configure: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6255 ol_cv_func_gethostbyaddr_r_nargs=0
6262 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6263 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6264 cat >> confdefs.h <<EOF
6265 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6271 ol_cv_func_gethostbyaddr_r_nargs=0
6274 if test "$ac_cv_func_ctime_r" = yes \
6275 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6276 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6277 -a "$ac_cv_func_gethostbyname_r" = yes \
6278 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6279 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6280 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6281 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6282 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6285 cat >> confdefs.h <<\EOF
6286 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6292 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6293 -o $ol_with_threads = posix ; then
6295 for ac_hdr in pthread.h
6297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6299 echo "configure:6300: checking for $ac_hdr" >&5
6300 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6303 cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6309 { (eval echo configure:6310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6311 if test -z "$ac_err"; then
6313 eval "ac_cv_header_$ac_safe=yes"
6316 echo "configure: failed program was:" >&5
6317 cat conftest.$ac_ext >&5
6319 eval "ac_cv_header_$ac_safe=no"
6323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6324 echo "$ac_t""yes" 1>&6
6325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6326 cat >> confdefs.h <<EOF
6327 #define $ac_tr_hdr 1
6331 echo "$ac_t""no" 1>&6
6336 if test $ac_cv_header_pthread_h = yes ; then
6337 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6338 echo "configure:6339: checking POSIX thread version" >&5
6339 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6340 echo $ac_n "(cached) $ac_c" 1>&6
6343 cat > conftest.$ac_ext <<EOF
6344 #line 6345 "configure"
6345 #include "confdefs.h"
6347 # include <pthread.h>
6348 /* this check could be improved */
6349 # ifdef PTHREAD_ONCE_INIT
6350 pthread_version_final
6354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6355 egrep "pthread_version_final" >/dev/null 2>&1; then
6357 ol_pthread_final=yes
6365 cat > conftest.$ac_ext <<EOF
6366 #line 6367 "configure"
6367 #include "confdefs.h"
6369 # include <pthread.h>
6370 /* this check could be improved */
6371 # ifdef pthread_once_init
6372 pthread_version_draft4
6376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6377 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6379 ol_pthread_draft4=yes
6382 ol_pthread_draft4=no
6387 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6388 ol_cv_pthread_version=final
6389 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6390 ol_cv_pthread_version=draft4
6392 ol_cv_pthread_version=unknown
6397 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6400 if test $ol_cv_pthread_version = final ; then
6401 cat >> confdefs.h <<\EOF
6402 #define HAVE_PTHREADS_FINAL 1
6405 elif test $ol_cv_pthread_version = draft4 ; then
6406 cat >> confdefs.h <<\EOF
6407 #define HAVE_PTHREADS_D4 1
6411 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6414 # consider threads found
6415 ol_with_threads=found
6418 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6419 echo "configure:6420: checking for LinuxThreads pthread.h" >&5
6420 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6
6423 cat > conftest.$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6426 #include <pthread.h>
6428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6429 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6431 ol_cv_header_linux_threads=yes
6434 ol_cv_header_linux_threads=no
6441 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6442 if test $ol_cv_header_linux_threads = yes; then
6443 cat >> confdefs.h <<\EOF
6444 #define HAVE_LINUX_THREADS 1
6450 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6451 echo "configure:6452: checking for GNU Pth pthread.h" >&5
6452 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6455 cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6458 #include <pthread.h>
6459 #ifdef _POSIX_THREAD_IS_GNU_PTH
6464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6465 egrep "__gnu_pth__" >/dev/null 2>&1; then
6467 ol_cv_header_gnu_pth_pthread_h=yes
6470 ol_cv_header_gnu_pth_pthread_h=no
6477 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6480 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6481 for ac_hdr in sched.h
6483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6485 echo "configure:6486: checking for $ac_hdr" >&5
6486 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6487 echo $ac_n "(cached) $ac_c" 1>&6
6489 cat > conftest.$ac_ext <<EOF
6490 #line 6491 "configure"
6491 #include "confdefs.h"
6494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6495 { (eval echo configure:6496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6497 if test -z "$ac_err"; then
6499 eval "ac_cv_header_$ac_safe=yes"
6502 echo "configure: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6505 eval "ac_cv_header_$ac_safe=no"
6509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6510 echo "$ac_t""yes" 1>&6
6511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6512 cat >> confdefs.h <<EOF
6513 #define $ac_tr_hdr 1
6517 echo "$ac_t""no" 1>&6
6524 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6525 echo "configure:6526: checking for pthread_create in default libraries" >&5
6526 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6530 if test "$cross_compiling" = yes; then
6531 cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6534 /* pthread test headers */
6535 #include <pthread.h>
6537 #define NULL (void*)0
6540 static void *task(p)
6543 return (void *) (p == NULL);
6548 /* pthread test function */
6552 /* make sure pthread_create() isn't just a stub */
6553 #if HAVE_PTHREADS_D4
6554 status = pthread_create(&t, pthread_attr_default, task, NULL);
6556 status = pthread_create(&t, NULL, task, NULL);
6559 if( status ) exit( status );
6561 /* make sure pthread_detach() isn't just a stub */
6562 #if HAVE_PTHREADS_D4
6563 status = pthread_detach( &t );
6565 status = pthread_detach( t );
6568 #ifdef HAVE_LINUX_THREADS
6569 pthread_kill_other_threads_np();
6576 if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6578 ol_cv_pthread_create=yes
6580 echo "configure: failed program was:" >&5
6581 cat conftest.$ac_ext >&5
6583 ol_cv_pthread_create=no
6587 cat > conftest.$ac_ext <<EOF
6588 #line 6589 "configure"
6589 #include "confdefs.h"
6590 /* pthread test headers */
6591 #include <pthread.h>
6593 #define NULL (void*)0
6596 static void *task(p)
6599 return (void *) (p == NULL);
6603 int main(argc, argv)
6608 /* pthread test function */
6612 /* make sure pthread_create() isn't just a stub */
6613 #if HAVE_PTHREADS_D4
6614 status = pthread_create(&t, pthread_attr_default, task, NULL);
6616 status = pthread_create(&t, NULL, task, NULL);
6619 if( status ) exit( status );
6621 /* make sure pthread_detach() isn't just a stub */
6622 #if HAVE_PTHREADS_D4
6623 status = pthread_detach( &t );
6625 status = pthread_detach( t );
6628 #ifdef HAVE_LINUX_THREADS
6629 pthread_kill_other_threads_np();
6637 if { (eval echo configure:6638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6639 ol_cv_pthread_create=yes
6641 echo "configure: failed program was:" >&5
6642 cat conftest.$ac_ext >&5
6644 ol_cv_pthread_create=no
6651 echo "$ac_t""$ol_cv_pthread_create" 1>&6
6653 if test $ol_cv_pthread_create != no ; then
6654 ol_link_threads=posix
6658 # Pthread try link: -kthread (ol_cv_pthread_kthread)
6659 if test "$ol_link_threads" = no ; then
6661 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
6662 echo "configure:6663: checking for pthread link with -kthread" >&5
6663 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6669 LIBS="-kthread $LIBS"
6671 if test "$cross_compiling" = yes; then
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6675 /* pthread test headers */
6676 #include <pthread.h>
6678 #define NULL (void*)0
6681 static void *task(p)
6684 return (void *) (p == NULL);
6689 /* pthread test function */
6693 /* make sure pthread_create() isn't just a stub */
6694 #if HAVE_PTHREADS_D4
6695 status = pthread_create(&t, pthread_attr_default, task, NULL);
6697 status = pthread_create(&t, NULL, task, NULL);
6700 if( status ) exit( status );
6702 /* make sure pthread_detach() isn't just a stub */
6703 #if HAVE_PTHREADS_D4
6704 status = pthread_detach( &t );
6706 status = pthread_detach( t );
6709 #ifdef HAVE_LINUX_THREADS
6710 pthread_kill_other_threads_np();
6717 if { (eval echo configure:6718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6719 ol_cv_pthread_kthread=yes
6721 echo "configure: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6724 ol_cv_pthread_kthread=no
6728 cat > conftest.$ac_ext <<EOF
6729 #line 6730 "configure"
6730 #include "confdefs.h"
6731 /* pthread test headers */
6732 #include <pthread.h>
6734 #define NULL (void*)0
6737 static void *task(p)
6740 return (void *) (p == NULL);
6744 int main(argc, argv)
6749 /* pthread test function */
6753 /* make sure pthread_create() isn't just a stub */
6754 #if HAVE_PTHREADS_D4
6755 status = pthread_create(&t, pthread_attr_default, task, NULL);
6757 status = pthread_create(&t, NULL, task, NULL);
6760 if( status ) exit( status );
6762 /* make sure pthread_detach() isn't just a stub */
6763 #if HAVE_PTHREADS_D4
6764 status = pthread_detach( &t );
6766 status = pthread_detach( t );
6769 #ifdef HAVE_LINUX_THREADS
6770 pthread_kill_other_threads_np();
6778 if { (eval echo configure:6779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6780 ol_cv_pthread_kthread=yes
6782 echo "configure: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6785 ol_cv_pthread_kthread=no
6796 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
6798 if test $ol_cv_pthread_kthread = yes ; then
6799 ol_link_pthreads="-kthread"
6800 ol_link_threads=posix
6804 # Pthread try link: -pthread (ol_cv_pthread_pthread)
6805 if test "$ol_link_threads" = no ; then
6807 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
6808 echo "configure:6809: checking for pthread link with -pthread" >&5
6809 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
6810 echo $ac_n "(cached) $ac_c" 1>&6
6815 LIBS="-pthread $LIBS"
6817 if test "$cross_compiling" = yes; then
6818 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure"
6820 #include "confdefs.h"
6821 /* pthread test headers */
6822 #include <pthread.h>
6824 #define NULL (void*)0
6827 static void *task(p)
6830 return (void *) (p == NULL);
6835 /* pthread test function */
6839 /* make sure pthread_create() isn't just a stub */
6840 #if HAVE_PTHREADS_D4
6841 status = pthread_create(&t, pthread_attr_default, task, NULL);
6843 status = pthread_create(&t, NULL, task, NULL);
6846 if( status ) exit( status );
6848 /* make sure pthread_detach() isn't just a stub */
6849 #if HAVE_PTHREADS_D4
6850 status = pthread_detach( &t );
6852 status = pthread_detach( t );
6855 #ifdef HAVE_LINUX_THREADS
6856 pthread_kill_other_threads_np();
6863 if { (eval echo configure:6864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6865 ol_cv_pthread_pthread=yes
6867 echo "configure: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6870 ol_cv_pthread_pthread=no
6874 cat > conftest.$ac_ext <<EOF
6875 #line 6876 "configure"
6876 #include "confdefs.h"
6877 /* pthread test headers */
6878 #include <pthread.h>
6880 #define NULL (void*)0
6883 static void *task(p)
6886 return (void *) (p == NULL);
6890 int main(argc, argv)
6895 /* pthread test function */
6899 /* make sure pthread_create() isn't just a stub */
6900 #if HAVE_PTHREADS_D4
6901 status = pthread_create(&t, pthread_attr_default, task, NULL);
6903 status = pthread_create(&t, NULL, task, NULL);
6906 if( status ) exit( status );
6908 /* make sure pthread_detach() isn't just a stub */
6909 #if HAVE_PTHREADS_D4
6910 status = pthread_detach( &t );
6912 status = pthread_detach( t );
6915 #ifdef HAVE_LINUX_THREADS
6916 pthread_kill_other_threads_np();
6924 if { (eval echo configure:6925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6926 ol_cv_pthread_pthread=yes
6928 echo "configure: failed program was:" >&5
6929 cat conftest.$ac_ext >&5
6931 ol_cv_pthread_pthread=no
6942 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
6944 if test $ol_cv_pthread_pthread = yes ; then
6945 ol_link_pthreads="-pthread"
6946 ol_link_threads=posix
6950 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
6951 if test "$ol_link_threads" = no ; then
6953 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
6954 echo "configure:6955: checking for pthread link with -pthreads" >&5
6955 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
6956 echo $ac_n "(cached) $ac_c" 1>&6
6961 LIBS="-pthreads $LIBS"
6963 if test "$cross_compiling" = yes; then
6964 cat > conftest.$ac_ext <<EOF
6965 #line 6966 "configure"
6966 #include "confdefs.h"
6967 /* pthread test headers */
6968 #include <pthread.h>
6970 #define NULL (void*)0
6973 static void *task(p)
6976 return (void *) (p == NULL);
6981 /* pthread test function */
6985 /* make sure pthread_create() isn't just a stub */
6986 #if HAVE_PTHREADS_D4
6987 status = pthread_create(&t, pthread_attr_default, task, NULL);
6989 status = pthread_create(&t, NULL, task, NULL);
6992 if( status ) exit( status );
6994 /* make sure pthread_detach() isn't just a stub */
6995 #if HAVE_PTHREADS_D4
6996 status = pthread_detach( &t );
6998 status = pthread_detach( t );
7001 #ifdef HAVE_LINUX_THREADS
7002 pthread_kill_other_threads_np();
7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7011 ol_cv_pthread_pthreads=yes
7013 echo "configure: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7016 ol_cv_pthread_pthreads=no
7020 cat > conftest.$ac_ext <<EOF
7021 #line 7022 "configure"
7022 #include "confdefs.h"
7023 /* pthread test headers */
7024 #include <pthread.h>
7026 #define NULL (void*)0
7029 static void *task(p)
7032 return (void *) (p == NULL);
7036 int main(argc, argv)
7041 /* pthread test function */
7045 /* make sure pthread_create() isn't just a stub */
7046 #if HAVE_PTHREADS_D4
7047 status = pthread_create(&t, pthread_attr_default, task, NULL);
7049 status = pthread_create(&t, NULL, task, NULL);
7052 if( status ) exit( status );
7054 /* make sure pthread_detach() isn't just a stub */
7055 #if HAVE_PTHREADS_D4
7056 status = pthread_detach( &t );
7058 status = pthread_detach( t );
7061 #ifdef HAVE_LINUX_THREADS
7062 pthread_kill_other_threads_np();
7070 if { (eval echo configure:7071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7072 ol_cv_pthread_pthreads=yes
7074 echo "configure: failed program was:" >&5
7075 cat conftest.$ac_ext >&5
7077 ol_cv_pthread_pthreads=no
7088 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7090 if test $ol_cv_pthread_pthreads = yes ; then
7091 ol_link_pthreads="-pthreads"
7092 ol_link_threads=posix
7096 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7097 if test "$ol_link_threads" = no ; then
7099 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7100 echo "configure:7101: checking for pthread link with -mthreads" >&5
7101 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7102 echo $ac_n "(cached) $ac_c" 1>&6
7107 LIBS="-mthreads $LIBS"
7109 if test "$cross_compiling" = yes; then
7110 cat > conftest.$ac_ext <<EOF
7111 #line 7112 "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:7156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7157 ol_cv_pthread_mthreads=yes
7159 echo "configure: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7162 ol_cv_pthread_mthreads=no
7166 cat > conftest.$ac_ext <<EOF
7167 #line 7168 "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:7217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7218 ol_cv_pthread_mthreads=yes
7220 echo "configure: failed program was:" >&5
7221 cat conftest.$ac_ext >&5
7223 ol_cv_pthread_mthreads=no
7234 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7236 if test $ol_cv_pthread_mthreads = yes ; then
7237 ol_link_pthreads="-mthreads"
7238 ol_link_threads=posix
7242 # Pthread try link: -thread (ol_cv_pthread_thread)
7243 if test "$ol_link_threads" = no ; then
7245 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7246 echo "configure:7247: checking for pthread link with -thread" >&5
7247 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7248 echo $ac_n "(cached) $ac_c" 1>&6
7253 LIBS="-thread $LIBS"
7255 if test "$cross_compiling" = yes; then
7256 cat > conftest.$ac_ext <<EOF
7257 #line 7258 "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:7302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7303 ol_cv_pthread_thread=yes
7305 echo "configure: failed program was:" >&5
7306 cat conftest.$ac_ext >&5
7308 ol_cv_pthread_thread=no
7312 cat > conftest.$ac_ext <<EOF
7313 #line 7314 "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:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7364 ol_cv_pthread_thread=yes
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 ol_cv_pthread_thread=no
7380 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
7382 if test $ol_cv_pthread_thread = yes ; then
7383 ol_link_pthreads="-thread"
7384 ol_link_threads=posix
7389 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
7390 if test "$ol_link_threads" = no ; then
7391 # try -lpthread -lmach -lexc -lc_r
7392 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
7393 echo "configure:7394: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
7394 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6
7400 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
7402 if test "$cross_compiling" = yes; then
7403 cat > conftest.$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7406 /* pthread test headers */
7407 #include <pthread.h>
7409 #define NULL (void*)0
7412 static void *task(p)
7415 return (void *) (p == NULL);
7420 /* pthread test function */
7424 /* make sure pthread_create() isn't just a stub */
7425 #if HAVE_PTHREADS_D4
7426 status = pthread_create(&t, pthread_attr_default, task, NULL);
7428 status = pthread_create(&t, NULL, task, NULL);
7431 if( status ) exit( status );
7433 /* make sure pthread_detach() isn't just a stub */
7434 #if HAVE_PTHREADS_D4
7435 status = pthread_detach( &t );
7437 status = pthread_detach( t );
7440 #ifdef HAVE_LINUX_THREADS
7441 pthread_kill_other_threads_np();
7448 if { (eval echo configure:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7450 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7452 echo "configure: failed program was:" >&5
7453 cat conftest.$ac_ext >&5
7455 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7459 cat > conftest.$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7462 /* pthread test headers */
7463 #include <pthread.h>
7465 #define NULL (void*)0
7468 static void *task(p)
7471 return (void *) (p == NULL);
7475 int main(argc, argv)
7480 /* pthread test function */
7484 /* make sure pthread_create() isn't just a stub */
7485 #if HAVE_PTHREADS_D4
7486 status = pthread_create(&t, pthread_attr_default, task, NULL);
7488 status = pthread_create(&t, NULL, task, NULL);
7491 if( status ) exit( status );
7493 /* make sure pthread_detach() isn't just a stub */
7494 #if HAVE_PTHREADS_D4
7495 status = pthread_detach( &t );
7497 status = pthread_detach( t );
7500 #ifdef HAVE_LINUX_THREADS
7501 pthread_kill_other_threads_np();
7509 if { (eval echo configure:7510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7511 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
7513 echo "configure: failed program was:" >&5
7514 cat conftest.$ac_ext >&5
7516 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
7527 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
7529 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
7530 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
7531 ol_link_threads=posix
7535 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
7536 if test "$ol_link_threads" = no ; then
7537 # try -lpthread -lmach -lexc
7538 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
7539 echo "configure:7540: checking for pthread link with -lpthread -lmach -lexc" >&5
7540 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
7541 echo $ac_n "(cached) $ac_c" 1>&6
7546 LIBS="-lpthread -lmach -lexc $LIBS"
7548 if test "$cross_compiling" = yes; then
7549 cat > conftest.$ac_ext <<EOF
7550 #line 7551 "configure"
7551 #include "confdefs.h"
7552 /* pthread test headers */
7553 #include <pthread.h>
7555 #define NULL (void*)0
7558 static void *task(p)
7561 return (void *) (p == NULL);
7566 /* pthread test function */
7570 /* make sure pthread_create() isn't just a stub */
7571 #if HAVE_PTHREADS_D4
7572 status = pthread_create(&t, pthread_attr_default, task, NULL);
7574 status = pthread_create(&t, NULL, task, NULL);
7577 if( status ) exit( status );
7579 /* make sure pthread_detach() isn't just a stub */
7580 #if HAVE_PTHREADS_D4
7581 status = pthread_detach( &t );
7583 status = pthread_detach( t );
7586 #ifdef HAVE_LINUX_THREADS
7587 pthread_kill_other_threads_np();
7594 if { (eval echo configure:7595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7596 ol_cv_pthread_lpthread_lmach_lexc=yes
7598 echo "configure: failed program was:" >&5
7599 cat conftest.$ac_ext >&5
7601 ol_cv_pthread_lpthread_lmach_lexc=no
7605 cat > conftest.$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7608 /* pthread test headers */
7609 #include <pthread.h>
7611 #define NULL (void*)0
7614 static void *task(p)
7617 return (void *) (p == NULL);
7621 int main(argc, argv)
7626 /* pthread test function */
7630 /* make sure pthread_create() isn't just a stub */
7631 #if HAVE_PTHREADS_D4
7632 status = pthread_create(&t, pthread_attr_default, task, NULL);
7634 status = pthread_create(&t, NULL, task, NULL);
7637 if( status ) exit( status );
7639 /* make sure pthread_detach() isn't just a stub */
7640 #if HAVE_PTHREADS_D4
7641 status = pthread_detach( &t );
7643 status = pthread_detach( t );
7646 #ifdef HAVE_LINUX_THREADS
7647 pthread_kill_other_threads_np();
7655 if { (eval echo configure:7656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7657 ol_cv_pthread_lpthread_lmach_lexc=yes
7659 echo "configure: failed program was:" >&5
7660 cat conftest.$ac_ext >&5
7662 ol_cv_pthread_lpthread_lmach_lexc=no
7673 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
7675 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
7676 ol_link_pthreads="-lpthread -lmach -lexc"
7677 ol_link_threads=posix
7682 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
7683 if test "$ol_link_threads" = no ; then
7684 # try -lpthread -Wl,-woff,85
7685 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
7686 echo "configure:7687: checking for pthread link with -lpthread -Wl,-woff,85" >&5
7687 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
7688 echo $ac_n "(cached) $ac_c" 1>&6
7693 LIBS="-lpthread -Wl,-woff,85 $LIBS"
7695 if test "$cross_compiling" = yes; then
7696 cat > conftest.$ac_ext <<EOF
7697 #line 7698 "configure"
7698 #include "confdefs.h"
7699 /* pthread test headers */
7700 #include <pthread.h>
7702 #define NULL (void*)0
7705 static void *task(p)
7708 return (void *) (p == NULL);
7713 /* pthread test function */
7717 /* make sure pthread_create() isn't just a stub */
7718 #if HAVE_PTHREADS_D4
7719 status = pthread_create(&t, pthread_attr_default, task, NULL);
7721 status = pthread_create(&t, NULL, task, NULL);
7724 if( status ) exit( status );
7726 /* make sure pthread_detach() isn't just a stub */
7727 #if HAVE_PTHREADS_D4
7728 status = pthread_detach( &t );
7730 status = pthread_detach( t );
7733 #ifdef HAVE_LINUX_THREADS
7734 pthread_kill_other_threads_np();
7741 if { (eval echo configure:7742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7743 ol_cv_pthread_lib_lpthread_woff=yes
7745 echo "configure: failed program was:" >&5
7746 cat conftest.$ac_ext >&5
7748 ol_cv_pthread_lib_lpthread_woff=no
7752 cat > conftest.$ac_ext <<EOF
7753 #line 7754 "configure"
7754 #include "confdefs.h"
7755 /* pthread test headers */
7756 #include <pthread.h>
7758 #define NULL (void*)0
7761 static void *task(p)
7764 return (void *) (p == NULL);
7768 int main(argc, argv)
7773 /* pthread test function */
7777 /* make sure pthread_create() isn't just a stub */
7778 #if HAVE_PTHREADS_D4
7779 status = pthread_create(&t, pthread_attr_default, task, NULL);
7781 status = pthread_create(&t, NULL, task, NULL);
7784 if( status ) exit( status );
7786 /* make sure pthread_detach() isn't just a stub */
7787 #if HAVE_PTHREADS_D4
7788 status = pthread_detach( &t );
7790 status = pthread_detach( t );
7793 #ifdef HAVE_LINUX_THREADS
7794 pthread_kill_other_threads_np();
7802 if { (eval echo configure:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7804 ol_cv_pthread_lib_lpthread_woff=yes
7806 echo "configure: failed program was:" >&5
7807 cat conftest.$ac_ext >&5
7809 ol_cv_pthread_lib_lpthread_woff=no
7820 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
7822 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
7823 ol_link_pthreads="-lpthread -Wl,-woff,85"
7824 ol_link_threads=posix
7829 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
7830 if test "$ol_link_threads" = no ; then
7832 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
7833 echo "configure:7834: checking for pthread link with -lpthread" >&5
7834 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7840 LIBS="-lpthread $LIBS"
7842 if test "$cross_compiling" = yes; then
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 /* pthread test headers */
7847 #include <pthread.h>
7849 #define NULL (void*)0
7852 static void *task(p)
7855 return (void *) (p == NULL);
7860 /* pthread test function */
7864 /* make sure pthread_create() isn't just a stub */
7865 #if HAVE_PTHREADS_D4
7866 status = pthread_create(&t, pthread_attr_default, task, NULL);
7868 status = pthread_create(&t, NULL, task, NULL);
7871 if( status ) exit( status );
7873 /* make sure pthread_detach() isn't just a stub */
7874 #if HAVE_PTHREADS_D4
7875 status = pthread_detach( &t );
7877 status = pthread_detach( t );
7880 #ifdef HAVE_LINUX_THREADS
7881 pthread_kill_other_threads_np();
7888 if { (eval echo configure:7889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7890 ol_cv_pthread_lpthread=yes
7892 echo "configure: failed program was:" >&5
7893 cat conftest.$ac_ext >&5
7895 ol_cv_pthread_lpthread=no
7899 cat > conftest.$ac_ext <<EOF
7900 #line 7901 "configure"
7901 #include "confdefs.h"
7902 /* pthread test headers */
7903 #include <pthread.h>
7905 #define NULL (void*)0
7908 static void *task(p)
7911 return (void *) (p == NULL);
7915 int main(argc, argv)
7920 /* pthread test function */
7924 /* make sure pthread_create() isn't just a stub */
7925 #if HAVE_PTHREADS_D4
7926 status = pthread_create(&t, pthread_attr_default, task, NULL);
7928 status = pthread_create(&t, NULL, task, NULL);
7931 if( status ) exit( status );
7933 /* make sure pthread_detach() isn't just a stub */
7934 #if HAVE_PTHREADS_D4
7935 status = pthread_detach( &t );
7937 status = pthread_detach( t );
7940 #ifdef HAVE_LINUX_THREADS
7941 pthread_kill_other_threads_np();
7949 if { (eval echo configure:7950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7951 ol_cv_pthread_lpthread=yes
7953 echo "configure: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7956 ol_cv_pthread_lpthread=no
7967 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
7969 if test $ol_cv_pthread_lpthread = yes ; then
7970 ol_link_pthreads="-lpthread"
7971 ol_link_threads=posix
7975 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
7976 if test "$ol_link_threads" = no ; then
7978 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
7979 echo "configure:7980: checking for pthread link with -lc_r" >&5
7980 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7988 if test "$cross_compiling" = yes; then
7989 cat > conftest.$ac_ext <<EOF
7990 #line 7991 "configure"
7991 #include "confdefs.h"
7992 /* pthread test headers */
7993 #include <pthread.h>
7995 #define NULL (void*)0
7998 static void *task(p)
8001 return (void *) (p == NULL);
8006 /* pthread test function */
8010 /* make sure pthread_create() isn't just a stub */
8011 #if HAVE_PTHREADS_D4
8012 status = pthread_create(&t, pthread_attr_default, task, NULL);
8014 status = pthread_create(&t, NULL, task, NULL);
8017 if( status ) exit( status );
8019 /* make sure pthread_detach() isn't just a stub */
8020 #if HAVE_PTHREADS_D4
8021 status = pthread_detach( &t );
8023 status = pthread_detach( t );
8026 #ifdef HAVE_LINUX_THREADS
8027 pthread_kill_other_threads_np();
8034 if { (eval echo configure:8035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8036 ol_cv_pthread_lc_r=yes
8038 echo "configure: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8041 ol_cv_pthread_lc_r=no
8045 cat > conftest.$ac_ext <<EOF
8046 #line 8047 "configure"
8047 #include "confdefs.h"
8048 /* pthread test headers */
8049 #include <pthread.h>
8051 #define NULL (void*)0
8054 static void *task(p)
8057 return (void *) (p == NULL);
8061 int main(argc, argv)
8066 /* pthread test function */
8070 /* make sure pthread_create() isn't just a stub */
8071 #if HAVE_PTHREADS_D4
8072 status = pthread_create(&t, pthread_attr_default, task, NULL);
8074 status = pthread_create(&t, NULL, task, NULL);
8077 if( status ) exit( status );
8079 /* make sure pthread_detach() isn't just a stub */
8080 #if HAVE_PTHREADS_D4
8081 status = pthread_detach( &t );
8083 status = pthread_detach( t );
8086 #ifdef HAVE_LINUX_THREADS
8087 pthread_kill_other_threads_np();
8095 if { (eval echo configure:8096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8097 ol_cv_pthread_lc_r=yes
8099 echo "configure: failed program was:" >&5
8100 cat conftest.$ac_ext >&5
8102 ol_cv_pthread_lc_r=no
8113 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8115 if test $ol_cv_pthread_lc_r = yes ; then
8116 ol_link_pthreads="-lc_r"
8117 ol_link_threads=posix
8122 # Pthread try link: -threads (ol_cv_pthread_threads)
8123 if test "$ol_link_threads" = no ; then
8125 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8126 echo "configure:8127: checking for pthread link with -threads" >&5
8127 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8128 echo $ac_n "(cached) $ac_c" 1>&6
8133 LIBS="-threads $LIBS"
8135 if test "$cross_compiling" = yes; then
8136 cat > conftest.$ac_ext <<EOF
8137 #line 8138 "configure"
8138 #include "confdefs.h"
8139 /* pthread test headers */
8140 #include <pthread.h>
8142 #define NULL (void*)0
8145 static void *task(p)
8148 return (void *) (p == NULL);
8153 /* pthread test function */
8157 /* make sure pthread_create() isn't just a stub */
8158 #if HAVE_PTHREADS_D4
8159 status = pthread_create(&t, pthread_attr_default, task, NULL);
8161 status = pthread_create(&t, NULL, task, NULL);
8164 if( status ) exit( status );
8166 /* make sure pthread_detach() isn't just a stub */
8167 #if HAVE_PTHREADS_D4
8168 status = pthread_detach( &t );
8170 status = pthread_detach( t );
8173 #ifdef HAVE_LINUX_THREADS
8174 pthread_kill_other_threads_np();
8181 if { (eval echo configure:8182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8183 ol_cv_pthread_threads=yes
8185 echo "configure: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8188 ol_cv_pthread_threads=no
8192 cat > conftest.$ac_ext <<EOF
8193 #line 8194 "configure"
8194 #include "confdefs.h"
8195 /* pthread test headers */
8196 #include <pthread.h>
8198 #define NULL (void*)0
8201 static void *task(p)
8204 return (void *) (p == NULL);
8208 int main(argc, argv)
8213 /* pthread test function */
8217 /* make sure pthread_create() isn't just a stub */
8218 #if HAVE_PTHREADS_D4
8219 status = pthread_create(&t, pthread_attr_default, task, NULL);
8221 status = pthread_create(&t, NULL, task, NULL);
8224 if( status ) exit( status );
8226 /* make sure pthread_detach() isn't just a stub */
8227 #if HAVE_PTHREADS_D4
8228 status = pthread_detach( &t );
8230 status = pthread_detach( t );
8233 #ifdef HAVE_LINUX_THREADS
8234 pthread_kill_other_threads_np();
8242 if { (eval echo configure:8243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8244 ol_cv_pthread_threads=yes
8246 echo "configure: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8249 ol_cv_pthread_threads=no
8260 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
8262 if test $ol_cv_pthread_threads = yes ; then
8263 ol_link_pthreads="-threads"
8264 ol_link_threads=posix
8269 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
8270 if test "$ol_link_threads" = no ; then
8271 # try -lpthreads -lmach -lexc -lc_r
8272 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
8273 echo "configure:8274: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
8274 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
8275 echo $ac_n "(cached) $ac_c" 1>&6
8280 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
8282 if test "$cross_compiling" = yes; then
8283 cat > conftest.$ac_ext <<EOF
8284 #line 8285 "configure"
8285 #include "confdefs.h"
8286 /* pthread test headers */
8287 #include <pthread.h>
8289 #define NULL (void*)0
8292 static void *task(p)
8295 return (void *) (p == NULL);
8300 /* pthread test function */
8304 /* make sure pthread_create() isn't just a stub */
8305 #if HAVE_PTHREADS_D4
8306 status = pthread_create(&t, pthread_attr_default, task, NULL);
8308 status = pthread_create(&t, NULL, task, NULL);
8311 if( status ) exit( status );
8313 /* make sure pthread_detach() isn't just a stub */
8314 #if HAVE_PTHREADS_D4
8315 status = pthread_detach( &t );
8317 status = pthread_detach( t );
8320 #ifdef HAVE_LINUX_THREADS
8321 pthread_kill_other_threads_np();
8328 if { (eval echo configure:8329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8330 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8332 echo "configure: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8335 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8339 cat > conftest.$ac_ext <<EOF
8340 #line 8341 "configure"
8341 #include "confdefs.h"
8342 /* pthread test headers */
8343 #include <pthread.h>
8345 #define NULL (void*)0
8348 static void *task(p)
8351 return (void *) (p == NULL);
8355 int main(argc, argv)
8360 /* pthread test function */
8364 /* make sure pthread_create() isn't just a stub */
8365 #if HAVE_PTHREADS_D4
8366 status = pthread_create(&t, pthread_attr_default, task, NULL);
8368 status = pthread_create(&t, NULL, task, NULL);
8371 if( status ) exit( status );
8373 /* make sure pthread_detach() isn't just a stub */
8374 #if HAVE_PTHREADS_D4
8375 status = pthread_detach( &t );
8377 status = pthread_detach( t );
8380 #ifdef HAVE_LINUX_THREADS
8381 pthread_kill_other_threads_np();
8389 if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8391 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
8393 echo "configure: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8396 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
8407 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
8409 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
8410 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
8411 ol_link_threads=posix
8415 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
8416 if test "$ol_link_threads" = no ; then
8417 # try -lpthreads -lmach -lexc
8418 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
8419 echo "configure:8420: checking for pthread link with -lpthreads -lmach -lexc" >&5
8420 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
8426 LIBS="-lpthreads -lmach -lexc $LIBS"
8428 if test "$cross_compiling" = yes; then
8429 cat > conftest.$ac_ext <<EOF
8430 #line 8431 "configure"
8431 #include "confdefs.h"
8432 /* pthread test headers */
8433 #include <pthread.h>
8435 #define NULL (void*)0
8438 static void *task(p)
8441 return (void *) (p == NULL);
8446 /* pthread test function */
8450 /* make sure pthread_create() isn't just a stub */
8451 #if HAVE_PTHREADS_D4
8452 status = pthread_create(&t, pthread_attr_default, task, NULL);
8454 status = pthread_create(&t, NULL, task, NULL);
8457 if( status ) exit( status );
8459 /* make sure pthread_detach() isn't just a stub */
8460 #if HAVE_PTHREADS_D4
8461 status = pthread_detach( &t );
8463 status = pthread_detach( t );
8466 #ifdef HAVE_LINUX_THREADS
8467 pthread_kill_other_threads_np();
8474 if { (eval echo configure:8475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8476 ol_cv_pthread_lpthreads_lmach_lexc=yes
8478 echo "configure: failed program was:" >&5
8479 cat conftest.$ac_ext >&5
8481 ol_cv_pthread_lpthreads_lmach_lexc=no
8485 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure"
8487 #include "confdefs.h"
8488 /* pthread test headers */
8489 #include <pthread.h>
8491 #define NULL (void*)0
8494 static void *task(p)
8497 return (void *) (p == NULL);
8501 int main(argc, argv)
8506 /* pthread test function */
8510 /* make sure pthread_create() isn't just a stub */
8511 #if HAVE_PTHREADS_D4
8512 status = pthread_create(&t, pthread_attr_default, task, NULL);
8514 status = pthread_create(&t, NULL, task, NULL);
8517 if( status ) exit( status );
8519 /* make sure pthread_detach() isn't just a stub */
8520 #if HAVE_PTHREADS_D4
8521 status = pthread_detach( &t );
8523 status = pthread_detach( t );
8526 #ifdef HAVE_LINUX_THREADS
8527 pthread_kill_other_threads_np();
8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8537 ol_cv_pthread_lpthreads_lmach_lexc=yes
8539 echo "configure: failed program was:" >&5
8540 cat conftest.$ac_ext >&5
8542 ol_cv_pthread_lpthreads_lmach_lexc=no
8553 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
8555 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
8556 ol_link_pthreads="-lpthreads -lmach -lexc"
8557 ol_link_threads=posix
8561 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
8562 if test "$ol_link_threads" = no ; then
8563 # try -lpthreads -lexc
8564 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
8565 echo "configure:8566: checking for pthread link with -lpthreads -lexc" >&5
8566 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
8567 echo $ac_n "(cached) $ac_c" 1>&6
8572 LIBS="-lpthreads -lexc $LIBS"
8574 if test "$cross_compiling" = yes; then
8575 cat > conftest.$ac_ext <<EOF
8576 #line 8577 "configure"
8577 #include "confdefs.h"
8578 /* pthread test headers */
8579 #include <pthread.h>
8581 #define NULL (void*)0
8584 static void *task(p)
8587 return (void *) (p == NULL);
8592 /* pthread test function */
8596 /* make sure pthread_create() isn't just a stub */
8597 #if HAVE_PTHREADS_D4
8598 status = pthread_create(&t, pthread_attr_default, task, NULL);
8600 status = pthread_create(&t, NULL, task, NULL);
8603 if( status ) exit( status );
8605 /* make sure pthread_detach() isn't just a stub */
8606 #if HAVE_PTHREADS_D4
8607 status = pthread_detach( &t );
8609 status = pthread_detach( t );
8612 #ifdef HAVE_LINUX_THREADS
8613 pthread_kill_other_threads_np();
8620 if { (eval echo configure:8621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8622 ol_cv_pthread_lpthreads_lexc=yes
8624 echo "configure: failed program was:" >&5
8625 cat conftest.$ac_ext >&5
8627 ol_cv_pthread_lpthreads_lexc=no
8631 cat > conftest.$ac_ext <<EOF
8632 #line 8633 "configure"
8633 #include "confdefs.h"
8634 /* pthread test headers */
8635 #include <pthread.h>
8637 #define NULL (void*)0
8640 static void *task(p)
8643 return (void *) (p == NULL);
8647 int main(argc, argv)
8652 /* pthread test function */
8656 /* make sure pthread_create() isn't just a stub */
8657 #if HAVE_PTHREADS_D4
8658 status = pthread_create(&t, pthread_attr_default, task, NULL);
8660 status = pthread_create(&t, NULL, task, NULL);
8663 if( status ) exit( status );
8665 /* make sure pthread_detach() isn't just a stub */
8666 #if HAVE_PTHREADS_D4
8667 status = pthread_detach( &t );
8669 status = pthread_detach( t );
8672 #ifdef HAVE_LINUX_THREADS
8673 pthread_kill_other_threads_np();
8681 if { (eval echo configure:8682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8683 ol_cv_pthread_lpthreads_lexc=yes
8685 echo "configure: failed program was:" >&5
8686 cat conftest.$ac_ext >&5
8688 ol_cv_pthread_lpthreads_lexc=no
8699 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
8701 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
8702 ol_link_pthreads="-lpthreads -lexc"
8703 ol_link_threads=posix
8708 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
8709 if test "$ol_link_threads" = no ; then
8711 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
8712 echo "configure:8713: checking for pthread link with -lpthreads" >&5
8713 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
8714 echo $ac_n "(cached) $ac_c" 1>&6
8719 LIBS="-lpthreads $LIBS"
8721 if test "$cross_compiling" = yes; then
8722 cat > conftest.$ac_ext <<EOF
8723 #line 8724 "configure"
8724 #include "confdefs.h"
8725 /* pthread test headers */
8726 #include <pthread.h>
8728 #define NULL (void*)0
8731 static void *task(p)
8734 return (void *) (p == NULL);
8739 /* pthread test function */
8743 /* make sure pthread_create() isn't just a stub */
8744 #if HAVE_PTHREADS_D4
8745 status = pthread_create(&t, pthread_attr_default, task, NULL);
8747 status = pthread_create(&t, NULL, task, NULL);
8750 if( status ) exit( status );
8752 /* make sure pthread_detach() isn't just a stub */
8753 #if HAVE_PTHREADS_D4
8754 status = pthread_detach( &t );
8756 status = pthread_detach( t );
8759 #ifdef HAVE_LINUX_THREADS
8760 pthread_kill_other_threads_np();
8767 if { (eval echo configure:8768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8769 ol_cv_pthread_lib_lpthreads=yes
8771 echo "configure: failed program was:" >&5
8772 cat conftest.$ac_ext >&5
8774 ol_cv_pthread_lib_lpthreads=no
8778 cat > conftest.$ac_ext <<EOF
8779 #line 8780 "configure"
8780 #include "confdefs.h"
8781 /* pthread test headers */
8782 #include <pthread.h>
8784 #define NULL (void*)0
8787 static void *task(p)
8790 return (void *) (p == NULL);
8794 int main(argc, argv)
8799 /* pthread test function */
8803 /* make sure pthread_create() isn't just a stub */
8804 #if HAVE_PTHREADS_D4
8805 status = pthread_create(&t, pthread_attr_default, task, NULL);
8807 status = pthread_create(&t, NULL, task, NULL);
8810 if( status ) exit( status );
8812 /* make sure pthread_detach() isn't just a stub */
8813 #if HAVE_PTHREADS_D4
8814 status = pthread_detach( &t );
8816 status = pthread_detach( t );
8819 #ifdef HAVE_LINUX_THREADS
8820 pthread_kill_other_threads_np();
8828 if { (eval echo configure:8829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8830 ol_cv_pthread_lib_lpthreads=yes
8832 echo "configure: failed program was:" >&5
8833 cat conftest.$ac_ext >&5
8835 ol_cv_pthread_lib_lpthreads=no
8846 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
8848 if test $ol_cv_pthread_lib_lpthreads = yes ; then
8849 ol_link_pthreads="-lpthreads"
8850 ol_link_threads=posix
8855 if test $ol_link_threads != no ; then
8856 cat >> confdefs.h <<\EOF
8857 #define HAVE_PTHREADS 1
8861 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
8863 save_CPPFLAGS="$CPPFLAGS"
8865 LIBS="$LTHREAD_LIBS $LIBS"
8867 for ac_func in sched_yield pthread_yield
8869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8870 echo "configure:8871: checking for $ac_func" >&5
8871 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8872 echo $ac_n "(cached) $ac_c" 1>&6
8874 cat > conftest.$ac_ext <<EOF
8875 #line 8876 "configure"
8876 #include "confdefs.h"
8877 /* System header to define __stub macros and hopefully few prototypes,
8878 which can conflict with char $ac_func(); below. */
8880 /* Override any gcc2 internal prototype to avoid an error. */
8881 /* We use char because int might match the return type of a gcc2
8882 builtin and then its argument prototype would still apply. */
8888 /* The GNU C library defines this for functions which it implements
8889 to always fail with ENOSYS. Some functions are actually named
8890 something starting with __ and the normal name is an alias. */
8891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8899 if { (eval echo configure:8900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8901 eval "ac_cv_func_$ac_func=yes"
8903 echo "configure: failed program was:" >&5
8904 cat conftest.$ac_ext >&5
8906 eval "ac_cv_func_$ac_func=no"
8911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8912 echo "$ac_t""yes" 1>&6
8913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8914 cat >> confdefs.h <<EOF
8915 #define $ac_tr_func 1
8919 echo "$ac_t""no" 1>&6
8924 if test $ac_cv_func_sched_yield = no -a \
8925 $ac_cv_func_pthread_yield = no ; then
8926 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
8927 echo "configure:8928: checking for sched_yield in -lrt" >&5
8928 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
8929 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8930 echo $ac_n "(cached) $ac_c" 1>&6
8932 ac_save_LIBS="$LIBS"
8934 cat > conftest.$ac_ext <<EOF
8935 #line 8936 "configure"
8936 #include "confdefs.h"
8937 /* Override any gcc2 internal prototype to avoid an error. */
8938 /* We use char because int might match the return type of a gcc2
8939 builtin and then its argument prototype would still apply. */
8946 if { (eval echo configure:8947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8948 eval "ac_cv_lib_$ac_lib_var=yes"
8950 echo "configure: failed program was:" >&5
8951 cat conftest.$ac_ext >&5
8953 eval "ac_cv_lib_$ac_lib_var=no"
8956 LIBS="$ac_save_LIBS"
8959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8960 echo "$ac_t""yes" 1>&6
8961 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
8962 cat >> confdefs.h <<\EOF
8963 #define HAVE_SCHED_YIELD 1
8966 ac_cv_func_sched_yield=yes
8968 echo "$ac_t""no" 1>&6
8969 ac_cv_func_sched_yield=no
8973 if test $ac_cv_func_sched_yield = no -a \
8974 $ac_cv_func_pthread_yield = no ; then
8975 for ac_func in thr_yield
8977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8978 echo "configure:8979: checking for $ac_func" >&5
8979 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
8982 cat > conftest.$ac_ext <<EOF
8983 #line 8984 "configure"
8984 #include "confdefs.h"
8985 /* System header to define __stub macros and hopefully few prototypes,
8986 which can conflict with char $ac_func(); below. */
8988 /* Override any gcc2 internal prototype to avoid an error. */
8989 /* We use char because int might match the return type of a gcc2
8990 builtin and then its argument prototype would still apply. */
8996 /* The GNU C library defines this for functions which it implements
8997 to always fail with ENOSYS. Some functions are actually named
8998 something starting with __ and the normal name is an alias. */
8999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9007 if { (eval echo configure:9008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9009 eval "ac_cv_func_$ac_func=yes"
9011 echo "configure: failed program was:" >&5
9012 cat conftest.$ac_ext >&5
9014 eval "ac_cv_func_$ac_func=no"
9019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9020 echo "$ac_t""yes" 1>&6
9021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9022 cat >> confdefs.h <<EOF
9023 #define $ac_tr_func 1
9027 echo "$ac_t""no" 1>&6
9032 if test $ac_cv_func_sched_yield = no -a \
9033 $ac_cv_func_pthread_yield = no -a \
9034 "$ac_cv_func_thr_yield" = no ; then
9035 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9038 for ac_func in pthread_kill
9040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9041 echo "configure:9042: checking for $ac_func" >&5
9042 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9043 echo $ac_n "(cached) $ac_c" 1>&6
9045 cat > conftest.$ac_ext <<EOF
9046 #line 9047 "configure"
9047 #include "confdefs.h"
9048 /* System header to define __stub macros and hopefully few prototypes,
9049 which can conflict with char $ac_func(); below. */
9051 /* Override any gcc2 internal prototype to avoid an error. */
9052 /* We use char because int might match the return type of a gcc2
9053 builtin and then its argument prototype would still apply. */
9059 /* The GNU C library defines this for functions which it implements
9060 to always fail with ENOSYS. Some functions are actually named
9061 something starting with __ and the normal name is an alias. */
9062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9070 if { (eval echo configure:9071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9072 eval "ac_cv_func_$ac_func=yes"
9074 echo "configure: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9077 eval "ac_cv_func_$ac_func=no"
9082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9083 echo "$ac_t""yes" 1>&6
9084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9085 cat >> confdefs.h <<EOF
9086 #define $ac_tr_func 1
9090 echo "$ac_t""no" 1>&6
9095 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9096 echo "configure:9097: checking for pthread_detach with <pthread.h>" >&5
9097 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9098 echo $ac_n "(cached) $ac_c" 1>&6
9101 cat > conftest.$ac_ext <<EOF
9102 #line 9103 "configure"
9103 #include "confdefs.h"
9105 #include <pthread.h>
9107 #define NULL (void*)0
9111 pthread_detach(NULL);
9114 if { (eval echo configure:9115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9116 ol_cv_func_pthread_detach=yes
9118 echo "configure: failed program was:" >&5
9119 cat conftest.$ac_ext >&5
9121 ol_cv_func_pthread_detach=no
9127 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9129 if test $ol_cv_func_pthread_detach = no ; then
9130 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9133 cat >> confdefs.h <<\EOF
9134 #define HAVE_PTHREAD_DETACH 1
9139 pthread_setconcurrency \
9140 pthread_getconcurrency \
9141 thr_setconcurrency \
9142 thr_getconcurrency \
9145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9146 echo "configure:9147: checking for $ac_func" >&5
9147 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9148 echo $ac_n "(cached) $ac_c" 1>&6
9150 cat > conftest.$ac_ext <<EOF
9151 #line 9152 "configure"
9152 #include "confdefs.h"
9153 /* System header to define __stub macros and hopefully few prototypes,
9154 which can conflict with char $ac_func(); below. */
9156 /* Override any gcc2 internal prototype to avoid an error. */
9157 /* We use char because int might match the return type of a gcc2
9158 builtin and then its argument prototype would still apply. */
9164 /* The GNU C library defines this for functions which it implements
9165 to always fail with ENOSYS. Some functions are actually named
9166 something starting with __ and the normal name is an alias. */
9167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9175 if { (eval echo configure:9176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9177 eval "ac_cv_func_$ac_func=yes"
9179 echo "configure: failed program was:" >&5
9180 cat conftest.$ac_ext >&5
9182 eval "ac_cv_func_$ac_func=no"
9187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9188 echo "$ac_t""yes" 1>&6
9189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9190 cat >> confdefs.h <<EOF
9191 #define $ac_tr_func 1
9195 echo "$ac_t""no" 1>&6
9201 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
9202 echo "configure:9203: checking for pthread_kill_other_threads_np" >&5
9203 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
9204 echo $ac_n "(cached) $ac_c" 1>&6
9206 cat > conftest.$ac_ext <<EOF
9207 #line 9208 "configure"
9208 #include "confdefs.h"
9209 /* System header to define __stub macros and hopefully few prototypes,
9210 which can conflict with char pthread_kill_other_threads_np(); below. */
9212 /* Override any gcc2 internal prototype to avoid an error. */
9213 /* We use char because int might match the return type of a gcc2
9214 builtin and then its argument prototype would still apply. */
9215 char pthread_kill_other_threads_np();
9220 /* The GNU C library defines this for functions which it implements
9221 to always fail with ENOSYS. Some functions are actually named
9222 something starting with __ and the normal name is an alias. */
9223 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
9226 f = pthread_kill_other_threads_np;
9231 if { (eval echo configure:9232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9233 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
9235 echo "configure: failed program was:" >&5
9236 cat conftest.$ac_ext >&5
9238 eval "ac_cv_func_pthread_kill_other_threads_np=no"
9243 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
9244 echo "$ac_t""yes" 1>&6
9247 echo "$ac_t""no" 1>&6
9250 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
9251 echo "configure:9252: checking for LinuxThreads implementation" >&5
9252 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
9253 echo $ac_n "(cached) $ac_c" 1>&6
9255 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
9258 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
9263 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
9264 echo "configure:9265: checking for LinuxThreads consistency" >&5
9265 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
9266 echo $ac_n "(cached) $ac_c" 1>&6
9269 if test $ol_cv_header_linux_threads = yes -a \
9270 $ol_cv_sys_linux_threads = yes; then
9271 ol_cv_linux_threads=yes
9272 elif test $ol_cv_header_linux_threads = no -a \
9273 $ol_cv_sys_linux_threads = no; then
9274 ol_cv_linux_threads=no
9276 ol_cv_linux_threads=error
9281 echo "$ac_t""$ol_cv_linux_threads" 1>&6
9284 if test $ol_cv_linux_threads = error; then
9285 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
9288 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
9289 echo "configure:9290: checking if pthread_create() works" >&5
9290 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
9291 echo $ac_n "(cached) $ac_c" 1>&6
9294 if test "$cross_compiling" = yes; then
9295 ol_cv_pthread_create_works=yes
9297 cat > conftest.$ac_ext <<EOF
9298 #line 9299 "configure"
9299 #include "confdefs.h"
9300 /* pthread test headers */
9301 #include <pthread.h>
9303 #define NULL (void*)0
9306 static void *task(p)
9309 return (void *) (p == NULL);
9313 int main(argc, argv)
9318 /* pthread test function */
9322 /* make sure pthread_create() isn't just a stub */
9323 #if HAVE_PTHREADS_D4
9324 status = pthread_create(&t, pthread_attr_default, task, NULL);
9326 status = pthread_create(&t, NULL, task, NULL);
9329 if( status ) exit( status );
9331 /* make sure pthread_detach() isn't just a stub */
9332 #if HAVE_PTHREADS_D4
9333 status = pthread_detach( &t );
9335 status = pthread_detach( t );
9338 #ifdef HAVE_LINUX_THREADS
9339 pthread_kill_other_threads_np();
9347 if { (eval echo configure:9348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9349 ol_cv_pthread_create_works=yes
9351 echo "configure: failed program was:" >&5
9352 cat conftest.$ac_ext >&5
9354 ol_cv_pthread_create_works=no
9361 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
9363 if test $ol_cv_pthread_create_works = no ; then
9364 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
9367 if test $ol_with_yielding_select = auto ; then
9368 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
9369 echo "configure:9370: checking if select yields when using pthreads" >&5
9370 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
9371 echo $ac_n "(cached) $ac_c" 1>&6
9374 if test "$cross_compiling" = yes; then
9375 ol_cv_pthread_select_yields=cross
9377 cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9381 #include <sys/types.h>
9382 #include <sys/time.h>
9384 #include <pthread.h>
9386 #define NULL (void*) 0
9389 static int fildes[2];
9391 static void *task(p)
9403 FD_SET(fildes[0], &rfds);
9405 /* we're not interested in any fds */
9406 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
9413 exit(0); /* if we exit here, the select blocked the whole process */
9416 int main(argc, argv)
9422 /* create a pipe to select */
9423 if(pipe(&fildes[0])) {
9428 #ifdef HAVE_PTHREAD_SETCONCURRENCY
9429 (void) pthread_setconcurrency(2);
9431 #ifdef HAVE_THR_SETCONCURRENCY
9432 /* Set Solaris LWP concurrency to 2 */
9433 thr_setconcurrency(2);
9437 #if HAVE_PTHREADS_D4
9438 pthread_create(&t, pthread_attr_default, task, NULL);
9440 pthread_create(&t, NULL, task, NULL);
9443 #if HAVE_SCHED_YIELD
9444 sched_yield(); /* make sure task runs first */
9446 #ifdef HAVE_PTHREAD_YIELD
9447 pthread_yield(); /* make sure task runs first */
9454 if { (eval echo configure:9455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9456 ol_cv_pthread_select_yields=no
9458 echo "configure: failed program was:" >&5
9459 cat conftest.$ac_ext >&5
9461 ol_cv_pthread_select_yields=yes
9468 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
9470 if test $ol_cv_pthread_select_yields = cross ; then
9471 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
9474 if test $ol_cv_pthread_select_yields = yes ; then
9475 ol_with_yielding_select=yes
9479 CPPFLAGS="$save_CPPFLAGS"
9482 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
9486 if test $ol_with_threads = posix ; then
9487 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
9491 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9492 -o $ol_with_threads = mach ; then
9494 for ac_hdr in mach/cthreads.h
9496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9498 echo "configure:9499: checking for $ac_hdr" >&5
9499 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9500 echo $ac_n "(cached) $ac_c" 1>&6
9502 cat > conftest.$ac_ext <<EOF
9503 #line 9504 "configure"
9504 #include "confdefs.h"
9507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9508 { (eval echo configure:9509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9510 if test -z "$ac_err"; then
9512 eval "ac_cv_header_$ac_safe=yes"
9515 echo "configure: failed program was:" >&5
9516 cat conftest.$ac_ext >&5
9518 eval "ac_cv_header_$ac_safe=no"
9522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9523 echo "$ac_t""yes" 1>&6
9524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9525 cat >> confdefs.h <<EOF
9526 #define $ac_tr_hdr 1
9530 echo "$ac_t""no" 1>&6
9534 if test $ac_cv_header_mach_cthreads_h = yes ; then
9535 ol_with_threads=found
9537 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
9538 echo "configure:9539: checking for cthread_fork" >&5
9539 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
9540 echo $ac_n "(cached) $ac_c" 1>&6
9542 cat > conftest.$ac_ext <<EOF
9543 #line 9544 "configure"
9544 #include "confdefs.h"
9545 /* System header to define __stub macros and hopefully few prototypes,
9546 which can conflict with char cthread_fork(); below. */
9548 /* Override any gcc2 internal prototype to avoid an error. */
9549 /* We use char because int might match the return type of a gcc2
9550 builtin and then its argument prototype would still apply. */
9551 char cthread_fork();
9556 /* The GNU C library defines this for functions which it implements
9557 to always fail with ENOSYS. Some functions are actually named
9558 something starting with __ and the normal name is an alias. */
9559 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
9567 if { (eval echo configure:9568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9569 eval "ac_cv_func_cthread_fork=yes"
9571 echo "configure: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9574 eval "ac_cv_func_cthread_fork=no"
9579 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
9580 echo "$ac_t""yes" 1>&6
9583 echo "$ac_t""no" 1>&6
9587 if test $ol_link_threads = no ; then
9588 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
9589 echo "configure:9590: checking for cthread_fork with -all_load" >&5
9590 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
9595 LIBS="-all_load $LIBS"
9596 cat > conftest.$ac_ext <<EOF
9597 #line 9598 "configure"
9598 #include "confdefs.h"
9599 #include <mach/cthreads.h>
9602 cthread_fork((void *)0, (void *)0);
9606 if { (eval echo configure:9607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9608 ol_cv_cthread_all_load=yes
9610 echo "configure: failed program was:" >&5
9611 cat conftest.$ac_ext >&5
9613 ol_cv_cthread_all_load=no
9620 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
9622 if test $ol_cv_cthread_all_load = yes ; then
9623 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
9624 ol_link_threads=mach
9628 if test $ol_link_threads != no ; then
9629 : check for cthread specific functionality here
9630 cat >> confdefs.h <<\EOF
9631 #define HAVE_MACH_CTHREADS 1
9635 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
9639 if test $ol_with_threads = mach ; then
9640 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
9644 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9645 -o $ol_with_threads = pth ; then
9649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9651 echo "configure:9652: checking for $ac_hdr" >&5
9652 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9653 echo $ac_n "(cached) $ac_c" 1>&6
9655 cat > conftest.$ac_ext <<EOF
9656 #line 9657 "configure"
9657 #include "confdefs.h"
9660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9661 { (eval echo configure:9662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9663 if test -z "$ac_err"; then
9665 eval "ac_cv_header_$ac_safe=yes"
9668 echo "configure: failed program was:" >&5
9669 cat conftest.$ac_ext >&5
9671 eval "ac_cv_header_$ac_safe=no"
9675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9676 echo "$ac_t""yes" 1>&6
9677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9678 cat >> confdefs.h <<EOF
9679 #define $ac_tr_hdr 1
9683 echo "$ac_t""no" 1>&6
9688 if test $ac_cv_header_pth_h = yes ; then
9689 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
9690 echo "configure:9691: checking for pth_version in -lpth" >&5
9691 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
9692 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9693 echo $ac_n "(cached) $ac_c" 1>&6
9695 ac_save_LIBS="$LIBS"
9697 cat > conftest.$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9700 /* Override any gcc2 internal prototype to avoid an error. */
9701 /* We use char because int might match the return type of a gcc2
9702 builtin and then its argument prototype would still apply. */
9709 if { (eval echo configure:9710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9711 eval "ac_cv_lib_$ac_lib_var=yes"
9713 echo "configure: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9716 eval "ac_cv_lib_$ac_lib_var=no"
9719 LIBS="$ac_save_LIBS"
9722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9723 echo "$ac_t""yes" 1>&6
9726 echo "$ac_t""no" 1>&6
9731 if test $have_pth = yes ; then
9732 cat >> confdefs.h <<\EOF
9733 #define HAVE_GNU_PTH 1
9736 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
9739 if test $ol_with_yielding_select = auto ; then
9740 ol_with_yielding_select=yes
9746 if test $ol_with_threads = auto -o $ol_with_threads = yes \
9747 -o $ol_with_threads = lwp ; then
9749 for ac_hdr in thread.h synch.h
9751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9753 echo "configure:9754: checking for $ac_hdr" >&5
9754 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9755 echo $ac_n "(cached) $ac_c" 1>&6
9757 cat > conftest.$ac_ext <<EOF
9758 #line 9759 "configure"
9759 #include "confdefs.h"
9762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9763 { (eval echo configure:9764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9765 if test -z "$ac_err"; then
9767 eval "ac_cv_header_$ac_safe=yes"
9770 echo "configure: failed program was:" >&5
9771 cat conftest.$ac_ext >&5
9773 eval "ac_cv_header_$ac_safe=no"
9777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9778 echo "$ac_t""yes" 1>&6
9779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9780 cat >> confdefs.h <<EOF
9781 #define $ac_tr_hdr 1
9785 echo "$ac_t""no" 1>&6
9789 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
9790 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
9791 echo "configure:9792: checking for thr_create in -lthread" >&5
9792 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
9793 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9794 echo $ac_n "(cached) $ac_c" 1>&6
9796 ac_save_LIBS="$LIBS"
9797 LIBS="-lthread $LIBS"
9798 cat > conftest.$ac_ext <<EOF
9799 #line 9800 "configure"
9800 #include "confdefs.h"
9801 /* Override any gcc2 internal prototype to avoid an error. */
9802 /* We use char because int might match the return type of a gcc2
9803 builtin and then its argument prototype would still apply. */
9810 if { (eval echo configure:9811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9812 eval "ac_cv_lib_$ac_lib_var=yes"
9814 echo "configure: failed program was:" >&5
9815 cat conftest.$ac_ext >&5
9817 eval "ac_cv_lib_$ac_lib_var=no"
9820 LIBS="$ac_save_LIBS"
9823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9824 echo "$ac_t""yes" 1>&6
9827 echo "$ac_t""no" 1>&6
9832 if test $have_thr = yes ; then
9833 cat >> confdefs.h <<\EOF
9837 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
9840 if test $ol_with_yielding_select = auto ; then
9841 ol_with_yielding_select=yes
9845 thr_setconcurrency \
9846 thr_getconcurrency \
9849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9850 echo "configure:9851: checking for $ac_func" >&5
9851 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9854 cat > conftest.$ac_ext <<EOF
9855 #line 9856 "configure"
9856 #include "confdefs.h"
9857 /* System header to define __stub macros and hopefully few prototypes,
9858 which can conflict with char $ac_func(); below. */
9860 /* Override any gcc2 internal prototype to avoid an error. */
9861 /* We use char because int might match the return type of a gcc2
9862 builtin and then its argument prototype would still apply. */
9868 /* The GNU C library defines this for functions which it implements
9869 to always fail with ENOSYS. Some functions are actually named
9870 something starting with __ and the normal name is an alias. */
9871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9879 if { (eval echo configure:9880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9881 eval "ac_cv_func_$ac_func=yes"
9883 echo "configure: failed program was:" >&5
9884 cat conftest.$ac_ext >&5
9886 eval "ac_cv_func_$ac_func=no"
9891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9892 echo "$ac_t""yes" 1>&6
9893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9894 cat >> confdefs.h <<EOF
9895 #define $ac_tr_func 1
9899 echo "$ac_t""no" 1>&6
9906 for ac_hdr in lwp/lwp.h
9908 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9910 echo "configure:9911: checking for $ac_hdr" >&5
9911 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9912 echo $ac_n "(cached) $ac_c" 1>&6
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9920 { (eval echo configure:9921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9922 if test -z "$ac_err"; then
9924 eval "ac_cv_header_$ac_safe=yes"
9927 echo "configure: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9930 eval "ac_cv_header_$ac_safe=no"
9934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9935 echo "$ac_t""yes" 1>&6
9936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9937 cat >> confdefs.h <<EOF
9938 #define $ac_tr_hdr 1
9942 echo "$ac_t""no" 1>&6
9946 if test $ac_cv_header_lwp_lwp_h = yes ; then
9947 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
9948 echo "configure:9949: checking for lwp_create in -llwp" >&5
9949 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
9950 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9951 echo $ac_n "(cached) $ac_c" 1>&6
9953 ac_save_LIBS="$LIBS"
9955 cat > conftest.$ac_ext <<EOF
9956 #line 9957 "configure"
9957 #include "confdefs.h"
9958 /* Override any gcc2 internal prototype to avoid an error. */
9959 /* We use char because int might match the return type of a gcc2
9960 builtin and then its argument prototype would still apply. */
9967 if { (eval echo configure:9968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9969 eval "ac_cv_lib_$ac_lib_var=yes"
9971 echo "configure: failed program was:" >&5
9972 cat conftest.$ac_ext >&5
9974 eval "ac_cv_lib_$ac_lib_var=no"
9977 LIBS="$ac_save_LIBS"
9980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9981 echo "$ac_t""yes" 1>&6
9984 echo "$ac_t""no" 1>&6
9989 if test $have_lwp = yes ; then
9990 cat >> confdefs.h <<\EOF
9994 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
9997 if test $ol_with_yielding_select = auto ; then
9998 ol_with_yielding_select=no
10004 if test $ol_with_yielding_select = yes ; then
10005 cat >> confdefs.h <<\EOF
10006 #define HAVE_YIELDING_SELECT 1
10011 if test $ol_with_threads = manual ; then
10012 ol_link_threads=yes
10014 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10016 for ac_hdr in pthread.h sched.h
10018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10020 echo "configure:10021: checking for $ac_hdr" >&5
10021 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10030 { (eval echo configure:10031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10032 if test -z "$ac_err"; then
10034 eval "ac_cv_header_$ac_safe=yes"
10037 echo "configure: failed program was:" >&5
10038 cat conftest.$ac_ext >&5
10040 eval "ac_cv_header_$ac_safe=no"
10044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10045 echo "$ac_t""yes" 1>&6
10046 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10047 cat >> confdefs.h <<EOF
10048 #define $ac_tr_hdr 1
10052 echo "$ac_t""no" 1>&6
10056 for ac_func in sched_yield pthread_yield
10058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10059 echo "configure:10060: checking for $ac_func" >&5
10060 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10061 echo $ac_n "(cached) $ac_c" 1>&6
10063 cat > conftest.$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10066 /* System header to define __stub macros and hopefully few prototypes,
10067 which can conflict with char $ac_func(); below. */
10068 #include <assert.h>
10069 /* Override any gcc2 internal prototype to avoid an error. */
10070 /* We use char because int might match the return type of a gcc2
10071 builtin and then its argument prototype would still apply. */
10077 /* The GNU C library defines this for functions which it implements
10078 to always fail with ENOSYS. Some functions are actually named
10079 something starting with __ and the normal name is an alias. */
10080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10088 if { (eval echo configure:10089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10090 eval "ac_cv_func_$ac_func=yes"
10092 echo "configure: failed program was:" >&5
10093 cat conftest.$ac_ext >&5
10095 eval "ac_cv_func_$ac_func=no"
10100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10101 echo "$ac_t""yes" 1>&6
10102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10103 cat >> confdefs.h <<EOF
10104 #define $ac_tr_func 1
10108 echo "$ac_t""no" 1>&6
10113 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10114 echo "configure:10115: checking for LinuxThreads pthread.h" >&5
10115 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
10116 echo $ac_n "(cached) $ac_c" 1>&6
10118 cat > conftest.$ac_ext <<EOF
10119 #line 10120 "configure"
10120 #include "confdefs.h"
10121 #include <pthread.h>
10123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10124 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10126 ol_cv_header_linux_threads=yes
10129 ol_cv_header_linux_threads=no
10136 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10137 if test $ol_cv_header_linux_threads = yes; then
10138 cat >> confdefs.h <<\EOF
10139 #define HAVE_LINUX_THREADS 1
10145 for ac_hdr in mach/cthreads.h
10147 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10149 echo "configure:10150: checking for $ac_hdr" >&5
10150 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10151 echo $ac_n "(cached) $ac_c" 1>&6
10153 cat > conftest.$ac_ext <<EOF
10154 #line 10155 "configure"
10155 #include "confdefs.h"
10158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10159 { (eval echo configure:10160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10161 if test -z "$ac_err"; then
10163 eval "ac_cv_header_$ac_safe=yes"
10166 echo "configure: failed program was:" >&5
10167 cat conftest.$ac_ext >&5
10169 eval "ac_cv_header_$ac_safe=no"
10173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10174 echo "$ac_t""yes" 1>&6
10175 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10176 cat >> confdefs.h <<EOF
10177 #define $ac_tr_hdr 1
10181 echo "$ac_t""no" 1>&6
10185 for ac_hdr in lwp/lwp.h
10187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10189 echo "configure:10190: checking for $ac_hdr" >&5
10190 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10191 echo $ac_n "(cached) $ac_c" 1>&6
10193 cat > conftest.$ac_ext <<EOF
10194 #line 10195 "configure"
10195 #include "confdefs.h"
10198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10199 { (eval echo configure:10200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10201 if test -z "$ac_err"; then
10203 eval "ac_cv_header_$ac_safe=yes"
10206 echo "configure: failed program was:" >&5
10207 cat conftest.$ac_ext >&5
10209 eval "ac_cv_header_$ac_safe=no"
10213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10214 echo "$ac_t""yes" 1>&6
10215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10216 cat >> confdefs.h <<EOF
10217 #define $ac_tr_hdr 1
10221 echo "$ac_t""no" 1>&6
10225 for ac_hdr in thread.h synch.h
10227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10229 echo "configure:10230: checking for $ac_hdr" >&5
10230 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10231 echo $ac_n "(cached) $ac_c" 1>&6
10233 cat > conftest.$ac_ext <<EOF
10234 #line 10235 "configure"
10235 #include "confdefs.h"
10238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10239 { (eval echo configure:10240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10241 if test -z "$ac_err"; then
10243 eval "ac_cv_header_$ac_safe=yes"
10246 echo "configure: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10249 eval "ac_cv_header_$ac_safe=no"
10253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10254 echo "$ac_t""yes" 1>&6
10255 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10256 cat >> confdefs.h <<EOF
10257 #define $ac_tr_hdr 1
10261 echo "$ac_t""no" 1>&6
10267 if test $ol_link_threads != no ; then
10268 cat >> confdefs.h <<\EOF
10269 #define REENTRANT 1
10272 cat >> confdefs.h <<\EOF
10273 #define _REENTRANT 1
10276 cat >> confdefs.h <<\EOF
10277 #define THREAD_SAFE 1
10280 cat >> confdefs.h <<\EOF
10281 #define _THREAD_SAFE 1
10284 cat >> confdefs.h <<\EOF
10285 #define THREADSAFE 1
10288 cat >> confdefs.h <<\EOF
10289 #define _THREADSAFE 1
10292 cat >> confdefs.h <<\EOF
10293 #define _SGI_MP_SOURCE 1
10297 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
10298 echo "configure:10299: checking for thread specific errno" >&5
10299 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
10300 echo $ac_n "(cached) $ac_c" 1>&6
10303 cat > conftest.$ac_ext <<EOF
10304 #line 10305 "configure"
10305 #include "confdefs.h"
10311 if { (eval echo configure:10312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10313 ol_cv_errno_thread_specific=yes
10315 echo "configure: failed program was:" >&5
10316 cat conftest.$ac_ext >&5
10318 ol_cv_errno_thread_specific=no
10324 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
10326 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
10327 echo "configure:10328: checking for thread specific h_errno" >&5
10328 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
10329 echo $ac_n "(cached) $ac_c" 1>&6
10332 cat > conftest.$ac_ext <<EOF
10333 #line 10334 "configure"
10334 #include "confdefs.h"
10340 if { (eval echo configure:10341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10342 ol_cv_h_errno_thread_specific=yes
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10347 ol_cv_h_errno_thread_specific=no
10353 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
10355 if test $ol_cv_errno_thread_specific != yes \
10356 -o $ol_cv_h_errno_thread_specific != yes ; then
10357 LIBS="$LTHREAD_LIBS $LIBS"
10363 if test $ol_link_threads = no ; then
10364 if test $ol_with_threads = yes ; then
10365 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
10368 if test $ol_with_threads = auto ; then
10369 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
10373 cat >> confdefs.h <<\EOF
10374 #define NO_THREADS 1
10380 if test $ol_link_threads != no ; then
10381 cat >> confdefs.h <<\EOF
10382 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
10389 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
10390 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
10391 echo "configure:10392: checking for DB2 library" >&5
10392 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
10393 echo $ac_n "(cached) $ac_c" 1>&6
10396 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
10397 echo "configure:10398: checking for db_open in -ldb" >&5
10398 ac_lib_var=`echo db'_'db_open | sed 'y%./+-:%__p__%'`
10399 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10400 echo $ac_n "(cached) $ac_c" 1>&6
10402 ac_save_LIBS="$LIBS"
10404 cat > conftest.$ac_ext <<EOF
10405 #line 10406 "configure"
10406 #include "confdefs.h"
10407 /* Override any gcc2 internal prototype to avoid an error. */
10408 /* We use char because int might match the return type of a gcc2
10409 builtin and then its argument prototype would still apply. */
10416 if { (eval echo configure:10417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10418 eval "ac_cv_lib_$ac_lib_var=yes"
10420 echo "configure: failed program was:" >&5
10421 cat conftest.$ac_ext >&5
10423 eval "ac_cv_lib_$ac_lib_var=no"
10426 LIBS="$ac_save_LIBS"
10429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10430 echo "$ac_t""yes" 1>&6
10433 echo "$ac_t""no" 1>&6
10441 echo "$ac_t""$ol_cv_lib_db2" 1>&6
10445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10447 echo "configure:10448: checking for $ac_hdr" >&5
10448 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
10451 cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10457 { (eval echo configure:10458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10459 if test -z "$ac_err"; then
10461 eval "ac_cv_header_$ac_safe=yes"
10464 echo "configure: failed program was:" >&5
10465 cat conftest.$ac_ext >&5
10467 eval "ac_cv_header_$ac_safe=no"
10471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10472 echo "$ac_t""yes" 1>&6
10473 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10474 cat >> confdefs.h <<EOF
10475 #define $ac_tr_hdr 1
10479 echo "$ac_t""no" 1>&6
10483 if test $ac_cv_header_db_h = yes ; then
10484 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
10485 echo "configure:10486: checking if db.h is DB2" >&5
10486 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
10487 echo $ac_n "(cached) $ac_c" 1>&6
10490 cat > conftest.$ac_ext <<EOF
10491 #line 10492 "configure"
10492 #include "confdefs.h"
10495 /* this check could be improved */
10496 # ifdef DB_VERSION_MAJOR
10497 # if DB_VERSION_MAJOR == 2
10503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10504 egrep "__db_version_2" >/dev/null 2>&1; then
10506 ol_cv_header_db2=yes
10509 ol_cv_header_db2=no
10515 echo "$ac_t""$ol_cv_header_db2" 1>&6
10517 ol_cv_header_db2=no
10522 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
10523 echo "configure:10524: checking for Berkeley DB2" >&5
10524 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
10525 echo $ac_n "(cached) $ac_c" 1>&6
10528 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
10529 ol_cv_berkeley_db2=no
10531 ol_cv_berkeley_db2=yes
10536 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
10537 if test $ol_cv_berkeley_db2 = yes ; then
10538 cat >> confdefs.h <<\EOF
10539 #define HAVE_BERKELEY_DB2 1
10545 if test $ol_cv_berkeley_db2 = yes ; then
10547 ol_with_ldbm_api=db2
10549 if test $ol_with_ldbm_type = hash ; then
10550 cat >> confdefs.h <<\EOF
10551 #define LDBM_USE_DBHASH 1
10555 cat >> confdefs.h <<\EOF
10556 #define LDBM_USE_DBBTREE 1
10561 if test $ol_cv_lib_db2 != yes ; then
10562 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
10568 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
10572 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
10573 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
10574 echo "configure:10575: checking for Berkeley DB library" >&5
10575 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
10576 echo $ac_n "(cached) $ac_c" 1>&6
10579 for ac_hdr in db1/db.h
10581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10583 echo "configure:10584: checking for $ac_hdr" >&5
10584 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10585 echo $ac_n "(cached) $ac_c" 1>&6
10587 cat > conftest.$ac_ext <<EOF
10588 #line 10589 "configure"
10589 #include "confdefs.h"
10592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10593 { (eval echo configure:10594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10595 if test -z "$ac_err"; then
10597 eval "ac_cv_header_$ac_safe=yes"
10600 echo "configure: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10603 eval "ac_cv_header_$ac_safe=no"
10607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10608 echo "$ac_t""yes" 1>&6
10609 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10610 cat >> confdefs.h <<EOF
10611 #define $ac_tr_hdr 1
10615 echo "$ac_t""no" 1>&6
10620 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
10621 echo "configure:10622: checking for dbopen" >&5
10622 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
10623 echo $ac_n "(cached) $ac_c" 1>&6
10625 cat > conftest.$ac_ext <<EOF
10626 #line 10627 "configure"
10627 #include "confdefs.h"
10628 /* System header to define __stub macros and hopefully few prototypes,
10629 which can conflict with char dbopen(); below. */
10630 #include <assert.h>
10631 /* Override any gcc2 internal prototype to avoid an error. */
10632 /* We use char because int might match the return type of a gcc2
10633 builtin and then its argument prototype would still apply. */
10639 /* The GNU C library defines this for functions which it implements
10640 to always fail with ENOSYS. Some functions are actually named
10641 something starting with __ and the normal name is an alias. */
10642 #if defined (__stub_dbopen) || defined (__stub___dbopen)
10650 if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10652 eval "ac_cv_func_dbopen=yes"
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10657 eval "ac_cv_func_dbopen=no"
10662 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
10663 echo "$ac_t""yes" 1>&6
10666 echo "$ac_t""no" 1>&6
10668 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
10669 echo "configure:10670: checking for dbopen in -ldb1" >&5
10670 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
10671 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10672 echo $ac_n "(cached) $ac_c" 1>&6
10674 ac_save_LIBS="$LIBS"
10676 cat > conftest.$ac_ext <<EOF
10677 #line 10678 "configure"
10678 #include "confdefs.h"
10679 /* Override any gcc2 internal prototype to avoid an error. */
10680 /* We use char because int might match the return type of a gcc2
10681 builtin and then its argument prototype would still apply. */
10688 if { (eval echo configure:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10690 eval "ac_cv_lib_$ac_lib_var=yes"
10692 echo "configure: failed program was:" >&5
10693 cat conftest.$ac_ext >&5
10695 eval "ac_cv_lib_$ac_lib_var=no"
10698 LIBS="$ac_save_LIBS"
10701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10702 echo "$ac_t""yes" 1>&6
10705 echo "$ac_t""no" 1>&6
10707 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
10708 echo "configure:10709: checking for dbopen in -ldb" >&5
10709 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
10710 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10711 echo $ac_n "(cached) $ac_c" 1>&6
10713 ac_save_LIBS="$LIBS"
10715 cat > conftest.$ac_ext <<EOF
10716 #line 10717 "configure"
10717 #include "confdefs.h"
10718 /* Override any gcc2 internal prototype to avoid an error. */
10719 /* We use char because int might match the return type of a gcc2
10720 builtin and then its argument prototype would still apply. */
10727 if { (eval echo configure:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10729 eval "ac_cv_lib_$ac_lib_var=yes"
10731 echo "configure: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10734 eval "ac_cv_lib_$ac_lib_var=no"
10737 LIBS="$ac_save_LIBS"
10740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10741 echo "$ac_t""yes" 1>&6
10744 echo "$ac_t""no" 1>&6
10758 echo "$ac_t""$ol_cv_lib_db" 1>&6
10761 for ac_hdr in db_185.h
10763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10765 echo "configure:10766: checking for $ac_hdr" >&5
10766 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10767 echo $ac_n "(cached) $ac_c" 1>&6
10769 cat > conftest.$ac_ext <<EOF
10770 #line 10771 "configure"
10771 #include "confdefs.h"
10774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10775 { (eval echo configure:10776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10777 if test -z "$ac_err"; then
10779 eval "ac_cv_header_$ac_safe=yes"
10782 echo "configure: failed program was:" >&5
10783 cat conftest.$ac_ext >&5
10785 eval "ac_cv_header_$ac_safe=no"
10789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10790 echo "$ac_t""yes" 1>&6
10791 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10792 cat >> confdefs.h <<EOF
10793 #define $ac_tr_hdr 1
10797 echo "$ac_t""no" 1>&6
10801 if test "$ol_cv_header_db2" = yes ; then
10803 ol_cv_header_db=$ac_cv_header_db_185_h
10805 ol_cv_header_db=$ac_cv_header_db_h
10810 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
10811 echo "configure:10812: checking for Berkeley DB" >&5
10812 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
10813 echo $ac_n "(cached) $ac_c" 1>&6
10816 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
10817 ol_cv_berkeley_db=no
10819 ol_cv_berkeley_db=yes
10824 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
10825 if test $ol_cv_berkeley_db = yes ; then
10826 cat >> confdefs.h <<\EOF
10827 #define HAVE_BERKELEY_DB 1
10833 if test $ol_cv_berkeley_db = yes ; then
10835 ol_with_ldbm_api=db
10837 if test $ol_with_ldbm_type = hash ; then
10838 cat >> confdefs.h <<\EOF
10839 #define LDBM_USE_DBHASH 1
10843 cat >> confdefs.h <<\EOF
10844 #define LDBM_USE_DBBTREE 1
10849 if test $ol_cv_lib_db != yes ; then
10850 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
10855 if test $ol_with_ldbm_api = manual ; then
10858 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
10860 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
10862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10864 echo "configure:10865: checking for $ac_hdr" >&5
10865 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10866 echo $ac_n "(cached) $ac_c" 1>&6
10868 cat > conftest.$ac_ext <<EOF
10869 #line 10870 "configure"
10870 #include "confdefs.h"
10873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10874 { (eval echo configure:10875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10876 if test -z "$ac_err"; then
10878 eval "ac_cv_header_$ac_safe=yes"
10881 echo "configure: failed program was:" >&5
10882 cat conftest.$ac_ext >&5
10884 eval "ac_cv_header_$ac_safe=no"
10888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10889 echo "$ac_t""yes" 1>&6
10890 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10891 cat >> confdefs.h <<EOF
10892 #define $ac_tr_hdr 1
10896 echo "$ac_t""no" 1>&6
10902 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
10903 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
10904 ol_with_ldbm_api=none
10907 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
10908 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
10909 echo "configure:10910: checking for MDBM library" >&5
10910 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
10911 echo $ac_n "(cached) $ac_c" 1>&6
10914 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
10915 echo "configure:10916: checking for mdbm_set_chain" >&5
10916 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
10917 echo $ac_n "(cached) $ac_c" 1>&6
10919 cat > conftest.$ac_ext <<EOF
10920 #line 10921 "configure"
10921 #include "confdefs.h"
10922 /* System header to define __stub macros and hopefully few prototypes,
10923 which can conflict with char mdbm_set_chain(); below. */
10924 #include <assert.h>
10925 /* Override any gcc2 internal prototype to avoid an error. */
10926 /* We use char because int might match the return type of a gcc2
10927 builtin and then its argument prototype would still apply. */
10928 char mdbm_set_chain();
10933 /* The GNU C library defines this for functions which it implements
10934 to always fail with ENOSYS. Some functions are actually named
10935 something starting with __ and the normal name is an alias. */
10936 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
10939 f = mdbm_set_chain;
10944 if { (eval echo configure:10945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10946 eval "ac_cv_func_mdbm_set_chain=yes"
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10951 eval "ac_cv_func_mdbm_set_chain=no"
10956 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
10957 echo "$ac_t""yes" 1>&6
10960 echo "$ac_t""no" 1>&6
10962 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
10963 echo "configure:10964: checking for mdbm_set_chain in -lmdbm" >&5
10964 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
10965 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10966 echo $ac_n "(cached) $ac_c" 1>&6
10968 ac_save_LIBS="$LIBS"
10969 LIBS="-lmdbm $LIBS"
10970 cat > conftest.$ac_ext <<EOF
10971 #line 10972 "configure"
10972 #include "confdefs.h"
10973 /* Override any gcc2 internal prototype to avoid an error. */
10974 /* We use char because int might match the return type of a gcc2
10975 builtin and then its argument prototype would still apply. */
10976 char mdbm_set_chain();
10982 if { (eval echo configure:10983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10984 eval "ac_cv_lib_$ac_lib_var=yes"
10986 echo "configure: failed program was:" >&5
10987 cat conftest.$ac_ext >&5
10989 eval "ac_cv_lib_$ac_lib_var=no"
10992 LIBS="$ac_save_LIBS"
10995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10996 echo "$ac_t""yes" 1>&6
10997 ol_cv_lib_mdbm=-lmdbm
10999 echo "$ac_t""no" 1>&6
11010 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
11013 for ac_hdr in mdbm.h
11015 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11016 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11017 echo "configure:11018: checking for $ac_hdr" >&5
11018 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11019 echo $ac_n "(cached) $ac_c" 1>&6
11021 cat > conftest.$ac_ext <<EOF
11022 #line 11023 "configure"
11023 #include "confdefs.h"
11026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11027 { (eval echo configure:11028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11029 if test -z "$ac_err"; then
11031 eval "ac_cv_header_$ac_safe=yes"
11034 echo "configure: failed program was:" >&5
11035 cat conftest.$ac_ext >&5
11037 eval "ac_cv_header_$ac_safe=no"
11041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11042 echo "$ac_t""yes" 1>&6
11043 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11044 cat >> confdefs.h <<EOF
11045 #define $ac_tr_hdr 1
11049 echo "$ac_t""no" 1>&6
11053 echo $ac_n "checking for db""... $ac_c" 1>&6
11054 echo "configure:11055: checking for db" >&5
11055 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
11056 echo $ac_n "(cached) $ac_c" 1>&6
11059 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
11067 echo "$ac_t""$ol_cv_mdbm" 1>&6
11068 if test $ol_cv_mdbm = yes ; then
11069 cat >> confdefs.h <<\EOF
11070 #define HAVE_MDBM 1
11076 if test $ol_cv_mdbm = yes ; then
11078 ol_with_ldbm_api=mdbm
11079 if test $ol_cv_lib_mdbm != yes ; then
11080 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
11085 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
11086 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
11087 echo "configure:11088: checking for GDBM library" >&5
11088 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
11089 echo $ac_n "(cached) $ac_c" 1>&6
11092 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
11093 echo "configure:11094: checking for gdbm_open" >&5
11094 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
11095 echo $ac_n "(cached) $ac_c" 1>&6
11097 cat > conftest.$ac_ext <<EOF
11098 #line 11099 "configure"
11099 #include "confdefs.h"
11100 /* System header to define __stub macros and hopefully few prototypes,
11101 which can conflict with char gdbm_open(); below. */
11102 #include <assert.h>
11103 /* Override any gcc2 internal prototype to avoid an error. */
11104 /* We use char because int might match the return type of a gcc2
11105 builtin and then its argument prototype would still apply. */
11111 /* The GNU C library defines this for functions which it implements
11112 to always fail with ENOSYS. Some functions are actually named
11113 something starting with __ and the normal name is an alias. */
11114 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
11122 if { (eval echo configure:11123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11124 eval "ac_cv_func_gdbm_open=yes"
11126 echo "configure: failed program was:" >&5
11127 cat conftest.$ac_ext >&5
11129 eval "ac_cv_func_gdbm_open=no"
11134 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
11135 echo "$ac_t""yes" 1>&6
11138 echo "$ac_t""no" 1>&6
11140 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
11141 echo "configure:11142: checking for gdbm_open in -lgdbm" >&5
11142 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
11143 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11144 echo $ac_n "(cached) $ac_c" 1>&6
11146 ac_save_LIBS="$LIBS"
11147 LIBS="-lgdbm $LIBS"
11148 cat > conftest.$ac_ext <<EOF
11149 #line 11150 "configure"
11150 #include "confdefs.h"
11151 /* Override any gcc2 internal prototype to avoid an error. */
11152 /* We use char because int might match the return type of a gcc2
11153 builtin and then its argument prototype would still apply. */
11160 if { (eval echo configure:11161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11162 eval "ac_cv_lib_$ac_lib_var=yes"
11164 echo "configure: failed program was:" >&5
11165 cat conftest.$ac_ext >&5
11167 eval "ac_cv_lib_$ac_lib_var=no"
11170 LIBS="$ac_save_LIBS"
11173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11174 echo "$ac_t""yes" 1>&6
11175 ol_cv_lib_gdbm=-lgdbm
11177 echo "$ac_t""no" 1>&6
11188 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
11191 for ac_hdr in gdbm.h
11193 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11194 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11195 echo "configure:11196: checking for $ac_hdr" >&5
11196 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11197 echo $ac_n "(cached) $ac_c" 1>&6
11199 cat > conftest.$ac_ext <<EOF
11200 #line 11201 "configure"
11201 #include "confdefs.h"
11204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11205 { (eval echo configure:11206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11207 if test -z "$ac_err"; then
11209 eval "ac_cv_header_$ac_safe=yes"
11212 echo "configure: failed program was:" >&5
11213 cat conftest.$ac_ext >&5
11215 eval "ac_cv_header_$ac_safe=no"
11219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11220 echo "$ac_t""yes" 1>&6
11221 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11222 cat >> confdefs.h <<EOF
11223 #define $ac_tr_hdr 1
11227 echo "$ac_t""no" 1>&6
11231 echo $ac_n "checking for db""... $ac_c" 1>&6
11232 echo "configure:11233: checking for db" >&5
11233 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
11234 echo $ac_n "(cached) $ac_c" 1>&6
11237 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
11245 echo "$ac_t""$ol_cv_gdbm" 1>&6
11246 if test $ol_cv_gdbm = yes ; then
11247 cat >> confdefs.h <<\EOF
11248 #define HAVE_GDBM 1
11254 if test $ol_cv_gdbm = yes ; then
11256 ol_with_ldbm_api=gdbm
11258 if test $ol_cv_lib_gdbm != yes ; then
11259 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
11264 if test $ol_with_ldbm_api = auto ; then
11265 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
11266 elif test $ol_with_ldbm_api = ndbm ; then
11267 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
11268 echo "configure:11269: checking for NDBM library" >&5
11269 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
11270 echo $ac_n "(cached) $ac_c" 1>&6
11273 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11274 echo "configure:11275: checking for dbm_open" >&5
11275 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
11276 echo $ac_n "(cached) $ac_c" 1>&6
11278 cat > conftest.$ac_ext <<EOF
11279 #line 11280 "configure"
11280 #include "confdefs.h"
11281 /* System header to define __stub macros and hopefully few prototypes,
11282 which can conflict with char dbm_open(); below. */
11283 #include <assert.h>
11284 /* Override any gcc2 internal prototype to avoid an error. */
11285 /* We use char because int might match the return type of a gcc2
11286 builtin and then its argument prototype would still apply. */
11292 /* The GNU C library defines this for functions which it implements
11293 to always fail with ENOSYS. Some functions are actually named
11294 something starting with __ and the normal name is an alias. */
11295 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
11303 if { (eval echo configure:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11305 eval "ac_cv_func_dbm_open=yes"
11307 echo "configure: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11310 eval "ac_cv_func_dbm_open=no"
11315 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
11316 echo "$ac_t""yes" 1>&6
11319 echo "$ac_t""no" 1>&6
11321 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
11322 echo "configure:11323: checking for dbm_open in -lndbm" >&5
11323 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11324 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11325 echo $ac_n "(cached) $ac_c" 1>&6
11327 ac_save_LIBS="$LIBS"
11328 LIBS="-lndbm $LIBS"
11329 cat > conftest.$ac_ext <<EOF
11330 #line 11331 "configure"
11331 #include "confdefs.h"
11332 /* Override any gcc2 internal prototype to avoid an error. */
11333 /* We use char because int might match the return type of a gcc2
11334 builtin and then its argument prototype would still apply. */
11341 if { (eval echo configure:11342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11343 eval "ac_cv_lib_$ac_lib_var=yes"
11345 echo "configure: failed program was:" >&5
11346 cat conftest.$ac_ext >&5
11348 eval "ac_cv_lib_$ac_lib_var=no"
11351 LIBS="$ac_save_LIBS"
11354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11355 echo "$ac_t""yes" 1>&6
11356 ol_cv_lib_ndbm=-lndbm
11358 echo "$ac_t""no" 1>&6
11360 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11361 echo "configure:11362: checking for dbm_open in -ldbm" >&5
11362 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
11363 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11364 echo $ac_n "(cached) $ac_c" 1>&6
11366 ac_save_LIBS="$LIBS"
11368 cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11371 /* Override any gcc2 internal prototype to avoid an error. */
11372 /* We use char because int might match the return type of a gcc2
11373 builtin and then its argument prototype would still apply. */
11380 if { (eval echo configure:11381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11382 eval "ac_cv_lib_$ac_lib_var=yes"
11384 echo "configure: failed program was:" >&5
11385 cat conftest.$ac_ext >&5
11387 eval "ac_cv_lib_$ac_lib_var=no"
11390 LIBS="$ac_save_LIBS"
11393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11394 echo "$ac_t""yes" 1>&6
11395 ol_cv_lib_ndbm=-ldbm
11397 echo "$ac_t""no" 1>&6
11410 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
11413 for ac_hdr in ndbm.h
11415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11417 echo "configure:11418: checking for $ac_hdr" >&5
11418 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11419 echo $ac_n "(cached) $ac_c" 1>&6
11421 cat > conftest.$ac_ext <<EOF
11422 #line 11423 "configure"
11423 #include "confdefs.h"
11426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11427 { (eval echo configure:11428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11429 if test -z "$ac_err"; then
11431 eval "ac_cv_header_$ac_safe=yes"
11434 echo "configure: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11437 eval "ac_cv_header_$ac_safe=no"
11441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11442 echo "$ac_t""yes" 1>&6
11443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11444 cat >> confdefs.h <<EOF
11445 #define $ac_tr_hdr 1
11449 echo "$ac_t""no" 1>&6
11453 echo $ac_n "checking for db""... $ac_c" 1>&6
11454 echo "configure:11455: checking for db" >&5
11455 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
11456 echo $ac_n "(cached) $ac_c" 1>&6
11459 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
11467 echo "$ac_t""$ol_cv_ndbm" 1>&6
11468 if test $ol_cv_ndbm = yes ; then
11469 cat >> confdefs.h <<\EOF
11470 #define HAVE_NDBM 1
11476 if test $ol_cv_ndbm = yes ; then
11478 ol_with_ldbm_api=ndbm
11480 if test $ol_cv_lib_ndbm != yes ; then
11481 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
11486 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
11487 echo "configure: warning: could not find suitable LDBM backend" 1>&2
11488 if test $ol_enable_ldbm = yes ; then
11489 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
11492 echo "configure: warning: disabling LDBM" 1>&2
11496 if test $ol_enable_wrappers != no ; then
11497 for ac_hdr in tcpd.h
11499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11501 echo "configure:11502: checking for $ac_hdr" >&5
11502 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11503 echo $ac_n "(cached) $ac_c" 1>&6
11505 cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11511 { (eval echo configure:11512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11513 if test -z "$ac_err"; then
11515 eval "ac_cv_header_$ac_safe=yes"
11518 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11521 eval "ac_cv_header_$ac_safe=no"
11525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11526 echo "$ac_t""yes" 1>&6
11527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11528 cat >> confdefs.h <<EOF
11529 #define $ac_tr_hdr 1
11533 echo "$ac_t""no" 1>&6
11538 if test $ac_cv_header_tcpd_h != yes ; then
11541 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
11542 echo "configure:11543: checking for main in -lwrap" >&5
11543 ac_lib_var=`echo wrap'_'main | sed 'y%./+-:%__p__%'`
11544 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11545 echo $ac_n "(cached) $ac_c" 1>&6
11547 ac_save_LIBS="$LIBS"
11548 LIBS="-lwrap $LIBS"
11549 cat > conftest.$ac_ext <<EOF
11550 #line 11551 "configure"
11551 #include "confdefs.h"
11557 if { (eval echo configure:11558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11559 eval "ac_cv_lib_$ac_lib_var=yes"
11561 echo "configure: failed program was:" >&5
11562 cat conftest.$ac_ext >&5
11564 eval "ac_cv_lib_$ac_lib_var=no"
11567 LIBS="$ac_save_LIBS"
11570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11571 echo "$ac_t""yes" 1>&6
11574 echo "$ac_t""no" 1>&6
11580 if test $have_wrappers = yes ; then
11581 cat >> confdefs.h <<\EOF
11582 #define HAVE_TCPD 1
11585 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
11587 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
11588 echo "configure:11589: checking for main in -lnsl" >&5
11589 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
11590 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11591 echo $ac_n "(cached) $ac_c" 1>&6
11593 ac_save_LIBS="$LIBS"
11595 cat > conftest.$ac_ext <<EOF
11596 #line 11597 "configure"
11597 #include "confdefs.h"
11603 if { (eval echo configure:11604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11605 eval "ac_cv_lib_$ac_lib_var=yes"
11607 echo "configure: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11610 eval "ac_cv_lib_$ac_lib_var=no"
11613 LIBS="$ac_save_LIBS"
11616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11617 echo "$ac_t""yes" 1>&6
11618 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11619 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11620 cat >> confdefs.h <<EOF
11621 #define $ac_tr_lib 1
11627 echo "$ac_t""no" 1>&6
11631 echo "configure: warning: could not find -lwrap" 1>&2
11632 if test $ol_enable_wrappers = yes ; then
11633 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
11636 echo "configure: warning: disabling wrappers support" 1>&2
11637 ol_enable_wrappers=no
11641 if test $ol_enable_syslog != no ; then
11642 echo $ac_n "checking for openlog""... $ac_c" 1>&6
11643 echo "configure:11644: checking for openlog" >&5
11644 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
11645 echo $ac_n "(cached) $ac_c" 1>&6
11647 cat > conftest.$ac_ext <<EOF
11648 #line 11649 "configure"
11649 #include "confdefs.h"
11650 /* System header to define __stub macros and hopefully few prototypes,
11651 which can conflict with char openlog(); below. */
11652 #include <assert.h>
11653 /* Override any gcc2 internal prototype to avoid an error. */
11654 /* We use char because int might match the return type of a gcc2
11655 builtin and then its argument prototype would still apply. */
11661 /* The GNU C library defines this for functions which it implements
11662 to always fail with ENOSYS. Some functions are actually named
11663 something starting with __ and the normal name is an alias. */
11664 #if defined (__stub_openlog) || defined (__stub___openlog)
11672 if { (eval echo configure:11673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11674 eval "ac_cv_func_openlog=yes"
11676 echo "configure: failed program was:" >&5
11677 cat conftest.$ac_ext >&5
11679 eval "ac_cv_func_openlog=no"
11684 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
11685 echo "$ac_t""yes" 1>&6
11688 echo "$ac_t""no" 1>&6
11691 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
11692 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
11694 ol_enable_syslog=$ac_cv_func_openlog
11697 if test $ol_enable_dmalloc != no ; then
11698 for ac_hdr in dmalloc.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:11703: 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 11708 "configure"
11708 #include "confdefs.h"
11711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11712 { (eval echo configure:11713: \"$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 dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
11739 echo "configure:11740: checking for dmalloc_shutdown in -ldmalloc" >&5
11740 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
11741 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11742 echo $ac_n "(cached) $ac_c" 1>&6
11744 ac_save_LIBS="$LIBS"
11745 LIBS="-ldmalloc $LIBS"
11746 cat > conftest.$ac_ext <<EOF
11747 #line 11748 "configure"
11748 #include "confdefs.h"
11749 /* Override any gcc2 internal prototype to avoid an error. */
11750 /* We use char because int might match the return type of a gcc2
11751 builtin and then its argument prototype would still apply. */
11752 char dmalloc_shutdown();
11758 if { (eval echo configure:11759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11760 eval "ac_cv_lib_$ac_lib_var=yes"
11762 echo "configure: failed program was:" >&5
11763 cat conftest.$ac_ext >&5
11765 eval "ac_cv_lib_$ac_lib_var=no"
11768 LIBS="$ac_save_LIBS"
11771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11772 echo "$ac_t""yes" 1>&6
11773 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11774 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11775 cat >> confdefs.h <<EOF
11776 #define $ac_tr_lib 1
11779 LIBS="-ldmalloc $LIBS"
11782 echo "$ac_t""no" 1>&6
11787 if test $ol_enable_tcl != no ; then
11788 for ac_hdr in tcl.h
11790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11792 echo "configure:11793: checking for $ac_hdr" >&5
11793 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11794 echo $ac_n "(cached) $ac_c" 1>&6
11796 cat > conftest.$ac_ext <<EOF
11797 #line 11798 "configure"
11798 #include "confdefs.h"
11801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11802 { (eval echo configure:11803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11804 if test -z "$ac_err"; then
11806 eval "ac_cv_header_$ac_safe=yes"
11809 echo "configure: failed program was:" >&5
11810 cat conftest.$ac_ext >&5
11812 eval "ac_cv_header_$ac_safe=no"
11816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11817 echo "$ac_t""yes" 1>&6
11818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11819 cat >> confdefs.h <<EOF
11820 #define $ac_tr_hdr 1
11824 echo "$ac_t""no" 1>&6
11829 if test $ac_cv_header_tcl_h != yes ; then
11832 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
11833 echo "configure:11834: checking for main in -ltcl" >&5
11834 ac_lib_var=`echo tcl'_'main | sed 'y%./+-:%__p__%'`
11835 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11836 echo $ac_n "(cached) $ac_c" 1>&6
11838 ac_save_LIBS="$LIBS"
11840 cat > conftest.$ac_ext <<EOF
11841 #line 11842 "configure"
11842 #include "confdefs.h"
11848 if { (eval echo configure:11849: \"$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 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
11865 echo "$ac_t""no" 1>&6
11870 if test $have_tcl != yes; then
11871 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
11872 echo "configure:11873: checking for main in -ltcl7.6" >&5
11873 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-:%__p__%'`
11874 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11875 echo $ac_n "(cached) $ac_c" 1>&6
11877 ac_save_LIBS="$LIBS"
11878 LIBS="-ltcl7.6 $LIBS"
11879 cat > conftest.$ac_ext <<EOF
11880 #line 11881 "configure"
11881 #include "confdefs.h"
11887 if { (eval echo configure:11888: \"$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 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
11904 echo "$ac_t""no" 1>&6
11910 if test $have_tcl != yes; then
11911 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
11912 echo "configure:11913: checking for main in -ltcl8.0" >&5
11913 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-:%__p__%'`
11914 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11915 echo $ac_n "(cached) $ac_c" 1>&6
11917 ac_save_LIBS="$LIBS"
11918 LIBS="-ltcl8.0 $LIBS"
11919 cat > conftest.$ac_ext <<EOF
11920 #line 11921 "configure"
11921 #include "confdefs.h"
11927 if { (eval echo configure:11928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11929 eval "ac_cv_lib_$ac_lib_var=yes"
11931 echo "configure: failed program was:" >&5
11932 cat conftest.$ac_ext >&5
11934 eval "ac_cv_lib_$ac_lib_var=no"
11937 LIBS="$ac_save_LIBS"
11940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11941 echo "$ac_t""yes" 1>&6
11942 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
11944 echo "$ac_t""no" 1>&6
11951 if test $have_tcl != yes ; then
11952 echo "configure: warning: could not find -ltcl" 1>&2
11953 if test $ol_enable_tcl = yes ; then
11954 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
11961 # ud needs termcap (should insert check here)
11963 for ac_hdr in termcap.h ncurses.h
11965 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11967 echo "configure:11968: checking for $ac_hdr" >&5
11968 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11969 echo $ac_n "(cached) $ac_c" 1>&6
11971 cat > conftest.$ac_ext <<EOF
11972 #line 11973 "configure"
11973 #include "confdefs.h"
11976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11977 { (eval echo configure:11978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11979 if test -z "$ac_err"; then
11981 eval "ac_cv_header_$ac_safe=yes"
11984 echo "configure: failed program was:" >&5
11985 cat conftest.$ac_ext >&5
11987 eval "ac_cv_header_$ac_safe=no"
11991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11992 echo "$ac_t""yes" 1>&6
11993 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11994 cat >> confdefs.h <<EOF
11995 #define $ac_tr_hdr 1
11999 echo "$ac_t""no" 1>&6
12004 if test $ol_link_termcap = no ; then
12005 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
12006 echo "configure:12007: checking for tputs in -ltermcap" >&5
12007 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
12008 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12009 echo $ac_n "(cached) $ac_c" 1>&6
12011 ac_save_LIBS="$LIBS"
12012 LIBS="-ltermcap $LIBS"
12013 cat > conftest.$ac_ext <<EOF
12014 #line 12015 "configure"
12015 #include "confdefs.h"
12016 /* Override any gcc2 internal prototype to avoid an error. */
12017 /* We use char because int might match the return type of a gcc2
12018 builtin and then its argument prototype would still apply. */
12025 if { (eval echo configure:12026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12027 eval "ac_cv_lib_$ac_lib_var=yes"
12029 echo "configure: failed program was:" >&5
12030 cat conftest.$ac_ext >&5
12032 eval "ac_cv_lib_$ac_lib_var=no"
12035 LIBS="$ac_save_LIBS"
12038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12039 echo "$ac_t""yes" 1>&6
12042 echo "$ac_t""no" 1>&6
12046 if test $have_termcap = yes ; then
12047 cat >> confdefs.h <<\EOF
12048 #define HAVE_TERMCAP 1
12051 ol_link_termcap=yes
12052 TERMCAP_LIBS=-ltermcap
12056 if test $ol_link_termcap = no ; then
12057 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
12058 echo "configure:12059: checking for initscr in -lncurses" >&5
12059 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
12060 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12061 echo $ac_n "(cached) $ac_c" 1>&6
12063 ac_save_LIBS="$LIBS"
12064 LIBS="-lncurses $LIBS"
12065 cat > conftest.$ac_ext <<EOF
12066 #line 12067 "configure"
12067 #include "confdefs.h"
12068 /* Override any gcc2 internal prototype to avoid an error. */
12069 /* We use char because int might match the return type of a gcc2
12070 builtin and then its argument prototype would still apply. */
12077 if { (eval echo configure:12078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12079 eval "ac_cv_lib_$ac_lib_var=yes"
12081 echo "configure: failed program was:" >&5
12082 cat conftest.$ac_ext >&5
12084 eval "ac_cv_lib_$ac_lib_var=no"
12087 LIBS="$ac_save_LIBS"
12090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12091 echo "$ac_t""yes" 1>&6
12094 echo "$ac_t""no" 1>&6
12098 if test $have_ncurses = yes ; then
12099 cat >> confdefs.h <<\EOF
12100 #define HAVE_NCURSES 1
12103 ol_link_termcap=yes
12104 TERMCAP_LIBS=-lncurses
12108 if test $ol_link_termcap = no ; then
12109 cat >> confdefs.h <<\EOF
12110 #define NO_TERMCAP 1
12117 if test $ol_with_cyrus_sasl != no ; then
12118 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12119 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12120 echo "configure:12121: checking for sasl.h" >&5
12121 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12122 echo $ac_n "(cached) $ac_c" 1>&6
12124 cat > conftest.$ac_ext <<EOF
12125 #line 12126 "configure"
12126 #include "confdefs.h"
12129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12130 { (eval echo configure:12131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12132 if test -z "$ac_err"; then
12134 eval "ac_cv_header_$ac_safe=yes"
12137 echo "configure: failed program was:" >&5
12138 cat conftest.$ac_ext >&5
12140 eval "ac_cv_header_$ac_safe=no"
12144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12145 echo "$ac_t""yes" 1>&6
12148 echo "$ac_t""no" 1>&6
12152 if test $ac_cv_header_sasl_h = yes ; then
12153 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12154 echo "configure:12155: checking for sasl_client_init in -lsasl" >&5
12155 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
12156 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12157 echo $ac_n "(cached) $ac_c" 1>&6
12159 ac_save_LIBS="$LIBS"
12160 LIBS="-lsasl $LIBS"
12161 cat > conftest.$ac_ext <<EOF
12162 #line 12163 "configure"
12163 #include "confdefs.h"
12164 /* Override any gcc2 internal prototype to avoid an error. */
12165 /* We use char because int might match the return type of a gcc2
12166 builtin and then its argument prototype would still apply. */
12167 char sasl_client_init();
12173 if { (eval echo configure:12174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12175 eval "ac_cv_lib_$ac_lib_var=yes"
12177 echo "configure: failed program was:" >&5
12178 cat conftest.$ac_ext >&5
12180 eval "ac_cv_lib_$ac_lib_var=no"
12183 LIBS="$ac_save_LIBS"
12186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12187 echo "$ac_t""yes" 1>&6
12188 have_cyrus_sasl=yes
12190 echo "$ac_t""no" 1>&6
12195 if test $have_cyrus_sasl != no ; then
12197 cat >> confdefs.h <<\EOF
12198 #define HAVE_CYRUS_SASL 1
12205 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
12206 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
12211 if test $ol_with_fetch != no ; then
12213 LIBS="-lfetch -lcom_err $LIBS"
12214 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
12215 echo "configure:12216: checking fetch(3) library" >&5
12216 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
12217 echo $ac_n "(cached) $ac_c" 1>&6
12220 cat > conftest.$ac_ext <<EOF
12221 #line 12222 "configure"
12222 #include "confdefs.h"
12224 #include <sys/param.h>
12228 struct url *u = fetchParseURL("file:///");
12231 if { (eval echo configure:12232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12233 ol_cv_lib_fetch=yes
12235 echo "configure: failed program was:" >&5
12236 cat conftest.$ac_ext >&5
12243 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
12245 if test $ol_cv_lib_fetch != no ; then
12246 ol_link_fetch="-lfetch -lcom_err"
12247 cat >> confdefs.h <<\EOF
12248 #define HAVE_FETCH 1
12254 if test $ol_cv_lib_fetch != no ; then
12255 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
12256 ol_link_fetch=freebsd
12258 elif test $ol_with_fetch != auto ; then
12259 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
12263 ol_link_readline=no
12264 if test $ol_with_readline != no ; then
12265 for ac_hdr in readline/readline.h readline/history.h
12267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12269 echo "configure:12270: checking for $ac_hdr" >&5
12270 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12271 echo $ac_n "(cached) $ac_c" 1>&6
12273 cat > conftest.$ac_ext <<EOF
12274 #line 12275 "configure"
12275 #include "confdefs.h"
12278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12279 { (eval echo configure:12280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12281 if test -z "$ac_err"; then
12283 eval "ac_cv_header_$ac_safe=yes"
12286 echo "configure: failed program was:" >&5
12287 cat conftest.$ac_ext >&5
12289 eval "ac_cv_header_$ac_safe=no"
12293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12294 echo "$ac_t""yes" 1>&6
12295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12296 cat >> confdefs.h <<EOF
12297 #define $ac_tr_hdr 1
12301 echo "$ac_t""no" 1>&6
12306 if test $ac_cv_header_readline_readline_h = yes ; then
12308 LIBS="$TERMCAP_LIBS $LIBS"
12309 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
12310 echo "configure:12311: checking for readline in -lreadline" >&5
12311 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
12312 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12313 echo $ac_n "(cached) $ac_c" 1>&6
12315 ac_save_LIBS="$LIBS"
12316 LIBS="-lreadline $LIBS"
12317 cat > conftest.$ac_ext <<EOF
12318 #line 12319 "configure"
12319 #include "confdefs.h"
12320 /* Override any gcc2 internal prototype to avoid an error. */
12321 /* We use char because int might match the return type of a gcc2
12322 builtin and then its argument prototype would still apply. */
12329 if { (eval echo configure:12330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12331 eval "ac_cv_lib_$ac_lib_var=yes"
12333 echo "configure: failed program was:" >&5
12334 cat conftest.$ac_ext >&5
12336 eval "ac_cv_lib_$ac_lib_var=no"
12339 LIBS="$ac_save_LIBS"
12342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12343 echo "$ac_t""yes" 1>&6
12346 echo "$ac_t""no" 1>&6
12352 if test $have_readline = yes ; then
12353 ol_with_readline=found
12354 ol_link_readline=yes
12356 READLINE_LIBS="-lreadline"
12361 if test $ol_link_readline = yes ; then
12362 cat >> confdefs.h <<\EOF
12363 #define HAVE_READLINE 1
12369 # FreeBSD (and others) have crypt(3) in -lcrypt
12370 if test $ol_enable_crypt != no ; then
12371 echo $ac_n "checking for crypt""... $ac_c" 1>&6
12372 echo "configure:12373: checking for crypt" >&5
12373 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
12374 echo $ac_n "(cached) $ac_c" 1>&6
12376 cat > conftest.$ac_ext <<EOF
12377 #line 12378 "configure"
12378 #include "confdefs.h"
12379 /* System header to define __stub macros and hopefully few prototypes,
12380 which can conflict with char crypt(); below. */
12381 #include <assert.h>
12382 /* Override any gcc2 internal prototype to avoid an error. */
12383 /* We use char because int might match the return type of a gcc2
12384 builtin and then its argument prototype would still apply. */
12390 /* The GNU C library defines this for functions which it implements
12391 to always fail with ENOSYS. Some functions are actually named
12392 something starting with __ and the normal name is an alias. */
12393 #if defined (__stub_crypt) || defined (__stub___crypt)
12401 if { (eval echo configure:12402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12403 eval "ac_cv_func_crypt=yes"
12405 echo "configure: failed program was:" >&5
12406 cat conftest.$ac_ext >&5
12408 eval "ac_cv_func_crypt=no"
12413 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
12414 echo "$ac_t""yes" 1>&6
12417 echo "$ac_t""no" 1>&6
12419 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12420 echo "configure:12421: checking for crypt in -lcrypt" >&5
12421 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
12422 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12423 echo $ac_n "(cached) $ac_c" 1>&6
12425 ac_save_LIBS="$LIBS"
12426 LIBS="-lcrypt $LIBS"
12427 cat > conftest.$ac_ext <<EOF
12428 #line 12429 "configure"
12429 #include "confdefs.h"
12430 /* Override any gcc2 internal prototype to avoid an error. */
12431 /* We use char because int might match the return type of a gcc2
12432 builtin and then its argument prototype would still apply. */
12439 if { (eval echo configure:12440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12441 eval "ac_cv_lib_$ac_lib_var=yes"
12443 echo "configure: failed program was:" >&5
12444 cat conftest.$ac_ext >&5
12446 eval "ac_cv_lib_$ac_lib_var=no"
12449 LIBS="$ac_save_LIBS"
12452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12453 echo "$ac_t""yes" 1>&6
12454 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
12457 echo "$ac_t""no" 1>&6
12464 if test $have_crypt = yes ; then
12465 cat >> confdefs.h <<\EOF
12466 #define HAVE_CRYPT 1
12470 echo "configure: warning: could not find crypt" 1>&2
12471 if test $ol_enable_crypt = yes ; then
12472 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
12475 echo "configure: warning: disabling crypt support" 1>&2
12480 # FreeBSD (and others) have setproctitle(3) in -lutil
12481 if test $ol_enable_proctitle != no ; then
12482 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
12483 echo "configure:12484: checking for setproctitle" >&5
12484 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
12485 echo $ac_n "(cached) $ac_c" 1>&6
12487 cat > conftest.$ac_ext <<EOF
12488 #line 12489 "configure"
12489 #include "confdefs.h"
12490 /* System header to define __stub macros and hopefully few prototypes,
12491 which can conflict with char setproctitle(); below. */
12492 #include <assert.h>
12493 /* Override any gcc2 internal prototype to avoid an error. */
12494 /* We use char because int might match the return type of a gcc2
12495 builtin and then its argument prototype would still apply. */
12496 char setproctitle();
12501 /* The GNU C library defines this for functions which it implements
12502 to always fail with ENOSYS. Some functions are actually named
12503 something starting with __ and the normal name is an alias. */
12504 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
12512 if { (eval echo configure:12513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12514 eval "ac_cv_func_setproctitle=yes"
12516 echo "configure: failed program was:" >&5
12517 cat conftest.$ac_ext >&5
12519 eval "ac_cv_func_setproctitle=no"
12524 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
12525 echo "$ac_t""yes" 1>&6
12526 have_setproctitle=yes
12528 echo "$ac_t""no" 1>&6
12530 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
12531 echo "configure:12532: checking for setproctitle in -lutil" >&5
12532 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
12533 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12534 echo $ac_n "(cached) $ac_c" 1>&6
12536 ac_save_LIBS="$LIBS"
12537 LIBS="-lutil $LIBS"
12538 cat > conftest.$ac_ext <<EOF
12539 #line 12540 "configure"
12540 #include "confdefs.h"
12541 /* Override any gcc2 internal prototype to avoid an error. */
12542 /* We use char because int might match the return type of a gcc2
12543 builtin and then its argument prototype would still apply. */
12544 char setproctitle();
12550 if { (eval echo configure:12551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12552 eval "ac_cv_lib_$ac_lib_var=yes"
12554 echo "configure: failed program was:" >&5
12555 cat conftest.$ac_ext >&5
12557 eval "ac_cv_lib_$ac_lib_var=no"
12560 LIBS="$ac_save_LIBS"
12563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12564 echo "$ac_t""yes" 1>&6
12565 have_setproctitle=yes
12566 LUTIL_LIBS="$LUTIL_LIBS -lutil"
12568 echo "$ac_t""no" 1>&6
12569 have_setproctitle=no
12570 LIBOBJS="$LIBOBJS setproctitle.o"
12576 if test $have_setproctitle = yes ; then
12577 cat >> confdefs.h <<\EOF
12578 #define HAVE_SETPROCTITLE 1
12584 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12585 echo "configure:12586: checking for uid_t in sys/types.h" >&5
12586 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
12587 echo $ac_n "(cached) $ac_c" 1>&6
12589 cat > conftest.$ac_ext <<EOF
12590 #line 12591 "configure"
12591 #include "confdefs.h"
12592 #include <sys/types.h>
12594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12595 egrep "uid_t" >/dev/null 2>&1; then
12597 ac_cv_type_uid_t=yes
12600 ac_cv_type_uid_t=no
12606 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12607 if test $ac_cv_type_uid_t = no; then
12608 cat >> confdefs.h <<\EOF
12612 cat >> confdefs.h <<\EOF
12618 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
12619 echo "configure:12620: checking type of array argument to getgroups" >&5
12620 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
12621 echo $ac_n "(cached) $ac_c" 1>&6
12623 if test "$cross_compiling" = yes; then
12624 ac_cv_type_getgroups=cross
12626 cat > conftest.$ac_ext <<EOF
12627 #line 12628 "configure"
12628 #include "confdefs.h"
12630 /* Thanks to Mike Rendell for this test. */
12631 #include <sys/types.h>
12634 #define MAX(x, y) ((x) > (y) ? (x) : (y))
12637 gid_t gidset[NGID];
12639 union { gid_t gval; long lval; } val;
12642 for (i = 0; i < NGID; i++)
12643 gidset[i] = val.gval;
12644 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
12646 /* Exit non-zero if getgroups seems to require an array of ints. This
12647 happens when gid_t is short but getgroups modifies an array of ints. */
12648 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
12652 if { (eval echo configure:12653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12654 ac_cv_type_getgroups=gid_t
12656 echo "configure: failed program was:" >&5
12657 cat conftest.$ac_ext >&5
12659 ac_cv_type_getgroups=int
12664 if test $ac_cv_type_getgroups = cross; then
12665 cat > conftest.$ac_ext <<EOF
12666 #line 12667 "configure"
12667 #include "confdefs.h"
12668 #include <unistd.h>
12670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12671 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
12673 ac_cv_type_getgroups=gid_t
12676 ac_cv_type_getgroups=int
12683 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
12684 cat >> confdefs.h <<EOF
12685 #define GETGROUPS_T $ac_cv_type_getgroups
12688 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12689 echo "configure:12690: checking for ANSI C header files" >&5
12690 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
12691 echo $ac_n "(cached) $ac_c" 1>&6
12693 cat > conftest.$ac_ext <<EOF
12694 #line 12695 "configure"
12695 #include "confdefs.h"
12696 #include <stdlib.h>
12697 #include <stdarg.h>
12698 #include <string.h>
12701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12702 { (eval echo configure:12703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12704 if test -z "$ac_err"; then
12706 ac_cv_header_stdc=yes
12709 echo "configure: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12712 ac_cv_header_stdc=no
12716 if test $ac_cv_header_stdc = yes; then
12717 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12718 cat > conftest.$ac_ext <<EOF
12719 #line 12720 "configure"
12720 #include "confdefs.h"
12721 #include <string.h>
12723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12724 egrep "memchr" >/dev/null 2>&1; then
12728 ac_cv_header_stdc=no
12734 if test $ac_cv_header_stdc = yes; then
12735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12736 cat > conftest.$ac_ext <<EOF
12737 #line 12738 "configure"
12738 #include "confdefs.h"
12739 #include <stdlib.h>
12741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12742 egrep "free" >/dev/null 2>&1; then
12746 ac_cv_header_stdc=no
12752 if test $ac_cv_header_stdc = yes; then
12753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12754 if test "$cross_compiling" = yes; then
12757 cat > conftest.$ac_ext <<EOF
12758 #line 12759 "configure"
12759 #include "confdefs.h"
12761 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12762 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12764 int main () { int i; for (i = 0; i < 256; i++)
12765 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12769 if { (eval echo configure:12770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12773 echo "configure: failed program was:" >&5
12774 cat conftest.$ac_ext >&5
12776 ac_cv_header_stdc=no
12784 echo "$ac_t""$ac_cv_header_stdc" 1>&6
12785 if test $ac_cv_header_stdc = yes; then
12786 cat >> confdefs.h <<\EOF
12787 #define STDC_HEADERS 1
12792 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12793 echo "configure:12794: checking for mode_t" >&5
12794 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
12795 echo $ac_n "(cached) $ac_c" 1>&6
12797 cat > conftest.$ac_ext <<EOF
12798 #line 12799 "configure"
12799 #include "confdefs.h"
12800 #include <sys/types.h>
12802 #include <stdlib.h>
12803 #include <stddef.h>
12806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12807 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12809 eval "ac_cv_type_mode_t=yes"
12812 eval "ac_cv_type_mode_t=no"
12817 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
12818 echo "$ac_t""yes" 1>&6
12820 echo "$ac_t""no" 1>&6
12821 cat >> confdefs.h <<EOF
12827 echo $ac_n "checking for off_t""... $ac_c" 1>&6
12828 echo "configure:12829: checking for off_t" >&5
12829 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
12830 echo $ac_n "(cached) $ac_c" 1>&6
12832 cat > conftest.$ac_ext <<EOF
12833 #line 12834 "configure"
12834 #include "confdefs.h"
12835 #include <sys/types.h>
12837 #include <stdlib.h>
12838 #include <stddef.h>
12841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12842 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12844 eval "ac_cv_type_off_t=yes"
12847 eval "ac_cv_type_off_t=no"
12852 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
12853 echo "$ac_t""yes" 1>&6
12855 echo "$ac_t""no" 1>&6
12856 cat >> confdefs.h <<EOF
12862 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12863 echo "configure:12864: checking for pid_t" >&5
12864 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
12865 echo $ac_n "(cached) $ac_c" 1>&6
12867 cat > conftest.$ac_ext <<EOF
12868 #line 12869 "configure"
12869 #include "confdefs.h"
12870 #include <sys/types.h>
12872 #include <stdlib.h>
12873 #include <stddef.h>
12876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12877 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12879 eval "ac_cv_type_pid_t=yes"
12882 eval "ac_cv_type_pid_t=no"
12887 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
12888 echo "$ac_t""yes" 1>&6
12890 echo "$ac_t""no" 1>&6
12891 cat >> confdefs.h <<EOF
12897 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
12898 echo "configure:12899: checking for ptrdiff_t" >&5
12899 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
12900 echo $ac_n "(cached) $ac_c" 1>&6
12902 cat > conftest.$ac_ext <<EOF
12903 #line 12904 "configure"
12904 #include "confdefs.h"
12905 #include <stddef.h>
12910 if { (eval echo configure:12911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12912 am_cv_type_ptrdiff_t=yes
12914 echo "configure: failed program was:" >&5
12915 cat conftest.$ac_ext >&5
12917 am_cv_type_ptrdiff_t=no
12922 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
12923 if test $am_cv_type_ptrdiff_t = yes; then
12924 cat >> confdefs.h <<\EOF
12925 #define HAVE_PTRDIFF_T 1
12930 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
12931 echo "configure:12932: checking return type of signal handlers" >&5
12932 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
12933 echo $ac_n "(cached) $ac_c" 1>&6
12935 cat > conftest.$ac_ext <<EOF
12936 #line 12937 "configure"
12937 #include "confdefs.h"
12938 #include <sys/types.h>
12939 #include <signal.h>
12944 extern "C" void (*signal (int, void (*)(int)))(int);
12946 void (*signal ()) ();
12953 if { (eval echo configure:12954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12955 ac_cv_type_signal=void
12957 echo "configure: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12960 ac_cv_type_signal=int
12965 echo "$ac_t""$ac_cv_type_signal" 1>&6
12966 cat >> confdefs.h <<EOF
12967 #define RETSIGTYPE $ac_cv_type_signal
12971 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
12972 echo "configure:12973: checking for sig_atomic_t" >&5
12973 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
12974 echo $ac_n "(cached) $ac_c" 1>&6
12976 cat > conftest.$ac_ext <<EOF
12977 #line 12978 "configure"
12978 #include "confdefs.h"
12979 #include <signal.h>
12981 sig_atomic_t atomic;
12984 if { (eval echo configure:12985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12986 ol_cv_type_sig_atomic_t=yes
12988 echo "configure: failed program was:" >&5
12989 cat conftest.$ac_ext >&5
12991 ol_cv_type_sig_atomic_t=no
12996 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
12997 if test $ol_cv_type_sig_atomic_t = no; then
12998 cat >> confdefs.h <<\EOF
12999 #define sig_atomic_t int
13004 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13005 echo "configure:13006: checking for size_t" >&5
13006 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
13007 echo $ac_n "(cached) $ac_c" 1>&6
13009 cat > conftest.$ac_ext <<EOF
13010 #line 13011 "configure"
13011 #include "confdefs.h"
13012 #include <sys/types.h>
13014 #include <stdlib.h>
13015 #include <stddef.h>
13018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13019 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13021 eval "ac_cv_type_size_t=yes"
13024 eval "ac_cv_type_size_t=no"
13029 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
13030 echo "$ac_t""yes" 1>&6
13032 echo "$ac_t""no" 1>&6
13033 cat >> confdefs.h <<EOF
13034 #define size_t unsigned
13039 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
13040 echo "configure:13041: checking for socklen_t" >&5
13041 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
13042 echo $ac_n "(cached) $ac_c" 1>&6
13044 cat > conftest.$ac_ext <<EOF
13045 #line 13046 "configure"
13046 #include "confdefs.h"
13048 #ifdef HAVE_SYS_TYPES_H
13049 #include <sys/types.h>
13051 #ifdef HAVE_SYS_SOCKET_H
13052 #include <sys/socket.h>
13059 if { (eval echo configure:13060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13061 ol_cv_type_socklen_t=yes
13063 echo "configure: failed program was:" >&5
13064 cat conftest.$ac_ext >&5
13066 ol_cv_type_socklen_t=no
13071 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
13072 if test $ol_cv_type_socklen_t = no; then
13073 cat >> confdefs.h <<\EOF
13074 #define socklen_t int
13079 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
13080 echo "configure:13081: checking for member st_blksize in aggregate type struct stat" >&5
13081 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
13082 echo $ac_n "(cached) $ac_c" 1>&6
13084 cat > conftest.$ac_ext <<EOF
13085 #line 13086 "configure"
13086 #include "confdefs.h"
13087 #include <sys/types.h>
13088 #include <sys/stat.h>
13090 struct stat foo; foo.st_blksize;
13093 if { (eval echo configure:13094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13095 ac_cv_c_struct_member_st_blksize=yes
13097 echo "configure: failed program was:" >&5
13098 cat conftest.$ac_ext >&5
13100 ac_cv_c_struct_member_st_blksize=no
13105 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
13106 st_blksize="$ac_cv_c_struct_member_st_blksize"
13107 if test $ac_cv_c_struct_member_st_blksize = yes; then
13108 cat >> confdefs.h <<\EOF
13109 #define HAVE_ST_BLKSIZE 1
13114 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13115 echo "configure:13116: checking whether time.h and sys/time.h may both be included" >&5
13116 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
13117 echo $ac_n "(cached) $ac_c" 1>&6
13119 cat > conftest.$ac_ext <<EOF
13120 #line 13121 "configure"
13121 #include "confdefs.h"
13122 #include <sys/types.h>
13123 #include <sys/time.h>
13129 if { (eval echo configure:13130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13131 ac_cv_header_time=yes
13133 echo "configure: failed program was:" >&5
13134 cat conftest.$ac_ext >&5
13136 ac_cv_header_time=no
13141 echo "$ac_t""$ac_cv_header_time" 1>&6
13142 if test $ac_cv_header_time = yes; then
13143 cat >> confdefs.h <<\EOF
13144 #define TIME_WITH_SYS_TIME 1
13149 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13150 echo "configure:13151: checking whether struct tm is in sys/time.h or time.h" >&5
13151 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
13152 echo $ac_n "(cached) $ac_c" 1>&6
13154 cat > conftest.$ac_ext <<EOF
13155 #line 13156 "configure"
13156 #include "confdefs.h"
13157 #include <sys/types.h>
13160 struct tm *tp; tp->tm_sec;
13163 if { (eval echo configure:13164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13165 ac_cv_struct_tm=time.h
13167 echo "configure: failed program was:" >&5
13168 cat conftest.$ac_ext >&5
13170 ac_cv_struct_tm=sys/time.h
13175 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13176 if test $ac_cv_struct_tm = sys/time.h; then
13177 cat >> confdefs.h <<\EOF
13178 #define TM_IN_SYS_TIME 1
13183 # test for pw_gecos in struct passwd
13184 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
13185 echo "configure:13186: checking struct passwd for pw_gecos" >&5
13186 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
13187 echo $ac_n "(cached) $ac_c" 1>&6
13190 cat > conftest.$ac_ext <<EOF
13191 #line 13192 "configure"
13192 #include "confdefs.h"
13197 pwd.pw_gecos = pwd.pw_name;
13201 if { (eval echo configure:13202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13203 ol_cv_struct_passwd_pw_gecos=yes
13205 echo "configure: failed program was:" >&5
13206 cat conftest.$ac_ext >&5
13208 ol_cv_struct_passwd_pw_gecos=no
13213 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
13214 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
13215 cat >> confdefs.h <<\EOF
13216 #define HAVE_PW_GECOS 1
13221 # test for pw_passwd in struct passwd
13222 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
13223 echo "configure:13224: checking struct passwd for pw_passwd" >&5
13224 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
13225 echo $ac_n "(cached) $ac_c" 1>&6
13228 cat > conftest.$ac_ext <<EOF
13229 #line 13230 "configure"
13230 #include "confdefs.h"
13235 pwd.pw_passwd = pwd.pw_name;
13239 if { (eval echo configure:13240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13241 ol_cv_struct_passwd_pw_passwd=yes
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13246 ol_cv_struct_passwd_pw_passwd=no
13251 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
13252 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
13253 cat >> confdefs.h <<\EOF
13254 #define HAVE_PW_PASSWD 1
13260 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
13261 echo "configure:13262: checking if toupper() requires islower()" >&5
13262 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
13263 echo $ac_n "(cached) $ac_c" 1>&6
13266 if test "$cross_compiling" = yes; then
13267 ol_cv_c_upper_lower=safe
13269 cat > conftest.$ac_ext <<EOF
13270 #line 13271 "configure"
13271 #include "confdefs.h"
13276 if ('C' == toupper('C'))
13282 if { (eval echo configure:13283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13284 ol_cv_c_upper_lower=no
13286 echo "configure: failed program was:" >&5
13287 cat conftest.$ac_ext >&5
13289 ol_cv_c_upper_lower=yes
13296 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
13297 if test $ol_cv_c_upper_lower != no ; then
13298 cat >> confdefs.h <<\EOF
13299 #define C_UPPER_LOWER 1
13304 echo $ac_n "checking for working const""... $ac_c" 1>&6
13305 echo "configure:13306: checking for working const" >&5
13306 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
13307 echo $ac_n "(cached) $ac_c" 1>&6
13309 cat > conftest.$ac_ext <<EOF
13310 #line 13311 "configure"
13311 #include "confdefs.h"
13315 /* Ultrix mips cc rejects this. */
13316 typedef int charset[2]; const charset x;
13317 /* SunOS 4.1.1 cc rejects this. */
13318 char const *const *ccp;
13320 /* NEC SVR4.0.2 mips cc rejects this. */
13321 struct point {int x, y;};
13322 static struct point const zero = {0,0};
13323 /* AIX XL C 1.02.0.0 rejects this.
13324 It does not let you subtract one const X* pointer from another in an arm
13325 of an if-expression whose if-part is not a constant expression */
13326 const char *g = "string";
13327 ccp = &g + (g ? g-g : 0);
13328 /* HPUX 7.0 cc rejects these. */
13331 ccp = (char const *const *) p;
13332 { /* SCO 3.2v4 cc rejects this. */
13334 char const *s = 0 ? (char *) 0 : (char const *) 0;
13338 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13339 int x[] = {25, 17};
13340 const int *foo = &x[0];
13343 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13344 typedef const int *iptr;
13348 { /* AIX XL C 1.02.0.0 rejects this saying
13349 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13350 struct s { int j; const int *ap[3]; };
13351 struct s *b; b->j = 5;
13353 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13354 const int foo = 10;
13359 if { (eval echo configure:13360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13363 echo "configure: failed program was:" >&5
13364 cat conftest.$ac_ext >&5
13371 echo "$ac_t""$ac_cv_c_const" 1>&6
13372 if test $ac_cv_c_const = no; then
13373 cat >> confdefs.h <<\EOF
13379 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
13380 echo "configure:13381: checking if compiler understands volatile" >&5
13381 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
13382 echo $ac_n "(cached) $ac_c" 1>&6
13384 cat > conftest.$ac_ext <<EOF
13385 #line 13386 "configure"
13386 #include "confdefs.h"
13389 volatile int a; int * volatile b = x ? &y : &z;
13390 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
13394 if { (eval echo configure:13395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13396 ol_cv_c_volatile=yes
13398 echo "configure: failed program was:" >&5
13399 cat conftest.$ac_ext >&5
13401 ol_cv_c_volatile=no
13406 echo "$ac_t""$ol_cv_c_volatile" 1>&6
13407 if test $ol_cv_c_volatile = yes; then
13410 cat >> confdefs.h <<\EOF
13417 if test $cross_compiling = yes ; then
13418 cat >> confdefs.h <<\EOF
13419 #define CROSS_COMPILING 1
13423 cat >> confdefs.h <<\EOF
13424 #define LBER_INT_T long
13427 cat >> confdefs.h <<\EOF
13428 #define LBER_TAG_T long
13431 cat >> confdefs.h <<\EOF
13432 #define LBER_SOCKET_T int
13437 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13438 echo "configure:13439: checking whether byte ordering is bigendian" >&5
13439 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
13440 echo $ac_n "(cached) $ac_c" 1>&6
13442 ac_cv_c_bigendian=unknown
13443 # See if sys/param.h defines the BYTE_ORDER macro.
13444 cat > conftest.$ac_ext <<EOF
13445 #line 13446 "configure"
13446 #include "confdefs.h"
13447 #include <sys/types.h>
13448 #include <sys/param.h>
13451 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13452 bogus endian macros
13456 if { (eval echo configure:13457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13458 # It does; now see whether it defined to BIG_ENDIAN or not.
13459 cat > conftest.$ac_ext <<EOF
13460 #line 13461 "configure"
13461 #include "confdefs.h"
13462 #include <sys/types.h>
13463 #include <sys/param.h>
13466 #if BYTE_ORDER != BIG_ENDIAN
13471 if { (eval echo configure:13472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13473 ac_cv_c_bigendian=yes
13475 echo "configure: failed program was:" >&5
13476 cat conftest.$ac_ext >&5
13478 ac_cv_c_bigendian=no
13482 echo "configure: failed program was:" >&5
13483 cat conftest.$ac_ext >&5
13486 if test $ac_cv_c_bigendian = unknown; then
13487 if test "$cross_compiling" = yes; then
13488 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13490 cat > conftest.$ac_ext <<EOF
13491 #line 13492 "configure"
13492 #include "confdefs.h"
13494 /* Are we little or big endian? From Harbison&Steele. */
13498 char c[sizeof (long)];
13501 exit (u.c[sizeof (long) - 1] == 1);
13504 if { (eval echo configure:13505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13506 ac_cv_c_bigendian=no
13508 echo "configure: failed program was:" >&5
13509 cat conftest.$ac_ext >&5
13511 ac_cv_c_bigendian=yes
13519 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13520 if test $ac_cv_c_bigendian = yes; then
13521 cat >> confdefs.h <<\EOF
13522 #define WORDS_BIGENDIAN 1
13527 echo $ac_n "checking size of short""... $ac_c" 1>&6
13528 echo "configure:13529: checking size of short" >&5
13529 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
13530 echo $ac_n "(cached) $ac_c" 1>&6
13532 if test "$cross_compiling" = yes; then
13533 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13535 cat > conftest.$ac_ext <<EOF
13536 #line 13537 "configure"
13537 #include "confdefs.h"
13541 FILE *f=fopen("conftestval", "w");
13543 fprintf(f, "%d\n", sizeof(short));
13547 if { (eval echo configure:13548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13549 ac_cv_sizeof_short=`cat conftestval`
13551 echo "configure: failed program was:" >&5
13552 cat conftest.$ac_ext >&5
13554 ac_cv_sizeof_short=0
13560 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13561 cat >> confdefs.h <<EOF
13562 #define SIZEOF_SHORT $ac_cv_sizeof_short
13566 echo $ac_n "checking size of int""... $ac_c" 1>&6
13567 echo "configure:13568: checking size of int" >&5
13568 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
13569 echo $ac_n "(cached) $ac_c" 1>&6
13571 if test "$cross_compiling" = yes; then
13572 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13574 cat > conftest.$ac_ext <<EOF
13575 #line 13576 "configure"
13576 #include "confdefs.h"
13580 FILE *f=fopen("conftestval", "w");
13582 fprintf(f, "%d\n", sizeof(int));
13586 if { (eval echo configure:13587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13588 ac_cv_sizeof_int=`cat conftestval`
13590 echo "configure: failed program was:" >&5
13591 cat conftest.$ac_ext >&5
13599 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13600 cat >> confdefs.h <<EOF
13601 #define SIZEOF_INT $ac_cv_sizeof_int
13605 echo $ac_n "checking size of long""... $ac_c" 1>&6
13606 echo "configure:13607: checking size of long" >&5
13607 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
13608 echo $ac_n "(cached) $ac_c" 1>&6
13610 if test "$cross_compiling" = yes; then
13611 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
13613 cat > conftest.$ac_ext <<EOF
13614 #line 13615 "configure"
13615 #include "confdefs.h"
13619 FILE *f=fopen("conftestval", "w");
13621 fprintf(f, "%d\n", sizeof(long));
13625 if { (eval echo configure:13626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13627 ac_cv_sizeof_long=`cat conftestval`
13629 echo "configure: failed program was:" >&5
13630 cat conftest.$ac_ext >&5
13632 ac_cv_sizeof_long=0
13638 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13639 cat >> confdefs.h <<EOF
13640 #define SIZEOF_LONG $ac_cv_sizeof_long
13645 if test "$ac_cv_sizeof_int" -lt 4 ; then
13646 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
13648 cat >> confdefs.h <<\EOF
13649 #define LBER_INT_T long
13652 cat >> confdefs.h <<\EOF
13653 #define LBER_TAG_T long
13656 cat >> confdefs.h <<\EOF
13657 #define LBER_SOCKET_T int
13661 cat >> confdefs.h <<\EOF
13662 #define LBER_INT_T int
13665 cat >> confdefs.h <<\EOF
13666 #define LBER_TAG_T long
13669 cat >> confdefs.h <<\EOF
13670 #define LBER_SOCKET_T int
13676 cat >> confdefs.h <<\EOF
13677 #define LBER_LEN_T long
13681 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
13682 echo "configure:13683: checking for 8-bit clean memcmp" >&5
13683 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
13684 echo $ac_n "(cached) $ac_c" 1>&6
13686 if test "$cross_compiling" = yes; then
13687 ac_cv_func_memcmp_clean=no
13689 cat > conftest.$ac_ext <<EOF
13690 #line 13691 "configure"
13691 #include "confdefs.h"
13695 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
13696 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
13700 if { (eval echo configure:13701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13702 ac_cv_func_memcmp_clean=yes
13704 echo "configure: failed program was:" >&5
13705 cat conftest.$ac_ext >&5
13707 ac_cv_func_memcmp_clean=no
13714 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
13715 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
13717 echo $ac_n "checking for strftime""... $ac_c" 1>&6
13718 echo "configure:13719: checking for strftime" >&5
13719 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
13720 echo $ac_n "(cached) $ac_c" 1>&6
13722 cat > conftest.$ac_ext <<EOF
13723 #line 13724 "configure"
13724 #include "confdefs.h"
13725 /* System header to define __stub macros and hopefully few prototypes,
13726 which can conflict with char strftime(); below. */
13727 #include <assert.h>
13728 /* Override any gcc2 internal prototype to avoid an error. */
13729 /* We use char because int might match the return type of a gcc2
13730 builtin and then its argument prototype would still apply. */
13736 /* The GNU C library defines this for functions which it implements
13737 to always fail with ENOSYS. Some functions are actually named
13738 something starting with __ and the normal name is an alias. */
13739 #if defined (__stub_strftime) || defined (__stub___strftime)
13747 if { (eval echo configure:13748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13749 eval "ac_cv_func_strftime=yes"
13751 echo "configure: failed program was:" >&5
13752 cat conftest.$ac_ext >&5
13754 eval "ac_cv_func_strftime=no"
13759 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
13760 echo "$ac_t""yes" 1>&6
13761 cat >> confdefs.h <<\EOF
13762 #define HAVE_STRFTIME 1
13766 echo "$ac_t""no" 1>&6
13767 # strftime is in -lintl on SCO UNIX.
13768 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
13769 echo "configure:13770: checking for strftime in -lintl" >&5
13770 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
13771 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13772 echo $ac_n "(cached) $ac_c" 1>&6
13774 ac_save_LIBS="$LIBS"
13775 LIBS="-lintl $LIBS"
13776 cat > conftest.$ac_ext <<EOF
13777 #line 13778 "configure"
13778 #include "confdefs.h"
13779 /* Override any gcc2 internal prototype to avoid an error. */
13780 /* We use char because int might match the return type of a gcc2
13781 builtin and then its argument prototype would still apply. */
13788 if { (eval echo configure:13789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13790 eval "ac_cv_lib_$ac_lib_var=yes"
13792 echo "configure: failed program was:" >&5
13793 cat conftest.$ac_ext >&5
13795 eval "ac_cv_lib_$ac_lib_var=no"
13798 LIBS="$ac_save_LIBS"
13801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13802 echo "$ac_t""yes" 1>&6
13803 cat >> confdefs.h <<\EOF
13804 #define HAVE_STRFTIME 1
13807 LIBS="-lintl $LIBS"
13809 echo "$ac_t""no" 1>&6
13815 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
13816 echo "configure:13817: checking for inet_aton()" >&5
13817 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
13818 echo $ac_n "(cached) $ac_c" 1>&6
13820 cat > conftest.$ac_ext <<EOF
13821 #line 13822 "configure"
13822 #include "confdefs.h"
13824 #ifdef HAVE_SYS_TYPES_H
13825 # include <sys/types.h>
13827 #ifdef HAVE_SYS_SOCKET_H
13828 # include <sys/socket.h>
13829 # ifdef HAVE_SYS_SELECT_H
13830 # include <sys/select.h>
13832 # include <netinet/in.h>
13833 # ifdef HAVE_ARPA_INET_H
13834 # include <arpa/inet.h>
13840 int rc = inet_aton( "255.255.255.255", &in );
13843 if { (eval echo configure:13844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13845 ol_cv_func_inet_aton=yes
13847 echo "configure: failed program was:" >&5
13848 cat conftest.$ac_ext >&5
13850 ol_cv_func_inet_aton=no
13855 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
13856 if test $ol_cv_func_inet_aton != no; then
13857 cat >> confdefs.h <<\EOF
13858 #define HAVE_INET_ATON 1
13864 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13865 echo "configure:13866: checking for vprintf" >&5
13866 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
13867 echo $ac_n "(cached) $ac_c" 1>&6
13869 cat > conftest.$ac_ext <<EOF
13870 #line 13871 "configure"
13871 #include "confdefs.h"
13872 /* System header to define __stub macros and hopefully few prototypes,
13873 which can conflict with char vprintf(); below. */
13874 #include <assert.h>
13875 /* Override any gcc2 internal prototype to avoid an error. */
13876 /* We use char because int might match the return type of a gcc2
13877 builtin and then its argument prototype would still apply. */
13883 /* The GNU C library defines this for functions which it implements
13884 to always fail with ENOSYS. Some functions are actually named
13885 something starting with __ and the normal name is an alias. */
13886 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13894 if { (eval echo configure:13895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13896 eval "ac_cv_func_vprintf=yes"
13898 echo "configure: failed program was:" >&5
13899 cat conftest.$ac_ext >&5
13901 eval "ac_cv_func_vprintf=no"
13906 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13907 echo "$ac_t""yes" 1>&6
13908 cat >> confdefs.h <<\EOF
13909 #define HAVE_VPRINTF 1
13913 echo "$ac_t""no" 1>&6
13916 if test "$ac_cv_func_vprintf" != yes; then
13917 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13918 echo "configure:13919: checking for _doprnt" >&5
13919 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
13920 echo $ac_n "(cached) $ac_c" 1>&6
13922 cat > conftest.$ac_ext <<EOF
13923 #line 13924 "configure"
13924 #include "confdefs.h"
13925 /* System header to define __stub macros and hopefully few prototypes,
13926 which can conflict with char _doprnt(); below. */
13927 #include <assert.h>
13928 /* Override any gcc2 internal prototype to avoid an error. */
13929 /* We use char because int might match the return type of a gcc2
13930 builtin and then its argument prototype would still apply. */
13936 /* The GNU C library defines this for functions which it implements
13937 to always fail with ENOSYS. Some functions are actually named
13938 something starting with __ and the normal name is an alias. */
13939 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13947 if { (eval echo configure:13948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13949 eval "ac_cv_func__doprnt=yes"
13951 echo "configure: failed program was:" >&5
13952 cat conftest.$ac_ext >&5
13954 eval "ac_cv_func__doprnt=no"
13959 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13960 echo "$ac_t""yes" 1>&6
13961 cat >> confdefs.h <<\EOF
13962 #define HAVE_DOPRNT 1
13966 echo "$ac_t""no" 1>&6
13972 if test $ac_cv_func_vprintf = yes ; then
13973 for ac_func in vsnprintf vsprintf
13975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13976 echo "configure:13977: checking for $ac_func" >&5
13977 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
13978 echo $ac_n "(cached) $ac_c" 1>&6
13980 cat > conftest.$ac_ext <<EOF
13981 #line 13982 "configure"
13982 #include "confdefs.h"
13983 /* System header to define __stub macros and hopefully few prototypes,
13984 which can conflict with char $ac_func(); below. */
13985 #include <assert.h>
13986 /* Override any gcc2 internal prototype to avoid an error. */
13987 /* We use char because int might match the return type of a gcc2
13988 builtin and then its argument prototype would still apply. */
13994 /* The GNU C library defines this for functions which it implements
13995 to always fail with ENOSYS. Some functions are actually named
13996 something starting with __ and the normal name is an alias. */
13997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14005 if { (eval echo configure:14006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14007 eval "ac_cv_func_$ac_func=yes"
14009 echo "configure: failed program was:" >&5
14010 cat conftest.$ac_ext >&5
14012 eval "ac_cv_func_$ac_func=no"
14017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14018 echo "$ac_t""yes" 1>&6
14019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14020 cat >> confdefs.h <<EOF
14021 #define $ac_tr_func 1
14025 echo "$ac_t""no" 1>&6
14079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14080 echo "configure:14081: checking for $ac_func" >&5
14081 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14082 echo $ac_n "(cached) $ac_c" 1>&6
14084 cat > conftest.$ac_ext <<EOF
14085 #line 14086 "configure"
14086 #include "confdefs.h"
14087 /* System header to define __stub macros and hopefully few prototypes,
14088 which can conflict with char $ac_func(); below. */
14089 #include <assert.h>
14090 /* Override any gcc2 internal prototype to avoid an error. */
14091 /* We use char because int might match the return type of a gcc2
14092 builtin and then its argument prototype would still apply. */
14098 /* The GNU C library defines this for functions which it implements
14099 to always fail with ENOSYS. Some functions are actually named
14100 something starting with __ and the normal name is an alias. */
14101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14109 if { (eval echo configure:14110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14111 eval "ac_cv_func_$ac_func=yes"
14113 echo "configure: failed program was:" >&5
14114 cat conftest.$ac_ext >&5
14116 eval "ac_cv_func_$ac_func=no"
14121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14122 echo "$ac_t""yes" 1>&6
14123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14124 cat >> confdefs.h <<EOF
14125 #define $ac_tr_func 1
14129 echo "$ac_t""no" 1>&6
14134 for ac_func in getopt tempnam
14136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14137 echo "configure:14138: checking for $ac_func" >&5
14138 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14139 echo $ac_n "(cached) $ac_c" 1>&6
14141 cat > conftest.$ac_ext <<EOF
14142 #line 14143 "configure"
14143 #include "confdefs.h"
14144 /* System header to define __stub macros and hopefully few prototypes,
14145 which can conflict with char $ac_func(); below. */
14146 #include <assert.h>
14147 /* Override any gcc2 internal prototype to avoid an error. */
14148 /* We use char because int might match the return type of a gcc2
14149 builtin and then its argument prototype would still apply. */
14155 /* The GNU C library defines this for functions which it implements
14156 to always fail with ENOSYS. Some functions are actually named
14157 something starting with __ and the normal name is an alias. */
14158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14166 if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14168 eval "ac_cv_func_$ac_func=yes"
14170 echo "configure: failed program was:" >&5
14171 cat conftest.$ac_ext >&5
14173 eval "ac_cv_func_$ac_func=no"
14178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14179 echo "$ac_t""yes" 1>&6
14180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14181 cat >> confdefs.h <<EOF
14182 #define $ac_tr_func 1
14186 echo "$ac_t""no" 1>&6
14187 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
14193 # Check Configuration
14194 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
14195 echo "configure:14196: checking declaration of sys_errlist" >&5
14196 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
14197 echo $ac_n "(cached) $ac_c" 1>&6
14200 cat > conftest.$ac_ext <<EOF
14201 #line 14202 "configure"
14202 #include "confdefs.h"
14205 #include <sys/types.h>
14208 char *c = (char *) *sys_errlist
14211 if { (eval echo configure:14212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14213 ol_cv_dcl_sys_errlist=yes
14214 ol_cv_have_sys_errlist=yes
14216 echo "configure: failed program was:" >&5
14217 cat conftest.$ac_ext >&5
14219 ol_cv_dcl_sys_errlist=no
14224 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
14226 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14227 if test $ol_cv_dcl_sys_errlist = no ; then
14228 cat >> confdefs.h <<\EOF
14229 #define DECL_SYS_ERRLIST 1
14233 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
14234 echo "configure:14235: checking existence of sys_errlist" >&5
14235 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
14236 echo $ac_n "(cached) $ac_c" 1>&6
14239 cat > conftest.$ac_ext <<EOF
14240 #line 14241 "configure"
14241 #include "confdefs.h"
14244 char *c = (char *) *sys_errlist
14247 if { (eval echo configure:14248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14249 ol_cv_have_sys_errlist=yes
14251 echo "configure: failed program was:" >&5
14252 cat conftest.$ac_ext >&5
14254 ol_cv_have_sys_errlist=no
14259 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
14261 if test $ol_cv_have_sys_errlist = yes ; then
14262 cat >> confdefs.h <<\EOF
14263 #define HAVE_SYS_ERRLIST 1
14270 if test "$ol_enable_debug" != no ; then
14271 cat >> confdefs.h <<\EOF
14272 #define LDAP_DEBUG 1
14276 if test "$ol_enable_syslog" = yes ; then
14277 cat >> confdefs.h <<\EOF
14278 #define LDAP_SYSLOG 1
14282 if test "$ol_enable_libui" = yes ; then
14283 cat >> confdefs.h <<\EOF
14284 #define LDAP_LIBUI 1
14288 if test "$ol_enable_cache" = no ; then
14289 cat >> confdefs.h <<\EOF
14290 #define LDAP_NOCACHE 1
14294 if test "$ol_enable_dns" != no ; then
14295 cat >> confdefs.h <<\EOF
14296 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
14300 if test "$ol_enable_proctitle" != no ; then
14301 cat >> confdefs.h <<\EOF
14302 #define LDAP_PROCTITLE 1
14306 if test "$ol_enable_referrals" != no ; then
14307 cat >> confdefs.h <<\EOF
14308 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
14312 if test "$ol_enable_cldap" != no ; then
14313 cat >> confdefs.h <<\EOF
14314 #define LDAP_CONNECTIONLESS 1
14319 if test "$ol_enable_crypt" != no ; then
14320 cat >> confdefs.h <<\EOF
14321 #define SLAPD_CRYPT 1
14325 if test "$ol_enable_cleartext" != no ; then
14326 cat >> confdefs.h <<\EOF
14327 #define SLAPD_CLEARTEXT 1
14331 if test "$ol_enable_multimaster" != no ; then
14332 cat >> confdefs.h <<\EOF
14333 #define SLAPD_MULTIMASTER 1
14337 if test "$ol_enable_phonetic" != no ; then
14338 cat >> confdefs.h <<\EOF
14339 #define SLAPD_PHONETIC 1
14343 if test "$ol_enable_rlookups" != no ; then
14344 cat >> confdefs.h <<\EOF
14345 #define SLAPD_RLOOKUPS 1
14349 if test "$ol_enable_aci" != no ; then
14350 cat >> confdefs.h <<\EOF
14351 #define SLAPD_ACI_ENABLED 1
14355 if test "$ol_enable_discreteaci" != no ; then
14356 cat >> confdefs.h <<\EOF
14357 #define SLAPD_ACI_DISCRETE_RIGHTS 1
14362 if test "$ol_link_modules" != no ; then
14363 cat >> confdefs.h <<\EOF
14364 #define SLAPD_MODULES 1
14368 MODULES_LIBS=-lltdl
14369 SLAPD_MODULES_LDFLAGS="-dlopen self"
14372 if test "$ol_link_bdb2" != no ; then
14373 cat >> confdefs.h <<\EOF
14374 #define SLAPD_BDB2 1
14379 if test "$ol_with_bdb2_module" != static ; then
14380 cat >> confdefs.h <<\EOF
14381 #define SLAPD_BDB2_DYNAMIC 1
14385 BUILD_BDB2_DYNAMIC=shared
14386 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
14390 if test "$ol_enable_ldap" != no ; then
14391 cat >> confdefs.h <<\EOF
14392 #define SLAPD_LDAP 1
14397 if test "$ol_with_ldap_module" != static ; then
14398 cat >> confdefs.h <<\EOF
14399 #define SLAPD_LDAP_DYNAMIC 1
14403 BUILD_LDAP_DYNAMIC=shared
14404 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
14408 if test "$ol_link_ldbm" != no ; then
14409 cat >> confdefs.h <<\EOF
14410 #define SLAPD_LDBM 1
14415 if test "$ol_with_ldbm_module" != static ; then
14416 cat >> confdefs.h <<\EOF
14417 #define SLAPD_LDBM_DYNAMIC 1
14421 BUILD_LDBM_DYNAMIC=shared
14422 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
14426 if test "$ol_enable_passwd" != no ; then
14427 cat >> confdefs.h <<\EOF
14428 #define SLAPD_PASSWD 1
14433 if test "$ol_with_passwd_module" != static ; then
14434 cat >> confdefs.h <<\EOF
14435 #define SLAPD_PASSWD_DYNAMIC 1
14439 BUILD_PASSWD_DYNAMIC=shared
14440 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
14444 if test "$ol_link_perl" != no ; then
14445 cat >> confdefs.h <<\EOF
14446 #define SLAPD_PERL 1
14451 if test "$ol_with_perl_module" != static ; then
14452 cat >> confdefs.h <<\EOF
14453 #define SLAPD_PERL_DYNAMIC 1
14457 BUILD_PERL_DYNAMIC=shared
14458 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
14462 if test "$ol_enable_shell" != no ; then
14463 cat >> confdefs.h <<\EOF
14464 #define SLAPD_SHELL 1
14469 if test "$ol_with_shell_module" != static ; then
14470 cat >> confdefs.h <<\EOF
14471 #define SLAPD_SHELL_DYNAMIC 1
14475 BUILD_SHELL_DYNAMIC=shared
14476 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
14480 if test "$ol_enable_tcl" != no ; then
14481 cat >> confdefs.h <<\EOF
14482 #define SLAPD_TCL 1
14487 if test "$ol_with_tcl_module" != static; then
14488 cat >> confdefs.h <<\EOF
14489 #define SLAPD_TCL_DYNAMIC 1
14493 BUILD_TCL_DYNAMIC=shared
14494 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
14498 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
14499 $BUILD_SLAPD = yes ; then
14503 if test "$ol_link_isode" != no ; then
14553 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14555 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14556 # Let make expand exec_prefix.
14557 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14559 # Any assignment to VPATH causes Sun make to only execute
14560 # the first set of double-colon rules, so remove it if not needed.
14561 # If there is a colon in the path, we need to keep it.
14562 if test "x$srcdir" = x.; then
14563 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14566 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14568 DEFS=-DHAVE_CONFIG_H
14570 # Without the "./", some shells look in PATH for config.status.
14571 : ${CONFIG_STATUS=./config.status}
14573 echo creating $CONFIG_STATUS
14574 rm -f $CONFIG_STATUS
14575 cat > $CONFIG_STATUS <<EOF
14577 # Generated automatically by configure.
14578 # Run this file to recreate the current configuration.
14579 # This directory was configured as follows,
14580 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14582 # $0 $ac_configure_args
14584 # Compiler output produced by configure, useful for debugging
14585 # configure, is in ./config.log if it exists.
14587 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14590 case "\$ac_option" in
14591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14592 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14593 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14594 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14595 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
14597 -help | --help | --hel | --he | --h)
14598 echo "\$ac_cs_usage"; exit 0 ;;
14599 *) echo "\$ac_cs_usage"; exit 1 ;;
14603 ac_given_srcdir=$srcdir
14604 ac_given_INSTALL="$INSTALL"
14606 trap 'rm -fr `echo "\
14607 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14608 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14609 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14610 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14611 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14612 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14613 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14614 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14615 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14616 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14617 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14618 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14619 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14620 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14621 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14622 include/Makefile:build/top.mk:include/Makefile.in \
14623 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14624 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14625 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14626 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14627 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14628 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14629 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14630 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14631 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14632 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
14633 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14634 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14635 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14636 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14637 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14638 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14639 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14640 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14641 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14642 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14643 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14644 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14645 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14646 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14647 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14648 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14649 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14651 cat >> $CONFIG_STATUS <<EOF
14653 # Protect against being on the right side of a sed subst in config.status.
14654 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14655 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14659 s%@CFLAGS@%$CFLAGS%g
14660 s%@CPPFLAGS@%$CPPFLAGS%g
14661 s%@CXXFLAGS@%$CXXFLAGS%g
14662 s%@FFLAGS@%$FFLAGS%g
14664 s%@LDFLAGS@%$LDFLAGS%g
14666 s%@exec_prefix@%$exec_prefix%g
14667 s%@prefix@%$prefix%g
14668 s%@program_transform_name@%$program_transform_name%g
14669 s%@bindir@%$bindir%g
14670 s%@sbindir@%$sbindir%g
14671 s%@libexecdir@%$libexecdir%g
14672 s%@datadir@%$datadir%g
14673 s%@sysconfdir@%$sysconfdir%g
14674 s%@sharedstatedir@%$sharedstatedir%g
14675 s%@localstatedir@%$localstatedir%g
14676 s%@libdir@%$libdir%g
14677 s%@includedir@%$includedir%g
14678 s%@oldincludedir@%$oldincludedir%g
14679 s%@infodir@%$infodir%g
14680 s%@mandir@%$mandir%g
14682 s%@host_alias@%$host_alias%g
14683 s%@host_cpu@%$host_cpu%g
14684 s%@host_vendor@%$host_vendor%g
14685 s%@host_os@%$host_os%g
14686 s%@target@%$target%g
14687 s%@target_alias@%$target_alias%g
14688 s%@target_cpu@%$target_cpu%g
14689 s%@target_vendor@%$target_vendor%g
14690 s%@target_os@%$target_os%g
14692 s%@build_alias@%$build_alias%g
14693 s%@build_cpu@%$build_cpu%g
14694 s%@build_vendor@%$build_vendor%g
14695 s%@build_os@%$build_os%g
14696 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14697 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14698 s%@INSTALL_DATA@%$INSTALL_DATA%g
14699 s%@PACKAGE@%$PACKAGE%g
14700 s%@VERSION@%$VERSION%g
14701 s%@ACLOCAL@%$ACLOCAL%g
14702 s%@AUTOCONF@%$AUTOCONF%g
14703 s%@AUTOMAKE@%$AUTOMAKE%g
14704 s%@AUTOHEADER@%$AUTOHEADER%g
14705 s%@MAKEINFO@%$MAKEINFO%g
14706 s%@install_sh@%$install_sh%g
14709 s%@AMTARFLAGS@%$AMTARFLAGS%g
14710 s%@SET_MAKE@%$SET_MAKE%g
14711 s%@top_builddir@%$top_builddir%g
14712 s%@ldap_subdir@%$ldap_subdir%g
14714 s%@RANLIB@%$RANLIB%g
14718 s%@LIBTOOL@%$LIBTOOL%g
14720 s%@SENDMAIL@%$SENDMAIL%g
14721 s%@EDITOR@%$EDITOR%g
14722 s%@FINGER@%$FINGER%g
14723 s%@PERLBIN@%$PERLBIN%g
14725 s%@EXEEXT@%$EXEEXT%g
14726 s%@OBJEXT@%$OBJEXT%g
14727 s%@OL_MKDEP@%$OL_MKDEP%g
14728 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
14730 s%@LIBOBJS@%$LIBOBJS%g
14731 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
14732 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
14733 s%@BUILD_BDB2@%$BUILD_BDB2%g
14734 s%@BUILD_LDAP@%$BUILD_LDAP%g
14735 s%@BUILD_LDBM@%$BUILD_LDBM%g
14736 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
14737 s%@BUILD_PERL@%$BUILD_PERL%g
14738 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
14739 s%@BUILD_SHELL@%$BUILD_SHELL%g
14740 s%@BUILD_TCL@%$BUILD_TCL%g
14741 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
14742 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
14743 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
14744 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
14745 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
14746 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
14747 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
14748 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
14749 s%@LDAP_LIBS@%$LDAP_LIBS%g
14750 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
14751 s%@LDIF_LIBS@%$LDIF_LIBS%g
14752 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
14753 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
14754 s%@LDBM_LIBS@%$LDBM_LIBS%g
14755 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
14756 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
14757 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
14758 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
14759 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
14760 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
14761 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
14762 s%@KRB_LIBS@%$KRB_LIBS%g
14763 s%@READLINE_LIBS@%$READLINE_LIBS%g
14764 s%@SASL_LIBS@%$SASL_LIBS%g
14765 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
14766 s%@TLS_LIBS@%$TLS_LIBS%g
14767 s%@MODULES_LIBS@%$MODULES_LIBS%g
14772 cat >> $CONFIG_STATUS <<\EOF
14774 # Split the substitutions into bite-sized pieces for seds with
14775 # small command number limits, like on Digital OSF/1 and HP-UX.
14776 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14777 ac_file=1 # Number of current file.
14778 ac_beg=1 # First line for current file.
14779 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14782 while $ac_more_lines; do
14783 if test $ac_beg -gt 1; then
14784 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14786 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14788 if test ! -s conftest.s$ac_file; then
14789 ac_more_lines=false
14790 rm -f conftest.s$ac_file
14792 if test -z "$ac_sed_cmds"; then
14793 ac_sed_cmds="sed -f conftest.s$ac_file"
14795 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14797 ac_file=`expr $ac_file + 1`
14799 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14802 if test -z "$ac_sed_cmds"; then
14807 cat >> $CONFIG_STATUS <<EOF
14809 CONFIG_FILES=\${CONFIG_FILES-"\
14810 Makefile:build/top.mk:Makefile.in:build/dir.mk \
14811 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
14812 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
14813 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
14814 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
14815 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
14816 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
14817 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
14818 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
14819 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
14820 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
14821 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
14822 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
14823 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
14824 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
14825 include/Makefile:build/top.mk:include/Makefile.in \
14826 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
14827 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
14828 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
14829 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
14830 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
14831 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
14832 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
14833 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
14834 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
14835 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
14836 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
14837 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
14838 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
14839 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
14840 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
14841 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
14842 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
14843 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
14844 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
14845 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
14846 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
14847 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
14848 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
14849 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
14850 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
14851 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
14854 cat >> $CONFIG_STATUS <<\EOF
14855 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14856 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14858 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14859 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14860 *) ac_file_in="${ac_file}.in" ;;
14863 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14865 # Remove last slash and all that follows it. Not all systems have dirname.
14866 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14867 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14868 # The file is in a subdirectory.
14869 test ! -d "$ac_dir" && mkdir "$ac_dir"
14870 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14871 # A "../" for each directory in $ac_dir_suffix.
14872 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14874 ac_dir_suffix= ac_dots=
14877 case "$ac_given_srcdir" in
14879 if test -z "$ac_dots"; then top_srcdir=.
14880 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14881 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14882 *) # Relative path.
14883 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14884 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14887 case "$ac_given_INSTALL" in
14888 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14889 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14892 echo creating "$ac_file"
14894 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14896 *Makefile*) ac_comsub="1i\\
14897 # $configure_input" ;;
14901 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14903 s%@configure_input@%$configure_input%g
14904 s%@srcdir@%$srcdir%g
14905 s%@top_srcdir@%$top_srcdir%g
14906 s%@INSTALL@%$INSTALL%g
14907 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14911 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14912 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14914 # ac_d sets the value in "#define NAME VALUE" lines.
14915 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14916 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14919 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14920 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14921 ac_uB='\([ ]\)%\1#\2define\3'
14924 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14925 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14926 ac_eB='$%\1#\2define\3'
14930 if test "${CONFIG_HEADERS+set}" != set; then
14932 cat >> $CONFIG_STATUS <<EOF
14933 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
14935 cat >> $CONFIG_STATUS <<\EOF
14937 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14940 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14941 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14942 *) ac_file_in="${ac_file}.in" ;;
14945 echo creating $ac_file
14947 rm -f conftest.frag conftest.in conftest.out
14948 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14949 cat $ac_file_inputs > conftest.in
14953 # Transform confdefs.h into a sed script conftest.vals that substitutes
14954 # the proper values into config.h.in to produce config.h. And first:
14955 # Protect against being on the right side of a sed subst in config.status.
14956 # Protect against being in an unquoted here document in config.status.
14957 rm -f conftest.vals
14958 cat > conftest.hdr <<\EOF
14961 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14965 sed -n -f conftest.hdr confdefs.h > conftest.vals
14968 # This sed command replaces #undef with comments. This is necessary, for
14969 # example, in the case of _POSIX_SOURCE, which is predefined and required
14970 # on some systems where configure will not decide to define it.
14971 cat >> conftest.vals <<\EOF
14972 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14975 # Break up conftest.vals because some shells have a limit on
14976 # the size of here documents, and old seds have small limits too.
14978 rm -f conftest.tail
14981 ac_lines=`grep -c . conftest.vals`
14982 # grep -c gives empty output for an empty file on some AIX systems.
14983 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14984 # Write a limited-size here document to conftest.frag.
14985 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14986 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14988 sed -f conftest.frag conftest.in > conftest.out
14990 mv conftest.out conftest.in
14991 ' >> $CONFIG_STATUS
14992 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14993 rm -f conftest.vals
14994 mv conftest.tail conftest.vals
14996 rm -f conftest.vals
14998 cat >> $CONFIG_STATUS <<\EOF
14999 rm -f conftest.frag conftest.h
15000 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15001 cat conftest.in >> conftest.h
15003 if cmp -s $ac_file conftest.h 2>/dev/null; then
15004 echo "$ac_file is unchanged"
15007 # Remove last slash and all that follows it. Not all systems have dirname.
15008 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15009 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15010 # The file is in a subdirectory.
15011 test ! -d "$ac_dir" && mkdir "$ac_dir"
15014 mv conftest.h $ac_file
15019 cat >> $CONFIG_STATUS <<EOF
15022 cat >> $CONFIG_STATUS <<\EOF
15025 echo Please \"make depend\" to build dependencies
15029 chmod +x $CONFIG_STATUS
15030 rm -fr confdefs* $ac_clean_files
15031 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1