3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.14.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-kerberos with Kerberos support (auto)"
38 --with-readline with readline support (auto)"
40 --with-threads use threads (auto)"
42 --with-tls with TLS/SSL support (auto)"
44 --with-yielding-select with implicitly yielding select (auto)"
48 --enable-ldapd enable building ldapd (no)"
52 --enable-slapd enable building slapd (yes)"
54 --enable-aclgroups enable ACL group support (auto)"
56 --enable-cleartext enable cleartext passwords (yes)"
58 --enable-crypt enable crypt(3) passwords (auto)"
60 --enable-modules enable dynamic module support (no)"
62 --enable-phonetic enable phonetic/soundex (no)"
64 --enable-rlookups enable reverse lookups (auto)"
66 --enable-wrappers enable tcp wrapper support (no)"
68 --enable-bdb2 enable bdb2 backend (no)"
70 --with-bdb2-module module type (static)"
72 --enable-ldap enable ldap backend (no)"
74 --with-ldap-module module type (static)"
76 --enable-ldbm enable ldbm backend (yes)"
78 --with-ldbm-module module type (static)"
80 --with-ldbm-api use LDBM API (auto)"
82 --with-ldbm-type use LDBM type (auto)"
84 --enable-passwd enable passwd backend (no)"
86 --with-passwd-module module type (static)"
88 --enable-perl enable perl backend (no)"
90 --with-perl-module module type (static)"
92 --enable-shell enable shell backend (no)"
94 --with-shell-module module type (static)"
96 --enable-tcl enable tcl backend (no)"
98 --with-tcl-module module type (static)"
102 --enable-slurpd enable building slurpd (auto)"
104 Library Generation & Linking Options"
106 --enable-static build static libraries [default=yes]
107 --enable-static=PKGS only build shared libraries if the current package
108 appears as an element in the PKGS list"
110 --enable-shared build shared libraries [default=yes]
111 --enable-shared=PKGS only build shared libraries if the current package
112 appears as an element in the PKGS list"
114 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
116 # Initialize some variables set by options.
117 # The variables have the same names as the options, with
118 # dashes changed to underlines.
120 cache_file=./config.cache
129 program_transform_name=s,x,x,
137 bindir='${exec_prefix}/bin'
138 sbindir='${exec_prefix}/sbin'
139 libexecdir='${exec_prefix}/libexec'
140 datadir='${prefix}/share'
141 sysconfdir='${prefix}/etc'
142 sharedstatedir='${prefix}/com'
143 localstatedir='${prefix}/var'
144 libdir='${exec_prefix}/lib'
145 includedir='${prefix}/include'
146 oldincludedir='/usr/include'
147 infodir='${prefix}/info'
148 mandir='${prefix}/man'
150 # Initialize some other variables.
153 SHELL=${CONFIG_SHELL-/bin/sh}
154 # Maximum number of lines to put in a shell here document.
161 # If the previous option needs an argument, assign it.
162 if test -n "$ac_prev"; then
163 eval "$ac_prev=\$ac_option"
169 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
173 # Accept the important Cygnus configure options, so we can diagnose typos.
177 -bindir | --bindir | --bindi | --bind | --bin | --bi)
179 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
180 bindir="$ac_optarg" ;;
182 -build | --build | --buil | --bui | --bu)
184 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
185 build="$ac_optarg" ;;
187 -cache-file | --cache-file | --cache-fil | --cache-fi \
188 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
189 ac_prev=cache_file ;;
190 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
191 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
192 cache_file="$ac_optarg" ;;
194 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
196 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
198 datadir="$ac_optarg" ;;
200 -disable-* | --disable-*)
201 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
202 # Reject names that are not valid shell variable names.
203 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
204 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
206 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
207 eval "enable_${ac_feature}=no" ;;
209 -enable-* | --enable-*)
210 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
211 # Reject names that are not valid shell variable names.
212 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
213 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
215 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
220 eval "enable_${ac_feature}='$ac_optarg'" ;;
222 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
223 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
224 | --exec | --exe | --ex)
225 ac_prev=exec_prefix ;;
226 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
227 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
228 | --exec=* | --exe=* | --ex=*)
229 exec_prefix="$ac_optarg" ;;
231 -gas | --gas | --ga | --g)
232 # Obsolete; use --with-gas.
235 -help | --help | --hel | --he)
236 # Omit some internal or obsolete options to make the list less imposing.
237 # This message is too long to be a string in the A/UX 3.1 sh.
239 Usage: configure [options] [host]
240 Options: [defaults in brackets after descriptions]
242 --cache-file=FILE cache test results in FILE
243 --help print this message
244 --no-create do not create output files
245 --quiet, --silent do not print \`checking...' messages
246 --version print the version of autoconf that created configure
247 Directory and file names:
248 --prefix=PREFIX install architecture-independent files in PREFIX
250 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
252 --bindir=DIR user executables in DIR [EPREFIX/bin]
253 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
254 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
255 --datadir=DIR read-only architecture-independent data in DIR
257 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
258 --sharedstatedir=DIR modifiable architecture-independent data in DIR
260 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
261 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
262 --includedir=DIR C header files in DIR [PREFIX/include]
263 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
264 --infodir=DIR info documentation in DIR [PREFIX/info]
265 --mandir=DIR man documentation in DIR [PREFIX/man]
266 --srcdir=DIR find the sources in DIR [configure dir or ..]
267 --program-prefix=PREFIX prepend PREFIX to installed program names
268 --program-suffix=SUFFIX append SUFFIX to installed program names
269 --program-transform-name=PROGRAM
270 run sed PROGRAM on installed program names
274 --build=BUILD configure for building on BUILD [BUILD=HOST]
275 --host=HOST configure for HOST [guessed]
276 --target=TARGET configure for TARGET [TARGET=HOST]
277 Features and packages:
278 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
279 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
280 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
281 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
282 --x-includes=DIR X include files are in DIR
283 --x-libraries=DIR X library files are in DIR
285 if test -n "$ac_help"; then
286 echo "--enable and --with options recognized:$ac_help"
290 -host | --host | --hos | --ho)
292 -host=* | --host=* | --hos=* | --ho=*)
295 -includedir | --includedir | --includedi | --included | --include \
296 | --includ | --inclu | --incl | --inc)
297 ac_prev=includedir ;;
298 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
299 | --includ=* | --inclu=* | --incl=* | --inc=*)
300 includedir="$ac_optarg" ;;
302 -infodir | --infodir | --infodi | --infod | --info | --inf)
304 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
305 infodir="$ac_optarg" ;;
307 -libdir | --libdir | --libdi | --libd)
309 -libdir=* | --libdir=* | --libdi=* | --libd=*)
310 libdir="$ac_optarg" ;;
312 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
313 | --libexe | --libex | --libe)
314 ac_prev=libexecdir ;;
315 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
316 | --libexe=* | --libex=* | --libe=*)
317 libexecdir="$ac_optarg" ;;
319 -localstatedir | --localstatedir | --localstatedi | --localstated \
320 | --localstate | --localstat | --localsta | --localst \
321 | --locals | --local | --loca | --loc | --lo)
322 ac_prev=localstatedir ;;
323 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
324 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
325 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
326 localstatedir="$ac_optarg" ;;
328 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
330 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
331 mandir="$ac_optarg" ;;
334 # Obsolete; use --without-fp.
337 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
341 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
342 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
345 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
346 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
347 | --oldin | --oldi | --old | --ol | --o)
348 ac_prev=oldincludedir ;;
349 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
350 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
351 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
352 oldincludedir="$ac_optarg" ;;
354 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
356 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
357 prefix="$ac_optarg" ;;
359 -program-prefix | --program-prefix | --program-prefi | --program-pref \
360 | --program-pre | --program-pr | --program-p)
361 ac_prev=program_prefix ;;
362 -program-prefix=* | --program-prefix=* | --program-prefi=* \
363 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
364 program_prefix="$ac_optarg" ;;
366 -program-suffix | --program-suffix | --program-suffi | --program-suff \
367 | --program-suf | --program-su | --program-s)
368 ac_prev=program_suffix ;;
369 -program-suffix=* | --program-suffix=* | --program-suffi=* \
370 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
371 program_suffix="$ac_optarg" ;;
373 -program-transform-name | --program-transform-name \
374 | --program-transform-nam | --program-transform-na \
375 | --program-transform-n | --program-transform- \
376 | --program-transform | --program-transfor \
377 | --program-transfo | --program-transf \
378 | --program-trans | --program-tran \
379 | --progr-tra | --program-tr | --program-t)
380 ac_prev=program_transform_name ;;
381 -program-transform-name=* | --program-transform-name=* \
382 | --program-transform-nam=* | --program-transform-na=* \
383 | --program-transform-n=* | --program-transform-=* \
384 | --program-transform=* | --program-transfor=* \
385 | --program-transfo=* | --program-transf=* \
386 | --program-trans=* | --program-tran=* \
387 | --progr-tra=* | --program-tr=* | --program-t=*)
388 program_transform_name="$ac_optarg" ;;
390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
391 | -silent | --silent | --silen | --sile | --sil)
394 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
396 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
398 sbindir="$ac_optarg" ;;
400 -sharedstatedir | --sharedstatedir | --sharedstatedi \
401 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
402 | --sharedst | --shareds | --shared | --share | --shar \
404 ac_prev=sharedstatedir ;;
405 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
406 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
407 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
409 sharedstatedir="$ac_optarg" ;;
411 -site | --site | --sit)
413 -site=* | --site=* | --sit=*)
416 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
418 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
419 srcdir="$ac_optarg" ;;
421 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
422 | --syscon | --sysco | --sysc | --sys | --sy)
423 ac_prev=sysconfdir ;;
424 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
425 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
426 sysconfdir="$ac_optarg" ;;
428 -target | --target | --targe | --targ | --tar | --ta | --t)
430 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
431 target="$ac_optarg" ;;
433 -v | -verbose | --verbose | --verbos | --verbo | --verb)
436 -version | --version | --versio | --versi | --vers)
437 echo "configure generated by autoconf version 2.14.1"
441 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
442 # Reject names that are not valid shell variable names.
443 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
444 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
446 ac_package=`echo $ac_package| sed 's/-/_/g'`
451 eval "with_${ac_package}='$ac_optarg'" ;;
453 -without-* | --without-*)
454 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
455 # Reject names that are not valid shell variable names.
456 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
457 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
459 ac_package=`echo $ac_package| sed 's/-/_/g'`
460 eval "with_${ac_package}=no" ;;
463 # Obsolete; use --with-x.
466 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
467 | --x-incl | --x-inc | --x-in | --x-i)
468 ac_prev=x_includes ;;
469 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
470 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
471 x_includes="$ac_optarg" ;;
473 -x-libraries | --x-libraries | --x-librarie | --x-librari \
474 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
475 ac_prev=x_libraries ;;
476 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
477 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
478 x_libraries="$ac_optarg" ;;
480 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
484 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
485 echo "configure: warning: $ac_option: invalid host type" 1>&2
487 if test "x$nonopt" != xNONE; then
488 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
496 if test -n "$ac_prev"; then
497 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
500 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
502 # File descriptor usage:
505 # 2 errors and warnings
506 # 3 some systems may open it to /dev/tty
507 # 4 used on the Kubota Titan
508 # 6 checking for... messages and results
509 # 5 compiler messages saved in config.log
510 if test "$silent" = yes; then
518 This file contains any messages produced by compilers while
519 running configure, to aid debugging if configure makes a mistake.
522 # Strip out --no-create and --no-recursion so they do not pile up.
523 # Also quote any args containing shell metacharacters.
528 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
529 | --no-cr | --no-c) ;;
530 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
531 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
532 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
533 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
534 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
539 # Only set these to C if already set. These must not be set unconditionally
540 # because not all systems understand e.g. LANG=C (notably SCO).
541 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
542 # Non-C LC_CTYPE values break the ctype check.
543 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
544 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
545 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
546 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
548 # confdefs.h avoids OS command line length limits that DEFS can exceed.
549 rm -rf conftest* confdefs.h
550 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
553 # A filename unique to this package, relative to the directory that
554 # configure is in, which we can look for to find out if srcdir is correct.
555 ac_unique_file=build/version
557 # Find the source files, if location was not specified.
558 if test -z "$srcdir"; then
559 ac_srcdir_defaulted=yes
560 # Try the directory containing this script, then its parent.
562 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
563 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
565 if test ! -r $srcdir/$ac_unique_file; then
569 ac_srcdir_defaulted=no
571 if test ! -r $srcdir/$ac_unique_file; then
572 if test "$ac_srcdir_defaulted" = yes; then
573 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
575 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
578 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
580 # Prefer explicitly selected file to automatically selected ones.
581 if test -z "$CONFIG_SITE"; then
582 if test "x$prefix" != xNONE; then
583 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
585 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
588 for ac_site_file in $CONFIG_SITE; do
589 if test -r "$ac_site_file"; then
590 echo "loading site script $ac_site_file"
597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
598 ac_cpp='$CPP $CPPFLAGS'
599 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
600 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
601 cross_compiling=$ac_cv_prog_cc_cross
605 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
606 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
607 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
614 ac_n= ac_c='\c' ac_t=
618 for ac_dir in build $srcdir/build; do
619 if test -f $ac_dir/install-sh; then
621 ac_install_sh="$ac_aux_dir/install-sh -c"
623 elif test -f $ac_dir/install.sh; then
625 ac_install_sh="$ac_aux_dir/install.sh -c"
629 if test -z "$ac_aux_dir"; then
630 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
632 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
633 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
634 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
636 OL_VERSION=`cat $ac_aux_dir/version`
637 if test -z "$OL_VERSION"; then
638 { echo "configure: error: could not determine version" 1>&2; exit 1; }
642 echo $ac_n "checking host system type""... $ac_c" 1>&6
643 echo "configure:644: checking host system type" >&5
644 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
646 # Make sure we can run config.sub.
647 if $ac_config_sub sun4 >/dev/null 2>&1; then :
648 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
651 ac_cv_host_alias=$host
652 case "$ac_cv_host_alias" in
656 if ac_cv_host_alias=`$ac_config_guess`; then :
657 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
659 *) ac_cv_host_alias=$nonopt ;;
663 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
664 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
668 echo $ac_n "(cached) $ac_c" 1>&6
671 echo "$ac_t""$ac_cv_host" 1>&6
674 host_alias=$ac_cv_host_alias
675 host_cpu=$ac_cv_host_cpu
676 host_vendor=$ac_cv_host_vendor
677 host_os=$ac_cv_host_os
683 echo $ac_n "checking target system type""... $ac_c" 1>&6
684 echo "configure:685: checking target system type" >&5
685 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
687 # Make sure we can run config.sub.
688 if $ac_config_sub sun4 >/dev/null 2>&1; then :
689 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
692 ac_cv_target_alias=$target
693 case "$ac_cv_target_alias" in
697 ac_cv_target_alias=$host_alias ;;
699 *) ac_cv_target_alias=$nonopt ;;
703 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
704 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
705 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
706 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
708 echo $ac_n "(cached) $ac_c" 1>&6
711 echo "$ac_t""$ac_cv_target" 1>&6
714 target_alias=$ac_cv_target_alias
715 target_cpu=$ac_cv_target_cpu
716 target_vendor=$ac_cv_target_vendor
717 target_os=$ac_cv_target_os
723 echo $ac_n "checking build system type""... $ac_c" 1>&6
724 echo "configure:725: checking build system type" >&5
725 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
727 # Make sure we can run config.sub.
728 if $ac_config_sub sun4 >/dev/null 2>&1; then :
729 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
732 ac_cv_build_alias=$build
733 case "$ac_cv_build_alias" in
737 ac_cv_build_alias=$host_alias ;;
739 *) ac_cv_build_alias=$nonopt ;;
743 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
744 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
745 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
746 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo $ac_n "(cached) $ac_c" 1>&6
751 echo "$ac_t""$ac_cv_build" 1>&6
754 build_alias=$ac_cv_build_alias
755 build_cpu=$ac_cv_build_cpu
756 build_vendor=$ac_cv_build_vendor
757 build_os=$ac_cv_build_os
763 # Do some error checking and defaulting for the host and target type.
765 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
768 # 1. You are not allowed to specify --host, --target, and nonopt at the
770 # 2. Host defaults to nonopt.
771 # 3. If nonopt is not specified, then host defaults to the current host,
772 # as determined by config.guess.
773 # 4. Target and build default to nonopt.
774 # 5. If nonopt is not specified, then target and build default to host.
776 # The aliases save the names the user supplied, while $host etc.
777 # will get canonicalized.
778 case $host---$target---$nonopt in
779 NONE---*---* | *---NONE---* | *---*---NONE) ;;
780 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
783 test "$host_alias" != "$target_alias" &&
784 test "$program_prefix$program_suffix$program_transform_name" = \
786 program_prefix=${target_alias}-
789 # Find a good install program. We prefer a C program (faster),
790 # so one script is as good as another. But avoid the broken or
791 # incompatible versions:
792 # SysV /etc/install, /usr/sbin/install
793 # SunOS /usr/etc/install
796 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
797 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
798 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
799 # ./install, which can be erroneously created by make from ./install.sh.
800 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
801 echo "configure:802: checking for a BSD compatible install" >&5
802 if test -z "$INSTALL"; then
803 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
807 for ac_dir in $PATH; do
808 # Account for people who put trailing slashes in PATH elements.
810 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
812 # OSF1 and SCO ODT 3.0 have their own names for install.
813 # Don't use installbsd from OSF since it installs stuff as root
815 for ac_prog in ginstall scoinst install; do
816 if test -f $ac_dir/$ac_prog; then
817 if test $ac_prog = install &&
818 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
819 # AIX install. It has an incompatible calling convention.
821 elif test $ac_prog = install &&
822 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
823 # program-specific install script used by HP pwplus--don't use.
826 ac_cv_path_install="$ac_dir/$ac_prog -c"
837 if test "${ac_cv_path_install+set}" = set; then
838 INSTALL="$ac_cv_path_install"
840 # As a last resort, use the slow shell script. We don't cache a
841 # path for INSTALL within a source directory, because that will
842 # break other packages using the cache if that directory is
843 # removed, or if the path is relative.
844 INSTALL="$ac_install_sh"
847 echo "$ac_t""$INSTALL" 1>&6
849 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
850 # It thinks the first close brace ends the variable substitution.
851 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
853 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
855 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
857 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
858 echo "configure:859: checking whether build environment is sane" >&5
861 echo timestamp > conftestfile
862 # Do `set' in a subshell so we don't clobber the current shell's
863 # arguments. Must try -L first in case configure is actually a
864 # symlink; some systems play weird games with the mod time of symlinks
865 # (eg FreeBSD returns the mod time of the symlink's containing
868 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
869 if test "$*" = "X"; then
871 set X `ls -t $srcdir/configure conftestfile`
873 if test "$*" != "X $srcdir/configure conftestfile" \
874 && test "$*" != "X conftestfile $srcdir/configure"; then
876 # If neither matched, then we have a broken ls. This can happen
877 # if, for instance, CONFIG_SHELL is bash and it inherits a
878 # broken ls alias from the environment. This has actually
879 # happened. Such a system could not be considered "sane".
880 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
881 alias in your environment" 1>&2; exit 1; }
884 test "$2" = conftestfile
890 { echo "configure: error: newly created file is older than distributed files!
891 Check your system clock" 1>&2; exit 1; }
894 echo "$ac_t""yes" 1>&6
895 if test "$program_transform_name" = s,x,x,; then
896 program_transform_name=
898 # Double any \ or $. echo might interpret backslashes.
899 cat <<\EOF_SED > conftestsed
900 s,\\,\\\\,g; s,\$,$$,g
902 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
905 test "$program_prefix" != NONE &&
906 program_transform_name="s,^,${program_prefix},;$program_transform_name"
907 # Use a double $ so make ignores it.
908 test "$program_suffix" != NONE &&
909 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
911 # sed with no file args requires a program.
912 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
914 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
915 echo "configure:916: checking whether ${MAKE-make} sets \${MAKE}" >&5
916 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
917 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
920 cat > conftestmake <<\EOF
922 @echo 'ac_maketemp="${MAKE}"'
924 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
925 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
926 if test -n "$ac_maketemp"; then
927 eval ac_cv_prog_make_${ac_make}_set=yes
929 eval ac_cv_prog_make_${ac_make}_set=no
933 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
934 echo "$ac_t""yes" 1>&6
937 echo "$ac_t""no" 1>&6
938 SET_MAKE="MAKE=${MAKE-make}"
946 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
947 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
952 missing_dir=`cd $ac_aux_dir && pwd`
953 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
954 echo "configure:955: checking for working aclocal" >&5
955 # Run test in a subshell; some versions of sh will print an error if
956 # an executable is not found, even if stderr is redirected.
957 # Redirect stdin to placate older versions of autoconf. Sigh.
958 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
960 echo "$ac_t""found" 1>&6
962 ACLOCAL="$missing_dir/missing aclocal"
963 echo "$ac_t""missing" 1>&6
966 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
967 echo "configure:968: checking for working autoconf" >&5
968 # Run test in a subshell; some versions of sh will print an error if
969 # an executable is not found, even if stderr is redirected.
970 # Redirect stdin to placate older versions of autoconf. Sigh.
971 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
973 echo "$ac_t""found" 1>&6
975 AUTOCONF="$missing_dir/missing autoconf"
976 echo "$ac_t""missing" 1>&6
979 echo $ac_n "checking for working automake""... $ac_c" 1>&6
980 echo "configure:981: checking for working automake" >&5
981 # Run test in a subshell; some versions of sh will print an error if
982 # an executable is not found, even if stderr is redirected.
983 # Redirect stdin to placate older versions of autoconf. Sigh.
984 if (automake --version) < /dev/null > /dev/null 2>&1; then
986 echo "$ac_t""found" 1>&6
988 AUTOMAKE="$missing_dir/missing automake"
989 echo "$ac_t""missing" 1>&6
992 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
993 echo "configure:994: checking for working autoheader" >&5
994 # Run test in a subshell; some versions of sh will print an error if
995 # an executable is not found, even if stderr is redirected.
996 # Redirect stdin to placate older versions of autoconf. Sigh.
997 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
998 AUTOHEADER=autoheader
999 echo "$ac_t""found" 1>&6
1001 AUTOHEADER="$missing_dir/missing autoheader"
1002 echo "$ac_t""missing" 1>&6
1005 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1006 echo "configure:1007: checking for working makeinfo" >&5
1007 # Run test in a subshell; some versions of sh will print an error if
1008 # an executable is not found, even if stderr is redirected.
1009 # Redirect stdin to placate older versions of autoconf. Sigh.
1010 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1012 echo "$ac_t""found" 1>&6
1014 MAKEINFO="$missing_dir/missing makeinfo"
1015 echo "$ac_t""missing" 1>&6
1020 cat >> confdefs.h <<EOF
1021 #define OPENLDAP_PACKAGE "$PACKAGE"
1024 cat >> confdefs.h <<EOF
1025 #define OPENLDAP_VERSION "$VERSION"
1031 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1032 echo "configure:1033: checking configure arguments" >&5
1037 cat >> confdefs.h <<\EOF
1038 #define HAVE_MKVERSION 1
1042 ldap_subdir="openldap"
1044 # Check whether --with-subdir or --without-subdir was given.
1045 if test "${with_subdir+set}" = set; then
1046 withval="$with_subdir"
1048 if test "$withval" = "no"; then
1050 elif test "$withval" != "yes"; then
1051 ldap_subdir="$withval"
1057 # OpenLDAP --enable-debug
1058 # Check whether --enable-debug or --disable-debug was given.
1059 if test "${enable_debug+set}" = set; then
1060 enableval="$enable_debug"
1063 for ol_val in auto yes no ; do
1064 if test "$enableval" = "$ol_val" ; then
1068 if test "$ol_arg" = "invalid" ; then
1069 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1071 ol_enable_debug="$ol_arg"
1074 ol_enable_debug="yes"
1076 # end --enable-debug
1077 # OpenLDAP --enable-syslog
1078 # Check whether --enable-syslog or --disable-syslog was given.
1079 if test "${enable_syslog+set}" = set; then
1080 enableval="$enable_syslog"
1083 for ol_val in auto yes no ; do
1084 if test "$enableval" = "$ol_val" ; then
1088 if test "$ol_arg" = "invalid" ; then
1089 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1091 ol_enable_syslog="$ol_arg"
1094 ol_enable_syslog="auto"
1096 # end --enable-syslog
1097 # OpenLDAP --enable-proctitle
1098 # Check whether --enable-proctitle or --disable-proctitle was given.
1099 if test "${enable_proctitle+set}" = set; then
1100 enableval="$enable_proctitle"
1103 for ol_val in auto yes no ; do
1104 if test "$enableval" = "$ol_val" ; then
1108 if test "$ol_arg" = "invalid" ; then
1109 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1111 ol_enable_proctitle="$ol_arg"
1114 ol_enable_proctitle="yes"
1116 # end --enable-proctitle
1117 # OpenLDAP --enable-cache
1118 # Check whether --enable-cache or --disable-cache was given.
1119 if test "${enable_cache+set}" = set; then
1120 enableval="$enable_cache"
1123 for ol_val in auto yes no ; do
1124 if test "$enableval" = "$ol_val" ; then
1128 if test "$ol_arg" = "invalid" ; then
1129 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1131 ol_enable_cache="$ol_arg"
1134 ol_enable_cache="yes"
1136 # end --enable-cache
1137 # OpenLDAP --enable-dns
1138 # Check whether --enable-dns or --disable-dns was given.
1139 if test "${enable_dns+set}" = set; then
1140 enableval="$enable_dns"
1143 for ol_val in auto yes no ; do
1144 if test "$enableval" = "$ol_val" ; then
1148 if test "$ol_arg" = "invalid" ; then
1149 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1151 ol_enable_dns="$ol_arg"
1157 # OpenLDAP --enable-referrals
1158 # Check whether --enable-referrals or --disable-referrals was given.
1159 if test "${enable_referrals+set}" = set; then
1160 enableval="$enable_referrals"
1163 for ol_val in auto yes no ; do
1164 if test "$enableval" = "$ol_val" ; then
1168 if test "$ol_arg" = "invalid" ; then
1169 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1171 ol_enable_referrals="$ol_arg"
1174 ol_enable_referrals="yes"
1176 # end --enable-referrals
1177 # OpenLDAP --enable-cldap
1178 # Check whether --enable-cldap or --disable-cldap was given.
1179 if test "${enable_cldap+set}" = set; then
1180 enableval="$enable_cldap"
1183 for ol_val in auto yes no ; do
1184 if test "$enableval" = "$ol_val" ; then
1188 if test "$ol_arg" = "invalid" ; then
1189 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1191 ol_enable_cldap="$ol_arg"
1194 ol_enable_cldap="no"
1196 # end --enable-cldap
1197 # OpenLDAP --enable-x_compile
1198 # Check whether --enable-x_compile or --disable-x_compile was given.
1199 if test "${enable_x_compile+set}" = set; then
1200 enableval="$enable_x_compile"
1203 for ol_val in yes no ; do
1204 if test "$enableval" = "$ol_val" ; then
1208 if test "$ol_arg" = "invalid" ; then
1209 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1211 ol_enable_x_compile="$ol_arg"
1214 ol_enable_x_compile="no"
1216 # end --enable-x_compile
1218 # OpenLDAP --enable-dmalloc
1219 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1220 if test "${enable_dmalloc+set}" = set; then
1221 enableval="$enable_dmalloc"
1224 for ol_val in auto yes no ; do
1225 if test "$enableval" = "$ol_val" ; then
1229 if test "$ol_arg" = "invalid" ; then
1230 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1232 ol_enable_dmalloc="$ol_arg"
1235 ol_enable_dmalloc="no"
1237 # end --enable-dmalloc
1239 # OpenLDAP --with-kerberos
1240 # Check whether --with-kerberos or --without-kerberos was given.
1241 if test "${with_kerberos+set}" = set; then
1242 withval="$with_kerberos"
1245 for ol_val in auto k5 k4 afs yes no ; do
1246 if test "$withval" = "$ol_val" ; then
1250 if test "$ol_arg" = "invalid" ; then
1251 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1253 ol_with_kerberos="$ol_arg"
1256 ol_with_kerberos="auto"
1258 # end --with-kerberos
1260 # OpenLDAP --with-readline
1261 # Check whether --with-readline or --without-readline was given.
1262 if test "${with_readline+set}" = set; then
1263 withval="$with_readline"
1266 for ol_val in auto yes no ; do
1267 if test "$withval" = "$ol_val" ; then
1271 if test "$ol_arg" = "invalid" ; then
1272 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1274 ol_with_readline="$ol_arg"
1277 ol_with_readline="auto"
1279 # end --with-readline
1281 # OpenLDAP --with-threads
1282 # Check whether --with-threads or --without-threads was given.
1283 if test "${with_threads+set}" = set; then
1284 withval="$with_threads"
1287 for ol_val in auto posix mach lwp yes no manual ; do
1288 if test "$withval" = "$ol_val" ; then
1292 if test "$ol_arg" = "invalid" ; then
1293 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1295 ol_with_threads="$ol_arg"
1298 ol_with_threads="auto"
1300 # end --with-threads
1302 # OpenLDAP --with-tls
1303 # Check whether --with-tls or --without-tls was given.
1304 if test "${with_tls+set}" = set; then
1308 for ol_val in auto ssleay openssl yes no ; do
1309 if test "$withval" = "$ol_val" ; then
1313 if test "$ol_arg" = "invalid" ; then
1314 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1316 ol_with_tls="$ol_arg"
1323 # OpenLDAP --with-yielding_select
1324 # Check whether --with-yielding_select or --without-yielding_select was given.
1325 if test "${with_yielding_select+set}" = set; then
1326 withval="$with_yielding_select"
1329 for ol_val in auto yes no manual ; do
1330 if test "$withval" = "$ol_val" ; then
1334 if test "$ol_arg" = "invalid" ; then
1335 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1337 ol_with_yielding_select="$ol_arg"
1340 ol_with_yielding_select="auto"
1342 # end --with-yielding_select
1346 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1347 if test "${with_xxldapdoptions+set}" = set; then
1348 withval="$with_xxldapdoptions"
1352 # OpenLDAP --enable-ldapd
1353 # Check whether --enable-ldapd or --disable-ldapd was given.
1354 if test "${enable_ldapd+set}" = set; then
1355 enableval="$enable_ldapd"
1358 for ol_val in auto yes no ; do
1359 if test "$enableval" = "$ol_val" ; then
1363 if test "$ol_arg" = "invalid" ; then
1364 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1366 ol_enable_ldapd="$ol_arg"
1369 ol_enable_ldapd="no"
1371 # end --enable-ldapd
1373 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1374 if test "${with_xxslapdoptions+set}" = set; then
1375 withval="$with_xxslapdoptions"
1379 # OpenLDAP --enable-slapd
1380 # Check whether --enable-slapd or --disable-slapd was given.
1381 if test "${enable_slapd+set}" = set; then
1382 enableval="$enable_slapd"
1385 for ol_val in auto yes no ; do
1386 if test "$enableval" = "$ol_val" ; then
1390 if test "$ol_arg" = "invalid" ; then
1391 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1393 ol_enable_slapd="$ol_arg"
1396 ol_enable_slapd="yes"
1398 # end --enable-slapd
1399 # OpenLDAP --enable-aclgroups
1400 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1401 if test "${enable_aclgroups+set}" = set; then
1402 enableval="$enable_aclgroups"
1405 for ol_val in auto yes no ; do
1406 if test "$enableval" = "$ol_val" ; then
1410 if test "$ol_arg" = "invalid" ; then
1411 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1413 ol_enable_aclgroups="$ol_arg"
1416 ol_enable_aclgroups="auto"
1418 # end --enable-aclgroups
1419 # OpenLDAP --enable-cleartext
1420 # Check whether --enable-cleartext or --disable-cleartext was given.
1421 if test "${enable_cleartext+set}" = set; then
1422 enableval="$enable_cleartext"
1425 for ol_val in auto yes no ; do
1426 if test "$enableval" = "$ol_val" ; then
1430 if test "$ol_arg" = "invalid" ; then
1431 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1433 ol_enable_cleartext="$ol_arg"
1436 ol_enable_cleartext="yes"
1438 # end --enable-cleartext
1439 # OpenLDAP --enable-crypt
1440 # Check whether --enable-crypt or --disable-crypt was given.
1441 if test "${enable_crypt+set}" = set; then
1442 enableval="$enable_crypt"
1445 for ol_val in auto yes no ; do
1446 if test "$enableval" = "$ol_val" ; then
1450 if test "$ol_arg" = "invalid" ; then
1451 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1453 ol_enable_crypt="$ol_arg"
1456 ol_enable_crypt="auto"
1458 # end --enable-crypt
1459 # OpenLDAP --enable-modules
1460 # Check whether --enable-modules or --disable-modules was given.
1461 if test "${enable_modules+set}" = set; then
1462 enableval="$enable_modules"
1465 for ol_val in auto yes no ; do
1466 if test "$enableval" = "$ol_val" ; then
1470 if test "$ol_arg" = "invalid" ; then
1471 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1473 ol_enable_modules="$ol_arg"
1476 ol_enable_modules="no"
1478 # end --enable-modules
1479 # OpenLDAP --enable-phonetic
1480 # Check whether --enable-phonetic or --disable-phonetic was given.
1481 if test "${enable_phonetic+set}" = set; then
1482 enableval="$enable_phonetic"
1485 for ol_val in auto yes no ; do
1486 if test "$enableval" = "$ol_val" ; then
1490 if test "$ol_arg" = "invalid" ; then
1491 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1493 ol_enable_phonetic="$ol_arg"
1496 ol_enable_phonetic="no"
1498 # end --enable-phonetic
1499 # OpenLDAP --enable-rlookups
1500 # Check whether --enable-rlookups or --disable-rlookups was given.
1501 if test "${enable_rlookups+set}" = set; then
1502 enableval="$enable_rlookups"
1505 for ol_val in auto yes no ; do
1506 if test "$enableval" = "$ol_val" ; then
1510 if test "$ol_arg" = "invalid" ; then
1511 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1513 ol_enable_rlookups="$ol_arg"
1516 ol_enable_rlookups="auto"
1518 # end --enable-rlookups
1519 # OpenLDAP --enable-wrappers
1520 # Check whether --enable-wrappers or --disable-wrappers was given.
1521 if test "${enable_wrappers+set}" = set; then
1522 enableval="$enable_wrappers"
1525 for ol_val in auto yes no ; do
1526 if test "$enableval" = "$ol_val" ; then
1530 if test "$ol_arg" = "invalid" ; then
1531 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1533 ol_enable_wrappers="$ol_arg"
1536 ol_enable_wrappers="no"
1538 # end --enable-wrappers
1540 # OpenLDAP --enable-bdb2
1541 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1542 if test "${enable_bdb2+set}" = set; then
1543 enableval="$enable_bdb2"
1546 for ol_val in auto yes no ; do
1547 if test "$enableval" = "$ol_val" ; then
1551 if test "$ol_arg" = "invalid" ; then
1552 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1554 ol_enable_bdb2="$ol_arg"
1560 # OpenLDAP --with-bdb2_module
1561 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1562 if test "${with_bdb2_module+set}" = set; then
1563 withval="$with_bdb2_module"
1566 for ol_val in static dynamic ; do
1567 if test "$withval" = "$ol_val" ; then
1571 if test "$ol_arg" = "invalid" ; then
1572 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1574 ol_with_bdb2_module="$ol_arg"
1577 ol_with_bdb2_module="static"
1579 # end --with-bdb2_module
1581 # OpenLDAP --enable-ldap
1582 # Check whether --enable-ldap or --disable-ldap was given.
1583 if test "${enable_ldap+set}" = set; then
1584 enableval="$enable_ldap"
1587 for ol_val in auto yes no ; do
1588 if test "$enableval" = "$ol_val" ; then
1592 if test "$ol_arg" = "invalid" ; then
1593 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1595 ol_enable_ldap="$ol_arg"
1601 # OpenLDAP --with-ldap_module
1602 # Check whether --with-ldap_module or --without-ldap_module was given.
1603 if test "${with_ldap_module+set}" = set; then
1604 withval="$with_ldap_module"
1607 for ol_val in static dynamic ; do
1608 if test "$withval" = "$ol_val" ; then
1612 if test "$ol_arg" = "invalid" ; then
1613 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1615 ol_with_ldap_module="$ol_arg"
1618 ol_with_ldap_module="static"
1620 # end --with-ldap_module
1622 # OpenLDAP --enable-ldbm
1623 # Check whether --enable-ldbm or --disable-ldbm was given.
1624 if test "${enable_ldbm+set}" = set; then
1625 enableval="$enable_ldbm"
1628 for ol_val in auto yes no ; do
1629 if test "$enableval" = "$ol_val" ; then
1633 if test "$ol_arg" = "invalid" ; then
1634 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1636 ol_enable_ldbm="$ol_arg"
1639 ol_enable_ldbm="yes"
1642 # OpenLDAP --with-ldbm_module
1643 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1644 if test "${with_ldbm_module+set}" = set; then
1645 withval="$with_ldbm_module"
1648 for ol_val in static dynamic ; do
1649 if test "$withval" = "$ol_val" ; then
1653 if test "$ol_arg" = "invalid" ; then
1654 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1656 ol_with_ldbm_module="$ol_arg"
1659 ol_with_ldbm_module="static"
1661 # end --with-ldbm_module
1663 # OpenLDAP --with-ldbm_api
1664 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1665 if test "${with_ldbm_api+set}" = set; then
1666 withval="$with_ldbm_api"
1669 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1670 if test "$withval" = "$ol_val" ; then
1674 if test "$ol_arg" = "invalid" ; then
1675 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1677 ol_with_ldbm_api="$ol_arg"
1680 ol_with_ldbm_api="auto"
1682 # end --with-ldbm_api
1684 # OpenLDAP --with-ldbm_type
1685 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1686 if test "${with_ldbm_type+set}" = set; then
1687 withval="$with_ldbm_type"
1690 for ol_val in auto btree hash ; do
1691 if test "$withval" = "$ol_val" ; then
1695 if test "$ol_arg" = "invalid" ; then
1696 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1698 ol_with_ldbm_type="$ol_arg"
1701 ol_with_ldbm_type="auto"
1703 # end --with-ldbm_type
1706 # OpenLDAP --enable-passwd
1707 # Check whether --enable-passwd or --disable-passwd was given.
1708 if test "${enable_passwd+set}" = set; then
1709 enableval="$enable_passwd"
1712 for ol_val in auto yes no ; do
1713 if test "$enableval" = "$ol_val" ; then
1717 if test "$ol_arg" = "invalid" ; then
1718 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1720 ol_enable_passwd="$ol_arg"
1723 ol_enable_passwd="no"
1725 # end --enable-passwd
1726 # OpenLDAP --with-passwd_module
1727 # Check whether --with-passwd_module or --without-passwd_module was given.
1728 if test "${with_passwd_module+set}" = set; then
1729 withval="$with_passwd_module"
1732 for ol_val in static dynamic ; do
1733 if test "$withval" = "$ol_val" ; then
1737 if test "$ol_arg" = "invalid" ; then
1738 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1740 ol_with_passwd_module="$ol_arg"
1743 ol_with_passwd_module="static"
1745 # end --with-passwd_module
1747 # OpenLDAP --enable-perl
1748 # Check whether --enable-perl or --disable-perl was given.
1749 if test "${enable_perl+set}" = set; then
1750 enableval="$enable_perl"
1753 for ol_val in auto yes no ; do
1754 if test "$enableval" = "$ol_val" ; then
1758 if test "$ol_arg" = "invalid" ; then
1759 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1761 ol_enable_perl="$ol_arg"
1767 # OpenLDAP --with-perl_module
1768 # Check whether --with-perl_module or --without-perl_module was given.
1769 if test "${with_perl_module+set}" = set; then
1770 withval="$with_perl_module"
1773 for ol_val in static dynamic ; do
1774 if test "$withval" = "$ol_val" ; then
1778 if test "$ol_arg" = "invalid" ; then
1779 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1781 ol_with_perl_module="$ol_arg"
1784 ol_with_perl_module="static"
1786 # end --with-perl_module
1788 # OpenLDAP --enable-shell
1789 # Check whether --enable-shell or --disable-shell was given.
1790 if test "${enable_shell+set}" = set; then
1791 enableval="$enable_shell"
1794 for ol_val in auto yes no ; do
1795 if test "$enableval" = "$ol_val" ; then
1799 if test "$ol_arg" = "invalid" ; then
1800 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1802 ol_enable_shell="$ol_arg"
1805 ol_enable_shell="no"
1807 # end --enable-shell
1808 # OpenLDAP --with-shell_module
1809 # Check whether --with-shell_module or --without-shell_module was given.
1810 if test "${with_shell_module+set}" = set; then
1811 withval="$with_shell_module"
1814 for ol_val in static dynamic ; do
1815 if test "$withval" = "$ol_val" ; then
1819 if test "$ol_arg" = "invalid" ; then
1820 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1822 ol_with_shell_module="$ol_arg"
1825 ol_with_shell_module="static"
1827 # end --with-shell_module
1829 # OpenLDAP --enable-tcl
1830 # Check whether --enable-tcl or --disable-tcl was given.
1831 if test "${enable_tcl+set}" = set; then
1832 enableval="$enable_tcl"
1835 for ol_val in auto yes no ; do
1836 if test "$enableval" = "$ol_val" ; then
1840 if test "$ol_arg" = "invalid" ; then
1841 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1843 ol_enable_tcl="$ol_arg"
1849 # OpenLDAP --with-tcl_module
1850 # Check whether --with-tcl_module or --without-tcl_module was given.
1851 if test "${with_tcl_module+set}" = set; then
1852 withval="$with_tcl_module"
1855 for ol_val in static dynamic ; do
1856 if test "$withval" = "$ol_val" ; then
1860 if test "$ol_arg" = "invalid" ; then
1861 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
1863 ol_with_tcl_module="$ol_arg"
1866 ol_with_tcl_module="static"
1868 # end --with-tcl_module
1871 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1872 if test "${with_xxslurpdoptions+set}" = set; then
1873 withval="$with_xxslurpdoptions"
1877 # OpenLDAP --enable-slurpd
1878 # Check whether --enable-slurpd or --disable-slurpd was given.
1879 if test "${enable_slurpd+set}" = set; then
1880 enableval="$enable_slurpd"
1883 for ol_val in auto yes no ; do
1884 if test "$enableval" = "$ol_val" ; then
1888 if test "$ol_arg" = "invalid" ; then
1889 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1891 ol_enable_slurpd="$ol_arg"
1894 ol_enable_slurpd="auto"
1896 # end --enable-slurpd
1898 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1899 if test "${with_xxliboptions+set}" = set; then
1900 withval="$with_xxliboptions"
1904 # Check whether --enable-static or --disable-static was given.
1905 if test "${enable_static+set}" = set; then
1906 enableval="$enable_static"
1907 p=${PACKAGE-default}
1908 case "$enableval" in
1909 yes) enable_static=yes ;;
1910 no) enable_static=no ;;
1913 # Look at the argument we got. We use all the common list separators.
1914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1915 for pkg in $enableval; do
1916 if test "X$pkg" = "X$p"; then
1927 # Check whether --enable-shared or --disable-shared was given.
1928 if test "${enable_shared+set}" = set; then
1929 enableval="$enable_shared"
1930 p=${PACKAGE-default}
1931 case "$enableval" in
1932 yes) enable_shared=yes ;;
1933 no) enable_shared=no ;;
1936 # Look at the argument we got. We use all the common list separators.
1937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1938 for pkg in $enableval; do
1939 if test "X$pkg" = "X$p"; then
1952 if test $ol_enable_dns = yes ; then
1953 if test $ol_enable_referrals = no ; then
1954 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1956 if test $ol_enable_referrals = auto ; then
1957 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1958 ol_enable_referrals=yes
1962 if test $ol_enable_slapd = no ; then
1963 if test $ol_enable_bdb2 = yes ; then
1964 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
1966 if test $ol_enable_ldap = yes ; then
1967 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
1969 if test $ol_enable_ldbm = yes ; then
1970 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
1972 if test $ol_enable_passwd = yes ; then
1973 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
1975 if test $ol_enable_perl = yes ; then
1976 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
1978 if test $ol_enable_shell = yes ; then
1979 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
1981 if test $ol_enable_tcl = yes ; then
1982 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
1984 if test $ol_enable_aclgroups = yes ; then
1985 echo "configure: warning: slapd disabled, ignoring --enable-aclgroups argument" 1>&2
1987 if test $ol_enable_modules = yes ; then
1988 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
1990 if test $ol_enable_wrappers = yes ; then
1991 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
1993 if test $ol_enable_phonetic = yes ; then
1994 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
1996 if test $ol_enable_rlookups = yes ; then
1997 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
1999 if test $ol_with_ldbm_api != auto ; then
2000 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2002 if test $ol_with_ldbm_type != auto ; then
2003 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2005 if test $ol_with_bdb2_module != static ; then
2006 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2008 if test $ol_with_ldap_module != static ; then
2009 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2011 if test $ol_with_ldbm_module != static ; then
2012 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2014 if test $ol_with_passwd_module != static ; then
2015 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2017 if test $ol_with_perl_module != static ; then
2018 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2020 if test $ol_with_shell_module != static ; then
2021 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2023 if test $ol_with_tcl_module != static ; then
2024 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2026 if test $ol_enable_slurpd = yes ; then
2027 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2030 # force settings to no
2039 ol_enable_aclgroups=no
2040 ol_enable_modules=no
2041 ol_enable_phonetic=no
2042 ol_enable_rlookups=no
2043 ol_enable_wrappers=no
2046 ol_with_ldbm_type=no
2048 ol_with_bdb2_module=static
2049 ol_with_ldap_module=static
2050 ol_with_ldbm_module=static
2051 ol_with_passwd_module=static
2052 ol_with_perl_module=static
2053 ol_with_shell_module=static
2054 ol_with_tcl_module=static
2058 elif test $ol_enable_ldbm = no ; then
2060 if test $ol_with_ldbm_api != auto ; then
2061 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2064 if test $ol_with_ldbm_type != auto ; then
2065 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2068 if test $ol_with_ldbm_module != static ; then
2069 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2072 if test $ol_enable_bdb2 = yes ; then
2073 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2076 if test $ol_enable_modules != yes -a \
2077 $ol_enable_ldap = no -a \
2078 $ol_enable_passwd = no -a \
2079 $ol_enable_perl = no -a \
2080 $ol_enable_shell = no -a \
2081 $ol_enable_tcl = no ; then
2082 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2086 ol_with_ldbm_type=no
2087 ol_with_ldbm_module=static
2089 elif test $ol_enable_bdb2 = yes ; then
2091 if test $ol_with_ldbm_api != auto -a \
2092 $ol_with_ldbm_api != db2 ; then
2093 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2096 ol_with_ldbm_api=db2
2100 if test $ol_enable_bdb2 != no ; then
2101 if test $ol_with_ldbm_api != auto -a \
2102 $ol_with_ldbm_api != db2 ; then
2103 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2108 if test $ol_with_ldbm_api = gdbm -a \
2109 $ol_with_ldbm_type = btree ; then
2110 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2112 if test $ol_with_ldbm_api = mdbm -a \
2113 $ol_with_ldbm_type = btree ; then
2114 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2116 if test $ol_with_ldbm_api = ndbm -a \
2117 $ol_with_ldbm_type = btree ; then
2118 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2122 if test $ol_enable_slurpd = yes ; then
2123 if test $ol_with_threads = no ; then
2124 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2128 echo "$ac_t""done" 1>&6
2153 BUILD_BDB2_DYNAMIC=no
2154 BUILD_LDAP_DYNAMIC=no
2155 BUILD_LDBM_DYNAMIC=no
2156 BUILD_PASSWD_DYNAMIC=no
2157 BUILD_PERL_DYNAMIC=no
2158 BUILD_SHELL_DYNAMIC=no
2159 BUILD_TCL_DYNAMIC=no
2161 SLAPD_MODULES_LDFLAGS=
2162 SLAPD_MODULES_CPPFLAGS=
2165 SLAPD_PERL_CPPFLAGS=
2177 *-*-aix*) if test -z "CC" ; then
2178 case "$ol_with_threads" in
2179 auto | yes | posix) ol_aix_threads=yes ;;
2185 if test $ol_aix_threads = yes ; then
2186 if test -z "${CC}" ; then
2187 for ac_prog in cc_r xlc_r cc
2189 # Extract the first word of "$ac_prog", so it can be a program name with args.
2190 set dummy $ac_prog; ac_word=$2
2191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2192 echo "configure:2193: checking for $ac_word" >&5
2193 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2196 if test -n "$CC"; then
2197 ac_cv_prog_CC="$CC" # Let the user override the test.
2199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2201 for ac_dir in $ac_dummy; do
2202 test -z "$ac_dir" && ac_dir=.
2203 if test -f $ac_dir/$ac_word; then
2204 ac_cv_prog_CC="$ac_prog"
2212 if test -n "$CC"; then
2213 echo "$ac_t""$CC" 1>&6
2215 echo "$ac_t""no" 1>&6
2218 test -n "$CC" && break
2222 if test "$CC" = cc ; then
2223 if test $ol_with_threads != auto ; then
2224 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2226 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2232 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2233 ol_with_threads=posix
2234 ol_cv_pthread_create=yes
2238 if test -z "${CC}"; then
2241 # Extract the first word of "$ac_prog", so it can be a program name with args.
2242 set dummy $ac_prog; ac_word=$2
2243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2244 echo "configure:2245: checking for $ac_word" >&5
2245 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2248 if test -n "$CC"; then
2249 ac_cv_prog_CC="$CC" # Let the user override the test.
2251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2253 for ac_dir in $ac_dummy; do
2254 test -z "$ac_dir" && ac_dir=.
2255 if test -f $ac_dir/$ac_word; then
2256 ac_cv_prog_CC="$ac_prog"
2264 if test -n "$CC"; then
2265 echo "$ac_t""$CC" 1>&6
2267 echo "$ac_t""no" 1>&6
2270 test -n "$CC" && break
2276 # Extract the first word of "ranlib", so it can be a program name with args.
2277 set dummy ranlib; ac_word=$2
2278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2279 echo "configure:2280: checking for $ac_word" >&5
2280 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 if test -n "$RANLIB"; then
2284 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2288 for ac_dir in $ac_dummy; do
2289 test -z "$ac_dir" && ac_dir=.
2290 if test -f $ac_dir/$ac_word; then
2291 ac_cv_prog_RANLIB="ranlib"
2296 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2299 RANLIB="$ac_cv_prog_RANLIB"
2300 if test -n "$RANLIB"; then
2301 echo "$ac_t""$RANLIB" 1>&6
2303 echo "$ac_t""no" 1>&6
2306 # Extract the first word of "gcc", so it can be a program name with args.
2307 set dummy gcc; ac_word=$2
2308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2309 echo "configure:2310: checking for $ac_word" >&5
2310 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2313 if test -n "$CC"; then
2314 ac_cv_prog_CC="$CC" # Let the user override the test.
2316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2318 for ac_dir in $ac_dummy; do
2319 test -z "$ac_dir" && ac_dir=.
2320 if test -f $ac_dir/$ac_word; then
2329 if test -n "$CC"; then
2330 echo "$ac_t""$CC" 1>&6
2332 echo "$ac_t""no" 1>&6
2335 if test -z "$CC"; then
2336 # Extract the first word of "cc", so it can be a program name with args.
2337 set dummy cc; ac_word=$2
2338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2339 echo "configure:2340: checking for $ac_word" >&5
2340 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 if test -n "$CC"; then
2344 ac_cv_prog_CC="$CC" # Let the user override the test.
2346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2349 for ac_dir in $ac_dummy; do
2350 test -z "$ac_dir" && ac_dir=.
2351 if test -f $ac_dir/$ac_word; then
2352 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2353 ac_prog_rejected=yes
2361 if test $ac_prog_rejected = yes; then
2362 # We found a bogon in the path, so make sure we never use it.
2363 set dummy $ac_cv_prog_CC
2365 if test $# -gt 0; then
2366 # We chose a different compiler from the bogus one.
2367 # However, it has the same basename, so the bogon will be chosen
2368 # first if we set CC to just the basename; use the full file name.
2370 set dummy "$ac_dir/$ac_word" "$@"
2378 if test -n "$CC"; then
2379 echo "$ac_t""$CC" 1>&6
2381 echo "$ac_t""no" 1>&6
2384 if test -z "$CC"; then
2385 case "`uname -s`" in
2386 *win32* | *WIN32* | *CYGWIN*)
2387 # Extract the first word of "cl", so it can be a program name with args.
2388 set dummy cl; ac_word=$2
2389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2390 echo "configure:2391: checking for $ac_word" >&5
2391 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 if test -n "$CC"; then
2395 ac_cv_prog_CC="$CC" # Let the user override the test.
2397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2399 for ac_dir in $ac_dummy; do
2400 test -z "$ac_dir" && ac_dir=.
2401 if test -f $ac_dir/$ac_word; then
2410 if test -n "$CC"; then
2411 echo "$ac_t""$CC" 1>&6
2413 echo "$ac_t""no" 1>&6
2418 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2421 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2422 echo "configure:2423: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2429 cross_compiling=$ac_cv_prog_cc_cross
2431 cat > conftest.$ac_ext << EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2438 if { (eval echo configure:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2439 ac_cv_prog_cc_works=yes
2440 # If we can't run a trivial program, we are probably using a cross compiler.
2441 if (./conftest; exit) 2>/dev/null; then
2442 ac_cv_prog_cc_cross=no
2444 ac_cv_prog_cc_cross=yes
2447 echo "configure: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2449 ac_cv_prog_cc_works=no
2453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2454 ac_cpp='$CPP $CPPFLAGS'
2455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2457 cross_compiling=$ac_cv_prog_cc_cross
2459 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2460 if test $ac_cv_prog_cc_works = no; then
2461 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2463 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2464 echo "configure:2465: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2465 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2466 cross_compiling=$ac_cv_prog_cc_cross
2468 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2469 echo "configure:2470: checking whether we are using GNU C" >&5
2470 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 cat > conftest.c <<EOF
2478 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2485 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2487 if test $ac_cv_prog_gcc = yes; then
2493 ac_test_CFLAGS="${CFLAGS+set}"
2494 ac_save_CFLAGS="$CFLAGS"
2496 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2497 echo "configure:2498: checking whether ${CC-cc} accepts -g" >&5
2498 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 echo 'void f(){}' > conftest.c
2502 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2511 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2512 if test "$ac_test_CFLAGS" = set; then
2513 CFLAGS="$ac_save_CFLAGS"
2514 elif test $ac_cv_prog_cc_g = yes; then
2515 if test "$GCC" = yes; then
2521 if test "$GCC" = yes; then
2528 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2529 if test "${with_gnu_ld+set}" = set; then
2530 withval="$with_gnu_ld"
2531 test "$withval" = no || with_gnu_ld=yes
2538 if test "$ac_cv_prog_gcc" = yes; then
2539 # Check if gcc -print-prog-name=ld gives a path.
2540 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2541 echo "configure:2542: checking for ld used by GCC" >&5
2542 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2544 # Accept absolute paths.
2546 test -z "$LD" && LD="$ac_prog"
2549 # If it fails, then pretend we aren't using GCC.
2553 # If it is relative, then search for the first ld in PATH.
2557 elif test "$with_gnu_ld" = yes; then
2558 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2559 echo "configure:2560: checking for GNU ld" >&5
2561 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2562 echo "configure:2563: checking for non-GNU ld" >&5
2564 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2567 if test -z "$LD"; then
2568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2569 for ac_dir in $PATH; do
2570 test -z "$ac_dir" && ac_dir=.
2571 if test -f "$ac_dir/$ac_prog"; then
2572 ac_cv_path_LD="$ac_dir/$ac_prog"
2573 # Check to see if the program is GNU ld. I'd rather use --version,
2574 # but apparently some GNU ld's only accept -v.
2575 # Break only if it was the GNU/non-GNU ld that we prefer.
2576 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2577 test "$with_gnu_ld" != no && break
2579 test "$with_gnu_ld" != yes && break
2585 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2590 if test -n "$LD"; then
2591 echo "$ac_t""$LD" 1>&6
2593 echo "$ac_t""no" 1>&6
2595 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2597 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2598 echo "configure:2599: checking if the linker ($LD) is GNU ld" >&5
2599 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2603 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2604 ac_cv_prog_gnu_ld=yes
2606 ac_cv_prog_gnu_ld=no
2610 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2613 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2614 echo "configure:2615: checking for BSD-compatible nm" >&5
2615 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2620 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2624 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2625 test -z "$ac_dir" && ac_dir=.
2626 if test -f $ac_dir/nm; then
2627 # Check to see if the nm accepts a BSD-compat flag.
2628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2629 # nm: unknown option "B" ignored
2630 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2631 ac_cv_path_NM="$ac_dir/nm -B"
2632 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2633 ac_cv_path_NM="$ac_dir/nm -p"
2635 ac_cv_path_NM="$ac_dir/nm"
2641 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2647 echo "$ac_t""$NM" 1>&6
2650 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2651 echo "configure:2652: checking whether ln -s works" >&5
2652 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2656 if ln -s X conftestdata 2>/dev/null
2659 ac_cv_prog_LN_S="ln -s"
2664 LN_S="$ac_cv_prog_LN_S"
2665 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2666 echo "$ac_t""yes" 1>&6
2668 echo "$ac_t""no" 1>&6
2671 # Always use our own libtool.
2672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2674 # Check for any special flags to pass to ltconfig.
2676 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2677 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2678 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2679 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2680 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2682 # Some flags need to be propagated to the compiler or linker for good
2686 # Find out which ABI we are using.
2687 echo '#line 2688 "configure"' > conftest.$ac_ext
2688 if { (eval echo configure:2689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2689 case "`/usr/bin/file conftest.o`" in
2705 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2706 CFLAGS="$CFLAGS -belf"
2710 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2711 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2712 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2713 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2714 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2715 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2718 for ac_prog in gawk mawk nawk awk
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721 set dummy $ac_prog; ac_word=$2
2722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2723 echo "configure:2724: checking for $ac_word" >&5
2724 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2727 if test -n "$AWK"; then
2728 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2732 for ac_dir in $ac_dummy; do
2733 test -z "$ac_dir" && ac_dir=.
2734 if test -f $ac_dir/$ac_word; then
2735 ac_cv_prog_AWK="$ac_prog"
2742 AWK="$ac_cv_prog_AWK"
2743 if test -n "$AWK"; then
2744 echo "$ac_t""$AWK" 1>&6
2746 echo "$ac_t""no" 1>&6
2749 test -n "$AWK" && break
2752 # test for ln hardlink support
2753 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2754 echo "configure:2755: checking whether ln works" >&5
2755 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2758 rm -f conftest.src conftest.dst
2759 echo "conftest" > conftest.src
2760 if ln conftest.src conftest.dst 2>/dev/null
2762 ol_cv_prog_LN_H="ln"
2764 ol_cv_prog_LN_H="cp"
2766 rm -f conftest.src conftest.dst
2769 LN_H="$ol_cv_prog_LN_H"
2770 if test "$ol_cv_prog_LN_H" = "ln"; then
2771 echo "$ac_t""yes" 1>&6
2773 echo "$ac_t""no" 1>&6
2776 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2777 echo "configure:2778: checking whether ln -s works" >&5
2778 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2782 if ln -s X conftestdata 2>/dev/null
2785 ac_cv_prog_LN_S="ln -s"
2790 LN_S="$ac_cv_prog_LN_S"
2791 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2792 echo "$ac_t""yes" 1>&6
2794 echo "$ac_t""no" 1>&6
2798 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2802 # Extract the first word of "sendmail", so it can be a program name with args.
2803 set dummy sendmail; ac_word=$2
2804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2805 echo "configure:2806: checking for $ac_word" >&5
2806 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2811 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2814 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2818 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2819 for ac_dir in $ac_dummy; do
2820 test -z "$ac_dir" && ac_dir=.
2821 if test -f $ac_dir/$ac_word; then
2822 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2827 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2831 SENDMAIL="$ac_cv_path_SENDMAIL"
2832 if test -n "$SENDMAIL"; then
2833 echo "$ac_t""$SENDMAIL" 1>&6
2835 echo "$ac_t""no" 1>&6
2838 # Extract the first word of "vi", so it can be a program name with args.
2839 set dummy vi; ac_word=$2
2840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2841 echo "configure:2842: checking for $ac_word" >&5
2842 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
2843 echo $ac_n "(cached) $ac_c" 1>&6
2847 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2850 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2854 ac_dummy="$PATH:/usr/ucb"
2855 for ac_dir in $ac_dummy; do
2856 test -z "$ac_dir" && ac_dir=.
2857 if test -f $ac_dir/$ac_word; then
2858 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2863 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2867 EDITOR="$ac_cv_path_EDITOR"
2868 if test -n "$EDITOR"; then
2869 echo "$ac_t""$EDITOR" 1>&6
2871 echo "$ac_t""no" 1>&6
2874 # Extract the first word of "finger", so it can be a program name with args.
2875 set dummy finger; ac_word=$2
2876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2877 echo "configure:2878: checking for $ac_word" >&5
2878 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2883 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2886 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2890 ac_dummy="$PATH:/usr/ucb"
2891 for ac_dir in $ac_dummy; do
2892 test -z "$ac_dir" && ac_dir=.
2893 if test -f $ac_dir/$ac_word; then
2894 ac_cv_path_FINGER="$ac_dir/$ac_word"
2899 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2903 FINGER="$ac_cv_path_FINGER"
2904 if test -n "$FINGER"; then
2905 echo "$ac_t""$FINGER" 1>&6
2907 echo "$ac_t""no" 1>&6
2912 if test $ol_enable_modules != no ; then
2913 # Extract the first word of "glib-config", so it can be a program name with args.
2914 set dummy glib-config; ac_word=$2
2915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2916 echo "configure:2917: checking for $ac_word" >&5
2917 if eval "test \"\${ac_cv_path_GLIBCONFIG+set}\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 case "$GLIBCONFIG" in
2922 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2925 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2930 for ac_dir in $ac_dummy; do
2931 test -z "$ac_dir" && ac_dir=.
2932 if test -f $ac_dir/$ac_word; then
2933 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2941 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2942 if test -n "$GLIBCONFIG"; then
2943 echo "$ac_t""$GLIBCONFIG" 1>&6
2945 echo "$ac_t""no" 1>&6
2949 if test "no$GLIBCONFIG" = "no" ; then
2950 if test $ol_enable_modules = yes ; then
2951 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2955 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2956 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2957 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2962 ol_with_bdb2_module=static
2963 ol_with_ldap_module=static
2964 ol_with_ldbm_module=static
2965 ol_with_passwd_module=static
2966 ol_with_perl_module=static
2967 ol_with_shell_module=static
2968 ol_with_tcl_module=static
2972 if test $ol_enable_perl != no ; then
2973 # Extract the first word of "perl", so it can be a program name with args.
2974 set dummy perl; ac_word=$2
2975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2976 echo "configure:2977: checking for $ac_word" >&5
2977 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2982 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2985 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2990 for ac_dir in $ac_dummy; do
2991 test -z "$ac_dir" && ac_dir=.
2992 if test -f $ac_dir/$ac_word; then
2993 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2998 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3002 PERLBIN="$ac_cv_path_PERLBIN"
3003 if test -n "$PERLBIN"; then
3004 echo "$ac_t""$PERLBIN" 1>&6
3006 echo "$ac_t""no" 1>&6
3010 if test "no$PERLBIN" = "no" ; then
3011 if test $ol_enable_perl = yes ; then
3012 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3016 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3017 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3023 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3024 echo "configure:3025: checking how to run the C preprocessor" >&5
3025 # On Suns, sometimes $CPP names a directory.
3026 if test -n "$CPP" && test -d "$CPP"; then
3029 if test -z "$CPP"; then
3030 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 # This must be in double quotes, not single quotes, because CPP may get
3034 # substituted into the Makefile and "${CC-cc}" will confuse make.
3036 # On the NeXT, cc -E runs the code through the compiler's parser,
3037 # not just through cpp.
3038 cat > conftest.$ac_ext <<EOF
3039 #line 3040 "configure"
3040 #include "confdefs.h"
3044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3045 { (eval echo configure:3046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3047 if test -z "$ac_err"; then
3051 echo "configure: failed program was:" >&5
3052 cat conftest.$ac_ext >&5
3054 CPP="${CC-cc} -E -traditional-cpp"
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3062 { (eval echo configure:3063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3064 if test -z "$ac_err"; then
3068 echo "configure: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3071 CPP="${CC-cc} -nologo -E"
3072 cat > conftest.$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3079 { (eval echo configure:3080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3081 if test -z "$ac_err"; then
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3095 ac_cv_prog_CPP="$CPP"
3097 CPP="$ac_cv_prog_CPP"
3099 ac_cv_prog_CPP="$CPP"
3101 echo "$ac_t""$CPP" 1>&6
3104 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3105 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3107 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3108 echo "configure: warning: programs compiled here do run here..." 1>&2
3109 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3111 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3112 echo "configure: warning: programs compiled here do not run here..." 1>&2
3113 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3116 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3117 echo "configure:3118: checking for AIX" >&5
3118 cat > conftest.$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3127 egrep "yes" >/dev/null 2>&1; then
3129 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3130 #define _ALL_SOURCE 1
3135 echo "$ac_t""no" 1>&6
3140 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3141 echo "configure:3142: checking for POSIXized ISC" >&5
3142 if test -d /etc/conf/kconfig.d &&
3143 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3145 echo "$ac_t""yes" 1>&6
3146 ISC=yes # If later tests want to check for ISC.
3147 cat >> confdefs.h <<\EOF
3148 #define _POSIX_SOURCE 1
3151 if test "$GCC" = yes; then
3157 echo "$ac_t""no" 1>&6
3161 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3162 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3163 echo "configure:3164: checking for minix/config.h" >&5
3164 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3167 cat > conftest.$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3170 #include <minix/config.h>
3172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3173 { (eval echo configure:3174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3175 if test -z "$ac_err"; then
3177 eval "ac_cv_header_$ac_safe=yes"
3180 echo "configure: failed program was:" >&5
3181 cat conftest.$ac_ext >&5
3183 eval "ac_cv_header_$ac_safe=no"
3187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3188 echo "$ac_t""yes" 1>&6
3191 echo "$ac_t""no" 1>&6
3195 if test "$MINIX" = yes; then
3196 cat >> confdefs.h <<\EOF
3197 #define _POSIX_SOURCE 1
3200 cat >> confdefs.h <<\EOF
3201 #define _POSIX_1_SOURCE 2
3204 cat >> confdefs.h <<\EOF
3211 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3212 echo "configure:3213: checking for be_app in -lbe" >&5
3213 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
3214 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 ac_save_LIBS="$LIBS"
3218 LIBS="-lbe -lroot -lnet $LIBS"
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 /* Override any gcc2 internal prototype to avoid an error. */
3223 /* We use char because int might match the return type of a gcc2
3224 builtin and then its argument prototype would still apply. */
3231 if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3233 eval "ac_cv_lib_$ac_lib_var=yes"
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3238 eval "ac_cv_lib_$ac_lib_var=no"
3241 LIBS="$ac_save_LIBS"
3244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3245 echo "$ac_t""yes" 1>&6
3246 LIBS="$LIBS -lbe -lroot -lnet"
3248 echo "$ac_t""no" 1>&6
3253 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3254 echo "configure:3255: checking for Cygwin environment" >&5
3255 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3265 #define __CYGWIN__ __CYGWIN32__
3270 if { (eval echo configure:3271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3274 echo "configure: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3282 echo "$ac_t""$ac_cv_cygwin" 1>&6
3284 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3285 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3286 echo "configure:3287: checking for mingw32 environment" >&5
3287 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3298 if { (eval echo configure:3299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3302 echo "configure: failed program was:" >&5
3303 cat conftest.$ac_ext >&5
3310 echo "$ac_t""$ac_cv_mingw32" 1>&6
3312 test "$ac_cv_mingw32" = yes && MINGW32=yes
3313 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3314 echo "configure:3315: checking for EMX OS/2 environment" >&5
3315 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3326 if { (eval echo configure:3327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3338 echo "$ac_t""$ac_cv_emxos2" 1>&6
3340 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3344 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3345 echo "configure:3346: checking for executable suffix" >&5
3346 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3353 echo 'int main () { return 0; }' > conftest.$ac_ext
3355 if { (eval echo configure:3356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3356 for file in conftest.*; do
3358 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3359 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3363 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3366 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3371 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3372 echo "$ac_t""${ac_cv_exeext}" 1>&6
3375 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3376 echo "configure:3377: checking for object suffix" >&5
3377 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3381 echo 'int i = 1;' > conftest.$ac_ext
3382 if { (eval echo configure:3383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3383 for ac_file in conftest.*; do
3386 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3390 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3395 echo "$ac_t""$ac_cv_objext" 1>&6
3396 OBJEXT=$ac_cv_objext
3397 ac_objext=$ac_cv_objext
3400 cat >> confdefs.h <<EOF
3401 #define EXEEXT "${EXEEXT}"
3408 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3409 echo "configure:3410: checking for ${CC-cc} option to accept ANSI C" >&5
3410 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 am_cv_prog_cc_stdc=no
3415 # Don't try gcc -ansi; that turns off useful extensions and
3416 # breaks some systems' header files.
3417 # AIX -qlanglvl=ansi
3418 # Ultrix and OSF/1 -std1
3419 # HP-UX -Aa -D_HPUX_SOURCE
3420 # SVR4 -Xc -D__EXTENSIONS__
3421 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423 CC="$ac_save_CC $ac_arg"
3424 cat > conftest.$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3429 #include <sys/types.h>
3430 #include <sys/stat.h>
3431 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3432 struct buf { int x; };
3433 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3434 static char *e (p, i)
3440 static char *f (char * (*g) (char **, int), char **p, ...)
3445 s = g (p, va_arg (v,int));
3449 int test (int i, double x);
3450 struct s1 {int (*f) (int a);};
3451 struct s2 {int (*f) (double a);};
3452 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3458 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3462 if { (eval echo configure:3463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3464 am_cv_prog_cc_stdc="$ac_arg"; break
3466 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3475 if test -z "$am_cv_prog_cc_stdc"; then
3476 echo "$ac_t""none needed" 1>&6
3478 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3480 case "x$am_cv_prog_cc_stdc" in
3482 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3485 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3486 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3490 # test for make depend flag
3493 if test -z "${MKDEP}"; then
3495 if test -z "${MKDEP_FLAGS}"; then
3496 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3497 echo "configure:3498: checking for ${OL_MKDEP} depend flag" >&5
3498 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3503 for flag in "-M" "-xM"; do
3504 cat > conftest.c <<EOF
3507 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3508 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3510 if test ! -f conftest."${ac_object}" ; then
3512 OL_MKDEP_FLAGS="$flag"
3521 echo "$ac_t""$ol_cv_mkdep" 1>&6
3524 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3529 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3534 if test "${ol_cv_mkdep}" = no ; then
3535 # this will soon become an error
3536 echo "configure: warning: do not know how to generate dependencies" 1>&2
3541 echo $ac_n "checking for socket""... $ac_c" 1>&6
3542 echo "configure:3543: checking for socket" >&5
3543 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3549 /* System header to define __stub macros and hopefully few prototypes,
3550 which can conflict with char socket(); below. */
3552 /* Override any gcc2 internal prototype to avoid an error. */
3553 /* We use char because int might match the return type of a gcc2
3554 builtin and then its argument prototype would still apply. */
3560 /* The GNU C library defines this for functions which it implements
3561 to always fail with ENOSYS. Some functions are actually named
3562 something starting with __ and the normal name is an alias. */
3563 #if defined (__stub_socket) || defined (__stub___socket)
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 eval "ac_cv_func_socket=yes"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 eval "ac_cv_func_socket=no"
3583 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3584 echo "$ac_t""yes" 1>&6
3587 echo "$ac_t""no" 1>&6
3589 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3590 echo "configure:3591: checking for main in -lsocket" >&5
3591 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3592 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 ac_save_LIBS="$LIBS"
3596 LIBS="-lsocket $LIBS"
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3605 if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3607 eval "ac_cv_lib_$ac_lib_var=yes"
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3612 eval "ac_cv_lib_$ac_lib_var=no"
3615 LIBS="$ac_save_LIBS"
3618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
3620 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3621 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3622 cat >> confdefs.h <<EOF
3623 #define $ac_tr_lib 1
3626 LIBS="-lsocket $LIBS"
3629 echo "$ac_t""no" 1>&6
3632 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3633 echo "configure:3634: checking for main in -lnet" >&5
3634 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3635 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 ac_save_LIBS="$LIBS"
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3648 if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3650 eval "ac_cv_lib_$ac_lib_var=yes"
3652 echo "configure: failed program was:" >&5
3653 cat conftest.$ac_ext >&5
3655 eval "ac_cv_lib_$ac_lib_var=no"
3658 LIBS="$ac_save_LIBS"
3661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3662 echo "$ac_t""yes" 1>&6
3663 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3664 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3665 cat >> confdefs.h <<EOF
3666 #define $ac_tr_lib 1
3672 echo "$ac_t""no" 1>&6
3675 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3676 echo "configure:3677: checking for socket in -lnet" >&5
3677 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3678 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3681 ac_save_LIBS="$LIBS"
3683 cat > conftest.$ac_ext <<EOF
3684 #line 3685 "configure"
3685 #include "confdefs.h"
3686 /* Override any gcc2 internal prototype to avoid an error. */
3687 /* We use char because int might match the return type of a gcc2
3688 builtin and then its argument prototype would still apply. */
3695 if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3697 eval "ac_cv_lib_$ac_lib_var=yes"
3699 echo "configure: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3702 eval "ac_cv_lib_$ac_lib_var=no"
3705 LIBS="$ac_save_LIBS"
3708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3709 echo "$ac_t""yes" 1>&6
3710 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3711 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3712 cat >> confdefs.h <<EOF
3713 #define $ac_tr_lib 1
3719 echo "$ac_t""no" 1>&6
3722 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3723 echo "configure:3724: checking for main in -lnsl_s" >&5
3724 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3725 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 ac_save_LIBS="$LIBS"
3729 LIBS="-lnsl_s $LIBS"
3730 cat > conftest.$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3738 if { (eval echo configure:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3740 eval "ac_cv_lib_$ac_lib_var=yes"
3742 echo "configure: failed program was:" >&5
3743 cat conftest.$ac_ext >&5
3745 eval "ac_cv_lib_$ac_lib_var=no"
3748 LIBS="$ac_save_LIBS"
3751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3752 echo "$ac_t""yes" 1>&6
3753 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3754 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3755 cat >> confdefs.h <<EOF
3756 #define $ac_tr_lib 1
3759 LIBS="-lnsl_s $LIBS"
3762 echo "$ac_t""no" 1>&6
3765 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3766 echo "configure:3767: checking for main in -lnsl" >&5
3767 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3768 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3771 ac_save_LIBS="$LIBS"
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3781 if { (eval echo configure:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3783 eval "ac_cv_lib_$ac_lib_var=yes"
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3788 eval "ac_cv_lib_$ac_lib_var=no"
3791 LIBS="$ac_save_LIBS"
3794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3796 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3797 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3798 cat >> confdefs.h <<EOF
3799 #define $ac_tr_lib 1
3805 echo "$ac_t""no" 1>&6
3808 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3809 echo "configure:3810: checking for socket in -linet" >&5
3810 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3811 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 ac_save_LIBS="$LIBS"
3816 cat > conftest.$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3819 /* Override any gcc2 internal prototype to avoid an error. */
3820 /* We use char because int might match the return type of a gcc2
3821 builtin and then its argument prototype would still apply. */
3828 if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3830 eval "ac_cv_lib_$ac_lib_var=yes"
3832 echo "configure: failed program was:" >&5
3833 cat conftest.$ac_ext >&5
3835 eval "ac_cv_lib_$ac_lib_var=no"
3838 LIBS="$ac_save_LIBS"
3841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3842 echo "$ac_t""yes" 1>&6
3843 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3844 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3845 cat >> confdefs.h <<EOF
3846 #define $ac_tr_lib 1
3852 echo "$ac_t""no" 1>&6
3855 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3856 echo "configure:3857: checking for main in -lgen" >&5
3857 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3858 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 ac_save_LIBS="$LIBS"
3863 cat > conftest.$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3871 if { (eval echo configure:3872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3873 eval "ac_cv_lib_$ac_lib_var=yes"
3875 echo "configure: failed program was:" >&5
3876 cat conftest.$ac_ext >&5
3878 eval "ac_cv_lib_$ac_lib_var=no"
3881 LIBS="$ac_save_LIBS"
3884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3885 echo "$ac_t""yes" 1>&6
3886 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3887 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3888 cat >> confdefs.h <<EOF
3889 #define $ac_tr_lib 1
3895 echo "$ac_t""no" 1>&6
3902 for ac_func in res_search
3904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3905 echo "configure:3906: checking for $ac_func" >&5
3906 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3912 /* System header to define __stub macros and hopefully few prototypes,
3913 which can conflict with char $ac_func(); below. */
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3923 /* The GNU C library defines this for functions which it implements
3924 to always fail with ENOSYS. Some functions are actually named
3925 something starting with __ and the normal name is an alias. */
3926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3934 if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3936 eval "ac_cv_func_$ac_func=yes"
3938 echo "configure: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3941 eval "ac_cv_func_$ac_func=no"
3946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3947 echo "$ac_t""yes" 1>&6
3948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3949 cat >> confdefs.h <<EOF
3950 #define $ac_tr_func 1
3954 echo "$ac_t""no" 1>&6
3958 if test $ac_cv_func_res_search = "no" ; then
3959 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3960 echo "configure:3961: checking for res_search in -lbind" >&5
3961 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3962 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 ac_save_LIBS="$LIBS"
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3970 /* Override any gcc2 internal prototype to avoid an error. */
3971 /* We use char because int might match the return type of a gcc2
3972 builtin and then its argument prototype would still apply. */
3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3981 eval "ac_cv_lib_$ac_lib_var=yes"
3983 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5
3986 eval "ac_cv_lib_$ac_lib_var=no"
3989 LIBS="$ac_save_LIBS"
3992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3994 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3995 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3996 cat >> confdefs.h <<EOF
3997 #define $ac_tr_lib 1
4003 echo "$ac_t""no" 1>&6
4006 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
4007 cat >> confdefs.h <<\EOF
4008 #define HAVE_RES_SEARCH 1
4012 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
4013 echo "configure:4014: checking for res_search in -lresolv" >&5
4014 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
4015 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4016 echo $ac_n "(cached) $ac_c" 1>&6
4018 ac_save_LIBS="$LIBS"
4019 LIBS="-lresolv $LIBS"
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4023 /* Override any gcc2 internal prototype to avoid an error. */
4024 /* We use char because int might match the return type of a gcc2
4025 builtin and then its argument prototype would still apply. */
4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4034 eval "ac_cv_lib_$ac_lib_var=yes"
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4039 eval "ac_cv_lib_$ac_lib_var=no"
4042 LIBS="$ac_save_LIBS"
4045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4046 echo "$ac_t""yes" 1>&6
4047 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4048 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4049 cat >> confdefs.h <<EOF
4050 #define $ac_tr_lib 1
4053 LIBS="-lresolv $LIBS"
4056 echo "$ac_t""no" 1>&6
4059 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
4060 cat >> confdefs.h <<\EOF
4061 #define HAVE_RES_SEARCH 1
4068 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4069 echo "configure:4070: checking for sigset in -lV3" >&5
4070 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
4071 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4072 echo $ac_n "(cached) $ac_c" 1>&6
4074 ac_save_LIBS="$LIBS"
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 /* Override any gcc2 internal prototype to avoid an error. */
4080 /* We use char because int might match the return type of a gcc2
4081 builtin and then its argument prototype would still apply. */
4088 if { (eval echo configure:4089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4090 eval "ac_cv_lib_$ac_lib_var=yes"
4092 echo "configure: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4095 eval "ac_cv_lib_$ac_lib_var=no"
4098 LIBS="$ac_save_LIBS"
4101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4102 echo "$ac_t""yes" 1>&6
4103 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4104 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4105 cat >> confdefs.h <<EOF
4106 #define $ac_tr_lib 1
4112 echo "$ac_t""no" 1>&6
4116 for ac_hdr in regex.h
4118 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4119 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4120 echo "configure:4121: checking for $ac_hdr" >&5
4121 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4124 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4130 { (eval echo configure:4131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4132 if test -z "$ac_err"; then
4134 eval "ac_cv_header_$ac_safe=yes"
4137 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4140 eval "ac_cv_header_$ac_safe=no"
4144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4145 echo "$ac_t""yes" 1>&6
4146 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4147 cat >> confdefs.h <<EOF
4148 #define $ac_tr_hdr 1
4152 echo "$ac_t""no" 1>&6
4156 if test "$ac_cv_header_regex_h" != yes ; then
4157 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4159 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4160 echo "configure:4161: checking for regfree" >&5
4161 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4164 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4167 /* System header to define __stub macros and hopefully few prototypes,
4168 which can conflict with char regfree(); below. */
4170 /* Override any gcc2 internal prototype to avoid an error. */
4171 /* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4178 /* The GNU C library defines this for functions which it implements
4179 to always fail with ENOSYS. Some functions are actually named
4180 something starting with __ and the normal name is an alias. */
4181 #if defined (__stub_regfree) || defined (__stub___regfree)
4189 if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4191 eval "ac_cv_func_regfree=yes"
4193 echo "configure: failed program was:" >&5
4194 cat conftest.$ac_ext >&5
4196 eval "ac_cv_func_regfree=no"
4201 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4202 echo "$ac_t""yes" 1>&6
4205 echo "$ac_t""no" 1>&6
4206 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4211 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4212 echo "configure:4213: checking for compatible POSIX regex" >&5
4213 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4217 if test "$cross_compiling" = yes; then
4218 ol_cv_c_posix_regex=cross
4220 cat > conftest.$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4224 #include <sys/types.h>
4226 static char *pattern, *string;
4234 if(regcomp(&re, pattern, 0)) {
4238 string = "ALL MATCH";
4240 rc = regexec(&re, string, 0, (void*)0, 0);
4247 if { (eval echo configure:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4249 ol_cv_c_posix_regex=yes
4251 echo "configure: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4254 ol_cv_c_posix_regex=no
4261 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
4263 if test "$ol_cv_c_posix_regex" = no ; then
4264 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
4267 echo $ac_n "checking for select""... $ac_c" 1>&6
4268 echo "configure:4269: checking for select" >&5
4269 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 /* System header to define __stub macros and hopefully few prototypes,
4276 which can conflict with char select(); below. */
4278 /* Override any gcc2 internal prototype to avoid an error. */
4279 /* We use char because int might match the return type of a gcc2
4280 builtin and then its argument prototype would still apply. */
4286 /* The GNU C library defines this for functions which it implements
4287 to always fail with ENOSYS. Some functions are actually named
4288 something starting with __ and the normal name is an alias. */
4289 #if defined (__stub_select) || defined (__stub___select)
4297 if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4299 eval "ac_cv_func_select=yes"
4301 echo "configure: failed program was:" >&5
4302 cat conftest.$ac_ext >&5
4304 eval "ac_cv_func_select=no"
4309 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4310 echo "$ac_t""yes" 1>&6
4313 echo "$ac_t""no" 1>&6
4314 { echo "configure: error: select() required." 1>&2; exit 1; }
4318 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4319 echo "configure:4320: checking types of arguments for select()" >&5
4320 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4326 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4329 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4330 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4331 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 #ifdef HAVE_SYS_TYPES_H
4336 #include <sys/types.h>
4338 #ifdef HAVE_SYS_TIME_H
4339 #include <sys/time.h>
4341 #ifdef HAVE_SYS_SELECT_H
4342 #include <sys/select.h>
4344 #ifdef HAVE_SYS_SOCKET_H
4345 #include <sys/socket.h>
4347 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);
4352 if { (eval echo configure:4353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4354 ac_not_found=no ; break 3
4356 echo "configure: failed program was:" >&5
4357 cat conftest.$ac_ext >&5
4371 if test "$ac_not_found" = yes; then
4372 ac_cv_func_select_arg1=int
4373 ac_cv_func_select_arg234='int *'
4374 ac_cv_func_select_arg5='struct timeval *'
4376 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4377 cat >> confdefs.h <<EOF
4378 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4381 cat >> confdefs.h <<EOF
4382 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4385 cat >> confdefs.h <<EOF
4386 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4393 if test $ol_enable_ldapd != no ; then
4394 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
4396 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
4397 echo "configure:4398: checking for main in -lxtpp" >&5
4398 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
4399 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4402 ac_save_LIBS="$LIBS"
4403 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
4404 cat > conftest.$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4414 eval "ac_cv_lib_$ac_lib_var=yes"
4416 echo "configure: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4419 eval "ac_cv_lib_$ac_lib_var=no"
4422 LIBS="$ac_save_LIBS"
4425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4426 echo "$ac_t""yes" 1>&6
4429 cat >> confdefs.h <<\EOF
4433 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
4436 echo "$ac_t""no" 1>&6
4440 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
4441 echo "configure:4442: checking for main in -ldsap" >&5
4442 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
4443 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4444 echo $ac_n "(cached) $ac_c" 1>&6
4446 ac_save_LIBS="$LIBS"
4447 LIBS="-ldsap -lisode $LIBS"
4448 cat > conftest.$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4456 if { (eval echo configure:4457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4458 eval "ac_cv_lib_$ac_lib_var=yes"
4460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4463 eval "ac_cv_lib_$ac_lib_var=no"
4466 LIBS="$ac_save_LIBS"
4469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4470 echo "$ac_t""yes" 1>&6
4473 cat >> confdefs.h <<\EOF
4477 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
4480 echo "$ac_t""no" 1>&6
4484 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
4485 echo "configure:4486: checking for main in -lisode" >&5
4486 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
4487 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4490 ac_save_LIBS="$LIBS"
4491 LIBS="-lisode $LIBS"
4492 cat > conftest.$ac_ext <<EOF
4493 #line 4494 "configure"
4494 #include "confdefs.h"
4500 if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4502 eval "ac_cv_lib_$ac_lib_var=yes"
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4507 eval "ac_cv_lib_$ac_lib_var=no"
4510 LIBS="$ac_save_LIBS"
4513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4517 cat >> confdefs.h <<\EOF
4518 #define HAVE_ISODE 1
4521 LDAPD_LIBS="$LDAPD_LIBS -lisode"
4524 echo "$ac_t""no" 1>&6
4530 if test $ol_link_isode != no; then
4531 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
4532 echo "configure:4533: checking for main in -lpp" >&5
4533 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
4534 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4537 ac_save_LIBS="$LIBS"
4539 cat > conftest.$ac_ext <<EOF
4540 #line 4541 "configure"
4541 #include "confdefs.h"
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4549 eval "ac_cv_lib_$ac_lib_var=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 eval "ac_cv_lib_$ac_lib_var=no"
4557 LIBS="$ac_save_LIBS"
4560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4563 cat >> confdefs.h <<\EOF
4567 LDAPD_LIBS="-lpp $LDAPD_LIBS"
4570 echo "$ac_t""no" 1>&6
4575 # Extract the first word of "pepsy", so it can be a program name with args.
4576 set dummy pepsy; ac_word=$2
4577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4578 echo "configure:4579: checking for $ac_word" >&5
4579 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4584 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
4587 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
4590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4592 for ac_dir in $ac_dummy; do
4593 test -z "$ac_dir" && ac_dir=.
4594 if test -f $ac_dir/$ac_word; then
4595 ac_cv_path_PEPSY="$ac_dir/$ac_word"
4603 PEPSY="$ac_cv_path_PEPSY"
4604 if test -n "$PEPSY"; then
4605 echo "$ac_t""$PEPSY" 1>&6
4607 echo "$ac_t""no" 1>&6
4614 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
4615 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
4617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4619 echo "configure:4620: checking for $ac_hdr" >&5
4620 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4629 { (eval echo configure:4630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4631 if test -z "$ac_err"; then
4633 eval "ac_cv_header_$ac_safe=yes"
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4639 eval "ac_cv_header_$ac_safe=no"
4643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4644 echo "$ac_t""yes" 1>&6
4645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4646 cat >> confdefs.h <<EOF
4647 #define $ac_tr_hdr 1
4651 echo "$ac_t""no" 1>&6
4656 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4657 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4658 echo "configure:4659: checking for main in -lkrb4" >&5
4659 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
4660 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4663 ac_save_LIBS="$LIBS"
4664 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4665 cat > conftest.$ac_ext <<EOF
4666 #line 4667 "configure"
4667 #include "confdefs.h"
4673 if { (eval echo configure:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4675 eval "ac_cv_lib_$ac_lib_var=yes"
4677 echo "configure: failed program was:" >&5
4678 cat conftest.$ac_ext >&5
4680 eval "ac_cv_lib_$ac_lib_var=no"
4683 LIBS="$ac_save_LIBS"
4686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4687 echo "$ac_t""yes" 1>&6
4690 echo "$ac_t""no" 1>&6
4695 if test $have_k5 = yes ; then
4696 ol_with_kerberos=found
4697 ol_link_kerberos=yes
4699 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4701 LIBS="$KRB_LIBS $LIBS"
4703 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4704 echo "configure:4705: checking for des_debug in Kerberos libraries" >&5
4705 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4710 LIBS="$KRB_LIBS $LIBS"
4711 cat > conftest.$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4715 #include <kerberosIV/krb.h>
4716 #include <kerberosIV/des.h>
4717 extern int des_debug;
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4727 ol_cv_var_des_debug=yes
4729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4732 ol_cv_var_des_debug=no
4739 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4741 if test $ol_cv_var_des_debug = yes ; then
4742 cat >> confdefs.h <<\EOF
4743 #define HAVE_DES_DEBUG 1
4753 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4754 for ac_hdr in krb.h des.h
4756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4758 echo "configure:4759: checking for $ac_hdr" >&5
4759 if eval "test \"\${ac_cv_header_$ac_safe+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"
4767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4768 { (eval echo configure:4769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4770 if test -z "$ac_err"; then
4772 eval "ac_cv_header_$ac_safe=yes"
4775 echo "configure: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4778 eval "ac_cv_header_$ac_safe=no"
4782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4783 echo "$ac_t""yes" 1>&6
4784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4785 cat >> confdefs.h <<EOF
4786 #define $ac_tr_hdr 1
4790 echo "$ac_t""no" 1>&6
4795 if test $ac_cv_header_krb_h = yes ; then
4796 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4797 echo "configure:4798: checking for main in -lkrb" >&5
4798 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4799 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 ac_save_LIBS="$LIBS"
4803 LIBS="-lkrb -ldes $LIBS"
4804 cat > conftest.$ac_ext <<EOF
4805 #line 4806 "configure"
4806 #include "confdefs.h"
4812 if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4814 eval "ac_cv_lib_$ac_lib_var=yes"
4816 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4819 eval "ac_cv_lib_$ac_lib_var=no"
4822 LIBS="$ac_save_LIBS"
4825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4826 echo "$ac_t""yes" 1>&6
4829 echo "$ac_t""no" 1>&6
4834 if test $have_k4 = yes ; then
4835 ol_with_kerberos=found
4836 ol_link_kerberos=yes
4838 KRB_LIBS="-lkrb -ldes"
4843 if test $ol_link_kerberos = yes ; then
4844 cat >> confdefs.h <<\EOF
4845 #define HAVE_KERBEROS 1
4851 if test $ol_with_tls != no ; then
4855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4857 echo "configure:4858: checking for $ac_hdr" >&5
4858 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4867 { (eval echo configure:4868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4869 if test -z "$ac_err"; then
4871 eval "ac_cv_header_$ac_safe=yes"
4874 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4877 eval "ac_cv_header_$ac_safe=no"
4881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4882 echo "$ac_t""yes" 1>&6
4883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4884 cat >> confdefs.h <<EOF
4885 #define $ac_tr_hdr 1
4889 echo "$ac_t""no" 1>&6
4894 if test $ac_cv_header_ssl_h = yes ; then
4895 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4896 echo "configure:4897: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4897 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4898 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4901 ac_save_LIBS="$LIBS"
4902 LIBS="-lssl -lcrypto $LIBS"
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4906 /* Override any gcc2 internal prototype to avoid an error. */
4907 /* We use char because int might match the return type of a gcc2
4908 builtin and then its argument prototype would still apply. */
4909 char SSLeay_add_ssl_algorithms();
4912 SSLeay_add_ssl_algorithms()
4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4917 eval "ac_cv_lib_$ac_lib_var=yes"
4919 echo "configure: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4922 eval "ac_cv_lib_$ac_lib_var=no"
4925 LIBS="$ac_save_LIBS"
4928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4929 echo "$ac_t""yes" 1>&6
4933 echo "$ac_t""no" 1>&6
4938 if test $have_ssleay = no ; then
4939 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4940 echo "configure:4941: checking for ssl3_accept in -lssl" >&5
4941 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4942 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4945 ac_save_LIBS="$LIBS"
4946 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4950 /* Override any gcc2 internal prototype to avoid an error. */
4951 /* We use char because int might match the return type of a gcc2
4952 builtin and then its argument prototype would still apply. */
4959 if { (eval echo configure:4960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961 eval "ac_cv_lib_$ac_lib_var=yes"
4963 echo "configure: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4966 eval "ac_cv_lib_$ac_lib_var=no"
4969 LIBS="$ac_save_LIBS"
4972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4973 echo "$ac_t""yes" 1>&6
4977 echo "$ac_t""no" 1>&6
4983 if test $have_ssleay = yes ; then
4987 cat >> confdefs.h <<\EOF
4988 #define HAVE_SSLEAY 1
4992 if test $need_rsaref = yes; then
4993 cat >> confdefs.h <<\EOF
4994 #define HAVE_RSAREF 1
4998 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
5000 TLS_LIBS="-lssl -lcrypto"
5006 if test $ol_link_tls = yes ; then
5007 cat >> confdefs.h <<\EOF
5015 gethostbyname_r gethostbyaddr_r \
5018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5019 echo "configure:5020: checking for $ac_func" >&5
5020 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5021 echo $ac_n "(cached) $ac_c" 1>&6
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5026 /* System header to define __stub macros and hopefully few prototypes,
5027 which can conflict with char $ac_func(); below. */
5029 /* Override any gcc2 internal prototype to avoid an error. */
5030 /* We use char because int might match the return type of a gcc2
5031 builtin and then its argument prototype would still apply. */
5037 /* The GNU C library defines this for functions which it implements
5038 to always fail with ENOSYS. Some functions are actually named
5039 something starting with __ and the normal name is an alias. */
5040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5048 if { (eval echo configure:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5050 eval "ac_cv_func_$ac_func=yes"
5052 echo "configure: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5055 eval "ac_cv_func_$ac_func=no"
5060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5061 echo "$ac_t""yes" 1>&6
5062 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5063 cat >> confdefs.h <<EOF
5064 #define $ac_tr_func 1
5068 echo "$ac_t""no" 1>&6
5073 if test "$ac_cv_func_ctime_r" = no ; then
5074 ol_cv_func_ctime_r_nargs=0
5076 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
5077 echo "configure:5078: checking number of arguments of ctime_r" >&5
5078 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
5079 echo $ac_n "(cached) $ac_c" 1>&6
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5086 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
5089 if { (eval echo configure:5090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5091 ol_cv_func_ctime_r_nargs=3
5093 echo "configure: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5096 cat > conftest.$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5101 time_t ti; char *buffer; ctime_r(&ti,buffer);
5104 if { (eval echo configure:5105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5106 ol_cv_func_ctime_r_nargs=2
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5111 ol_cv_func_ctime_r_nargs=0
5118 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
5119 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
5120 cat >> confdefs.h <<EOF
5121 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
5128 if test "$ac_cv_func_gethostbyname_r" = yes ; then
5129 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
5130 echo "configure:5131: checking number of arguments of gethostbyname_r" >&5
5131 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
5132 echo $ac_n "(cached) $ac_c" 1>&6
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5137 #include <sys/types.h>
5138 #include <sys/socket.h>
5139 #include <netinet/in.h>
5141 #define BUFSIZE (sizeof(struct hostent)+10)
5143 struct hostent hent; char buffer[BUFSIZE];
5144 int bufsize=BUFSIZE;int h_errno;
5145 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
5146 buffer, bufsize, &h_errno);
5149 if { (eval echo configure:5150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5151 ol_cv_func_gethostbyname_r_nargs=5
5153 echo "configure: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5156 cat > conftest.$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5159 #include <sys/types.h>
5160 #include <sys/socket.h>
5161 #include <netinet/in.h>
5163 #define BUFSIZE (sizeof(struct hostent)+10)
5165 struct hostent hent;struct hostent *rhent;
5166 char buffer[BUFSIZE];
5167 int bufsize=BUFSIZE;int h_errno;
5168 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
5172 if { (eval echo configure:5173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5174 ol_cv_func_gethostbyname_r_nargs=6
5176 echo "configure: failed program was:" >&5
5177 cat conftest.$ac_ext >&5
5179 ol_cv_func_gethostbyname_r_nargs=0
5186 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
5187 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
5188 cat >> confdefs.h <<EOF
5189 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
5195 ol_cv_func_gethostbyname_r_nargs=0
5198 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
5199 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
5200 echo "configure:5201: checking number of arguments of gethostbyaddr_r" >&5
5201 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
5202 echo $ac_n "(cached) $ac_c" 1>&6
5204 cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5207 #include <sys/types.h>
5208 #include <sys/socket.h>
5209 #include <netinet/in.h>
5211 #define BUFSIZE (sizeof(struct hostent)+10)
5213 struct hostent hent; char buffer[BUFSIZE];
5215 size_t alen=sizeof(struct in_addr);
5216 int bufsize=BUFSIZE;int h_errno;
5217 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5218 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
5221 if { (eval echo configure:5222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5223 ol_cv_func_gethostbyaddr_r_nargs=7
5225 echo "configure: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5228 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5231 #include <sys/types.h>
5232 #include <sys/socket.h>
5233 #include <netinet/in.h>
5235 #define BUFSIZE (sizeof(struct hostent)+10)
5237 struct hostent hent;
5238 struct hostent *rhent; char buffer[BUFSIZE];
5240 size_t alen=sizeof(struct in_addr);
5241 int bufsize=BUFSIZE;int h_errno;
5242 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5243 alen, AF_INET, &hent, buffer, bufsize,
5247 if { (eval echo configure:5248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5249 ol_cv_func_gethostbyaddr_r_nargs=8
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5254 ol_cv_func_gethostbyaddr_r_nargs=0
5261 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
5262 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
5263 cat >> confdefs.h <<EOF
5264 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
5270 ol_cv_func_gethostbyaddr_r_nargs=0
5273 if test "$ac_cv_func_ctime_r" = yes \
5274 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
5275 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
5276 -a "$ac_cv_func_gethostbyname_r" = yes \
5277 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
5278 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
5279 -a "$ac_cv_func_gethostbyaddr_r" = yes \
5280 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
5281 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
5284 cat >> confdefs.h <<\EOF
5285 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
5291 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5292 -o $ol_with_threads = posix ; then
5294 for ac_hdr in pthread.h sched.h
5296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5298 echo "configure:5299: checking for $ac_hdr" >&5
5299 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5308 { (eval echo configure:5309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5310 if test -z "$ac_err"; then
5312 eval "ac_cv_header_$ac_safe=yes"
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5318 eval "ac_cv_header_$ac_safe=no"
5322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5323 echo "$ac_t""yes" 1>&6
5324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5325 cat >> confdefs.h <<EOF
5326 #define $ac_tr_hdr 1
5330 echo "$ac_t""no" 1>&6
5335 if test $ac_cv_header_pthread_h = yes ; then
5336 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
5337 echo "configure:5338: checking POSIX thread version" >&5
5338 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
5339 echo $ac_n "(cached) $ac_c" 1>&6
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5346 # include <pthread.h>
5347 /* this check could be improved */
5348 # ifdef PTHREAD_ONCE_INIT
5349 pthread_version_final
5353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5354 egrep "pthread_version_final" >/dev/null 2>&1; then
5356 ol_pthread_final=yes
5364 cat > conftest.$ac_ext <<EOF
5365 #line 5366 "configure"
5366 #include "confdefs.h"
5368 # include <pthread.h>
5369 /* this check could be improved */
5370 # ifdef pthread_once_init
5371 pthread_version_draft4
5375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5376 egrep "pthread_version_draft4" >/dev/null 2>&1; then
5378 ol_pthread_draft4=yes
5381 ol_pthread_draft4=no
5386 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
5387 ol_cv_pthread_version=final
5388 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
5389 ol_cv_pthread_version=draft4
5391 ol_cv_pthread_version=unknown
5396 echo "$ac_t""$ol_cv_pthread_version" 1>&6
5399 if test $ol_cv_pthread_version = final ; then
5400 cat >> confdefs.h <<\EOF
5401 #define HAVE_PTHREADS_FINAL 1
5404 elif test $ol_cv_pthread_version = draft4 ; then
5405 cat >> confdefs.h <<\EOF
5406 #define HAVE_PTHREADS_D4 1
5410 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
5413 # consider threads found
5414 ol_with_threads=found
5417 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
5418 echo "configure:5419: checking for LinuxThreads pthread.h" >&5
5419 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5422 cat > conftest.$ac_ext <<EOF
5423 #line 5424 "configure"
5424 #include "confdefs.h"
5425 #include <pthread.h>
5427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5428 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
5430 ol_cv_header_linux_threads=yes
5433 ol_cv_header_linux_threads=no
5440 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
5441 if test $ol_cv_header_linux_threads = yes; then
5442 cat >> confdefs.h <<\EOF
5443 #define HAVE_LINUX_THREADS 1
5450 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
5451 echo "configure:5452: checking for pthread_create in default libraries" >&5
5452 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
5453 echo $ac_n "(cached) $ac_c" 1>&6
5456 if test "$cross_compiling" = yes; then
5457 ol_cv_pthread_create=yes
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5463 #include <pthread.h>
5465 #define NULL (void*)0
5468 static void *task(p)
5471 return (void *) (p == NULL);
5474 int main(argc, argv)
5481 /* make sure pthread_create() isn't just a stub */
5482 #if HAVE_PTHREADS_D4
5483 status = pthread_create(&t, pthread_attr_default, task, NULL);
5485 status = pthread_create(&t, NULL, task, NULL);
5488 if( status ) return status;
5490 /* make sure pthread_detach() isn't just a stub */
5491 #if HAVE_PTHREADS_D4
5492 status = pthread_detach( &t );
5494 status = pthread_detach( t );
5497 if( status ) return status;
5503 if { (eval echo configure:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5505 ol_cv_pthread_create=yes
5507 echo "configure: failed program was:" >&5
5508 cat conftest.$ac_ext >&5
5510 ol_cv_pthread_create=no
5517 echo "$ac_t""$ol_cv_pthread_create" 1>&6
5519 if test $ol_cv_pthread_create != no ; then
5520 ol_link_threads=posix
5524 # Pthread try link: -mt (ol_cv_pthread_mt)
5525 if test "$ol_link_threads" = no ; then
5527 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
5528 echo "configure:5529: checking for pthread link with -mt" >&5
5529 if eval "test \"\${ol_cv_pthread_mt+set}\" = set"; then
5530 echo $ac_n "(cached) $ac_c" 1>&6
5537 cat > conftest.$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5541 #include <pthread.h>
5543 #define NULL (void*)0
5550 #if HAVE_PTHREADS_D4
5551 pthread_create(&t, pthread_attr_default, NULL, NULL);
5552 pthread_detach( &t );
5554 pthread_create(&t, NULL, NULL, NULL);
5555 pthread_detach( t );
5557 #ifdef HAVE_LINUX_THREADS
5558 pthread_kill_other_threads_np();
5563 if { (eval echo configure:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5565 ol_cv_pthread_mt=yes
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5579 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
5581 if test $ol_cv_pthread_mt = yes ; then
5582 ol_link_pthreads="-mt"
5583 ol_link_threads=posix
5587 # Pthread try link: -kthread (ol_cv_pthread_kthread)
5588 if test "$ol_link_threads" = no ; then
5590 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
5591 echo "configure:5592: checking for pthread link with -kthread" >&5
5592 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
5593 echo $ac_n "(cached) $ac_c" 1>&6
5598 LIBS="-kthread $LIBS"
5600 cat > conftest.$ac_ext <<EOF
5601 #line 5602 "configure"
5602 #include "confdefs.h"
5604 #include <pthread.h>
5606 #define NULL (void*)0
5613 #if HAVE_PTHREADS_D4
5614 pthread_create(&t, pthread_attr_default, NULL, NULL);
5615 pthread_detach( &t );
5617 pthread_create(&t, NULL, NULL, NULL);
5618 pthread_detach( t );
5620 #ifdef HAVE_LINUX_THREADS
5621 pthread_kill_other_threads_np();
5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5628 ol_cv_pthread_kthread=yes
5630 echo "configure: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5633 ol_cv_pthread_kthread=no
5642 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5644 if test $ol_cv_pthread_kthread = yes ; then
5645 ol_link_pthreads="-kthread"
5646 ol_link_threads=posix
5650 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5651 if test "$ol_link_threads" = no ; then
5653 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5654 echo "configure:5655: checking for pthread link with -pthread" >&5
5655 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5661 LIBS="-pthread $LIBS"
5663 cat > conftest.$ac_ext <<EOF
5664 #line 5665 "configure"
5665 #include "confdefs.h"
5667 #include <pthread.h>
5669 #define NULL (void*)0
5676 #if HAVE_PTHREADS_D4
5677 pthread_create(&t, pthread_attr_default, NULL, NULL);
5678 pthread_detach( &t );
5680 pthread_create(&t, NULL, NULL, NULL);
5681 pthread_detach( t );
5683 #ifdef HAVE_LINUX_THREADS
5684 pthread_kill_other_threads_np();
5689 if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5691 ol_cv_pthread_pthread=yes
5693 echo "configure: failed program was:" >&5
5694 cat conftest.$ac_ext >&5
5696 ol_cv_pthread_pthread=no
5705 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5707 if test $ol_cv_pthread_pthread = yes ; then
5708 ol_link_pthreads="-pthread"
5709 ol_link_threads=posix
5713 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5714 if test "$ol_link_threads" = no ; then
5716 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5717 echo "configure:5718: checking for pthread link with -pthreads" >&5
5718 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
5719 echo $ac_n "(cached) $ac_c" 1>&6
5724 LIBS="-pthreads $LIBS"
5726 cat > conftest.$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5730 #include <pthread.h>
5732 #define NULL (void*)0
5739 #if HAVE_PTHREADS_D4
5740 pthread_create(&t, pthread_attr_default, NULL, NULL);
5741 pthread_detach( &t );
5743 pthread_create(&t, NULL, NULL, NULL);
5744 pthread_detach( t );
5746 #ifdef HAVE_LINUX_THREADS
5747 pthread_kill_other_threads_np();
5752 if { (eval echo configure:5753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5754 ol_cv_pthread_pthreads=yes
5756 echo "configure: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5759 ol_cv_pthread_pthreads=no
5768 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5770 if test $ol_cv_pthread_pthreads = yes ; then
5771 ol_link_pthreads="-pthreads"
5772 ol_link_threads=posix
5776 # Pthread try link: -thread (ol_cv_pthread_thread)
5777 if test "$ol_link_threads" = no ; then
5779 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5780 echo "configure:5781: checking for pthread link with -thread" >&5
5781 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5787 LIBS="-thread $LIBS"
5789 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5793 #include <pthread.h>
5795 #define NULL (void*)0
5802 #if HAVE_PTHREADS_D4
5803 pthread_create(&t, pthread_attr_default, NULL, NULL);
5804 pthread_detach( &t );
5806 pthread_create(&t, NULL, NULL, NULL);
5807 pthread_detach( t );
5809 #ifdef HAVE_LINUX_THREADS
5810 pthread_kill_other_threads_np();
5815 if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5817 ol_cv_pthread_thread=yes
5819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5822 ol_cv_pthread_thread=no
5831 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5833 if test $ol_cv_pthread_thread = yes ; then
5834 ol_link_pthreads="-thread"
5835 ol_link_threads=posix
5840 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5841 if test "$ol_link_threads" = no ; then
5842 # try -lpthread -lmach -lexc -lc_r
5843 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5844 echo "configure:5845: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5845 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
5846 echo $ac_n "(cached) $ac_c" 1>&6
5851 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5853 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5857 #include <pthread.h>
5859 #define NULL (void*)0
5866 #if HAVE_PTHREADS_D4
5867 pthread_create(&t, pthread_attr_default, NULL, NULL);
5868 pthread_detach( &t );
5870 pthread_create(&t, NULL, NULL, NULL);
5871 pthread_detach( t );
5873 #ifdef HAVE_LINUX_THREADS
5874 pthread_kill_other_threads_np();
5879 if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5881 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5886 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5895 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5897 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5898 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5899 ol_link_threads=posix
5903 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5904 if test "$ol_link_threads" = no ; then
5905 # try -lpthread -lmach -lexc
5906 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5907 echo "configure:5908: checking for pthread link with -lpthread -lmach -lexc" >&5
5908 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
5909 echo $ac_n "(cached) $ac_c" 1>&6
5914 LIBS="-lpthread -lmach -lexc $LIBS"
5916 cat > conftest.$ac_ext <<EOF
5917 #line 5918 "configure"
5918 #include "confdefs.h"
5920 #include <pthread.h>
5922 #define NULL (void*)0
5929 #if HAVE_PTHREADS_D4
5930 pthread_create(&t, pthread_attr_default, NULL, NULL);
5931 pthread_detach( &t );
5933 pthread_create(&t, NULL, NULL, NULL);
5934 pthread_detach( t );
5936 #ifdef HAVE_LINUX_THREADS
5937 pthread_kill_other_threads_np();
5942 if { (eval echo configure:5943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5944 ol_cv_pthread_lpthread_lmach_lexc=yes
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5949 ol_cv_pthread_lpthread_lmach_lexc=no
5958 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5960 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5961 ol_link_pthreads="-lpthread -lmach -lexc"
5962 ol_link_threads=posix
5967 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5968 if test "$ol_link_threads" = no ; then
5969 # try -lpthread -Wl,-woff,85
5970 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5971 echo "configure:5972: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5972 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5978 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5980 cat > conftest.$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5984 #include <pthread.h>
5986 #define NULL (void*)0
5993 #if HAVE_PTHREADS_D4
5994 pthread_create(&t, pthread_attr_default, NULL, NULL);
5995 pthread_detach( &t );
5997 pthread_create(&t, NULL, NULL, NULL);
5998 pthread_detach( t );
6000 #ifdef HAVE_LINUX_THREADS
6001 pthread_kill_other_threads_np();
6006 if { (eval echo configure:6007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6008 ol_cv_pthread_lib_lpthread_woff=yes
6010 echo "configure: failed program was:" >&5
6011 cat conftest.$ac_ext >&5
6013 ol_cv_pthread_lib_lpthread_woff=no
6022 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
6024 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
6025 ol_link_pthreads="-lpthread -Wl,-woff,85"
6026 ol_link_threads=posix
6031 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
6032 if test "$ol_link_threads" = no ; then
6034 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
6035 echo "configure:6036: checking for pthread link with -lpthread" >&5
6036 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6042 LIBS="-lpthread $LIBS"
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6048 #include <pthread.h>
6050 #define NULL (void*)0
6057 #if HAVE_PTHREADS_D4
6058 pthread_create(&t, pthread_attr_default, NULL, NULL);
6059 pthread_detach( &t );
6061 pthread_create(&t, NULL, NULL, NULL);
6062 pthread_detach( t );
6064 #ifdef HAVE_LINUX_THREADS
6065 pthread_kill_other_threads_np();
6070 if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6072 ol_cv_pthread_lpthread=yes
6074 echo "configure: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6077 ol_cv_pthread_lpthread=no
6086 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
6088 if test $ol_cv_pthread_lpthread = yes ; then
6089 ol_link_pthreads="-lpthread"
6090 ol_link_threads=posix
6094 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
6095 if test "$ol_link_threads" = no ; then
6097 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
6098 echo "configure:6099: checking for pthread link with -lc_r" >&5
6099 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
6100 echo $ac_n "(cached) $ac_c" 1>&6
6107 cat > conftest.$ac_ext <<EOF
6108 #line 6109 "configure"
6109 #include "confdefs.h"
6111 #include <pthread.h>
6113 #define NULL (void*)0
6120 #if HAVE_PTHREADS_D4
6121 pthread_create(&t, pthread_attr_default, NULL, NULL);
6122 pthread_detach( &t );
6124 pthread_create(&t, NULL, NULL, NULL);
6125 pthread_detach( t );
6127 #ifdef HAVE_LINUX_THREADS
6128 pthread_kill_other_threads_np();
6133 if { (eval echo configure:6134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6135 ol_cv_pthread_lc_r=yes
6137 echo "configure: failed program was:" >&5
6138 cat conftest.$ac_ext >&5
6140 ol_cv_pthread_lc_r=no
6149 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
6151 if test $ol_cv_pthread_lc_r = yes ; then
6152 ol_link_pthreads="-lc_r"
6153 ol_link_threads=posix
6158 # Pthread try link: -threads (ol_cv_pthread_threads)
6159 if test "$ol_link_threads" = no ; then
6161 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
6162 echo "configure:6163: checking for pthread link with -threads" >&5
6163 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
6164 echo $ac_n "(cached) $ac_c" 1>&6
6169 LIBS="-threads $LIBS"
6171 cat > conftest.$ac_ext <<EOF
6172 #line 6173 "configure"
6173 #include "confdefs.h"
6175 #include <pthread.h>
6177 #define NULL (void*)0
6184 #if HAVE_PTHREADS_D4
6185 pthread_create(&t, pthread_attr_default, NULL, NULL);
6186 pthread_detach( &t );
6188 pthread_create(&t, NULL, NULL, NULL);
6189 pthread_detach( t );
6191 #ifdef HAVE_LINUX_THREADS
6192 pthread_kill_other_threads_np();
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6199 ol_cv_pthread_threads=yes
6201 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6204 ol_cv_pthread_threads=no
6213 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
6215 if test $ol_cv_pthread_threads = yes ; then
6216 ol_link_pthreads="-threads"
6217 ol_link_threads=posix
6222 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
6223 if test "$ol_link_threads" = no ; then
6224 # try -lpthreads -lmach -lexc -lc_r
6225 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
6226 echo "configure:6227: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
6227 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
6228 echo $ac_n "(cached) $ac_c" 1>&6
6233 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
6235 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure"
6237 #include "confdefs.h"
6239 #include <pthread.h>
6241 #define NULL (void*)0
6248 #if HAVE_PTHREADS_D4
6249 pthread_create(&t, pthread_attr_default, NULL, NULL);
6250 pthread_detach( &t );
6252 pthread_create(&t, NULL, NULL, NULL);
6253 pthread_detach( t );
6255 #ifdef HAVE_LINUX_THREADS
6256 pthread_kill_other_threads_np();
6261 if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6263 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
6265 echo "configure: failed program was:" >&5
6266 cat conftest.$ac_ext >&5
6268 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
6277 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
6279 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
6280 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
6281 ol_link_threads=posix
6285 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
6286 if test "$ol_link_threads" = no ; then
6287 # try -lpthreads -lmach -lexc
6288 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
6289 echo "configure:6290: checking for pthread link with -lpthreads -lmach -lexc" >&5
6290 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
6291 echo $ac_n "(cached) $ac_c" 1>&6
6296 LIBS="-lpthreads -lmach -lexc $LIBS"
6298 cat > conftest.$ac_ext <<EOF
6299 #line 6300 "configure"
6300 #include "confdefs.h"
6302 #include <pthread.h>
6304 #define NULL (void*)0
6311 #if HAVE_PTHREADS_D4
6312 pthread_create(&t, pthread_attr_default, NULL, NULL);
6313 pthread_detach( &t );
6315 pthread_create(&t, NULL, NULL, NULL);
6316 pthread_detach( t );
6318 #ifdef HAVE_LINUX_THREADS
6319 pthread_kill_other_threads_np();
6324 if { (eval echo configure:6325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6326 ol_cv_pthread_lpthreads_lmach_lexc=yes
6328 echo "configure: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6331 ol_cv_pthread_lpthreads_lmach_lexc=no
6340 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
6342 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
6343 ol_link_pthreads="-lpthreads -lmach -lexc"
6344 ol_link_threads=posix
6348 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
6349 if test "$ol_link_threads" = no ; then
6350 # try -lpthreads -lexc
6351 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
6352 echo "configure:6353: checking for pthread link with -lpthreads -lexc" >&5
6353 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6359 LIBS="-lpthreads -lexc $LIBS"
6361 cat > conftest.$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6365 #include <pthread.h>
6367 #define NULL (void*)0
6374 #if HAVE_PTHREADS_D4
6375 pthread_create(&t, pthread_attr_default, NULL, NULL);
6376 pthread_detach( &t );
6378 pthread_create(&t, NULL, NULL, NULL);
6379 pthread_detach( t );
6381 #ifdef HAVE_LINUX_THREADS
6382 pthread_kill_other_threads_np();
6387 if { (eval echo configure:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6389 ol_cv_pthread_lpthreads_lexc=yes
6391 echo "configure: failed program was:" >&5
6392 cat conftest.$ac_ext >&5
6394 ol_cv_pthread_lpthreads_lexc=no
6403 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
6405 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
6406 ol_link_pthreads="-lpthreads -lexc"
6407 ol_link_threads=posix
6412 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
6413 if test "$ol_link_threads" = no ; then
6415 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
6416 echo "configure:6417: checking for pthread link with -lpthreads" >&5
6417 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6423 LIBS="-lpthreads $LIBS"
6425 cat > conftest.$ac_ext <<EOF
6426 #line 6427 "configure"
6427 #include "confdefs.h"
6429 #include <pthread.h>
6431 #define NULL (void*)0
6438 #if HAVE_PTHREADS_D4
6439 pthread_create(&t, pthread_attr_default, NULL, NULL);
6440 pthread_detach( &t );
6442 pthread_create(&t, NULL, NULL, NULL);
6443 pthread_detach( t );
6445 #ifdef HAVE_LINUX_THREADS
6446 pthread_kill_other_threads_np();
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6453 ol_cv_pthread_lib_lpthreads=yes
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6458 ol_cv_pthread_lib_lpthreads=no
6467 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
6469 if test $ol_cv_pthread_lib_lpthreads = yes ; then
6470 ol_link_pthreads="-lpthreads"
6471 ol_link_threads=posix
6476 if test $ol_link_threads != no ; then
6477 cat >> confdefs.h <<\EOF
6478 #define HAVE_PTHREADS 1
6482 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
6484 save_CPPFLAGS="$CPPFLAGS"
6486 LIBS="$LTHREAD_LIBS $LIBS"
6488 for ac_func in sched_yield pthread_yield
6490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6491 echo "configure:6492: checking for $ac_func" >&5
6492 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6493 echo $ac_n "(cached) $ac_c" 1>&6
6495 cat > conftest.$ac_ext <<EOF
6496 #line 6497 "configure"
6497 #include "confdefs.h"
6498 /* System header to define __stub macros and hopefully few prototypes,
6499 which can conflict with char $ac_func(); below. */
6501 /* Override any gcc2 internal prototype to avoid an error. */
6502 /* We use char because int might match the return type of a gcc2
6503 builtin and then its argument prototype would still apply. */
6509 /* The GNU C library defines this for functions which it implements
6510 to always fail with ENOSYS. Some functions are actually named
6511 something starting with __ and the normal name is an alias. */
6512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6520 if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6522 eval "ac_cv_func_$ac_func=yes"
6524 echo "configure: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6527 eval "ac_cv_func_$ac_func=no"
6532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6533 echo "$ac_t""yes" 1>&6
6534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6535 cat >> confdefs.h <<EOF
6536 #define $ac_tr_func 1
6540 echo "$ac_t""no" 1>&6
6545 if test $ac_cv_func_sched_yield = no -a \
6546 $ac_cv_func_pthread_yield = no ; then
6547 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
6548 echo "configure:6549: checking for sched_yield in -lrt" >&5
6549 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6550 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6551 echo $ac_n "(cached) $ac_c" 1>&6
6553 ac_save_LIBS="$LIBS"
6555 cat > conftest.$ac_ext <<EOF
6556 #line 6557 "configure"
6557 #include "confdefs.h"
6558 /* Override any gcc2 internal prototype to avoid an error. */
6559 /* We use char because int might match the return type of a gcc2
6560 builtin and then its argument prototype would still apply. */
6567 if { (eval echo configure:6568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6569 eval "ac_cv_lib_$ac_lib_var=yes"
6571 echo "configure: failed program was:" >&5
6572 cat conftest.$ac_ext >&5
6574 eval "ac_cv_lib_$ac_lib_var=no"
6577 LIBS="$ac_save_LIBS"
6580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6581 echo "$ac_t""yes" 1>&6
6582 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
6583 cat >> confdefs.h <<\EOF
6584 #define HAVE_SCHED_YIELD 1
6587 ac_cv_func_sched_yield=yes
6589 echo "$ac_t""no" 1>&6
6590 ac_cv_func_sched_yield=no
6594 if test $ac_cv_func_sched_yield = no -a \
6595 $ac_cv_func_pthread_yield = no ; then
6596 for ac_func in thr_yield
6598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6599 echo "configure:6600: checking for $ac_func" >&5
6600 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6601 echo $ac_n "(cached) $ac_c" 1>&6
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6606 /* System header to define __stub macros and hopefully few prototypes,
6607 which can conflict with char $ac_func(); below. */
6609 /* Override any gcc2 internal prototype to avoid an error. */
6610 /* We use char because int might match the return type of a gcc2
6611 builtin and then its argument prototype would still apply. */
6617 /* The GNU C library defines this for functions which it implements
6618 to always fail with ENOSYS. Some functions are actually named
6619 something starting with __ and the normal name is an alias. */
6620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6628 if { (eval echo configure:6629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6630 eval "ac_cv_func_$ac_func=yes"
6632 echo "configure: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6635 eval "ac_cv_func_$ac_func=no"
6640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6641 echo "$ac_t""yes" 1>&6
6642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6643 cat >> confdefs.h <<EOF
6644 #define $ac_tr_func 1
6648 echo "$ac_t""no" 1>&6
6653 if test $ac_cv_func_sched_yield = no -a \
6654 $ac_cv_func_pthread_yield = no -a \
6655 "$ac_cv_func_thr_yield" = no ; then
6656 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6659 for ac_func in pthread_kill
6661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6662 echo "configure:6663: checking for $ac_func" >&5
6663 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6666 cat > conftest.$ac_ext <<EOF
6667 #line 6668 "configure"
6668 #include "confdefs.h"
6669 /* System header to define __stub macros and hopefully few prototypes,
6670 which can conflict with char $ac_func(); below. */
6672 /* Override any gcc2 internal prototype to avoid an error. */
6673 /* We use char because int might match the return type of a gcc2
6674 builtin and then its argument prototype would still apply. */
6680 /* The GNU C library defines this for functions which it implements
6681 to always fail with ENOSYS. Some functions are actually named
6682 something starting with __ and the normal name is an alias. */
6683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6691 if { (eval echo configure:6692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6693 eval "ac_cv_func_$ac_func=yes"
6695 echo "configure: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 eval "ac_cv_func_$ac_func=no"
6703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6704 echo "$ac_t""yes" 1>&6
6705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6706 cat >> confdefs.h <<EOF
6707 #define $ac_tr_func 1
6711 echo "$ac_t""no" 1>&6
6716 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6717 echo "configure:6718: checking for pthread_detach with <pthread.h>" >&5
6718 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
6719 echo $ac_n "(cached) $ac_c" 1>&6
6722 cat > conftest.$ac_ext <<EOF
6723 #line 6724 "configure"
6724 #include "confdefs.h"
6726 #include <pthread.h>
6728 #define NULL (void*)0
6732 pthread_detach(NULL);
6735 if { (eval echo configure:6736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6737 ol_cv_func_pthread_detach=yes
6739 echo "configure: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6742 ol_cv_func_pthread_detach=no
6748 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6750 if test $ol_cv_func_pthread_detach = no ; then
6751 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6754 cat >> confdefs.h <<\EOF
6755 #define HAVE_PTHREAD_DETACH 1
6760 pthread_setconcurrency \
6761 pthread_getconcurrency \
6762 thr_setconcurrency \
6763 thr_getconcurrency \
6766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6767 echo "configure:6768: checking for $ac_func" >&5
6768 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6769 echo $ac_n "(cached) $ac_c" 1>&6
6771 cat > conftest.$ac_ext <<EOF
6772 #line 6773 "configure"
6773 #include "confdefs.h"
6774 /* System header to define __stub macros and hopefully few prototypes,
6775 which can conflict with char $ac_func(); below. */
6777 /* Override any gcc2 internal prototype to avoid an error. */
6778 /* We use char because int might match the return type of a gcc2
6779 builtin and then its argument prototype would still apply. */
6785 /* The GNU C library defines this for functions which it implements
6786 to always fail with ENOSYS. Some functions are actually named
6787 something starting with __ and the normal name is an alias. */
6788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6796 if { (eval echo configure:6797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6798 eval "ac_cv_func_$ac_func=yes"
6800 echo "configure: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6803 eval "ac_cv_func_$ac_func=no"
6808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6809 echo "$ac_t""yes" 1>&6
6810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6811 cat >> confdefs.h <<EOF
6812 #define $ac_tr_func 1
6816 echo "$ac_t""no" 1>&6
6822 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6823 echo "configure:6824: checking for pthread_kill_other_threads_np" >&5
6824 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
6825 echo $ac_n "(cached) $ac_c" 1>&6
6827 cat > conftest.$ac_ext <<EOF
6828 #line 6829 "configure"
6829 #include "confdefs.h"
6830 /* System header to define __stub macros and hopefully few prototypes,
6831 which can conflict with char pthread_kill_other_threads_np(); below. */
6833 /* Override any gcc2 internal prototype to avoid an error. */
6834 /* We use char because int might match the return type of a gcc2
6835 builtin and then its argument prototype would still apply. */
6836 char pthread_kill_other_threads_np();
6841 /* The GNU C library defines this for functions which it implements
6842 to always fail with ENOSYS. Some functions are actually named
6843 something starting with __ and the normal name is an alias. */
6844 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6847 f = pthread_kill_other_threads_np;
6852 if { (eval echo configure:6853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6854 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6856 echo "configure: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6859 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6864 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6865 echo "$ac_t""yes" 1>&6
6868 echo "$ac_t""no" 1>&6
6871 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6872 echo "configure:6873: checking for LinuxThreads implementation" >&5
6873 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
6874 echo $ac_n "(cached) $ac_c" 1>&6
6876 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6879 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6884 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6885 echo "configure:6886: checking for LinuxThreads consistency" >&5
6886 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
6887 echo $ac_n "(cached) $ac_c" 1>&6
6890 if test $ol_cv_header_linux_threads = yes -a \
6891 $ol_cv_sys_linux_threads = yes; then
6892 ol_cv_linux_threads=yes
6893 elif test $ol_cv_header_linux_threads = no -a \
6894 $ol_cv_sys_linux_threads = no; then
6895 ol_cv_linux_threads=no
6897 ol_cv_linux_threads=error
6902 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6905 if test $ol_cv_linux_threads = error; then
6906 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6909 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6910 echo "configure:6911: checking if pthread_create() works" >&5
6911 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6915 if test "$cross_compiling" = yes; then
6916 ol_cv_pthread_create_works=yes
6918 cat > conftest.$ac_ext <<EOF
6919 #line 6920 "configure"
6920 #include "confdefs.h"
6922 #include <pthread.h>
6924 #define NULL (void*)0
6927 static void *task(p)
6930 return (void *) (p == NULL);
6933 int main(argc, argv)
6938 #if HAVE_PTHREADS_D4
6939 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6941 exit(pthread_create(&t, NULL, task, NULL));
6946 if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6948 ol_cv_pthread_create_works=yes
6950 echo "configure: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6953 ol_cv_pthread_create_works=no
6960 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6962 if test $ol_cv_pthread_create_works = no ; then
6963 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6966 if test $ol_with_yielding_select = auto ; then
6967 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6968 echo "configure:6969: checking if select yields when using pthreads" >&5
6969 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
6970 echo $ac_n "(cached) $ac_c" 1>&6
6973 if test "$cross_compiling" = yes; then
6975 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6977 cat > conftest.$ac_ext <<EOF
6978 #line 6979 "configure"
6979 #include "confdefs.h"
6981 #include <sys/types.h>
6982 #include <sys/time.h>
6984 #include <pthread.h>
6986 #define NULL (void*) 0
6989 static int fildes[2];
6991 static void *task(p)
7003 FD_SET(fildes[0], &rfds);
7005 /* we're not interested in any fds */
7006 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
7013 exit(0); /* if we exit here, the select blocked the whole process */
7016 int main(argc, argv)
7022 /* create a pipe to select */
7023 if(pipe(&fildes[0])) {
7028 #ifdef HAVE_PTHREAD_SETCONCURRENCY
7029 (void) pthread_setconcurrency(2);
7031 #ifdef HAVE_THR_SETCONCURRENCY
7032 /* Set Solaris LWP concurrency to 2 */
7033 thr_setconcurrency(2);
7037 #if HAVE_PTHREADS_D4
7038 pthread_create(&t, pthread_attr_default, task, NULL);
7040 pthread_create(&t, NULL, task, NULL);
7043 #if HAVE_SCHED_YIELD
7044 sched_yield(); /* make sure task runs first */
7046 #ifdef HAVE_PTHREAD_YIELD
7047 pthread_yield(); /* make sure task runs first */
7054 if { (eval echo configure:7055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7056 ol_cv_pthread_select_yields=no
7058 echo "configure: failed program was:" >&5
7059 cat conftest.$ac_ext >&5
7061 ol_cv_pthread_select_yields=yes
7068 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
7070 if test $ol_cv_pthread_select_yields = yes ; then
7071 ol_with_yielding_select=yes
7075 CPPFLAGS="$save_CPPFLAGS"
7078 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
7082 if test $ol_with_threads = posix ; then
7083 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
7087 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7088 -o $ol_with_threads = mach ; then
7090 for ac_hdr in mach/cthreads.h
7092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7094 echo "configure:7095: checking for $ac_hdr" >&5
7095 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7096 echo $ac_n "(cached) $ac_c" 1>&6
7098 cat > conftest.$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7104 { (eval echo configure:7105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7106 if test -z "$ac_err"; then
7108 eval "ac_cv_header_$ac_safe=yes"
7111 echo "configure: failed program was:" >&5
7112 cat conftest.$ac_ext >&5
7114 eval "ac_cv_header_$ac_safe=no"
7118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7119 echo "$ac_t""yes" 1>&6
7120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7121 cat >> confdefs.h <<EOF
7122 #define $ac_tr_hdr 1
7126 echo "$ac_t""no" 1>&6
7130 if test $ac_cv_header_mach_cthreads_h = yes ; then
7131 ol_with_threads=found
7133 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
7134 echo "configure:7135: checking for cthread_fork" >&5
7135 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
7136 echo $ac_n "(cached) $ac_c" 1>&6
7138 cat > conftest.$ac_ext <<EOF
7139 #line 7140 "configure"
7140 #include "confdefs.h"
7141 /* System header to define __stub macros and hopefully few prototypes,
7142 which can conflict with char cthread_fork(); below. */
7144 /* Override any gcc2 internal prototype to avoid an error. */
7145 /* We use char because int might match the return type of a gcc2
7146 builtin and then its argument prototype would still apply. */
7147 char cthread_fork();
7152 /* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */
7155 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
7163 if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7165 eval "ac_cv_func_cthread_fork=yes"
7167 echo "configure: failed program was:" >&5
7168 cat conftest.$ac_ext >&5
7170 eval "ac_cv_func_cthread_fork=no"
7175 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7179 echo "$ac_t""no" 1>&6
7183 if test $ol_link_threads = no ; then
7184 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
7185 echo "configure:7186: checking for cthread_fork with -all_load" >&5
7186 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
7187 echo $ac_n "(cached) $ac_c" 1>&6
7191 LIBS="-all_load $LIBS"
7192 cat > conftest.$ac_ext <<EOF
7193 #line 7194 "configure"
7194 #include "confdefs.h"
7195 #include <mach/cthreads.h>
7198 cthread_fork((void *)0, (void *)0);
7202 if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7204 ol_cv_cthread_all_load=yes
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7209 ol_cv_cthread_all_load=no
7216 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
7218 if test $ol_cv_cthread_all_load = yes ; then
7219 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
7220 ol_link_threads=mach
7224 if test $ol_link_threads != no ; then
7225 : check for cthread specific functionality here
7226 cat >> confdefs.h <<\EOF
7227 #define HAVE_MACH_CTHREADS 1
7231 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
7235 if test $ol_with_threads = mach ; then
7236 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
7240 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7241 -o $ol_with_threads = lwp ; then
7243 for ac_hdr in thread.h synch.h
7245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7247 echo "configure:7248: checking for $ac_hdr" >&5
7248 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7249 echo $ac_n "(cached) $ac_c" 1>&6
7251 cat > conftest.$ac_ext <<EOF
7252 #line 7253 "configure"
7253 #include "confdefs.h"
7256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7257 { (eval echo configure:7258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7259 if test -z "$ac_err"; then
7261 eval "ac_cv_header_$ac_safe=yes"
7264 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7267 eval "ac_cv_header_$ac_safe=no"
7271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7272 echo "$ac_t""yes" 1>&6
7273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7274 cat >> confdefs.h <<EOF
7275 #define $ac_tr_hdr 1
7279 echo "$ac_t""no" 1>&6
7283 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
7284 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
7285 echo "configure:7286: checking for thr_create in -lthread" >&5
7286 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
7287 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7288 echo $ac_n "(cached) $ac_c" 1>&6
7290 ac_save_LIBS="$LIBS"
7291 LIBS="-lthread $LIBS"
7292 cat > conftest.$ac_ext <<EOF
7293 #line 7294 "configure"
7294 #include "confdefs.h"
7295 /* Override any gcc2 internal prototype to avoid an error. */
7296 /* We use char because int might match the return type of a gcc2
7297 builtin and then its argument prototype would still apply. */
7304 if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7306 eval "ac_cv_lib_$ac_lib_var=yes"
7308 echo "configure: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7311 eval "ac_cv_lib_$ac_lib_var=no"
7314 LIBS="$ac_save_LIBS"
7317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7318 echo "$ac_t""yes" 1>&6
7321 echo "$ac_t""no" 1>&6
7326 if test $have_thr = yes ; then
7327 cat >> confdefs.h <<\EOF
7331 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
7334 if test $ol_with_yielding_select = auto ; then
7335 ol_with_yielding_select=yes
7339 thr_setconcurrency \
7340 thr_getconcurrency \
7343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7344 echo "configure:7345: checking for $ac_func" >&5
7345 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7348 cat > conftest.$ac_ext <<EOF
7349 #line 7350 "configure"
7350 #include "confdefs.h"
7351 /* System header to define __stub macros and hopefully few prototypes,
7352 which can conflict with char $ac_func(); below. */
7354 /* Override any gcc2 internal prototype to avoid an error. */
7355 /* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */
7362 /* The GNU C library defines this for functions which it implements
7363 to always fail with ENOSYS. Some functions are actually named
7364 something starting with __ and the normal name is an alias. */
7365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7373 if { (eval echo configure:7374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7375 eval "ac_cv_func_$ac_func=yes"
7377 echo "configure: failed program was:" >&5
7378 cat conftest.$ac_ext >&5
7380 eval "ac_cv_func_$ac_func=no"
7385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7386 echo "$ac_t""yes" 1>&6
7387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7388 cat >> confdefs.h <<EOF
7389 #define $ac_tr_func 1
7393 echo "$ac_t""no" 1>&6
7400 for ac_hdr in lwp/lwp.h
7402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7404 echo "configure:7405: checking for $ac_hdr" >&5
7405 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7414 { (eval echo configure:7415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7416 if test -z "$ac_err"; then
7418 eval "ac_cv_header_$ac_safe=yes"
7421 echo "configure: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7424 eval "ac_cv_header_$ac_safe=no"
7428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7429 echo "$ac_t""yes" 1>&6
7430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7431 cat >> confdefs.h <<EOF
7432 #define $ac_tr_hdr 1
7436 echo "$ac_t""no" 1>&6
7440 if test $ac_cv_header_lwp_lwp_h = yes ; then
7441 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
7442 echo "configure:7443: checking for lwp_create in -llwp" >&5
7443 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
7444 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7445 echo $ac_n "(cached) $ac_c" 1>&6
7447 ac_save_LIBS="$LIBS"
7449 cat > conftest.$ac_ext <<EOF
7450 #line 7451 "configure"
7451 #include "confdefs.h"
7452 /* Override any gcc2 internal prototype to avoid an error. */
7453 /* We use char because int might match the return type of a gcc2
7454 builtin and then its argument prototype would still apply. */
7461 if { (eval echo configure:7462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7463 eval "ac_cv_lib_$ac_lib_var=yes"
7465 echo "configure: failed program was:" >&5
7466 cat conftest.$ac_ext >&5
7468 eval "ac_cv_lib_$ac_lib_var=no"
7471 LIBS="$ac_save_LIBS"
7474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7475 echo "$ac_t""yes" 1>&6
7478 echo "$ac_t""no" 1>&6
7483 if test $have_lwp = yes ; then
7484 cat >> confdefs.h <<\EOF
7488 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
7491 if test $ol_with_yielding_select = auto ; then
7492 ol_with_yielding_select=no
7498 if test $ol_with_yielding_select = yes ; then
7499 cat >> confdefs.h <<\EOF
7500 #define HAVE_YIELDING_SELECT 1
7505 if test $ol_with_threads = manual ; then
7508 echo "configure: warning: thread defines and link options must be set manually" 1>&2
7510 for ac_hdr in pthread.h sched.h
7512 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7514 echo "configure:7515: checking for $ac_hdr" >&5
7515 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7516 echo $ac_n "(cached) $ac_c" 1>&6
7518 cat > conftest.$ac_ext <<EOF
7519 #line 7520 "configure"
7520 #include "confdefs.h"
7523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7524 { (eval echo configure:7525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7526 if test -z "$ac_err"; then
7528 eval "ac_cv_header_$ac_safe=yes"
7531 echo "configure: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7534 eval "ac_cv_header_$ac_safe=no"
7538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7539 echo "$ac_t""yes" 1>&6
7540 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7541 cat >> confdefs.h <<EOF
7542 #define $ac_tr_hdr 1
7546 echo "$ac_t""no" 1>&6
7550 for ac_func in sched_yield pthread_yield
7552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7553 echo "configure:7554: checking for $ac_func" >&5
7554 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7555 echo $ac_n "(cached) $ac_c" 1>&6
7557 cat > conftest.$ac_ext <<EOF
7558 #line 7559 "configure"
7559 #include "confdefs.h"
7560 /* System header to define __stub macros and hopefully few prototypes,
7561 which can conflict with char $ac_func(); below. */
7563 /* Override any gcc2 internal prototype to avoid an error. */
7564 /* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */
7571 /* The GNU C library defines this for functions which it implements
7572 to always fail with ENOSYS. Some functions are actually named
7573 something starting with __ and the normal name is an alias. */
7574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7582 if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7584 eval "ac_cv_func_$ac_func=yes"
7586 echo "configure: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7589 eval "ac_cv_func_$ac_func=no"
7594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7595 echo "$ac_t""yes" 1>&6
7596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7597 cat >> confdefs.h <<EOF
7598 #define $ac_tr_func 1
7602 echo "$ac_t""no" 1>&6
7607 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7608 echo "configure:7609: checking for LinuxThreads pthread.h" >&5
7609 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7610 echo $ac_n "(cached) $ac_c" 1>&6
7612 cat > conftest.$ac_ext <<EOF
7613 #line 7614 "configure"
7614 #include "confdefs.h"
7615 #include <pthread.h>
7617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7618 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7620 ol_cv_header_linux_threads=yes
7623 ol_cv_header_linux_threads=no
7630 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7631 if test $ol_cv_header_linux_threads = yes; then
7632 cat >> confdefs.h <<\EOF
7633 #define HAVE_LINUX_THREADS 1
7639 for ac_hdr in mach/cthreads.h
7641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7643 echo "configure:7644: checking for $ac_hdr" >&5
7644 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7647 cat > conftest.$ac_ext <<EOF
7648 #line 7649 "configure"
7649 #include "confdefs.h"
7652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7653 { (eval echo configure:7654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7655 if test -z "$ac_err"; then
7657 eval "ac_cv_header_$ac_safe=yes"
7660 echo "configure: failed program was:" >&5
7661 cat conftest.$ac_ext >&5
7663 eval "ac_cv_header_$ac_safe=no"
7667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7668 echo "$ac_t""yes" 1>&6
7669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7670 cat >> confdefs.h <<EOF
7671 #define $ac_tr_hdr 1
7675 echo "$ac_t""no" 1>&6
7679 for ac_hdr in lwp/lwp.h
7681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7683 echo "configure:7684: checking for $ac_hdr" >&5
7684 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7685 echo $ac_n "(cached) $ac_c" 1>&6
7687 cat > conftest.$ac_ext <<EOF
7688 #line 7689 "configure"
7689 #include "confdefs.h"
7692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7693 { (eval echo configure:7694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7695 if test -z "$ac_err"; then
7697 eval "ac_cv_header_$ac_safe=yes"
7700 echo "configure: failed program was:" >&5
7701 cat conftest.$ac_ext >&5
7703 eval "ac_cv_header_$ac_safe=no"
7707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7708 echo "$ac_t""yes" 1>&6
7709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7710 cat >> confdefs.h <<EOF
7711 #define $ac_tr_hdr 1
7715 echo "$ac_t""no" 1>&6
7719 for ac_hdr in thread.h synch.h
7721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7723 echo "configure:7724: checking for $ac_hdr" >&5
7724 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7727 cat > conftest.$ac_ext <<EOF
7728 #line 7729 "configure"
7729 #include "confdefs.h"
7732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7733 { (eval echo configure:7734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7735 if test -z "$ac_err"; then
7737 eval "ac_cv_header_$ac_safe=yes"
7740 echo "configure: failed program was:" >&5
7741 cat conftest.$ac_ext >&5
7743 eval "ac_cv_header_$ac_safe=no"
7747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7748 echo "$ac_t""yes" 1>&6
7749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7750 cat >> confdefs.h <<EOF
7751 #define $ac_tr_hdr 1
7755 echo "$ac_t""no" 1>&6
7761 if test $ol_link_threads != no ; then
7762 cat >> confdefs.h <<\EOF
7766 cat >> confdefs.h <<\EOF
7767 #define _REENTRANT 1
7770 cat >> confdefs.h <<\EOF
7771 #define THREAD_SAFE 1
7774 cat >> confdefs.h <<\EOF
7775 #define _THREAD_SAFE 1
7778 cat >> confdefs.h <<\EOF
7779 #define THREADSAFE 1
7782 cat >> confdefs.h <<\EOF
7783 #define _THREADSAFE 1
7786 cat >> confdefs.h <<\EOF
7787 #define _SGI_MP_SOURCE 1
7791 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7792 echo "configure:7793: checking for thread specific errno" >&5
7793 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
7794 echo $ac_n "(cached) $ac_c" 1>&6
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7805 if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7807 ol_cv_errno_thread_specific=yes
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5
7812 ol_cv_errno_thread_specific=no
7818 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7820 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
7821 echo "configure:7822: checking for thread specific h_errno" >&5
7822 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
7823 echo $ac_n "(cached) $ac_c" 1>&6
7826 cat > conftest.$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7834 if { (eval echo configure:7835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7836 ol_cv_h_errno_thread_specific=yes
7838 echo "configure: failed program was:" >&5
7839 cat conftest.$ac_ext >&5
7841 ol_cv_h_errno_thread_specific=no
7847 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
7849 if test $ol_cv_errno_thread_specific != yes \
7850 -o $ol_cv_h_errno_thread_specific != yes ; then
7851 LIBS="$LTHREAD_LIBS $LIBS"
7857 if test $ol_link_threads = no ; then
7858 if test $ol_with_threads = yes ; then
7859 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7862 if test $ol_with_threads = auto ; then
7863 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7867 cat >> confdefs.h <<\EOF
7868 #define NO_THREADS 1
7874 if test $ol_link_threads != no ; then
7875 cat >> confdefs.h <<\EOF
7876 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7883 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7884 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7885 echo "configure:7886: checking for DB2 library" >&5
7886 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
7887 echo $ac_n "(cached) $ac_c" 1>&6
7890 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7891 echo "configure:7892: checking for db_open in -ldb" >&5
7892 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7893 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7896 ac_save_LIBS="$LIBS"
7898 cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure"
7900 #include "confdefs.h"
7901 /* Override any gcc2 internal prototype to avoid an error. */
7902 /* We use char because int might match the return type of a gcc2
7903 builtin and then its argument prototype would still apply. */
7910 if { (eval echo configure:7911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7912 eval "ac_cv_lib_$ac_lib_var=yes"
7914 echo "configure: failed program was:" >&5
7915 cat conftest.$ac_ext >&5
7917 eval "ac_cv_lib_$ac_lib_var=no"
7920 LIBS="$ac_save_LIBS"
7923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7924 echo "$ac_t""yes" 1>&6
7927 echo "$ac_t""no" 1>&6
7935 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7941 echo "configure:7942: checking for $ac_hdr" >&5
7942 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7943 echo $ac_n "(cached) $ac_c" 1>&6
7945 cat > conftest.$ac_ext <<EOF
7946 #line 7947 "configure"
7947 #include "confdefs.h"
7950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7951 { (eval echo configure:7952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7953 if test -z "$ac_err"; then
7955 eval "ac_cv_header_$ac_safe=yes"
7958 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7961 eval "ac_cv_header_$ac_safe=no"
7965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7966 echo "$ac_t""yes" 1>&6
7967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7968 cat >> confdefs.h <<EOF
7969 #define $ac_tr_hdr 1
7973 echo "$ac_t""no" 1>&6
7977 if test $ac_cv_header_db_h = yes ; then
7978 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7979 echo "configure:7980: checking if db.h is DB2" >&5
7980 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7984 cat > conftest.$ac_ext <<EOF
7985 #line 7986 "configure"
7986 #include "confdefs.h"
7989 /* this check could be improved */
7990 # ifdef DB_VERSION_MAJOR
7991 # if DB_VERSION_MAJOR == 2
7997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7998 egrep "__db_version_2" >/dev/null 2>&1; then
8000 ol_cv_header_db2=yes
8009 echo "$ac_t""$ol_cv_header_db2" 1>&6
8016 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
8017 echo "configure:8018: checking for Berkeley DB2" >&5
8018 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
8019 echo $ac_n "(cached) $ac_c" 1>&6
8022 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
8023 ol_cv_berkeley_db2=no
8025 ol_cv_berkeley_db2=yes
8030 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
8031 if test $ol_cv_berkeley_db2 = yes ; then
8032 cat >> confdefs.h <<\EOF
8033 #define HAVE_BERKELEY_DB2 1
8039 if test $ol_cv_berkeley_db2 = yes ; then
8041 ol_with_ldbm_api=db2
8043 if test $ol_with_ldbm_type = hash ; then
8044 cat >> confdefs.h <<\EOF
8045 #define LDBM_USE_DBHASH 1
8049 cat >> confdefs.h <<\EOF
8050 #define LDBM_USE_DBBTREE 1
8055 if test $ol_cv_lib_db2 != yes ; then
8056 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
8062 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
8066 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
8067 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
8068 echo "configure:8069: checking for Berkeley DB library" >&5
8069 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
8070 echo $ac_n "(cached) $ac_c" 1>&6
8073 for ac_hdr in db1/db.h
8075 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8077 echo "configure:8078: checking for $ac_hdr" >&5
8078 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8079 echo $ac_n "(cached) $ac_c" 1>&6
8081 cat > conftest.$ac_ext <<EOF
8082 #line 8083 "configure"
8083 #include "confdefs.h"
8086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8087 { (eval echo configure:8088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8089 if test -z "$ac_err"; then
8091 eval "ac_cv_header_$ac_safe=yes"
8094 echo "configure: failed program was:" >&5
8095 cat conftest.$ac_ext >&5
8097 eval "ac_cv_header_$ac_safe=no"
8101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8102 echo "$ac_t""yes" 1>&6
8103 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8104 cat >> confdefs.h <<EOF
8105 #define $ac_tr_hdr 1
8109 echo "$ac_t""no" 1>&6
8114 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
8115 echo "configure:8116: checking for dbopen" >&5
8116 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
8117 echo $ac_n "(cached) $ac_c" 1>&6
8119 cat > conftest.$ac_ext <<EOF
8120 #line 8121 "configure"
8121 #include "confdefs.h"
8122 /* System header to define __stub macros and hopefully few prototypes,
8123 which can conflict with char dbopen(); below. */
8125 /* Override any gcc2 internal prototype to avoid an error. */
8126 /* We use char because int might match the return type of a gcc2
8127 builtin and then its argument prototype would still apply. */
8133 /* The GNU C library defines this for functions which it implements
8134 to always fail with ENOSYS. Some functions are actually named
8135 something starting with __ and the normal name is an alias. */
8136 #if defined (__stub_dbopen) || defined (__stub___dbopen)
8144 if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8146 eval "ac_cv_func_dbopen=yes"
8148 echo "configure: failed program was:" >&5
8149 cat conftest.$ac_ext >&5
8151 eval "ac_cv_func_dbopen=no"
8156 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
8157 echo "$ac_t""yes" 1>&6
8160 echo "$ac_t""no" 1>&6
8162 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
8163 echo "configure:8164: checking for dbopen in -ldb1" >&5
8164 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
8165 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8166 echo $ac_n "(cached) $ac_c" 1>&6
8168 ac_save_LIBS="$LIBS"
8170 cat > conftest.$ac_ext <<EOF
8171 #line 8172 "configure"
8172 #include "confdefs.h"
8173 /* Override any gcc2 internal prototype to avoid an error. */
8174 /* We use char because int might match the return type of a gcc2
8175 builtin and then its argument prototype would still apply. */
8182 if { (eval echo configure:8183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8184 eval "ac_cv_lib_$ac_lib_var=yes"
8186 echo "configure: failed program was:" >&5
8187 cat conftest.$ac_ext >&5
8189 eval "ac_cv_lib_$ac_lib_var=no"
8192 LIBS="$ac_save_LIBS"
8195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8196 echo "$ac_t""yes" 1>&6
8199 echo "$ac_t""no" 1>&6
8201 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
8202 echo "configure:8203: checking for dbopen in -ldb" >&5
8203 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
8204 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
8207 ac_save_LIBS="$LIBS"
8209 cat > conftest.$ac_ext <<EOF
8210 #line 8211 "configure"
8211 #include "confdefs.h"
8212 /* Override any gcc2 internal prototype to avoid an error. */
8213 /* We use char because int might match the return type of a gcc2
8214 builtin and then its argument prototype would still apply. */
8221 if { (eval echo configure:8222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8223 eval "ac_cv_lib_$ac_lib_var=yes"
8225 echo "configure: failed program was:" >&5
8226 cat conftest.$ac_ext >&5
8228 eval "ac_cv_lib_$ac_lib_var=no"
8231 LIBS="$ac_save_LIBS"
8234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8235 echo "$ac_t""yes" 1>&6
8238 echo "$ac_t""no" 1>&6
8252 echo "$ac_t""$ol_cv_lib_db" 1>&6
8255 for ac_hdr in db_185.h
8257 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8259 echo "configure:8260: checking for $ac_hdr" >&5
8260 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8261 echo $ac_n "(cached) $ac_c" 1>&6
8263 cat > conftest.$ac_ext <<EOF
8264 #line 8265 "configure"
8265 #include "confdefs.h"
8268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8269 { (eval echo configure:8270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8271 if test -z "$ac_err"; then
8273 eval "ac_cv_header_$ac_safe=yes"
8276 echo "configure: failed program was:" >&5
8277 cat conftest.$ac_ext >&5
8279 eval "ac_cv_header_$ac_safe=no"
8283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8284 echo "$ac_t""yes" 1>&6
8285 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8286 cat >> confdefs.h <<EOF
8287 #define $ac_tr_hdr 1
8291 echo "$ac_t""no" 1>&6
8295 if test "$ol_cv_header_db2" = yes ; then
8297 ol_cv_header_db=$ac_cv_header_db_185_h
8299 ol_cv_header_db=$ac_cv_header_db_h
8304 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
8305 echo "configure:8306: checking for Berkeley DB" >&5
8306 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
8307 echo $ac_n "(cached) $ac_c" 1>&6
8310 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
8311 ol_cv_berkeley_db=no
8313 ol_cv_berkeley_db=yes
8318 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
8319 if test $ol_cv_berkeley_db = yes ; then
8320 cat >> confdefs.h <<\EOF
8321 #define HAVE_BERKELEY_DB 1
8327 if test $ol_cv_berkeley_db = yes ; then
8331 if test $ol_with_ldbm_type = hash ; then
8332 cat >> confdefs.h <<\EOF
8333 #define LDBM_USE_DBHASH 1
8337 cat >> confdefs.h <<\EOF
8338 #define LDBM_USE_DBBTREE 1
8343 if test $ol_cv_lib_db != yes ; then
8344 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
8349 if test $ol_with_ldbm_api = manual ; then
8352 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
8354 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
8356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8358 echo "configure:8359: checking for $ac_hdr" >&5
8359 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8360 echo $ac_n "(cached) $ac_c" 1>&6
8362 cat > conftest.$ac_ext <<EOF
8363 #line 8364 "configure"
8364 #include "confdefs.h"
8367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8368 { (eval echo configure:8369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8370 if test -z "$ac_err"; then
8372 eval "ac_cv_header_$ac_safe=yes"
8375 echo "configure: failed program was:" >&5
8376 cat conftest.$ac_ext >&5
8378 eval "ac_cv_header_$ac_safe=no"
8382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8383 echo "$ac_t""yes" 1>&6
8384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8385 cat >> confdefs.h <<EOF
8386 #define $ac_tr_hdr 1
8390 echo "$ac_t""no" 1>&6
8396 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
8397 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
8398 ol_with_ldbm_api=none
8401 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
8402 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
8403 echo "configure:8404: checking for MDBM library" >&5
8404 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
8405 echo $ac_n "(cached) $ac_c" 1>&6
8408 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
8409 echo "configure:8410: checking for mdbm_set_chain" >&5
8410 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
8411 echo $ac_n "(cached) $ac_c" 1>&6
8413 cat > conftest.$ac_ext <<EOF
8414 #line 8415 "configure"
8415 #include "confdefs.h"
8416 /* System header to define __stub macros and hopefully few prototypes,
8417 which can conflict with char mdbm_set_chain(); below. */
8419 /* Override any gcc2 internal prototype to avoid an error. */
8420 /* We use char because int might match the return type of a gcc2
8421 builtin and then its argument prototype would still apply. */
8422 char mdbm_set_chain();
8427 /* The GNU C library defines this for functions which it implements
8428 to always fail with ENOSYS. Some functions are actually named
8429 something starting with __ and the normal name is an alias. */
8430 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
8438 if { (eval echo configure:8439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8440 eval "ac_cv_func_mdbm_set_chain=yes"
8442 echo "configure: failed program was:" >&5
8443 cat conftest.$ac_ext >&5
8445 eval "ac_cv_func_mdbm_set_chain=no"
8450 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
8451 echo "$ac_t""yes" 1>&6
8454 echo "$ac_t""no" 1>&6
8456 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
8457 echo "configure:8458: checking for mdbm_set_chain in -lmdbm" >&5
8458 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
8459 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8460 echo $ac_n "(cached) $ac_c" 1>&6
8462 ac_save_LIBS="$LIBS"
8464 cat > conftest.$ac_ext <<EOF
8465 #line 8466 "configure"
8466 #include "confdefs.h"
8467 /* Override any gcc2 internal prototype to avoid an error. */
8468 /* We use char because int might match the return type of a gcc2
8469 builtin and then its argument prototype would still apply. */
8470 char mdbm_set_chain();
8476 if { (eval echo configure:8477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8478 eval "ac_cv_lib_$ac_lib_var=yes"
8480 echo "configure: failed program was:" >&5
8481 cat conftest.$ac_ext >&5
8483 eval "ac_cv_lib_$ac_lib_var=no"
8486 LIBS="$ac_save_LIBS"
8489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8490 echo "$ac_t""yes" 1>&6
8491 ol_cv_lib_mdbm=-lmdbm
8493 echo "$ac_t""no" 1>&6
8504 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
8507 for ac_hdr in mdbm.h
8509 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8511 echo "configure:8512: checking for $ac_hdr" >&5
8512 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8513 echo $ac_n "(cached) $ac_c" 1>&6
8515 cat > conftest.$ac_ext <<EOF
8516 #line 8517 "configure"
8517 #include "confdefs.h"
8520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8521 { (eval echo configure:8522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8523 if test -z "$ac_err"; then
8525 eval "ac_cv_header_$ac_safe=yes"
8528 echo "configure: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8531 eval "ac_cv_header_$ac_safe=no"
8535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8536 echo "$ac_t""yes" 1>&6
8537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8538 cat >> confdefs.h <<EOF
8539 #define $ac_tr_hdr 1
8543 echo "$ac_t""no" 1>&6
8547 echo $ac_n "checking for db""... $ac_c" 1>&6
8548 echo "configure:8549: checking for db" >&5
8549 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
8550 echo $ac_n "(cached) $ac_c" 1>&6
8553 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
8561 echo "$ac_t""$ol_cv_mdbm" 1>&6
8562 if test $ol_cv_mdbm = yes ; then
8563 cat >> confdefs.h <<\EOF
8570 if test $ol_cv_mdbm = yes ; then
8572 ol_with_ldbm_api=mdbm
8573 if test $ol_cv_lib_mdbm != yes ; then
8574 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
8579 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
8580 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
8581 echo "configure:8582: checking for GDBM library" >&5
8582 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8586 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
8587 echo "configure:8588: checking for gdbm_open" >&5
8588 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
8589 echo $ac_n "(cached) $ac_c" 1>&6
8591 cat > conftest.$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8594 /* System header to define __stub macros and hopefully few prototypes,
8595 which can conflict with char gdbm_open(); below. */
8597 /* Override any gcc2 internal prototype to avoid an error. */
8598 /* We use char because int might match the return type of a gcc2
8599 builtin and then its argument prototype would still apply. */
8605 /* The GNU C library defines this for functions which it implements
8606 to always fail with ENOSYS. Some functions are actually named
8607 something starting with __ and the normal name is an alias. */
8608 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
8616 if { (eval echo configure:8617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8618 eval "ac_cv_func_gdbm_open=yes"
8620 echo "configure: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8623 eval "ac_cv_func_gdbm_open=no"
8628 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
8629 echo "$ac_t""yes" 1>&6
8632 echo "$ac_t""no" 1>&6
8634 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
8635 echo "configure:8636: checking for gdbm_open in -lgdbm" >&5
8636 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
8637 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8638 echo $ac_n "(cached) $ac_c" 1>&6
8640 ac_save_LIBS="$LIBS"
8642 cat > conftest.$ac_ext <<EOF
8643 #line 8644 "configure"
8644 #include "confdefs.h"
8645 /* Override any gcc2 internal prototype to avoid an error. */
8646 /* We use char because int might match the return type of a gcc2
8647 builtin and then its argument prototype would still apply. */
8654 if { (eval echo configure:8655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8656 eval "ac_cv_lib_$ac_lib_var=yes"
8658 echo "configure: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8661 eval "ac_cv_lib_$ac_lib_var=no"
8664 LIBS="$ac_save_LIBS"
8667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8668 echo "$ac_t""yes" 1>&6
8669 ol_cv_lib_gdbm=-lgdbm
8671 echo "$ac_t""no" 1>&6
8682 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8685 for ac_hdr in gdbm.h
8687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8689 echo "configure:8690: checking for $ac_hdr" >&5
8690 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8691 echo $ac_n "(cached) $ac_c" 1>&6
8693 cat > conftest.$ac_ext <<EOF
8694 #line 8695 "configure"
8695 #include "confdefs.h"
8698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8699 { (eval echo configure:8700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8701 if test -z "$ac_err"; then
8703 eval "ac_cv_header_$ac_safe=yes"
8706 echo "configure: failed program was:" >&5
8707 cat conftest.$ac_ext >&5
8709 eval "ac_cv_header_$ac_safe=no"
8713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8714 echo "$ac_t""yes" 1>&6
8715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8716 cat >> confdefs.h <<EOF
8717 #define $ac_tr_hdr 1
8721 echo "$ac_t""no" 1>&6
8725 echo $ac_n "checking for db""... $ac_c" 1>&6
8726 echo "configure:8727: checking for db" >&5
8727 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
8728 echo $ac_n "(cached) $ac_c" 1>&6
8731 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8739 echo "$ac_t""$ol_cv_gdbm" 1>&6
8740 if test $ol_cv_gdbm = yes ; then
8741 cat >> confdefs.h <<\EOF
8748 if test $ol_cv_gdbm = yes ; then
8750 ol_with_ldbm_api=gdbm
8752 if test $ol_cv_lib_gdbm != yes ; then
8753 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8758 if test $ol_with_ldbm_api = auto ; then
8759 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8760 elif test $ol_with_ldbm_api = ndbm ; then
8761 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8762 echo "configure:8763: checking for NDBM library" >&5
8763 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
8764 echo $ac_n "(cached) $ac_c" 1>&6
8767 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8768 echo "configure:8769: checking for dbm_open" >&5
8769 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
8770 echo $ac_n "(cached) $ac_c" 1>&6
8772 cat > conftest.$ac_ext <<EOF
8773 #line 8774 "configure"
8774 #include "confdefs.h"
8775 /* System header to define __stub macros and hopefully few prototypes,
8776 which can conflict with char dbm_open(); below. */
8778 /* Override any gcc2 internal prototype to avoid an error. */
8779 /* We use char because int might match the return type of a gcc2
8780 builtin and then its argument prototype would still apply. */
8786 /* The GNU C library defines this for functions which it implements
8787 to always fail with ENOSYS. Some functions are actually named
8788 something starting with __ and the normal name is an alias. */
8789 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8797 if { (eval echo configure:8798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8799 eval "ac_cv_func_dbm_open=yes"
8801 echo "configure: failed program was:" >&5
8802 cat conftest.$ac_ext >&5
8804 eval "ac_cv_func_dbm_open=no"
8809 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8810 echo "$ac_t""yes" 1>&6
8813 echo "$ac_t""no" 1>&6
8815 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8816 echo "configure:8817: checking for dbm_open in -lndbm" >&5
8817 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8818 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8819 echo $ac_n "(cached) $ac_c" 1>&6
8821 ac_save_LIBS="$LIBS"
8823 cat > conftest.$ac_ext <<EOF
8824 #line 8825 "configure"
8825 #include "confdefs.h"
8826 /* Override any gcc2 internal prototype to avoid an error. */
8827 /* We use char because int might match the return type of a gcc2
8828 builtin and then its argument prototype would still apply. */
8835 if { (eval echo configure:8836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8837 eval "ac_cv_lib_$ac_lib_var=yes"
8839 echo "configure: failed program was:" >&5
8840 cat conftest.$ac_ext >&5
8842 eval "ac_cv_lib_$ac_lib_var=no"
8845 LIBS="$ac_save_LIBS"
8848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8849 echo "$ac_t""yes" 1>&6
8850 ol_cv_lib_ndbm=-lndbm
8852 echo "$ac_t""no" 1>&6
8854 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8855 echo "configure:8856: checking for dbm_open in -ldbm" >&5
8856 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8857 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8858 echo $ac_n "(cached) $ac_c" 1>&6
8860 ac_save_LIBS="$LIBS"
8862 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8865 /* Override any gcc2 internal prototype to avoid an error. */
8866 /* We use char because int might match the return type of a gcc2
8867 builtin and then its argument prototype would still apply. */
8874 if { (eval echo configure:8875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8876 eval "ac_cv_lib_$ac_lib_var=yes"
8878 echo "configure: failed program was:" >&5
8879 cat conftest.$ac_ext >&5
8881 eval "ac_cv_lib_$ac_lib_var=no"
8884 LIBS="$ac_save_LIBS"
8887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8888 echo "$ac_t""yes" 1>&6
8889 ol_cv_lib_ndbm=-ldbm
8891 echo "$ac_t""no" 1>&6
8904 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8907 for ac_hdr in ndbm.h
8909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8911 echo "configure:8912: checking for $ac_hdr" >&5
8912 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8913 echo $ac_n "(cached) $ac_c" 1>&6
8915 cat > conftest.$ac_ext <<EOF
8916 #line 8917 "configure"
8917 #include "confdefs.h"
8920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8921 { (eval echo configure:8922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8923 if test -z "$ac_err"; then
8925 eval "ac_cv_header_$ac_safe=yes"
8928 echo "configure: failed program was:" >&5
8929 cat conftest.$ac_ext >&5
8931 eval "ac_cv_header_$ac_safe=no"
8935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8936 echo "$ac_t""yes" 1>&6
8937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8938 cat >> confdefs.h <<EOF
8939 #define $ac_tr_hdr 1
8943 echo "$ac_t""no" 1>&6
8947 echo $ac_n "checking for db""... $ac_c" 1>&6
8948 echo "configure:8949: checking for db" >&5
8949 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
8950 echo $ac_n "(cached) $ac_c" 1>&6
8953 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8961 echo "$ac_t""$ol_cv_ndbm" 1>&6
8962 if test $ol_cv_ndbm = yes ; then
8963 cat >> confdefs.h <<\EOF
8970 if test $ol_cv_ndbm = yes ; then
8972 ol_with_ldbm_api=ndbm
8974 if test $ol_cv_lib_ndbm != yes ; then
8975 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8980 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8981 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8982 if test $ol_enable_ldbm = yes ; then
8983 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8986 echo "configure: warning: disabling LDBM" 1>&2
8990 if test $ol_enable_wrappers != no ; then
8991 for ac_hdr in tcpd.h
8993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8995 echo "configure:8996: checking for $ac_hdr" >&5
8996 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8997 echo $ac_n "(cached) $ac_c" 1>&6
8999 cat > conftest.$ac_ext <<EOF
9000 #line 9001 "configure"
9001 #include "confdefs.h"
9004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9005 { (eval echo configure:9006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9007 if test -z "$ac_err"; then
9009 eval "ac_cv_header_$ac_safe=yes"
9012 echo "configure: failed program was:" >&5
9013 cat conftest.$ac_ext >&5
9015 eval "ac_cv_header_$ac_safe=no"
9019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9020 echo "$ac_t""yes" 1>&6
9021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9022 cat >> confdefs.h <<EOF
9023 #define $ac_tr_hdr 1
9027 echo "$ac_t""no" 1>&6
9032 if test $ac_cv_header_tcpd_h != yes ; then
9035 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
9036 echo "configure:9037: checking for main in -lwrap" >&5
9037 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
9038 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9039 echo $ac_n "(cached) $ac_c" 1>&6
9041 ac_save_LIBS="$LIBS"
9043 cat > conftest.$ac_ext <<EOF
9044 #line 9045 "configure"
9045 #include "confdefs.h"
9051 if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9053 eval "ac_cv_lib_$ac_lib_var=yes"
9055 echo "configure: failed program was:" >&5
9056 cat conftest.$ac_ext >&5
9058 eval "ac_cv_lib_$ac_lib_var=no"
9061 LIBS="$ac_save_LIBS"
9064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9065 echo "$ac_t""yes" 1>&6
9068 echo "$ac_t""no" 1>&6
9074 if test $have_wrappers = yes ; then
9075 cat >> confdefs.h <<\EOF
9079 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
9081 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9082 echo "configure:9083: checking for main in -lnsl" >&5
9083 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
9084 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9085 echo $ac_n "(cached) $ac_c" 1>&6
9087 ac_save_LIBS="$LIBS"
9089 cat > conftest.$ac_ext <<EOF
9090 #line 9091 "configure"
9091 #include "confdefs.h"
9097 if { (eval echo configure:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9099 eval "ac_cv_lib_$ac_lib_var=yes"
9101 echo "configure: failed program was:" >&5
9102 cat conftest.$ac_ext >&5
9104 eval "ac_cv_lib_$ac_lib_var=no"
9107 LIBS="$ac_save_LIBS"
9110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9111 echo "$ac_t""yes" 1>&6
9112 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9113 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9114 cat >> confdefs.h <<EOF
9115 #define $ac_tr_lib 1
9121 echo "$ac_t""no" 1>&6
9125 echo "configure: warning: could not find -lwrap" 1>&2
9126 if test $ol_enable_wrappers = yes ; then
9127 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
9130 echo "configure: warning: disabling wrappers support" 1>&2
9131 ol_enable_wrappers=no
9135 if test $ol_enable_syslog != no ; then
9136 echo $ac_n "checking for openlog""... $ac_c" 1>&6
9137 echo "configure:9138: checking for openlog" >&5
9138 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
9139 echo $ac_n "(cached) $ac_c" 1>&6
9141 cat > conftest.$ac_ext <<EOF
9142 #line 9143 "configure"
9143 #include "confdefs.h"
9144 /* System header to define __stub macros and hopefully few prototypes,
9145 which can conflict with char openlog(); below. */
9147 /* Override any gcc2 internal prototype to avoid an error. */
9148 /* We use char because int might match the return type of a gcc2
9149 builtin and then its argument prototype would still apply. */
9155 /* The GNU C library defines this for functions which it implements
9156 to always fail with ENOSYS. Some functions are actually named
9157 something starting with __ and the normal name is an alias. */
9158 #if defined (__stub_openlog) || defined (__stub___openlog)
9166 if { (eval echo configure:9167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9168 eval "ac_cv_func_openlog=yes"
9170 echo "configure: failed program was:" >&5
9171 cat conftest.$ac_ext >&5
9173 eval "ac_cv_func_openlog=no"
9178 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
9179 echo "$ac_t""yes" 1>&6
9182 echo "$ac_t""no" 1>&6
9185 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
9186 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
9188 ol_enable_syslog=$ac_cv_func_openlog
9191 if test $ol_enable_dmalloc != no ; then
9192 for ac_hdr in dmalloc.h
9194 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9196 echo "configure:9197: checking for $ac_hdr" >&5
9197 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9198 echo $ac_n "(cached) $ac_c" 1>&6
9200 cat > conftest.$ac_ext <<EOF
9201 #line 9202 "configure"
9202 #include "confdefs.h"
9205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9206 { (eval echo configure:9207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9208 if test -z "$ac_err"; then
9210 eval "ac_cv_header_$ac_safe=yes"
9213 echo "configure: failed program was:" >&5
9214 cat conftest.$ac_ext >&5
9216 eval "ac_cv_header_$ac_safe=no"
9220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9221 echo "$ac_t""yes" 1>&6
9222 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9223 cat >> confdefs.h <<EOF
9224 #define $ac_tr_hdr 1
9228 echo "$ac_t""no" 1>&6
9232 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
9233 echo "configure:9234: checking for dmalloc_shutdown in -ldmalloc" >&5
9234 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
9235 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9236 echo $ac_n "(cached) $ac_c" 1>&6
9238 ac_save_LIBS="$LIBS"
9239 LIBS="-ldmalloc $LIBS"
9240 cat > conftest.$ac_ext <<EOF
9241 #line 9242 "configure"
9242 #include "confdefs.h"
9243 /* Override any gcc2 internal prototype to avoid an error. */
9244 /* We use char because int might match the return type of a gcc2
9245 builtin and then its argument prototype would still apply. */
9246 char dmalloc_shutdown();
9252 if { (eval echo configure:9253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9254 eval "ac_cv_lib_$ac_lib_var=yes"
9256 echo "configure: failed program was:" >&5
9257 cat conftest.$ac_ext >&5
9259 eval "ac_cv_lib_$ac_lib_var=no"
9262 LIBS="$ac_save_LIBS"
9265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9266 echo "$ac_t""yes" 1>&6
9267 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9268 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9269 cat >> confdefs.h <<EOF
9270 #define $ac_tr_lib 1
9273 LIBS="-ldmalloc $LIBS"
9276 echo "$ac_t""no" 1>&6
9281 if test $ol_enable_tcl != no ; then
9284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9286 echo "configure:9287: checking for $ac_hdr" >&5
9287 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9288 echo $ac_n "(cached) $ac_c" 1>&6
9290 cat > conftest.$ac_ext <<EOF
9291 #line 9292 "configure"
9292 #include "confdefs.h"
9295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9296 { (eval echo configure:9297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9298 if test -z "$ac_err"; then
9300 eval "ac_cv_header_$ac_safe=yes"
9303 echo "configure: failed program was:" >&5
9304 cat conftest.$ac_ext >&5
9306 eval "ac_cv_header_$ac_safe=no"
9310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9311 echo "$ac_t""yes" 1>&6
9312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9313 cat >> confdefs.h <<EOF
9314 #define $ac_tr_hdr 1
9318 echo "$ac_t""no" 1>&6
9323 if test $ac_cv_header_tcl_h != yes ; then
9326 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
9327 echo "configure:9328: checking for main in -ltcl" >&5
9328 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
9329 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9330 echo $ac_n "(cached) $ac_c" 1>&6
9332 ac_save_LIBS="$LIBS"
9334 cat > conftest.$ac_ext <<EOF
9335 #line 9336 "configure"
9336 #include "confdefs.h"
9342 if { (eval echo configure:9343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9344 eval "ac_cv_lib_$ac_lib_var=yes"
9346 echo "configure: failed program was:" >&5
9347 cat conftest.$ac_ext >&5
9349 eval "ac_cv_lib_$ac_lib_var=no"
9352 LIBS="$ac_save_LIBS"
9355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9356 echo "$ac_t""yes" 1>&6
9357 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
9359 echo "$ac_t""no" 1>&6
9364 if test $have_tcl != yes; then
9365 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
9366 echo "configure:9367: checking for main in -ltcl7.6" >&5
9367 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
9368 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9369 echo $ac_n "(cached) $ac_c" 1>&6
9371 ac_save_LIBS="$LIBS"
9372 LIBS="-ltcl7.6 $LIBS"
9373 cat > conftest.$ac_ext <<EOF
9374 #line 9375 "configure"
9375 #include "confdefs.h"
9381 if { (eval echo configure:9382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9383 eval "ac_cv_lib_$ac_lib_var=yes"
9385 echo "configure: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9388 eval "ac_cv_lib_$ac_lib_var=no"
9391 LIBS="$ac_save_LIBS"
9394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9395 echo "$ac_t""yes" 1>&6
9396 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
9398 echo "$ac_t""no" 1>&6
9404 if test $have_tcl != yes; then
9405 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
9406 echo "configure:9407: checking for main in -ltcl8.0" >&5
9407 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
9408 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9409 echo $ac_n "(cached) $ac_c" 1>&6
9411 ac_save_LIBS="$LIBS"
9412 LIBS="-ltcl8.0 $LIBS"
9413 cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9421 if { (eval echo configure:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9423 eval "ac_cv_lib_$ac_lib_var=yes"
9425 echo "configure: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9428 eval "ac_cv_lib_$ac_lib_var=no"
9431 LIBS="$ac_save_LIBS"
9434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9435 echo "$ac_t""yes" 1>&6
9436 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
9438 echo "$ac_t""no" 1>&6
9445 if test $have_tcl != yes ; then
9446 echo "configure: warning: could not find -ltcl" 1>&2
9447 if test $ol_enable_tcl = yes ; then
9448 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
9455 # ud needs termcap (should insert check here)
9457 for ac_hdr in termcap.h ncurses.h
9459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9461 echo "configure:9462: checking for $ac_hdr" >&5
9462 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9463 echo $ac_n "(cached) $ac_c" 1>&6
9465 cat > conftest.$ac_ext <<EOF
9466 #line 9467 "configure"
9467 #include "confdefs.h"
9470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9471 { (eval echo configure:9472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9473 if test -z "$ac_err"; then
9475 eval "ac_cv_header_$ac_safe=yes"
9478 echo "configure: failed program was:" >&5
9479 cat conftest.$ac_ext >&5
9481 eval "ac_cv_header_$ac_safe=no"
9485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9486 echo "$ac_t""yes" 1>&6
9487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9488 cat >> confdefs.h <<EOF
9489 #define $ac_tr_hdr 1
9493 echo "$ac_t""no" 1>&6
9498 if test $ol_link_termcap = no ; then
9499 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
9500 echo "configure:9501: checking for tputs in -ltermcap" >&5
9501 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
9502 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9503 echo $ac_n "(cached) $ac_c" 1>&6
9505 ac_save_LIBS="$LIBS"
9506 LIBS="-ltermcap $LIBS"
9507 cat > conftest.$ac_ext <<EOF
9508 #line 9509 "configure"
9509 #include "confdefs.h"
9510 /* Override any gcc2 internal prototype to avoid an error. */
9511 /* We use char because int might match the return type of a gcc2
9512 builtin and then its argument prototype would still apply. */
9519 if { (eval echo configure:9520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9521 eval "ac_cv_lib_$ac_lib_var=yes"
9523 echo "configure: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9526 eval "ac_cv_lib_$ac_lib_var=no"
9529 LIBS="$ac_save_LIBS"
9532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9533 echo "$ac_t""yes" 1>&6
9536 echo "$ac_t""no" 1>&6
9540 if test $have_termcap = yes ; then
9541 cat >> confdefs.h <<\EOF
9542 #define HAVE_TERMCAP 1
9546 TERMCAP_LIBS=-ltermcap
9550 if test $ol_link_termcap = no ; then
9551 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
9552 echo "configure:9553: checking for initscr in -lncurses" >&5
9553 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
9554 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9555 echo $ac_n "(cached) $ac_c" 1>&6
9557 ac_save_LIBS="$LIBS"
9558 LIBS="-lncurses $LIBS"
9559 cat > conftest.$ac_ext <<EOF
9560 #line 9561 "configure"
9561 #include "confdefs.h"
9562 /* Override any gcc2 internal prototype to avoid an error. */
9563 /* We use char because int might match the return type of a gcc2
9564 builtin and then its argument prototype would still apply. */
9571 if { (eval echo configure:9572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9573 eval "ac_cv_lib_$ac_lib_var=yes"
9575 echo "configure: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9578 eval "ac_cv_lib_$ac_lib_var=no"
9581 LIBS="$ac_save_LIBS"
9584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9585 echo "$ac_t""yes" 1>&6
9588 echo "$ac_t""no" 1>&6
9592 if test $have_ncurses = yes ; then
9593 cat >> confdefs.h <<\EOF
9594 #define HAVE_NCURSES 1
9598 TERMCAP_LIBS=-lncurses
9602 if test $ol_link_termcap = no ; then
9603 cat >> confdefs.h <<\EOF
9604 #define NO_TERMCAP 1
9611 if test $ol_with_readline != no ; then
9612 for ac_hdr in readline/readline.h readline/history.h
9614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9616 echo "configure:9617: checking for $ac_hdr" >&5
9617 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9618 echo $ac_n "(cached) $ac_c" 1>&6
9620 cat > conftest.$ac_ext <<EOF
9621 #line 9622 "configure"
9622 #include "confdefs.h"
9625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9626 { (eval echo configure:9627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9628 if test -z "$ac_err"; then
9630 eval "ac_cv_header_$ac_safe=yes"
9633 echo "configure: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9636 eval "ac_cv_header_$ac_safe=no"
9640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9641 echo "$ac_t""yes" 1>&6
9642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9643 cat >> confdefs.h <<EOF
9644 #define $ac_tr_hdr 1
9648 echo "$ac_t""no" 1>&6
9653 if test $ac_cv_header_readline_readline_h = yes ; then
9655 LIBS="$TERMCAP_LIBS $LIBS"
9656 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
9657 echo "configure:9658: checking for readline in -lreadline" >&5
9658 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
9659 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9660 echo $ac_n "(cached) $ac_c" 1>&6
9662 ac_save_LIBS="$LIBS"
9663 LIBS="-lreadline $LIBS"
9664 cat > conftest.$ac_ext <<EOF
9665 #line 9666 "configure"
9666 #include "confdefs.h"
9667 /* Override any gcc2 internal prototype to avoid an error. */
9668 /* We use char because int might match the return type of a gcc2
9669 builtin and then its argument prototype would still apply. */
9676 if { (eval echo configure:9677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9678 eval "ac_cv_lib_$ac_lib_var=yes"
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9683 eval "ac_cv_lib_$ac_lib_var=no"
9686 LIBS="$ac_save_LIBS"
9689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9690 echo "$ac_t""yes" 1>&6
9693 echo "$ac_t""no" 1>&6
9699 if test $have_readline = yes ; then
9700 ol_with_readline=found
9701 ol_link_readline=yes
9703 READLINE_LIBS="-lreadline"
9708 if test $ol_link_readline = yes ; then
9709 cat >> confdefs.h <<\EOF
9710 #define HAVE_READLINE 1
9716 # FreeBSD (and others) have crypt(3) in -lcrypt
9717 if test $ol_enable_crypt != no ; then
9718 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9719 echo "configure:9720: checking for crypt" >&5
9720 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
9721 echo $ac_n "(cached) $ac_c" 1>&6
9723 cat > conftest.$ac_ext <<EOF
9724 #line 9725 "configure"
9725 #include "confdefs.h"
9726 /* System header to define __stub macros and hopefully few prototypes,
9727 which can conflict with char crypt(); below. */
9729 /* Override any gcc2 internal prototype to avoid an error. */
9730 /* We use char because int might match the return type of a gcc2
9731 builtin and then its argument prototype would still apply. */
9737 /* The GNU C library defines this for functions which it implements
9738 to always fail with ENOSYS. Some functions are actually named
9739 something starting with __ and the normal name is an alias. */
9740 #if defined (__stub_crypt) || defined (__stub___crypt)
9748 if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9750 eval "ac_cv_func_crypt=yes"
9752 echo "configure: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9755 eval "ac_cv_func_crypt=no"
9760 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9761 echo "$ac_t""yes" 1>&6
9764 echo "$ac_t""no" 1>&6
9766 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9767 echo "configure:9768: checking for crypt in -lcrypt" >&5
9768 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9769 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9770 echo $ac_n "(cached) $ac_c" 1>&6
9772 ac_save_LIBS="$LIBS"
9773 LIBS="-lcrypt $LIBS"
9774 cat > conftest.$ac_ext <<EOF
9775 #line 9776 "configure"
9776 #include "confdefs.h"
9777 /* Override any gcc2 internal prototype to avoid an error. */
9778 /* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9786 if { (eval echo configure:9787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9788 eval "ac_cv_lib_$ac_lib_var=yes"
9790 echo "configure: failed program was:" >&5
9791 cat conftest.$ac_ext >&5
9793 eval "ac_cv_lib_$ac_lib_var=no"
9796 LIBS="$ac_save_LIBS"
9799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9800 echo "$ac_t""yes" 1>&6
9801 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9804 echo "$ac_t""no" 1>&6
9811 if test $have_crypt = yes ; then
9812 cat >> confdefs.h <<\EOF
9813 #define HAVE_CRYPT 1
9817 echo "configure: warning: could not find crypt" 1>&2
9818 if test $ol_enable_crypt = yes ; then
9819 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9822 echo "configure: warning: disabling crypt support" 1>&2
9827 # FreeBSD (and others) have setproctitle(3) in -lutil
9828 if test $ol_enable_proctitle != no ; then
9829 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9830 echo "configure:9831: checking for setproctitle" >&5
9831 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
9832 echo $ac_n "(cached) $ac_c" 1>&6
9834 cat > conftest.$ac_ext <<EOF
9835 #line 9836 "configure"
9836 #include "confdefs.h"
9837 /* System header to define __stub macros and hopefully few prototypes,
9838 which can conflict with char setproctitle(); below. */
9840 /* Override any gcc2 internal prototype to avoid an error. */
9841 /* We use char because int might match the return type of a gcc2
9842 builtin and then its argument prototype would still apply. */
9843 char setproctitle();
9848 /* The GNU C library defines this for functions which it implements
9849 to always fail with ENOSYS. Some functions are actually named
9850 something starting with __ and the normal name is an alias. */
9851 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9859 if { (eval echo configure:9860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9861 eval "ac_cv_func_setproctitle=yes"
9863 echo "configure: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9866 eval "ac_cv_func_setproctitle=no"
9871 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9872 echo "$ac_t""yes" 1>&6
9873 have_setproctitle=yes
9875 echo "$ac_t""no" 1>&6
9877 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9878 echo "configure:9879: checking for setproctitle in -lutil" >&5
9879 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9880 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9881 echo $ac_n "(cached) $ac_c" 1>&6
9883 ac_save_LIBS="$LIBS"
9885 cat > conftest.$ac_ext <<EOF
9886 #line 9887 "configure"
9887 #include "confdefs.h"
9888 /* Override any gcc2 internal prototype to avoid an error. */
9889 /* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9891 char setproctitle();
9897 if { (eval echo configure:9898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9899 eval "ac_cv_lib_$ac_lib_var=yes"
9901 echo "configure: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9904 eval "ac_cv_lib_$ac_lib_var=no"
9907 LIBS="$ac_save_LIBS"
9910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9911 echo "$ac_t""yes" 1>&6
9912 have_setproctitle=yes
9913 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9915 echo "$ac_t""no" 1>&6
9916 have_setproctitle=no
9917 LIBOBJS="$LIBOBJS setproctitle.o"
9923 if test $have_setproctitle = yes ; then
9924 cat >> confdefs.h <<\EOF
9925 #define HAVE_SETPROCTITLE 1
9932 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9933 echo "configure:9934: checking for EBCDIC" >&5
9934 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
9935 echo $ac_n "(cached) $ac_c" 1>&6
9938 cat > conftest.$ac_ext <<EOF
9939 #line 9940 "configure"
9940 #include "confdefs.h"
9943 #include <__ASCII__/generate_error.h>
9947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9948 { (eval echo configure:9949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9950 if test -z "$ac_err"; then
9952 ol_cv_cpp_ebcdic=yes
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9963 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9964 if test $ol_cv_cpp_ebcdic = yes ; then
9965 cat >> confdefs.h <<\EOF
9966 #define HAVE_EBCDIC 1
9971 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9972 echo "configure:9973: checking for ANSI C header files" >&5
9973 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
9974 echo $ac_n "(cached) $ac_c" 1>&6
9976 cat > conftest.$ac_ext <<EOF
9977 #line 9978 "configure"
9978 #include "confdefs.h"
9984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9985 { (eval echo configure:9986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9987 if test -z "$ac_err"; then
9989 ol_cv_header_stdc=yes
9992 echo "configure: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9995 ol_cv_header_stdc=no
9999 if test $ol_cv_header_stdc = yes; then
10000 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10001 cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure"
10003 #include "confdefs.h"
10004 #include <string.h>
10006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10007 egrep "memchr" >/dev/null 2>&1; then
10011 ol_cv_header_stdc=no
10017 if test $ol_cv_header_stdc = yes; then
10018 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10019 cat > conftest.$ac_ext <<EOF
10020 #line 10021 "configure"
10021 #include "confdefs.h"
10022 #include <stdlib.h>
10024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10025 egrep "free" >/dev/null 2>&1; then
10029 ol_cv_header_stdc=no
10035 if test $ol_cv_header_stdc = yes; then
10036 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10037 if test "$cross_compiling" = yes; then
10040 cat > conftest.$ac_ext <<EOF
10041 #line 10042 "configure"
10042 #include "confdefs.h"
10044 #ifndef HAVE_EBCDIC
10045 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10046 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10048 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10049 || ('j' <= (c) && (c) <= 'r') \
10050 || ('s' <= (c) && (c) <= 'z'))
10051 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10053 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10054 int main () { int i; for (i = 0; i < 256; i++)
10055 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10059 if { (eval echo configure:10060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10063 echo "configure: failed program was:" >&5
10064 cat conftest.$ac_ext >&5
10066 ol_cv_header_stdc=no
10074 echo "$ac_t""$ol_cv_header_stdc" 1>&6
10075 if test $ol_cv_header_stdc = yes; then
10076 cat >> confdefs.h <<\EOF
10077 #define STDC_HEADERS 1
10081 ac_cv_header_stdc=disable
10084 if test $ol_cv_header_stdc != yes; then
10085 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
10088 ac_header_dirent=no
10089 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
10091 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10092 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
10093 echo "configure:10094: checking for $ac_hdr that defines DIR" >&5
10094 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
10095 echo $ac_n "(cached) $ac_c" 1>&6
10097 cat > conftest.$ac_ext <<EOF
10098 #line 10099 "configure"
10099 #include "confdefs.h"
10100 #include <sys/types.h>
10106 if { (eval echo configure:10107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10108 eval "ac_cv_header_dirent_$ac_safe=yes"
10110 echo "configure: failed program was:" >&5
10111 cat conftest.$ac_ext >&5
10113 eval "ac_cv_header_dirent_$ac_safe=no"
10117 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
10118 echo "$ac_t""yes" 1>&6
10119 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10120 cat >> confdefs.h <<EOF
10121 #define $ac_tr_hdr 1
10123 ac_header_dirent=$ac_hdr; break
10125 echo "$ac_t""no" 1>&6
10128 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10129 if test $ac_header_dirent = dirent.h; then
10130 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
10131 echo "configure:10132: checking for opendir in -ldir" >&5
10132 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
10133 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10134 echo $ac_n "(cached) $ac_c" 1>&6
10136 ac_save_LIBS="$LIBS"
10138 cat > conftest.$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10141 /* Override any gcc2 internal prototype to avoid an error. */
10142 /* We use char because int might match the return type of a gcc2
10143 builtin and then its argument prototype would still apply. */
10150 if { (eval echo configure:10151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10152 eval "ac_cv_lib_$ac_lib_var=yes"
10154 echo "configure: failed program was:" >&5
10155 cat conftest.$ac_ext >&5
10157 eval "ac_cv_lib_$ac_lib_var=no"
10160 LIBS="$ac_save_LIBS"
10163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10164 echo "$ac_t""yes" 1>&6
10167 echo "$ac_t""no" 1>&6
10171 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
10172 echo "configure:10173: checking for opendir in -lx" >&5
10173 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
10174 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10175 echo $ac_n "(cached) $ac_c" 1>&6
10177 ac_save_LIBS="$LIBS"
10179 cat > conftest.$ac_ext <<EOF
10180 #line 10181 "configure"
10181 #include "confdefs.h"
10182 /* Override any gcc2 internal prototype to avoid an error. */
10183 /* We use char because int might match the return type of a gcc2
10184 builtin and then its argument prototype would still apply. */
10191 if { (eval echo configure:10192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10193 eval "ac_cv_lib_$ac_lib_var=yes"
10195 echo "configure: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10198 eval "ac_cv_lib_$ac_lib_var=no"
10201 LIBS="$ac_save_LIBS"
10204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10205 echo "$ac_t""yes" 1>&6
10208 echo "$ac_t""no" 1>&6
10213 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
10214 echo "configure:10215: checking for sys/wait.h that is POSIX.1 compatible" >&5
10215 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
10216 echo $ac_n "(cached) $ac_c" 1>&6
10218 cat > conftest.$ac_ext <<EOF
10219 #line 10220 "configure"
10220 #include "confdefs.h"
10221 #include <sys/types.h>
10222 #include <sys/wait.h>
10223 #ifndef WEXITSTATUS
10224 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10227 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10232 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10235 if { (eval echo configure:10236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10237 ac_cv_header_sys_wait_h=yes
10239 echo "configure: failed program was:" >&5
10240 cat conftest.$ac_ext >&5
10242 ac_cv_header_sys_wait_h=no
10247 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
10248 if test $ac_cv_header_sys_wait_h = yes; then
10249 cat >> confdefs.h <<\EOF
10250 #define HAVE_SYS_WAIT_H 1
10255 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
10256 echo "configure:10257: checking POSIX termios" >&5
10257 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
10258 echo $ac_n "(cached) $ac_c" 1>&6
10260 cat > conftest.$ac_ext <<EOF
10261 #line 10262 "configure"
10262 #include "confdefs.h"
10263 #include <sys/types.h>
10264 #include <unistd.h>
10265 #include <termios.h>
10267 /* SunOS 4.0.3 has termios.h but not the library calls. */
10271 if { (eval echo configure:10272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10273 am_cv_sys_posix_termios=yes
10275 echo "configure: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10278 am_cv_sys_posix_termios=no
10283 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
10286 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
10287 echo "configure:10288: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
10288 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10291 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
10293 gwinsz_in_termios_h=no
10294 if test $am_cv_sys_posix_termios = yes; then
10295 cat > conftest.$ac_ext <<EOF
10296 #line 10297 "configure"
10297 #include "confdefs.h"
10298 #include <sys/types.h>
10299 # include <termios.h>
10305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10306 egrep "yes" >/dev/null 2>&1; then
10308 gwinsz_in_termios_h=yes
10314 if test $gwinsz_in_termios_h = no; then
10315 cat > conftest.$ac_ext <<EOF
10316 #line 10317 "configure"
10317 #include "confdefs.h"
10318 #include <sys/types.h>
10319 # include <sys/ioctl.h>
10325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10326 egrep "yes" >/dev/null 2>&1; then
10328 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
10336 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
10337 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
10338 cat >> confdefs.h <<\EOF
10339 #define GWINSZ_IN_SYS_IOCTL 1
10344 if test $am_cv_sys_posix_termios = yes ; then
10345 cat >> confdefs.h <<\EOF
10346 #define HAVE_POSIX_TERMIOS 1
10391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10393 echo "configure:10394: checking for $ac_hdr" >&5
10394 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10395 echo $ac_n "(cached) $ac_c" 1>&6
10397 cat > conftest.$ac_ext <<EOF
10398 #line 10399 "configure"
10399 #include "confdefs.h"
10402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10403 { (eval echo configure:10404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10405 if test -z "$ac_err"; then
10407 eval "ac_cv_header_$ac_safe=yes"
10410 echo "configure: failed program was:" >&5
10411 cat conftest.$ac_ext >&5
10413 eval "ac_cv_header_$ac_safe=no"
10417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10418 echo "$ac_t""yes" 1>&6
10419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10420 cat >> confdefs.h <<EOF
10421 #define $ac_tr_hdr 1
10425 echo "$ac_t""no" 1>&6
10430 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10431 echo "configure:10432: checking for uid_t in sys/types.h" >&5
10432 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
10433 echo $ac_n "(cached) $ac_c" 1>&6
10435 cat > conftest.$ac_ext <<EOF
10436 #line 10437 "configure"
10437 #include "confdefs.h"
10438 #include <sys/types.h>
10440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10441 egrep "uid_t" >/dev/null 2>&1; then
10443 ac_cv_type_uid_t=yes
10446 ac_cv_type_uid_t=no
10452 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10453 if test $ac_cv_type_uid_t = no; then
10454 cat >> confdefs.h <<\EOF
10458 cat >> confdefs.h <<\EOF
10464 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
10465 echo "configure:10466: checking type of array argument to getgroups" >&5
10466 if eval "test \"\${ac_cv_type_getgroups+set}\" = set"; then
10467 echo $ac_n "(cached) $ac_c" 1>&6
10469 if test "$cross_compiling" = yes; then
10470 ac_cv_type_getgroups=cross
10472 cat > conftest.$ac_ext <<EOF
10473 #line 10474 "configure"
10474 #include "confdefs.h"
10476 /* Thanks to Mike Rendell for this test. */
10477 #include <sys/types.h>
10480 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10483 gid_t gidset[NGID];
10485 union { gid_t gval; long lval; } val;
10488 for (i = 0; i < NGID; i++)
10489 gidset[i] = val.gval;
10490 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10492 /* Exit non-zero if getgroups seems to require an array of ints. This
10493 happens when gid_t is short but getgroups modifies an array of ints. */
10494 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10498 if { (eval echo configure:10499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10500 ac_cv_type_getgroups=gid_t
10502 echo "configure: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10505 ac_cv_type_getgroups=int
10510 if test $ac_cv_type_getgroups = cross; then
10511 cat > conftest.$ac_ext <<EOF
10512 #line 10513 "configure"
10513 #include "confdefs.h"
10514 #include <unistd.h>
10516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10517 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10519 ac_cv_type_getgroups=gid_t
10522 ac_cv_type_getgroups=int
10529 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
10530 cat >> confdefs.h <<EOF
10531 #define GETGROUPS_T $ac_cv_type_getgroups
10534 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10535 echo "configure:10536: checking for ANSI C header files" >&5
10536 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
10537 echo $ac_n "(cached) $ac_c" 1>&6
10539 cat > conftest.$ac_ext <<EOF
10540 #line 10541 "configure"
10541 #include "confdefs.h"
10542 #include <stdlib.h>
10543 #include <stdarg.h>
10544 #include <string.h>
10547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10548 { (eval echo configure:10549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10550 if test -z "$ac_err"; then
10552 ac_cv_header_stdc=yes
10555 echo "configure: failed program was:" >&5
10556 cat conftest.$ac_ext >&5
10558 ac_cv_header_stdc=no
10562 if test $ac_cv_header_stdc = yes; then
10563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10564 cat > conftest.$ac_ext <<EOF
10565 #line 10566 "configure"
10566 #include "confdefs.h"
10567 #include <string.h>
10569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10570 egrep "memchr" >/dev/null 2>&1; then
10574 ac_cv_header_stdc=no
10580 if test $ac_cv_header_stdc = yes; then
10581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10582 cat > conftest.$ac_ext <<EOF
10583 #line 10584 "configure"
10584 #include "confdefs.h"
10585 #include <stdlib.h>
10587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10588 egrep "free" >/dev/null 2>&1; then
10592 ac_cv_header_stdc=no
10598 if test $ac_cv_header_stdc = yes; then
10599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10600 if test "$cross_compiling" = yes; then
10603 cat > conftest.$ac_ext <<EOF
10604 #line 10605 "configure"
10605 #include "confdefs.h"
10607 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10608 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10610 int main () { int i; for (i = 0; i < 256; i++)
10611 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10615 if { (eval echo configure:10616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10619 echo "configure: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10622 ac_cv_header_stdc=no
10630 echo "$ac_t""$ac_cv_header_stdc" 1>&6
10631 if test $ac_cv_header_stdc = yes; then
10632 cat >> confdefs.h <<\EOF
10633 #define STDC_HEADERS 1
10638 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10639 echo "configure:10640: checking for mode_t" >&5
10640 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10643 cat > conftest.$ac_ext <<EOF
10644 #line 10645 "configure"
10645 #include "confdefs.h"
10646 #include <sys/types.h>
10648 #include <stdlib.h>
10649 #include <stddef.h>
10652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10653 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10655 eval "ac_cv_type_mode_t=yes"
10658 eval "ac_cv_type_mode_t=no"
10663 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
10664 echo "$ac_t""yes" 1>&6
10666 echo "$ac_t""no" 1>&6
10667 cat >> confdefs.h <<EOF
10673 echo $ac_n "checking for off_t""... $ac_c" 1>&6
10674 echo "configure:10675: checking for off_t" >&5
10675 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
10676 echo $ac_n "(cached) $ac_c" 1>&6
10678 cat > conftest.$ac_ext <<EOF
10679 #line 10680 "configure"
10680 #include "confdefs.h"
10681 #include <sys/types.h>
10683 #include <stdlib.h>
10684 #include <stddef.h>
10687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10688 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10690 eval "ac_cv_type_off_t=yes"
10693 eval "ac_cv_type_off_t=no"
10698 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
10699 echo "$ac_t""yes" 1>&6
10701 echo "$ac_t""no" 1>&6
10702 cat >> confdefs.h <<EOF
10708 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10709 echo "configure:10710: checking for pid_t" >&5
10710 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
10711 echo $ac_n "(cached) $ac_c" 1>&6
10713 cat > conftest.$ac_ext <<EOF
10714 #line 10715 "configure"
10715 #include "confdefs.h"
10716 #include <sys/types.h>
10718 #include <stdlib.h>
10719 #include <stddef.h>
10722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10723 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10725 eval "ac_cv_type_pid_t=yes"
10728 eval "ac_cv_type_pid_t=no"
10733 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
10734 echo "$ac_t""yes" 1>&6
10736 echo "$ac_t""no" 1>&6
10737 cat >> confdefs.h <<EOF
10743 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10744 echo "configure:10745: checking for ptrdiff_t" >&5
10745 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
10746 echo $ac_n "(cached) $ac_c" 1>&6
10748 cat > conftest.$ac_ext <<EOF
10749 #line 10750 "configure"
10750 #include "confdefs.h"
10751 #include <stddef.h>
10756 if { (eval echo configure:10757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10758 am_cv_type_ptrdiff_t=yes
10760 echo "configure: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10763 am_cv_type_ptrdiff_t=no
10768 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10769 if test $am_cv_type_ptrdiff_t = yes; then
10770 cat >> confdefs.h <<\EOF
10771 #define HAVE_PTRDIFF_T 1
10776 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10777 echo "configure:10778: checking return type of signal handlers" >&5
10778 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
10779 echo $ac_n "(cached) $ac_c" 1>&6
10781 cat > conftest.$ac_ext <<EOF
10782 #line 10783 "configure"
10783 #include "confdefs.h"
10784 #include <sys/types.h>
10785 #include <signal.h>
10790 extern "C" void (*signal (int, void (*)(int)))(int);
10792 void (*signal ()) ();
10799 if { (eval echo configure:10800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10801 ac_cv_type_signal=void
10803 echo "configure: failed program was:" >&5
10804 cat conftest.$ac_ext >&5
10806 ac_cv_type_signal=int
10811 echo "$ac_t""$ac_cv_type_signal" 1>&6
10812 cat >> confdefs.h <<EOF
10813 #define RETSIGTYPE $ac_cv_type_signal
10817 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10818 echo "configure:10819: checking for sig_atomic_t" >&5
10819 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10822 cat > conftest.$ac_ext <<EOF
10823 #line 10824 "configure"
10824 #include "confdefs.h"
10825 #include <signal.h>
10827 sig_atomic_t atomic;
10830 if { (eval echo configure:10831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10832 ol_cv_type_sig_atomic_t=yes
10834 echo "configure: failed program was:" >&5
10835 cat conftest.$ac_ext >&5
10837 ol_cv_type_sig_atomic_t=no
10842 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10843 if test $ol_cv_type_sig_atomic_t = no; then
10844 cat >> confdefs.h <<\EOF
10845 #define sig_atomic_t int
10850 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10851 echo "configure:10852: checking for size_t" >&5
10852 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
10853 echo $ac_n "(cached) $ac_c" 1>&6
10855 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10858 #include <sys/types.h>
10860 #include <stdlib.h>
10861 #include <stddef.h>
10864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10865 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10867 eval "ac_cv_type_size_t=yes"
10870 eval "ac_cv_type_size_t=no"
10875 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
10876 echo "$ac_t""yes" 1>&6
10878 echo "$ac_t""no" 1>&6
10879 cat >> confdefs.h <<EOF
10880 #define size_t unsigned
10885 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
10886 echo "configure:10887: checking for member st_blksize in aggregate type struct stat" >&5
10887 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
10888 echo $ac_n "(cached) $ac_c" 1>&6
10890 cat > conftest.$ac_ext <<EOF
10891 #line 10892 "configure"
10892 #include "confdefs.h"
10893 #include <sys/types.h>
10894 #include <sys/stat.h>
10896 struct stat foo; foo.st_blksize;
10899 if { (eval echo configure:10900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10901 ac_cv_c_struct_member_st_blksize=yes
10903 echo "configure: failed program was:" >&5
10904 cat conftest.$ac_ext >&5
10906 ac_cv_c_struct_member_st_blksize=no
10911 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
10912 st_blksize="$ac_cv_c_struct_member_st_blksize"
10913 if test $ac_cv_c_struct_member_st_blksize = yes; then
10914 cat >> confdefs.h <<\EOF
10915 #define HAVE_ST_BLKSIZE 1
10920 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10921 echo "configure:10922: checking whether time.h and sys/time.h may both be included" >&5
10922 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
10923 echo $ac_n "(cached) $ac_c" 1>&6
10925 cat > conftest.$ac_ext <<EOF
10926 #line 10927 "configure"
10927 #include "confdefs.h"
10928 #include <sys/types.h>
10929 #include <sys/time.h>
10935 if { (eval echo configure:10936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10937 ac_cv_header_time=yes
10939 echo "configure: failed program was:" >&5
10940 cat conftest.$ac_ext >&5
10942 ac_cv_header_time=no
10947 echo "$ac_t""$ac_cv_header_time" 1>&6
10948 if test $ac_cv_header_time = yes; then
10949 cat >> confdefs.h <<\EOF
10950 #define TIME_WITH_SYS_TIME 1
10955 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10956 echo "configure:10957: checking whether struct tm is in sys/time.h or time.h" >&5
10957 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
10958 echo $ac_n "(cached) $ac_c" 1>&6
10960 cat > conftest.$ac_ext <<EOF
10961 #line 10962 "configure"
10962 #include "confdefs.h"
10963 #include <sys/types.h>
10966 struct tm *tp; tp->tm_sec;
10969 if { (eval echo configure:10970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10971 ac_cv_struct_tm=time.h
10973 echo "configure: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10976 ac_cv_struct_tm=sys/time.h
10981 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10982 if test $ac_cv_struct_tm = sys/time.h; then
10983 cat >> confdefs.h <<\EOF
10984 #define TM_IN_SYS_TIME 1
10989 # test for pw_gecos in struct passwd
10990 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10991 echo "configure:10992: checking struct passwd for pw_gecos" >&5
10992 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
10993 echo $ac_n "(cached) $ac_c" 1>&6
10996 cat > conftest.$ac_ext <<EOF
10997 #line 10998 "configure"
10998 #include "confdefs.h"
11003 pwd.pw_gecos = pwd.pw_name;
11007 if { (eval echo configure:11008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11009 ol_cv_struct_passwd_pw_gecos=yes
11011 echo "configure: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11014 ol_cv_struct_passwd_pw_gecos=no
11019 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
11020 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
11021 cat >> confdefs.h <<\EOF
11022 #define HAVE_PW_GECOS 1
11029 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
11030 echo "configure:11031: checking if toupper() requires islower()" >&5
11031 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
11032 echo $ac_n "(cached) $ac_c" 1>&6
11035 if test "$cross_compiling" = yes; then
11036 ol_cv_c_upper_lower=safe
11038 cat > conftest.$ac_ext <<EOF
11039 #line 11040 "configure"
11040 #include "confdefs.h"
11045 if ('C' == toupper('C'))
11051 if { (eval echo configure:11052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11053 ol_cv_c_upper_lower=no
11055 echo "configure: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11058 ol_cv_c_upper_lower=yes
11065 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
11066 if test $ol_cv_c_upper_lower != no ; then
11067 cat >> confdefs.h <<\EOF
11068 #define C_UPPER_LOWER 1
11073 echo $ac_n "checking for working const""... $ac_c" 1>&6
11074 echo "configure:11075: checking for working const" >&5
11075 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
11076 echo $ac_n "(cached) $ac_c" 1>&6
11078 cat > conftest.$ac_ext <<EOF
11079 #line 11080 "configure"
11080 #include "confdefs.h"
11084 /* Ultrix mips cc rejects this. */
11085 typedef int charset[2]; const charset x;
11086 /* SunOS 4.1.1 cc rejects this. */
11087 char const *const *ccp;
11089 /* NEC SVR4.0.2 mips cc rejects this. */
11090 struct point {int x, y;};
11091 static struct point const zero = {0,0};
11092 /* AIX XL C 1.02.0.0 rejects this.
11093 It does not let you subtract one const X* pointer from another in an arm
11094 of an if-expression whose if-part is not a constant expression */
11095 const char *g = "string";
11096 ccp = &g + (g ? g-g : 0);
11097 /* HPUX 7.0 cc rejects these. */
11100 ccp = (char const *const *) p;
11101 { /* SCO 3.2v4 cc rejects this. */
11103 char const *s = 0 ? (char *) 0 : (char const *) 0;
11107 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11108 int x[] = {25, 17};
11109 const int *foo = &x[0];
11112 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11113 typedef const int *iptr;
11117 { /* AIX XL C 1.02.0.0 rejects this saying
11118 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11119 struct s { int j; const int *ap[3]; };
11120 struct s *b; b->j = 5;
11122 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11123 const int foo = 10;
11128 if { (eval echo configure:11129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11132 echo "configure: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11140 echo "$ac_t""$ac_cv_c_const" 1>&6
11141 if test $ac_cv_c_const = no; then
11142 cat >> confdefs.h <<\EOF
11148 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
11149 echo "configure:11150: checking if compiler understands volatile" >&5
11150 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
11151 echo $ac_n "(cached) $ac_c" 1>&6
11153 cat > conftest.$ac_ext <<EOF
11154 #line 11155 "configure"
11155 #include "confdefs.h"
11158 volatile int a; int * volatile b = x ? &y : &z;
11159 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
11163 if { (eval echo configure:11164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11165 ol_cv_c_volatile=yes
11167 echo "configure: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
11170 ol_cv_c_volatile=no
11175 echo "$ac_t""$ol_cv_c_volatile" 1>&6
11176 if test $ol_cv_c_volatile = yes; then
11179 cat >> confdefs.h <<\EOF
11186 if test $cross_compiling = yes ; then
11187 cat >> confdefs.h <<\EOF
11188 #define CROSS_COMPILING 1
11192 cat >> confdefs.h <<\EOF
11193 #define LBER_INT_T long
11196 cat >> confdefs.h <<\EOF
11197 #define LBER_TAG_T long
11200 cat >> confdefs.h <<\EOF
11201 #define LBER_SOCKET_T int
11206 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11207 echo "configure:11208: checking whether byte ordering is bigendian" >&5
11208 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
11209 echo $ac_n "(cached) $ac_c" 1>&6
11211 ac_cv_c_bigendian=unknown
11212 # See if sys/param.h defines the BYTE_ORDER macro.
11213 cat > conftest.$ac_ext <<EOF
11214 #line 11215 "configure"
11215 #include "confdefs.h"
11216 #include <sys/types.h>
11217 #include <sys/param.h>
11220 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11221 bogus endian macros
11225 if { (eval echo configure:11226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11227 # It does; now see whether it defined to BIG_ENDIAN or not.
11228 cat > conftest.$ac_ext <<EOF
11229 #line 11230 "configure"
11230 #include "confdefs.h"
11231 #include <sys/types.h>
11232 #include <sys/param.h>
11235 #if BYTE_ORDER != BIG_ENDIAN
11240 if { (eval echo configure:11241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11242 ac_cv_c_bigendian=yes
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11247 ac_cv_c_bigendian=no
11251 echo "configure: failed program was:" >&5
11252 cat conftest.$ac_ext >&5
11255 if test $ac_cv_c_bigendian = unknown; then
11256 if test "$cross_compiling" = yes; then
11257 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11259 cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure"
11261 #include "confdefs.h"
11263 /* Are we little or big endian? From Harbison&Steele. */
11267 char c[sizeof (long)];
11270 exit (u.c[sizeof (long) - 1] == 1);
11273 if { (eval echo configure:11274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11275 ac_cv_c_bigendian=no
11277 echo "configure: failed program was:" >&5
11278 cat conftest.$ac_ext >&5
11280 ac_cv_c_bigendian=yes
11288 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11289 if test $ac_cv_c_bigendian = yes; then
11290 cat >> confdefs.h <<\EOF
11291 #define WORDS_BIGENDIAN 1
11296 echo $ac_n "checking size of short""... $ac_c" 1>&6
11297 echo "configure:11298: checking size of short" >&5
11298 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
11299 echo $ac_n "(cached) $ac_c" 1>&6
11301 if test "$cross_compiling" = yes; then
11302 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11304 cat > conftest.$ac_ext <<EOF
11305 #line 11306 "configure"
11306 #include "confdefs.h"
11310 FILE *f=fopen("conftestval", "w");
11312 fprintf(f, "%d\n", sizeof(short));
11316 if { (eval echo configure:11317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11318 ac_cv_sizeof_short=`cat conftestval`
11320 echo "configure: failed program was:" >&5
11321 cat conftest.$ac_ext >&5
11323 ac_cv_sizeof_short=0
11329 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11330 cat >> confdefs.h <<EOF
11331 #define SIZEOF_SHORT $ac_cv_sizeof_short
11335 echo $ac_n "checking size of int""... $ac_c" 1>&6
11336 echo "configure:11337: checking size of int" >&5
11337 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
11338 echo $ac_n "(cached) $ac_c" 1>&6
11340 if test "$cross_compiling" = yes; then
11341 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11343 cat > conftest.$ac_ext <<EOF
11344 #line 11345 "configure"
11345 #include "confdefs.h"
11349 FILE *f=fopen("conftestval", "w");
11351 fprintf(f, "%d\n", sizeof(int));
11355 if { (eval echo configure:11356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11357 ac_cv_sizeof_int=`cat conftestval`
11359 echo "configure: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11368 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11369 cat >> confdefs.h <<EOF
11370 #define SIZEOF_INT $ac_cv_sizeof_int
11374 echo $ac_n "checking size of long""... $ac_c" 1>&6
11375 echo "configure:11376: checking size of long" >&5
11376 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
11377 echo $ac_n "(cached) $ac_c" 1>&6
11379 if test "$cross_compiling" = yes; then
11380 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11382 cat > conftest.$ac_ext <<EOF
11383 #line 11384 "configure"
11384 #include "confdefs.h"
11388 FILE *f=fopen("conftestval", "w");
11390 fprintf(f, "%d\n", sizeof(long));
11394 if { (eval echo configure:11395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11396 ac_cv_sizeof_long=`cat conftestval`
11398 echo "configure: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11401 ac_cv_sizeof_long=0
11407 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11408 cat >> confdefs.h <<EOF
11409 #define SIZEOF_LONG $ac_cv_sizeof_long
11414 if test "$ac_cv_sizeof_int" -lt 4 ; then
11415 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
11417 cat >> confdefs.h <<\EOF
11418 #define LBER_INT_T long
11421 cat >> confdefs.h <<\EOF
11422 #define LBER_TAG_T long
11425 cat >> confdefs.h <<\EOF
11426 #define LBER_SOCKET_T int
11430 cat >> confdefs.h <<\EOF
11431 #define LBER_INT_T int
11434 cat >> confdefs.h <<\EOF
11435 #define LBER_TAG_T long
11438 cat >> confdefs.h <<\EOF
11439 #define LBER_SOCKET_T int
11445 cat >> confdefs.h <<\EOF
11446 #define LBER_LEN_T long
11450 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
11451 echo "configure:11452: checking for 8-bit clean memcmp" >&5
11452 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
11453 echo $ac_n "(cached) $ac_c" 1>&6
11455 if test "$cross_compiling" = yes; then
11456 ac_cv_func_memcmp_clean=no
11458 cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11464 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11465 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
11469 if { (eval echo configure:11470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11471 ac_cv_func_memcmp_clean=yes
11473 echo "configure: failed program was:" >&5
11474 cat conftest.$ac_ext >&5
11476 ac_cv_func_memcmp_clean=no
11483 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
11484 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
11486 echo $ac_n "checking for strftime""... $ac_c" 1>&6
11487 echo "configure:11488: checking for strftime" >&5
11488 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
11489 echo $ac_n "(cached) $ac_c" 1>&6
11491 cat > conftest.$ac_ext <<EOF
11492 #line 11493 "configure"
11493 #include "confdefs.h"
11494 /* System header to define __stub macros and hopefully few prototypes,
11495 which can conflict with char strftime(); below. */
11496 #include <assert.h>
11497 /* Override any gcc2 internal prototype to avoid an error. */
11498 /* We use char because int might match the return type of a gcc2
11499 builtin and then its argument prototype would still apply. */
11505 /* The GNU C library defines this for functions which it implements
11506 to always fail with ENOSYS. Some functions are actually named
11507 something starting with __ and the normal name is an alias. */
11508 #if defined (__stub_strftime) || defined (__stub___strftime)
11516 if { (eval echo configure:11517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11518 eval "ac_cv_func_strftime=yes"
11520 echo "configure: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11523 eval "ac_cv_func_strftime=no"
11528 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
11529 echo "$ac_t""yes" 1>&6
11530 cat >> confdefs.h <<\EOF
11531 #define HAVE_STRFTIME 1
11535 echo "$ac_t""no" 1>&6
11536 # strftime is in -lintl on SCO UNIX.
11537 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
11538 echo "configure:11539: checking for strftime in -lintl" >&5
11539 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
11540 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11541 echo $ac_n "(cached) $ac_c" 1>&6
11543 ac_save_LIBS="$LIBS"
11544 LIBS="-lintl $LIBS"
11545 cat > conftest.$ac_ext <<EOF
11546 #line 11547 "configure"
11547 #include "confdefs.h"
11548 /* Override any gcc2 internal prototype to avoid an error. */
11549 /* We use char because int might match the return type of a gcc2
11550 builtin and then its argument prototype would still apply. */
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
11572 cat >> confdefs.h <<\EOF
11573 #define HAVE_STRFTIME 1
11576 LIBS="-lintl $LIBS"
11578 echo "$ac_t""no" 1>&6
11584 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
11585 echo "configure:11586: checking for vprintf" >&5
11586 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
11587 echo $ac_n "(cached) $ac_c" 1>&6
11589 cat > conftest.$ac_ext <<EOF
11590 #line 11591 "configure"
11591 #include "confdefs.h"
11592 /* System header to define __stub macros and hopefully few prototypes,
11593 which can conflict with char vprintf(); below. */
11594 #include <assert.h>
11595 /* Override any gcc2 internal prototype to avoid an error. */
11596 /* We use char because int might match the return type of a gcc2
11597 builtin and then its argument prototype would still apply. */
11603 /* The GNU C library defines this for functions which it implements
11604 to always fail with ENOSYS. Some functions are actually named
11605 something starting with __ and the normal name is an alias. */
11606 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11614 if { (eval echo configure:11615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11616 eval "ac_cv_func_vprintf=yes"
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11621 eval "ac_cv_func_vprintf=no"
11626 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
11627 echo "$ac_t""yes" 1>&6
11628 cat >> confdefs.h <<\EOF
11629 #define HAVE_VPRINTF 1
11633 echo "$ac_t""no" 1>&6
11636 if test "$ac_cv_func_vprintf" != yes; then
11637 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11638 echo "configure:11639: checking for _doprnt" >&5
11639 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
11640 echo $ac_n "(cached) $ac_c" 1>&6
11642 cat > conftest.$ac_ext <<EOF
11643 #line 11644 "configure"
11644 #include "confdefs.h"
11645 /* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char _doprnt(); below. */
11647 #include <assert.h>
11648 /* Override any gcc2 internal prototype to avoid an error. */
11649 /* We use char because int might match the return type of a gcc2
11650 builtin and then its argument prototype would still apply. */
11656 /* The GNU C library defines this for functions which it implements
11657 to always fail with ENOSYS. Some functions are actually named
11658 something starting with __ and the normal name is an alias. */
11659 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11667 if { (eval echo configure:11668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11669 eval "ac_cv_func__doprnt=yes"
11671 echo "configure: failed program was:" >&5
11672 cat conftest.$ac_ext >&5
11674 eval "ac_cv_func__doprnt=no"
11679 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11680 echo "$ac_t""yes" 1>&6
11681 cat >> confdefs.h <<\EOF
11682 #define HAVE_DOPRNT 1
11686 echo "$ac_t""no" 1>&6
11692 if test $ac_cv_func_vprintf = yes ; then
11693 for ac_func in vsnprintf vsprintf
11695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11696 echo "configure:11697: checking for $ac_func" >&5
11697 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11698 echo $ac_n "(cached) $ac_c" 1>&6
11700 cat > conftest.$ac_ext <<EOF
11701 #line 11702 "configure"
11702 #include "confdefs.h"
11703 /* System header to define __stub macros and hopefully few prototypes,
11704 which can conflict with char $ac_func(); below. */
11705 #include <assert.h>
11706 /* Override any gcc2 internal prototype to avoid an error. */
11707 /* We use char because int might match the return type of a gcc2
11708 builtin and then its argument prototype would still apply. */
11714 /* The GNU C library defines this for functions which it implements
11715 to always fail with ENOSYS. Some functions are actually named
11716 something starting with __ and the normal name is an alias. */
11717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11725 if { (eval echo configure:11726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11727 eval "ac_cv_func_$ac_func=yes"
11729 echo "configure: failed program was:" >&5
11730 cat conftest.$ac_ext >&5
11732 eval "ac_cv_func_$ac_func=no"
11737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11738 echo "$ac_t""yes" 1>&6
11739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11740 cat >> confdefs.h <<EOF
11741 #define $ac_tr_func 1
11745 echo "$ac_t""no" 1>&6
11793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11794 echo "configure:11795: checking for $ac_func" >&5
11795 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11796 echo $ac_n "(cached) $ac_c" 1>&6
11798 cat > conftest.$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11801 /* System header to define __stub macros and hopefully few prototypes,
11802 which can conflict with char $ac_func(); below. */
11803 #include <assert.h>
11804 /* Override any gcc2 internal prototype to avoid an error. */
11805 /* We use char because int might match the return type of a gcc2
11806 builtin and then its argument prototype would still apply. */
11812 /* The GNU C library defines this for functions which it implements
11813 to always fail with ENOSYS. Some functions are actually named
11814 something starting with __ and the normal name is an alias. */
11815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11823 if { (eval echo configure:11824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11825 eval "ac_cv_func_$ac_func=yes"
11827 echo "configure: failed program was:" >&5
11828 cat conftest.$ac_ext >&5
11830 eval "ac_cv_func_$ac_func=no"
11835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11836 echo "$ac_t""yes" 1>&6
11837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11838 cat >> confdefs.h <<EOF
11839 #define $ac_tr_func 1
11843 echo "$ac_t""no" 1>&6
11848 for ac_func in getopt tempnam
11850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11851 echo "configure:11852: checking for $ac_func" >&5
11852 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11853 echo $ac_n "(cached) $ac_c" 1>&6
11855 cat > conftest.$ac_ext <<EOF
11856 #line 11857 "configure"
11857 #include "confdefs.h"
11858 /* System header to define __stub macros and hopefully few prototypes,
11859 which can conflict with char $ac_func(); below. */
11860 #include <assert.h>
11861 /* Override any gcc2 internal prototype to avoid an error. */
11862 /* We use char because int might match the return type of a gcc2
11863 builtin and then its argument prototype would still apply. */
11869 /* The GNU C library defines this for functions which it implements
11870 to always fail with ENOSYS. Some functions are actually named
11871 something starting with __ and the normal name is an alias. */
11872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11880 if { (eval echo configure:11881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11882 eval "ac_cv_func_$ac_func=yes"
11884 echo "configure: failed program was:" >&5
11885 cat conftest.$ac_ext >&5
11887 eval "ac_cv_func_$ac_func=no"
11892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11893 echo "$ac_t""yes" 1>&6
11894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11895 cat >> confdefs.h <<EOF
11896 #define $ac_tr_func 1
11900 echo "$ac_t""no" 1>&6
11901 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11907 # Check Configuration
11909 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11910 echo "configure:11911: checking declaration of sys_errlist" >&5
11911 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
11912 echo $ac_n "(cached) $ac_c" 1>&6
11915 cat > conftest.$ac_ext <<EOF
11916 #line 11917 "configure"
11917 #include "confdefs.h"
11920 #include <sys/types.h>
11923 char *c = (char *) *sys_errlist
11926 if { (eval echo configure:11927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11928 ol_cv_dcl_sys_errlist=yes
11930 echo "configure: failed program was:" >&5
11931 cat conftest.$ac_ext >&5
11933 ol_cv_dcl_sys_errlist=no
11938 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11939 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11940 if test $ol_cv_dcl_sys_errlist = no ; then
11941 cat >> confdefs.h <<\EOF
11942 #define DECL_SYS_ERRLIST 1
11945 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11946 echo "configure:11947: checking existence of sys_errlist" >&5
11947 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
11948 echo $ac_n "(cached) $ac_c" 1>&6
11951 cat > conftest.$ac_ext <<EOF
11952 #line 11953 "configure"
11953 #include "confdefs.h"
11956 char *c = (char *) *sys_errlist
11959 if { (eval echo configure:11960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11961 ol_cv_have_sys_errlist=yes
11963 echo "configure: failed program was:" >&5
11964 cat conftest.$ac_ext >&5
11966 ol_cv_have_sys_errlist=no
11971 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11972 if test $ol_cv_have_sys_errlist = yes ; then
11973 cat >> confdefs.h <<\EOF
11974 #define HAVE_SYS_ERRLIST 1
11982 if test "$ol_enable_debug" != no ; then
11983 cat >> confdefs.h <<\EOF
11984 #define LDAP_DEBUG 1
11988 if test "$ol_enable_syslog" = yes ; then
11989 cat >> confdefs.h <<\EOF
11990 #define LDAP_SYSLOG 1
11994 if test "$ol_enable_libui" = yes ; then
11995 cat >> confdefs.h <<\EOF
11996 #define LDAP_LIBUI 1
12000 if test "$ol_enable_cache" = no ; then
12001 cat >> confdefs.h <<\EOF
12002 #define LDAP_NOCACHE 1
12006 if test "$ol_enable_dns" != no ; then
12007 cat >> confdefs.h <<\EOF
12008 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
12012 if test "$ol_enable_proctitle" != no ; then
12013 cat >> confdefs.h <<\EOF
12014 #define LDAP_PROCTITLE 1
12018 if test "$ol_enable_referrals" != no ; then
12019 cat >> confdefs.h <<\EOF
12020 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
12024 if test "$ol_enable_cldap" != no ; then
12025 cat >> confdefs.h <<\EOF
12026 #define LDAP_CONNECTIONLESS 1
12031 if test "$ol_enable_aclgroups" != no ; then
12032 cat >> confdefs.h <<\EOF
12033 #define SLAPD_ACLGROUPS 1
12037 if test "$ol_enable_crypt" != no ; then
12038 cat >> confdefs.h <<\EOF
12039 #define SLAPD_CRYPT 1
12043 if test "$ol_enable_cleartext" != no ; then
12044 cat >> confdefs.h <<\EOF
12045 #define SLAPD_CLEARTEXT 1
12049 if test "$ol_enable_phonetic" != no ; then
12050 cat >> confdefs.h <<\EOF
12051 #define SLAPD_PHONETIC 1
12055 if test "$ol_enable_rlookups" != no ; then
12056 cat >> confdefs.h <<\EOF
12057 #define SLAPD_RLOOKUPS 1
12062 if test "$ol_link_modules" != no ; then
12063 cat >> confdefs.h <<\EOF
12064 #define SLAPD_MODULES 1
12070 if test "$ol_link_bdb2" != no ; then
12071 cat >> confdefs.h <<\EOF
12072 #define SLAPD_BDB2 1
12077 if test "$ol_with_bdb2_module" != static ; then
12078 cat >> confdefs.h <<\EOF
12079 #define SLAPD_BDB2_DYNAMIC 1
12082 BUILD_BDB2_DYNAMIC=yes
12086 if test "$ol_enable_ldap" != no ; then
12087 cat >> confdefs.h <<\EOF
12088 #define SLAPD_LDAP 1
12093 if test "$ol_with_ldap_module" != static ; then
12094 cat >> confdefs.h <<\EOF
12095 #define SLAPD_LDAP_DYNAMIC 1
12098 BUILD_LDAP_DYNAMIC=yes
12102 if test "$ol_link_ldbm" != no ; then
12103 cat >> confdefs.h <<\EOF
12104 #define SLAPD_LDBM 1
12109 if test "$ol_with_ldbm_module" != static ; then
12110 cat >> confdefs.h <<\EOF
12111 #define SLAPD_LDBM_DYNAMIC 1
12114 BUILD_LDBM_DYNAMIC=yes
12118 if test "$ol_enable_passwd" != no ; then
12119 cat >> confdefs.h <<\EOF
12120 #define SLAPD_PASSWD 1
12125 if test "$ol_with_passwd_module" != static ; then
12126 cat >> confdefs.h <<\EOF
12127 #define SLAPD_PASSWD_DYNAMIC 1
12130 BUILD_PASSWD_DYNAMIC=yes
12134 if test "$ol_link_perl" != no ; then
12135 cat >> confdefs.h <<\EOF
12136 #define SLAPD_PERL 1
12141 if test "$ol_with_perl_module" != static ; then
12142 cat >> confdefs.h <<\EOF
12143 #define SLAPD_PERL_DYNAMIC 1
12146 BUILD_PERL_DYNAMIC=yes
12150 if test "$ol_enable_shell" != no ; then
12151 cat >> confdefs.h <<\EOF
12152 #define SLAPD_SHELL 1
12157 if test "$ol_with_shell_module" != static ; then
12158 cat >> confdefs.h <<\EOF
12159 #define SLAPD_SHELL_DYNAMIC 1
12162 BUILD_SHELL_DYNAMIC=yes
12166 if test "$ol_enable_tcl" != no ; then
12167 cat >> confdefs.h <<\EOF
12168 #define SLAPD_TCL 1
12173 if test "$ol_with_tcl_module" != static; then
12174 cat >> confdefs.h <<\EOF
12175 #define SLAPD_TCL_DYNAMIC 1
12178 BUILD_TCL_DYNAMIC=yes
12182 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
12183 $BUILD_SLAPD = yes ; then
12187 if test "$ol_link_isode" != no ; then
12232 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12235 # Let make expand exec_prefix.
12236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12238 # Any assignment to VPATH causes Sun make to only execute
12239 # the first set of double-colon rules, so remove it if not needed.
12240 # If there is a colon in the path, we need to keep it.
12241 if test "x$srcdir" = x.; then
12242 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12245 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12247 DEFS=-DHAVE_CONFIG_H
12249 # Without the "./", some shells look in PATH for config.status.
12250 : ${CONFIG_STATUS=./config.status}
12252 echo creating $CONFIG_STATUS
12253 rm -f $CONFIG_STATUS
12254 cat > $CONFIG_STATUS <<EOF
12256 # Generated automatically by configure.
12257 # Run this file to recreate the current configuration.
12258 # This directory was configured as follows,
12259 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12261 # $0 $ac_configure_args
12263 # Compiler output produced by configure, useful for debugging
12264 # configure, is in ./config.log if it exists.
12266 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12269 case "\$ac_option" in
12270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12271 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12272 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12273 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12274 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
12276 -help | --help | --hel | --he | --h)
12277 echo "\$ac_cs_usage"; exit 0 ;;
12278 *) echo "\$ac_cs_usage"; exit 1 ;;
12282 ac_given_srcdir=$srcdir
12283 ac_given_INSTALL="$INSTALL"
12285 trap 'rm -fr `echo "\
12286 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12287 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12288 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12289 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12290 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12291 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12292 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12293 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12294 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12295 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12296 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12297 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12298 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12299 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12300 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12301 include/Makefile:build/top.mk:include/Makefile.in \
12302 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12303 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12304 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12305 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12306 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12307 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12308 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12309 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12310 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12311 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12312 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12313 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12314 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12315 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12316 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12317 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12318 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12319 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12320 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12321 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12322 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12323 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12324 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12325 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12326 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12327 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12328 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12330 cat >> $CONFIG_STATUS <<EOF
12332 # Protect against being on the right side of a sed subst in config.status.
12333 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12334 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12338 s%@CFLAGS@%$CFLAGS%g
12339 s%@CPPFLAGS@%$CPPFLAGS%g
12340 s%@CXXFLAGS@%$CXXFLAGS%g
12341 s%@FFLAGS@%$FFLAGS%g
12343 s%@LDFLAGS@%$LDFLAGS%g
12345 s%@exec_prefix@%$exec_prefix%g
12346 s%@prefix@%$prefix%g
12347 s%@program_transform_name@%$program_transform_name%g
12348 s%@bindir@%$bindir%g
12349 s%@sbindir@%$sbindir%g
12350 s%@libexecdir@%$libexecdir%g
12351 s%@datadir@%$datadir%g
12352 s%@sysconfdir@%$sysconfdir%g
12353 s%@sharedstatedir@%$sharedstatedir%g
12354 s%@localstatedir@%$localstatedir%g
12355 s%@libdir@%$libdir%g
12356 s%@includedir@%$includedir%g
12357 s%@oldincludedir@%$oldincludedir%g
12358 s%@infodir@%$infodir%g
12359 s%@mandir@%$mandir%g
12361 s%@host_alias@%$host_alias%g
12362 s%@host_cpu@%$host_cpu%g
12363 s%@host_vendor@%$host_vendor%g
12364 s%@host_os@%$host_os%g
12365 s%@target@%$target%g
12366 s%@target_alias@%$target_alias%g
12367 s%@target_cpu@%$target_cpu%g
12368 s%@target_vendor@%$target_vendor%g
12369 s%@target_os@%$target_os%g
12371 s%@build_alias@%$build_alias%g
12372 s%@build_cpu@%$build_cpu%g
12373 s%@build_vendor@%$build_vendor%g
12374 s%@build_os@%$build_os%g
12375 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12376 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12377 s%@INSTALL_DATA@%$INSTALL_DATA%g
12378 s%@PACKAGE@%$PACKAGE%g
12379 s%@VERSION@%$VERSION%g
12380 s%@ACLOCAL@%$ACLOCAL%g
12381 s%@AUTOCONF@%$AUTOCONF%g
12382 s%@AUTOMAKE@%$AUTOMAKE%g
12383 s%@AUTOHEADER@%$AUTOHEADER%g
12384 s%@MAKEINFO@%$MAKEINFO%g
12385 s%@SET_MAKE@%$SET_MAKE%g
12386 s%@top_builddir@%$top_builddir%g
12387 s%@ldap_subdir@%$ldap_subdir%g
12389 s%@RANLIB@%$RANLIB%g
12393 s%@LIBTOOL@%$LIBTOOL%g
12396 s%@SENDMAIL@%$SENDMAIL%g
12397 s%@EDITOR@%$EDITOR%g
12398 s%@FINGER@%$FINGER%g
12399 s%@GLIBCONFIG@%$GLIBCONFIG%g
12400 s%@PERLBIN@%$PERLBIN%g
12402 s%@EXEEXT@%$EXEEXT%g
12403 s%@OBJEXT@%$OBJEXT%g
12404 s%@OL_MKDEP@%$OL_MKDEP%g
12405 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
12407 s%@LIBOBJS@%$LIBOBJS%g
12408 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
12409 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
12410 s%@BUILD_BDB2@%$BUILD_BDB2%g
12411 s%@BUILD_LDAP@%$BUILD_LDAP%g
12412 s%@BUILD_LDBM@%$BUILD_LDBM%g
12413 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
12414 s%@BUILD_PERL@%$BUILD_PERL%g
12415 s%@BUILD_SHELL@%$BUILD_SHELL%g
12416 s%@BUILD_TCL@%$BUILD_TCL%g
12417 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
12418 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
12419 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
12420 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
12421 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
12422 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
12423 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
12424 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
12425 s%@LDAP_LIBS@%$LDAP_LIBS%g
12426 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
12427 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
12428 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
12429 s%@LDBM_LIBS@%$LDBM_LIBS%g
12430 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
12431 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
12432 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
12433 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
12434 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
12435 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
12436 s%@KRB_LIBS@%$KRB_LIBS%g
12437 s%@READLINE_LIBS@%$READLINE_LIBS%g
12438 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
12439 s%@TLS_LIBS@%$TLS_LIBS%g
12444 cat >> $CONFIG_STATUS <<\EOF
12446 # Split the substitutions into bite-sized pieces for seds with
12447 # small command number limits, like on Digital OSF/1 and HP-UX.
12448 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12449 ac_file=1 # Number of current file.
12450 ac_beg=1 # First line for current file.
12451 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12454 while $ac_more_lines; do
12455 if test $ac_beg -gt 1; then
12456 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12458 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12460 if test ! -s conftest.s$ac_file; then
12461 ac_more_lines=false
12462 rm -f conftest.s$ac_file
12464 if test -z "$ac_sed_cmds"; then
12465 ac_sed_cmds="sed -f conftest.s$ac_file"
12467 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12469 ac_file=`expr $ac_file + 1`
12471 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12474 if test -z "$ac_sed_cmds"; then
12479 cat >> $CONFIG_STATUS <<EOF
12481 CONFIG_FILES=\${CONFIG_FILES-"\
12482 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12483 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12484 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12485 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12486 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12487 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12488 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12489 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12490 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12491 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12492 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12493 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12494 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12495 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12496 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12497 include/Makefile:build/top.mk:include/Makefile.in \
12498 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12499 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12500 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12501 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12502 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12503 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12504 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12505 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12506 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12507 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12508 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12509 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12510 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12511 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12512 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12513 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12514 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12515 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12516 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12517 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12518 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12519 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12520 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12521 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12522 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12523 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12526 cat >> $CONFIG_STATUS <<\EOF
12527 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12530 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12531 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12532 *) ac_file_in="${ac_file}.in" ;;
12535 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12537 # Remove last slash and all that follows it. Not all systems have dirname.
12538 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12539 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12540 # The file is in a subdirectory.
12541 test ! -d "$ac_dir" && mkdir "$ac_dir"
12542 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12543 # A "../" for each directory in $ac_dir_suffix.
12544 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12546 ac_dir_suffix= ac_dots=
12549 case "$ac_given_srcdir" in
12551 if test -z "$ac_dots"; then top_srcdir=.
12552 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12553 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12554 *) # Relative path.
12555 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12556 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12559 case "$ac_given_INSTALL" in
12560 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12561 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12564 echo creating "$ac_file"
12566 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12568 *Makefile*) ac_comsub="1i\\
12569 # $configure_input" ;;
12573 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12575 s%@configure_input@%$configure_input%g
12576 s%@srcdir@%$srcdir%g
12577 s%@top_srcdir@%$top_srcdir%g
12578 s%@INSTALL@%$INSTALL%g
12579 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12583 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12584 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12586 # ac_d sets the value in "#define NAME VALUE" lines.
12587 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12588 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12591 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12592 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12593 ac_uB='\([ ]\)%\1#\2define\3'
12596 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12597 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12598 ac_eB='$%\1#\2define\3'
12602 if test "${CONFIG_HEADERS+set}" != set; then
12604 cat >> $CONFIG_STATUS <<EOF
12605 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
12607 cat >> $CONFIG_STATUS <<\EOF
12609 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12610 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12612 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12613 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12614 *) ac_file_in="${ac_file}.in" ;;
12617 echo creating $ac_file
12619 rm -f conftest.frag conftest.in conftest.out
12620 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12621 cat $ac_file_inputs > conftest.in
12625 # Transform confdefs.h into a sed script conftest.vals that substitutes
12626 # the proper values into config.h.in to produce config.h. And first:
12627 # Protect against being on the right side of a sed subst in config.status.
12628 # Protect against being in an unquoted here document in config.status.
12629 rm -f conftest.vals
12630 cat > conftest.hdr <<\EOF
12633 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12637 sed -n -f conftest.hdr confdefs.h > conftest.vals
12640 # This sed command replaces #undef with comments. This is necessary, for
12641 # example, in the case of _POSIX_SOURCE, which is predefined and required
12642 # on some systems where configure will not decide to define it.
12643 cat >> conftest.vals <<\EOF
12644 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12647 # Break up conftest.vals because some shells have a limit on
12648 # the size of here documents, and old seds have small limits too.
12650 rm -f conftest.tail
12653 ac_lines=`grep -c . conftest.vals`
12654 # grep -c gives empty output for an empty file on some AIX systems.
12655 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12656 # Write a limited-size here document to conftest.frag.
12657 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12658 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12660 sed -f conftest.frag conftest.in > conftest.out
12662 mv conftest.out conftest.in
12663 ' >> $CONFIG_STATUS
12664 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12665 rm -f conftest.vals
12666 mv conftest.tail conftest.vals
12668 rm -f conftest.vals
12670 cat >> $CONFIG_STATUS <<\EOF
12671 rm -f conftest.frag conftest.h
12672 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12673 cat conftest.in >> conftest.h
12675 if cmp -s $ac_file conftest.h 2>/dev/null; then
12676 echo "$ac_file is unchanged"
12679 # Remove last slash and all that follows it. Not all systems have dirname.
12680 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12681 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12682 # The file is in a subdirectory.
12683 test ! -d "$ac_dir" && mkdir "$ac_dir"
12686 mv conftest.h $ac_file
12691 cat >> $CONFIG_STATUS <<EOF
12694 cat >> $CONFIG_STATUS <<\EOF
12697 echo Please \"make depend\" to build dependencies
12701 chmod +x $CONFIG_STATUS
12702 rm -fr confdefs* $ac_clean_files
12703 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1