3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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-proctitle enable proctitle support (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable V2 DNS extension (no)"
26 --enable-referrals enable V2 Referrals extension (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --enable-x-compile enable cross compiling (no)"
32 --enable-dmalloc enable debug malloc support (no)"
34 --with-kerberos use Kerberos (auto)"
36 --with-threads use threads (auto)"
38 --with-yielding-select with implicitly yielding select (auto)"
40 --with-tls use tls/ssl (auto)"
44 --enable-ldapd enable building ldapd (no)"
48 --enable-slapd enable building slapd (yes)"
50 --enable-aclgroups enable ACL group support (auto)"
52 --enable-cleartext enable cleartext passwords (yes)"
54 --enable-crypt enable crypt(3) passwords (auto)"
56 --enable-wrappers enable tcp wrapper support (no)"
58 --enable-phonetic enable phonetic/soundex (no)"
60 --enable-rlookups enable reverse lookups (auto)"
62 --enable-bdb2 enable bdb2 backend (no)"
64 --enable-ldbm enable ldbm backend (yes)"
66 --with-ldbm-api use LDBM API (auto)"
68 --with-ldbm-type use LDBM type (auto)"
70 --enable-passwd enable passwd backend (no)"
72 --enable-perl enable perl backend (no)"
74 --enable-shell enable shell backend (no)"
76 --enable-tcl enable tcl backend (no)"
80 --enable-slurpd enable building slurpd (auto)"
82 Library Generation & Linking Options"
84 --enable-static build static libraries [default=yes]
85 --enable-static=PKGS only build shared libraries if the current package
86 appears as an element in the PKGS list"
88 --enable-shared build shared libraries [default=yes]
89 --enable-shared=PKGS only build shared libraries if the current package
90 appears as an element in the PKGS list"
92 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file=./config.cache
107 program_transform_name=s,x,x,
115 bindir='${exec_prefix}/bin'
116 sbindir='${exec_prefix}/sbin'
117 libexecdir='${exec_prefix}/libexec'
118 datadir='${prefix}/share'
119 sysconfdir='${prefix}/etc'
120 sharedstatedir='${prefix}/com'
121 localstatedir='${prefix}/var'
122 libdir='${exec_prefix}/lib'
123 includedir='${prefix}/include'
124 oldincludedir='/usr/include'
125 infodir='${prefix}/info'
126 mandir='${prefix}/man'
128 # Initialize some other variables.
131 SHELL=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir | --bindir | --bindi | --bind | --bin | --bi)
157 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
158 bindir="$ac_optarg" ;;
160 -build | --build | --buil | --bui | --bu)
162 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
163 build="$ac_optarg" ;;
165 -cache-file | --cache-file | --cache-fil | --cache-fi \
166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
167 ac_prev=cache_file ;;
168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
170 cache_file="$ac_optarg" ;;
172 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
174 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
176 datadir="$ac_optarg" ;;
178 -disable-* | --disable-*)
179 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* | --enable-*)
188 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
202 | --exec | --exe | --ex)
203 ac_prev=exec_prefix ;;
204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
206 | --exec=* | --exe=* | --ex=*)
207 exec_prefix="$ac_optarg" ;;
209 -gas | --gas | --ga | --g)
210 # Obsolete; use --with-gas.
213 -help | --help | --hel | --he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host | --host | --hos | --ho)
270 -host=* | --host=* | --hos=* | --ho=*)
273 -includedir | --includedir | --includedi | --included | --include \
274 | --includ | --inclu | --incl | --inc)
275 ac_prev=includedir ;;
276 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
277 | --includ=* | --inclu=* | --incl=* | --inc=*)
278 includedir="$ac_optarg" ;;
280 -infodir | --infodir | --infodi | --infod | --info | --inf)
282 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
283 infodir="$ac_optarg" ;;
285 -libdir | --libdir | --libdi | --libd)
287 -libdir=* | --libdir=* | --libdi=* | --libd=*)
288 libdir="$ac_optarg" ;;
290 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
291 | --libexe | --libex | --libe)
292 ac_prev=libexecdir ;;
293 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
294 | --libexe=* | --libex=* | --libe=*)
295 libexecdir="$ac_optarg" ;;
297 -localstatedir | --localstatedir | --localstatedi | --localstated \
298 | --localstate | --localstat | --localsta | --localst \
299 | --locals | --local | --loca | --loc | --lo)
300 ac_prev=localstatedir ;;
301 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
302 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
303 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
304 localstatedir="$ac_optarg" ;;
306 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
308 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
309 mandir="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
319 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
320 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
323 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
324 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
325 | --oldin | --oldi | --old | --ol | --o)
326 ac_prev=oldincludedir ;;
327 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
328 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
329 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
330 oldincludedir="$ac_optarg" ;;
332 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
334 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
335 prefix="$ac_optarg" ;;
337 -program-prefix | --program-prefix | --program-prefi | --program-pref \
338 | --program-pre | --program-pr | --program-p)
339 ac_prev=program_prefix ;;
340 -program-prefix=* | --program-prefix=* | --program-prefi=* \
341 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
342 program_prefix="$ac_optarg" ;;
344 -program-suffix | --program-suffix | --program-suffi | --program-suff \
345 | --program-suf | --program-su | --program-s)
346 ac_prev=program_suffix ;;
347 -program-suffix=* | --program-suffix=* | --program-suffi=* \
348 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
349 program_suffix="$ac_optarg" ;;
351 -program-transform-name | --program-transform-name \
352 | --program-transform-nam | --program-transform-na \
353 | --program-transform-n | --program-transform- \
354 | --program-transform | --program-transfor \
355 | --program-transfo | --program-transf \
356 | --program-trans | --program-tran \
357 | --progr-tra | --program-tr | --program-t)
358 ac_prev=program_transform_name ;;
359 -program-transform-name=* | --program-transform-name=* \
360 | --program-transform-nam=* | --program-transform-na=* \
361 | --program-transform-n=* | --program-transform-=* \
362 | --program-transform=* | --program-transfor=* \
363 | --program-transfo=* | --program-transf=* \
364 | --program-trans=* | --program-tran=* \
365 | --progr-tra=* | --program-tr=* | --program-t=*)
366 program_transform_name="$ac_optarg" ;;
368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
369 | -silent | --silent | --silen | --sile | --sil)
372 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
374 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
376 sbindir="$ac_optarg" ;;
378 -sharedstatedir | --sharedstatedir | --sharedstatedi \
379 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
380 | --sharedst | --shareds | --shared | --share | --shar \
382 ac_prev=sharedstatedir ;;
383 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
384 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
385 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
387 sharedstatedir="$ac_optarg" ;;
389 -site | --site | --sit)
391 -site=* | --site=* | --sit=*)
394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
397 srcdir="$ac_optarg" ;;
399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
400 | --syscon | --sysco | --sysc | --sys | --sy)
401 ac_prev=sysconfdir ;;
402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
404 sysconfdir="$ac_optarg" ;;
406 -target | --target | --targe | --targ | --tar | --ta | --t)
408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
409 target="$ac_optarg" ;;
411 -v | -verbose | --verbose | --verbos | --verbo | --verb)
414 -version | --version | --versio | --versi | --vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* | --without-*)
432 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
445 | --x-incl | --x-inc | --x-in | --x-i)
446 ac_prev=x_includes ;;
447 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
448 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
449 x_includes="$ac_optarg" ;;
451 -x-libraries | --x-libraries | --x-librarie | --x-librari \
452 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
453 ac_prev=x_libraries ;;
454 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
455 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
456 x_libraries="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
507 | --no-cr | --no-c) ;;
508 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
509 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
510 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file=include/ldap.h
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE; then
561 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp='$CPP $CPPFLAGS'
584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
599 ac_n= ac_c='\c' ac_t=
603 for ac_dir in build $srcdir/build; do
604 if test -f $ac_dir/install-sh; then
606 ac_install_sh="$ac_aux_dir/install-sh -c"
608 elif test -f $ac_dir/install.sh; then
610 ac_install_sh="$ac_aux_dir/install.sh -c"
614 if test -z "$ac_aux_dir"; then
615 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
617 ac_config_guess=$ac_aux_dir/config.guess
618 ac_config_sub=$ac_aux_dir/config.sub
619 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
620 # Find a good install program. We prefer a C program (faster),
621 # so one script is as good as another. But avoid the broken or
622 # incompatible versions:
623 # SysV /etc/install, /usr/sbin/install
624 # SunOS /usr/etc/install
627 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
630 # ./install, which can be erroneously created by make from ./install.sh.
631 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
632 echo "configure:633: checking for a BSD compatible install" >&5
633 if test -z "$INSTALL"; then
634 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
635 echo $ac_n "(cached) $ac_c" 1>&6
637 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
638 for ac_dir in $PATH; do
639 # Account for people who put trailing slashes in PATH elements.
641 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
643 # OSF1 and SCO ODT 3.0 have their own names for install.
644 # Don't use installbsd from OSF since it installs stuff as root
646 for ac_prog in ginstall scoinst install; do
647 if test -f $ac_dir/$ac_prog; then
648 if test $ac_prog = install &&
649 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
650 # AIX install. It has an incompatible calling convention.
653 ac_cv_path_install="$ac_dir/$ac_prog -c"
664 if test "${ac_cv_path_install+set}" = set; then
665 INSTALL="$ac_cv_path_install"
667 # As a last resort, use the slow shell script. We don't cache a
668 # path for INSTALL within a source directory, because that will
669 # break other packages using the cache if that directory is
670 # removed, or if the path is relative.
671 INSTALL="$ac_install_sh"
674 echo "$ac_t""$INSTALL" 1>&6
676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
677 # It thinks the first close brace ends the variable substitution.
678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
680 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
682 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
684 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
685 echo "configure:686: checking whether build environment is sane" >&5
688 echo timestamp > conftestfile
689 # Do `set' in a subshell so we don't clobber the current shell's
690 # arguments. Must try -L first in case configure is actually a
691 # symlink; some systems play weird games with the mod time of symlinks
692 # (eg FreeBSD returns the mod time of the symlink's containing
695 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
696 if test "$*" = "X"; then
698 set X `ls -t $srcdir/configure conftestfile`
700 if test "$*" != "X $srcdir/configure conftestfile" \
701 && test "$*" != "X conftestfile $srcdir/configure"; then
703 # If neither matched, then we have a broken ls. This can happen
704 # if, for instance, CONFIG_SHELL is bash and it inherits a
705 # broken ls alias from the environment. This has actually
706 # happened. Such a system could not be considered "sane".
707 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
708 alias in your environment" 1>&2; exit 1; }
711 test "$2" = conftestfile
717 { echo "configure: error: newly created file is older than distributed files!
718 Check your system clock" 1>&2; exit 1; }
721 echo "$ac_t""yes" 1>&6
722 if test "$program_transform_name" = s,x,x,; then
723 program_transform_name=
725 # Double any \ or $. echo might interpret backslashes.
726 cat <<\EOF_SED > conftestsed
727 s,\\,\\\\,g; s,\$,$$,g
729 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
732 test "$program_prefix" != NONE &&
733 program_transform_name="s,^,${program_prefix},; $program_transform_name"
734 # Use a double $ so make ignores it.
735 test "$program_suffix" != NONE &&
736 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
738 # sed with no file args requires a program.
739 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
741 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
742 echo "configure:743: checking whether ${MAKE-make} sets \${MAKE}" >&5
743 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
744 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
747 cat > conftestmake <<\EOF
749 @echo 'ac_maketemp="${MAKE}"'
751 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
752 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
753 if test -n "$ac_maketemp"; then
754 eval ac_cv_prog_make_${ac_make}_set=yes
756 eval ac_cv_prog_make_${ac_make}_set=no
760 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
761 echo "$ac_t""yes" 1>&6
764 echo "$ac_t""no" 1>&6
765 SET_MAKE="MAKE=${MAKE-make}"
773 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
774 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
779 missing_dir=`cd $ac_aux_dir && pwd`
780 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
781 echo "configure:782: checking for working aclocal" >&5
782 # Run test in a subshell; some versions of sh will print an error if
783 # an executable is not found, even if stderr is redirected.
784 # Redirect stdin to placate older versions of autoconf. Sigh.
785 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
787 echo "$ac_t""found" 1>&6
789 ACLOCAL="$missing_dir/missing aclocal"
790 echo "$ac_t""missing" 1>&6
793 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
794 echo "configure:795: checking for working autoconf" >&5
795 # Run test in a subshell; some versions of sh will print an error if
796 # an executable is not found, even if stderr is redirected.
797 # Redirect stdin to placate older versions of autoconf. Sigh.
798 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
800 echo "$ac_t""found" 1>&6
802 AUTOCONF="$missing_dir/missing autoconf"
803 echo "$ac_t""missing" 1>&6
806 echo $ac_n "checking for working automake""... $ac_c" 1>&6
807 echo "configure:808: checking for working automake" >&5
808 # Run test in a subshell; some versions of sh will print an error if
809 # an executable is not found, even if stderr is redirected.
810 # Redirect stdin to placate older versions of autoconf. Sigh.
811 if (automake --version) < /dev/null > /dev/null 2>&1; then
813 echo "$ac_t""found" 1>&6
815 AUTOMAKE="$missing_dir/missing automake"
816 echo "$ac_t""missing" 1>&6
819 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
820 echo "configure:821: checking for working autoheader" >&5
821 # Run test in a subshell; some versions of sh will print an error if
822 # an executable is not found, even if stderr is redirected.
823 # Redirect stdin to placate older versions of autoconf. Sigh.
824 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
825 AUTOHEADER=autoheader
826 echo "$ac_t""found" 1>&6
828 AUTOHEADER="$missing_dir/missing autoheader"
829 echo "$ac_t""missing" 1>&6
832 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
833 echo "configure:834: checking for working makeinfo" >&5
834 # Run test in a subshell; some versions of sh will print an error if
835 # an executable is not found, even if stderr is redirected.
836 # Redirect stdin to placate older versions of autoconf. Sigh.
837 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
839 echo "$ac_t""found" 1>&6
841 MAKEINFO="$missing_dir/missing makeinfo"
842 echo "$ac_t""missing" 1>&6
848 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
849 echo "configure:850: checking configure arguments" >&5
854 ldap_subdir="openldap"
856 # Check whether --with-subdir or --without-subdir was given.
857 if test "${with_subdir+set}" = set; then
858 withval="$with_subdir"
860 if test "$withval" = "no"; then
862 elif test "$withval" != "yes"; then
863 ldap_subdir="$withval"
869 # OpenLDAP --enable-debug
870 # Check whether --enable-debug or --disable-debug was given.
871 if test "${enable_debug+set}" = set; then
872 enableval="$enable_debug"
875 for ol_val in auto yes no ; do
876 if test "$enableval" = "$ol_val" ; then
880 if test "$ol_arg" = "invalid" ; then
881 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
883 ol_enable_debug="$ol_arg"
886 ol_enable_debug="yes"
890 # OpenLDAP --enable-proctitle
891 # Check whether --enable-proctitle or --disable-proctitle was given.
892 if test "${enable_proctitle+set}" = set; then
893 enableval="$enable_proctitle"
896 for ol_val in auto yes no ; do
897 if test "$enableval" = "$ol_val" ; then
901 if test "$ol_arg" = "invalid" ; then
902 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
904 ol_enable_proctitle="$ol_arg"
907 ol_enable_proctitle="yes"
909 # end --enable-proctitle
910 # OpenLDAP --enable-cache
911 # Check whether --enable-cache or --disable-cache was given.
912 if test "${enable_cache+set}" = set; then
913 enableval="$enable_cache"
916 for ol_val in auto yes no ; do
917 if test "$enableval" = "$ol_val" ; then
921 if test "$ol_arg" = "invalid" ; then
922 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
924 ol_enable_cache="$ol_arg"
927 ol_enable_cache="yes"
930 # OpenLDAP --enable-dns
931 # Check whether --enable-dns or --disable-dns was given.
932 if test "${enable_dns+set}" = set; then
933 enableval="$enable_dns"
936 for ol_val in auto yes no ; do
937 if test "$enableval" = "$ol_val" ; then
941 if test "$ol_arg" = "invalid" ; then
942 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
944 ol_enable_dns="$ol_arg"
950 # OpenLDAP --enable-referrals
951 # Check whether --enable-referrals or --disable-referrals was given.
952 if test "${enable_referrals+set}" = set; then
953 enableval="$enable_referrals"
956 for ol_val in auto yes no ; do
957 if test "$enableval" = "$ol_val" ; then
961 if test "$ol_arg" = "invalid" ; then
962 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
964 ol_enable_referrals="$ol_arg"
967 ol_enable_referrals="yes"
969 # end --enable-referrals
970 # OpenLDAP --enable-cldap
971 # Check whether --enable-cldap or --disable-cldap was given.
972 if test "${enable_cldap+set}" = set; then
973 enableval="$enable_cldap"
976 for ol_val in auto yes no ; do
977 if test "$enableval" = "$ol_val" ; then
981 if test "$ol_arg" = "invalid" ; then
982 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
984 ol_enable_cldap="$ol_arg"
990 # OpenLDAP --enable-x_compile
991 # Check whether --enable-x_compile or --disable-x_compile was given.
992 if test "${enable_x_compile+set}" = set; then
993 enableval="$enable_x_compile"
996 for ol_val in yes no ; do
997 if test "$enableval" = "$ol_val" ; then
1001 if test "$ol_arg" = "invalid" ; then
1002 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1004 ol_enable_x_compile="$ol_arg"
1007 ol_enable_x_compile="no"
1009 # end --enable-x_compile
1011 # OpenLDAP --enable-dmalloc
1012 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1013 if test "${enable_dmalloc+set}" = set; then
1014 enableval="$enable_dmalloc"
1017 for ol_val in auto yes no ; do
1018 if test "$enableval" = "$ol_val" ; then
1022 if test "$ol_arg" = "invalid" ; then
1023 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1025 ol_enable_dmalloc="$ol_arg"
1028 ol_enable_dmalloc="no"
1030 # end --enable-dmalloc
1032 # OpenLDAP --with-kerberos
1033 # Check whether --with-kerberos or --without-kerberos was given.
1034 if test "${with_kerberos+set}" = set; then
1035 withval="$with_kerberos"
1038 for ol_val in auto k5 k4 afs yes no ; do
1039 if test "$withval" = "$ol_val" ; then
1043 if test "$ol_arg" = "invalid" ; then
1044 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1046 ol_with_kerberos="$ol_arg"
1049 ol_with_kerberos="auto"
1051 # end --with-kerberos
1053 # OpenLDAP --with-threads
1054 # Check whether --with-threads or --without-threads was given.
1055 if test "${with_threads+set}" = set; then
1056 withval="$with_threads"
1059 for ol_val in auto posix mach lwp yes no manual ; do
1060 if test "$withval" = "$ol_val" ; then
1064 if test "$ol_arg" = "invalid" ; then
1065 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1067 ol_with_threads="$ol_arg"
1070 ol_with_threads="auto"
1072 # end --with-threads
1074 # OpenLDAP --with-yielding_select
1075 # Check whether --with-yielding_select or --without-yielding_select was given.
1076 if test "${with_yielding_select+set}" = set; then
1077 withval="$with_yielding_select"
1080 for ol_val in auto yes no manual ; do
1081 if test "$withval" = "$ol_val" ; then
1085 if test "$ol_arg" = "invalid" ; then
1086 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1088 ol_with_yielding_select="$ol_arg"
1091 ol_with_yielding_select="auto"
1093 # end --with-yielding_select
1095 # OpenLDAP --with-tls
1096 # Check whether --with-tls or --without-tls was given.
1097 if test "${with_tls+set}" = set; then
1101 for ol_val in auto ssleay openssl yes no ; do
1102 if test "$withval" = "$ol_val" ; then
1106 if test "$ol_arg" = "invalid" ; then
1107 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1109 ol_with_tls="$ol_arg"
1118 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1119 if test "${with_xxldapdoptions+set}" = set; then
1120 withval="$with_xxldapdoptions"
1124 # OpenLDAP --enable-ldapd
1125 # Check whether --enable-ldapd or --disable-ldapd was given.
1126 if test "${enable_ldapd+set}" = set; then
1127 enableval="$enable_ldapd"
1130 for ol_val in auto yes no ; do
1131 if test "$enableval" = "$ol_val" ; then
1135 if test "$ol_arg" = "invalid" ; then
1136 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1138 ol_enable_ldapd="$ol_arg"
1141 ol_enable_ldapd="no"
1143 # end --enable-ldapd
1145 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1146 if test "${with_xxslapdoptions+set}" = set; then
1147 withval="$with_xxslapdoptions"
1151 # OpenLDAP --enable-slapd
1152 # Check whether --enable-slapd or --disable-slapd was given.
1153 if test "${enable_slapd+set}" = set; then
1154 enableval="$enable_slapd"
1157 for ol_val in auto yes no ; do
1158 if test "$enableval" = "$ol_val" ; then
1162 if test "$ol_arg" = "invalid" ; then
1163 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1165 ol_enable_slapd="$ol_arg"
1168 ol_enable_slapd="yes"
1170 # end --enable-slapd
1171 # OpenLDAP --enable-aclgroups
1172 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1173 if test "${enable_aclgroups+set}" = set; then
1174 enableval="$enable_aclgroups"
1177 for ol_val in auto yes no ; do
1178 if test "$enableval" = "$ol_val" ; then
1182 if test "$ol_arg" = "invalid" ; then
1183 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1185 ol_enable_aclgroups="$ol_arg"
1188 ol_enable_aclgroups="auto"
1190 # end --enable-aclgroups
1191 # OpenLDAP --enable-cleartext
1192 # Check whether --enable-cleartext or --disable-cleartext was given.
1193 if test "${enable_cleartext+set}" = set; then
1194 enableval="$enable_cleartext"
1197 for ol_val in auto yes no ; do
1198 if test "$enableval" = "$ol_val" ; then
1202 if test "$ol_arg" = "invalid" ; then
1203 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1205 ol_enable_cleartext="$ol_arg"
1208 ol_enable_cleartext="yes"
1210 # end --enable-cleartext
1211 # OpenLDAP --enable-crypt
1212 # Check whether --enable-crypt or --disable-crypt was given.
1213 if test "${enable_crypt+set}" = set; then
1214 enableval="$enable_crypt"
1217 for ol_val in auto yes no ; do
1218 if test "$enableval" = "$ol_val" ; then
1222 if test "$ol_arg" = "invalid" ; then
1223 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1225 ol_enable_crypt="$ol_arg"
1228 ol_enable_crypt="auto"
1230 # end --enable-crypt
1231 # OpenLDAP --enable-wrappers
1232 # Check whether --enable-wrappers or --disable-wrappers was given.
1233 if test "${enable_wrappers+set}" = set; then
1234 enableval="$enable_wrappers"
1237 for ol_val in auto yes no ; do
1238 if test "$enableval" = "$ol_val" ; then
1242 if test "$ol_arg" = "invalid" ; then
1243 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1245 ol_enable_wrappers="$ol_arg"
1248 ol_enable_wrappers="no"
1250 # end --enable-wrappers
1251 # OpenLDAP --enable-phonetic
1252 # Check whether --enable-phonetic or --disable-phonetic was given.
1253 if test "${enable_phonetic+set}" = set; then
1254 enableval="$enable_phonetic"
1257 for ol_val in auto yes no ; do
1258 if test "$enableval" = "$ol_val" ; then
1262 if test "$ol_arg" = "invalid" ; then
1263 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1265 ol_enable_phonetic="$ol_arg"
1268 ol_enable_phonetic="no"
1270 # end --enable-phonetic
1271 # OpenLDAP --enable-rlookups
1272 # Check whether --enable-rlookups or --disable-rlookups was given.
1273 if test "${enable_rlookups+set}" = set; then
1274 enableval="$enable_rlookups"
1277 for ol_val in auto yes no ; do
1278 if test "$enableval" = "$ol_val" ; then
1282 if test "$ol_arg" = "invalid" ; then
1283 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1285 ol_enable_rlookups="$ol_arg"
1288 ol_enable_rlookups="auto"
1290 # end --enable-rlookups
1292 # OpenLDAP --enable-bdb2
1293 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1294 if test "${enable_bdb2+set}" = set; then
1295 enableval="$enable_bdb2"
1298 for ol_val in auto yes no ; do
1299 if test "$enableval" = "$ol_val" ; then
1303 if test "$ol_arg" = "invalid" ; then
1304 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1306 ol_enable_bdb2="$ol_arg"
1312 # OpenLDAP --enable-ldbm
1313 # Check whether --enable-ldbm or --disable-ldbm was given.
1314 if test "${enable_ldbm+set}" = set; then
1315 enableval="$enable_ldbm"
1318 for ol_val in auto yes no ; do
1319 if test "$enableval" = "$ol_val" ; then
1323 if test "$ol_arg" = "invalid" ; then
1324 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1326 ol_enable_ldbm="$ol_arg"
1329 ol_enable_ldbm="yes"
1332 # OpenLDAP --with-ldbm_api
1333 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1334 if test "${with_ldbm_api+set}" = set; then
1335 withval="$with_ldbm_api"
1338 for ol_val in auto db2 db gdbm ndbm manual ; do
1339 if test "$withval" = "$ol_val" ; then
1343 if test "$ol_arg" = "invalid" ; then
1344 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1346 ol_with_ldbm_api="$ol_arg"
1349 ol_with_ldbm_api="auto"
1351 # end --with-ldbm_api
1353 # OpenLDAP --with-ldbm_type
1354 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1355 if test "${with_ldbm_type+set}" = set; then
1356 withval="$with_ldbm_type"
1359 for ol_val in auto btree hash ; do
1360 if test "$withval" = "$ol_val" ; then
1364 if test "$ol_arg" = "invalid" ; then
1365 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1367 ol_with_ldbm_type="$ol_arg"
1370 ol_with_ldbm_type="auto"
1372 # end --with-ldbm_type
1375 # OpenLDAP --enable-passwd
1376 # Check whether --enable-passwd or --disable-passwd was given.
1377 if test "${enable_passwd+set}" = set; then
1378 enableval="$enable_passwd"
1381 for ol_val in auto yes no ; do
1382 if test "$enableval" = "$ol_val" ; then
1386 if test "$ol_arg" = "invalid" ; then
1387 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1389 ol_enable_passwd="$ol_arg"
1392 ol_enable_passwd="no"
1394 # end --enable-passwd
1395 # OpenLDAP --enable-perl
1396 # Check whether --enable-perl or --disable-perl was given.
1397 if test "${enable_perl+set}" = set; then
1398 enableval="$enable_perl"
1401 for ol_val in auto yes no ; do
1402 if test "$enableval" = "$ol_val" ; then
1406 if test "$ol_arg" = "invalid" ; then
1407 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1409 ol_enable_perl="$ol_arg"
1415 # OpenLDAP --enable-shell
1416 # Check whether --enable-shell or --disable-shell was given.
1417 if test "${enable_shell+set}" = set; then
1418 enableval="$enable_shell"
1421 for ol_val in auto yes no ; do
1422 if test "$enableval" = "$ol_val" ; then
1426 if test "$ol_arg" = "invalid" ; then
1427 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1429 ol_enable_shell="$ol_arg"
1432 ol_enable_shell="no"
1434 # end --enable-shell
1435 # OpenLDAP --enable-tcl
1436 # Check whether --enable-tcl or --disable-tcl was given.
1437 if test "${enable_tcl+set}" = set; then
1438 enableval="$enable_tcl"
1441 for ol_val in auto yes no ; do
1442 if test "$enableval" = "$ol_val" ; then
1446 if test "$ol_arg" = "invalid" ; then
1447 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1449 ol_enable_tcl="$ol_arg"
1456 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1457 if test "${with_xxslurpdoptions+set}" = set; then
1458 withval="$with_xxslurpdoptions"
1462 # OpenLDAP --enable-slurpd
1463 # Check whether --enable-slurpd or --disable-slurpd was given.
1464 if test "${enable_slurpd+set}" = set; then
1465 enableval="$enable_slurpd"
1468 for ol_val in auto yes no ; do
1469 if test "$enableval" = "$ol_val" ; then
1473 if test "$ol_arg" = "invalid" ; then
1474 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1476 ol_enable_slurpd="$ol_arg"
1479 ol_enable_slurpd="auto"
1481 # end --enable-slurpd
1483 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1484 if test "${with_xxliboptions+set}" = set; then
1485 withval="$with_xxliboptions"
1489 # Check whether --enable-static or --disable-static was given.
1490 if test "${enable_static+set}" = set; then
1491 enableval="$enable_static"
1492 p=${PACKAGE-default}
1493 case "$enableval" in
1494 yes) enable_static=yes ;;
1495 no) enable_static=no ;;
1498 # Look at the argument we got. We use all the common list separators.
1499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1500 for pkg in $enableval; do
1501 if test "X$pkg" = "X$p"; then
1512 # Check whether --enable-shared or --disable-shared was given.
1513 if test "${enable_shared+set}" = set; then
1514 enableval="$enable_shared"
1515 p=${PACKAGE-default}
1516 case "$enableval" in
1517 yes) enable_shared=yes ;;
1518 no) enable_shared=no ;;
1521 # Look at the argument we got. We use all the common list separators.
1522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1523 for pkg in $enableval; do
1524 if test "X$pkg" = "X$p"; then
1537 if test $ol_enable_dns = yes ; then
1538 if test $ol_enable_referrals = no ; then
1539 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1541 if test $ol_enable_referrals = auto ; then
1542 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1543 ol_enable_referrals=yes
1547 if test $ol_enable_slapd = no ; then
1548 if test $ol_enable_bdb2 = yes ; then
1549 echo "configure: warning: slapd disabled, ignoring --enable_bdb2 argument" 1>&2
1551 if test $ol_enable_ldbm = yes ; then
1552 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1554 if test $ol_enable_passwd = yes ; then
1555 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1557 if test $ol_enable_perl = yes ; then
1558 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1560 if test $ol_enable_shell = yes ; then
1561 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1563 if test $ol_enable_tcl = yes ; then
1564 echo "configure: warning: slapd disabled, ignoring --enable_tcl argument" 1>&2
1566 if test $ol_enable_aclgroups = yes ; then
1567 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1569 if test $ol_enable_wrappers = yes ; then
1570 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1572 if test $ol_enable_phonetic = yes ; then
1573 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1575 if test $ol_enable_rlookups = yes ; then
1576 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1578 if test $ol_with_ldbm_api != auto ; then
1579 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1581 if test $ol_with_ldbm_type != auto ; then
1582 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1584 if test $ol_enable_slurpd = yes ; then
1585 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1588 # force settings to no
1595 ol_enable_aclgroups=no
1596 ol_enable_wrappers=no
1597 ol_enable_phonetic=no
1598 ol_enable_rlookups=no
1600 ol_with_ldbm_type=no
1603 elif test $ol_enable_ldbm = no ; then
1605 if test $ol_with_ldbm_api != auto ; then
1606 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1609 if test $ol_with_ldbm_type != auto ; then
1610 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1613 if test $ol_enable_bdb2 = yes ; then
1614 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1617 if test $ol_enable_passwd = no -a \
1618 $ol_enable_perl = no -a \
1619 $ol_enable_shell = no -a \
1620 $ol_enable_tcl = no ; then
1621 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1625 ol_with_ldbm_type=no
1627 elif test $ol_enable_bdb2 = yes ; then
1629 if test $ol_with_ldbm_api != auto -a \
1630 $ol_with_ldbm_api != db2 ; then
1631 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1634 ol_with_ldbm_api=db2
1638 if test $ol_enable_bdb2 != no ; then
1639 if test $ol_with_ldbm_api != auto -a \
1640 $ol_with_ldbm_api != db2 ; then
1641 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1646 if test $ol_with_ldbm_api = gdbm -a \
1647 $ol_with_ldbm_type = btree ; then
1648 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1650 if test $ol_with_ldbm_api = ndbm -a \
1651 $ol_with_ldbm_type = btree ; then
1652 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1656 if test $ol_enable_slurpd = yes ; then
1657 if test $ol_with_threads = no ; then
1658 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1662 echo "$ac_t""done" 1>&6
1665 # Make sure we can run config.sub.
1666 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1667 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1670 echo $ac_n "checking host system type""... $ac_c" 1>&6
1671 echo "configure:1672: checking host system type" >&5
1674 case "$host_alias" in
1678 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1679 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1681 *) host_alias=$nonopt ;;
1685 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1686 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689 echo "$ac_t""$host" 1>&6
1715 SLAPD_PERL_CPPFLAGS=
1722 # Find a good install program. We prefer a C program (faster),
1723 # so one script is as good as another. But avoid the broken or
1724 # incompatible versions:
1725 # SysV /etc/install, /usr/sbin/install
1726 # SunOS /usr/etc/install
1727 # IRIX /sbin/install
1729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1732 # ./install, which can be erroneously created by make from ./install.sh.
1733 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1734 echo "configure:1735: checking for a BSD compatible install" >&5
1735 if test -z "$INSTALL"; then
1736 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1740 for ac_dir in $PATH; do
1741 # Account for people who put trailing slashes in PATH elements.
1743 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1745 # OSF1 and SCO ODT 3.0 have their own names for install.
1746 # Don't use installbsd from OSF since it installs stuff as root
1748 for ac_prog in ginstall scoinst install; do
1749 if test -f $ac_dir/$ac_prog; then
1750 if test $ac_prog = install &&
1751 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1752 # AIX install. It has an incompatible calling convention.
1755 ac_cv_path_install="$ac_dir/$ac_prog -c"
1766 if test "${ac_cv_path_install+set}" = set; then
1767 INSTALL="$ac_cv_path_install"
1769 # As a last resort, use the slow shell script. We don't cache a
1770 # path for INSTALL within a source directory, because that will
1771 # break other packages using the cache if that directory is
1772 # removed, or if the path is relative.
1773 INSTALL="$ac_install_sh"
1776 echo "$ac_t""$INSTALL" 1>&6
1778 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1779 # It thinks the first close brace ends the variable substitution.
1780 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1782 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1784 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1786 # Extract the first word of "ranlib", so it can be a program name with args.
1787 set dummy ranlib; ac_word=$2
1788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1789 echo "configure:1790: checking for $ac_word" >&5
1790 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1793 if test -n "$RANLIB"; then
1794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1798 for ac_dir in $ac_dummy; do
1799 test -z "$ac_dir" && ac_dir=.
1800 if test -f $ac_dir/$ac_word; then
1801 ac_cv_prog_RANLIB="ranlib"
1806 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1809 RANLIB="$ac_cv_prog_RANLIB"
1810 if test -n "$RANLIB"; then
1811 echo "$ac_t""$RANLIB" 1>&6
1813 echo "$ac_t""no" 1>&6
1816 # Extract the first word of "gcc", so it can be a program name with args.
1817 set dummy gcc; ac_word=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1828 for ac_dir in $ac_dummy; do
1829 test -z "$ac_dir" && ac_dir=.
1830 if test -f $ac_dir/$ac_word; then
1839 if test -n "$CC"; then
1840 echo "$ac_t""$CC" 1>&6
1842 echo "$ac_t""no" 1>&6
1845 if test -z "$CC"; then
1846 # Extract the first word of "cc", so it can be a program name with args.
1847 set dummy cc; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 if test -n "$CC"; then
1854 ac_cv_prog_CC="$CC" # Let the user override the test.
1856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1859 for ac_dir in $ac_dummy; do
1860 test -z "$ac_dir" && ac_dir=.
1861 if test -f $ac_dir/$ac_word; then
1862 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1863 ac_prog_rejected=yes
1871 if test $ac_prog_rejected = yes; then
1872 # We found a bogon in the path, so make sure we never use it.
1873 set dummy $ac_cv_prog_CC
1875 if test $# -gt 0; then
1876 # We chose a different compiler from the bogus one.
1877 # However, it has the same basename, so the bogon will be chosen
1878 # first if we set CC to just the basename; use the full file name.
1880 set dummy "$ac_dir/$ac_word" "$@"
1888 if test -n "$CC"; then
1889 echo "$ac_t""$CC" 1>&6
1891 echo "$ac_t""no" 1>&6
1894 if test -z "$CC"; then
1895 case "`uname -s`" in
1897 # Extract the first word of "cl", so it can be a program name with args.
1898 set dummy cl; ac_word=$2
1899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1900 echo "configure:1901: checking for $ac_word" >&5
1901 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1909 for ac_dir in $ac_dummy; do
1910 test -z "$ac_dir" && ac_dir=.
1911 if test -f $ac_dir/$ac_word; then
1920 if test -n "$CC"; then
1921 echo "$ac_t""$CC" 1>&6
1923 echo "$ac_t""no" 1>&6
1928 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1931 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1932 echo "configure:1933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1939 cross_compiling=$ac_cv_prog_cc_cross
1941 cat > conftest.$ac_ext << EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1948 if { (eval echo configure:1949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1949 ac_cv_prog_cc_works=yes
1950 # If we can't run a trivial program, we are probably using a cross compiler.
1951 if (./conftest; exit) 2>/dev/null; then
1952 ac_cv_prog_cc_cross=no
1954 ac_cv_prog_cc_cross=yes
1957 echo "configure: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1959 ac_cv_prog_cc_works=no
1963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1967 cross_compiling=$ac_cv_prog_cc_cross
1969 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1970 if test $ac_cv_prog_cc_works = no; then
1971 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1973 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1975 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1976 cross_compiling=$ac_cv_prog_cc_cross
1978 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1979 echo "configure:1980: checking whether we are using GNU C" >&5
1980 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 cat > conftest.c <<EOF
1988 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1995 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1997 if test $ac_cv_prog_gcc = yes; then
2003 ac_test_CFLAGS="${CFLAGS+set}"
2004 ac_save_CFLAGS="$CFLAGS"
2006 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2007 echo "configure:2008: checking whether ${CC-cc} accepts -g" >&5
2008 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 echo 'void f(){}' > conftest.c
2012 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2021 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2022 if test "$ac_test_CFLAGS" = set; then
2023 CFLAGS="$ac_save_CFLAGS"
2024 elif test $ac_cv_prog_cc_g = yes; then
2025 if test "$GCC" = yes; then
2031 if test "$GCC" = yes; then
2038 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2039 if test "${with_gnu_ld+set}" = set; then
2040 withval="$with_gnu_ld"
2041 test "$withval" = no || with_gnu_ld=yes
2048 if test "$ac_cv_prog_gcc" = yes; then
2049 # Check if gcc -print-prog-name=ld gives a path.
2050 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2051 echo "configure:2052: checking for ld used by GCC" >&5
2052 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2054 # Accept absolute paths.
2056 test -z "$LD" && LD="$ac_prog"
2059 # If it fails, then pretend we aren't using GCC.
2063 # If it is relative, then search for the first ld in PATH.
2067 elif test "$with_gnu_ld" = yes; then
2068 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2069 echo "configure:2070: checking for GNU ld" >&5
2071 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2072 echo "configure:2073: checking for non-GNU ld" >&5
2074 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 if test -z "$LD"; then
2078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2079 for ac_dir in $PATH; do
2080 test -z "$ac_dir" && ac_dir=.
2081 if test -f "$ac_dir/$ac_prog"; then
2082 ac_cv_path_LD="$ac_dir/$ac_prog"
2083 # Check to see if the program is GNU ld. I'd rather use --version,
2084 # but apparently some GNU ld's only accept -v.
2085 # Break only if it was the GNU/non-GNU ld that we prefer.
2086 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2087 test "$with_gnu_ld" != no && break
2089 test "$with_gnu_ld" != yes && break
2095 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2100 if test -n "$LD"; then
2101 echo "$ac_t""$LD" 1>&6
2103 echo "$ac_t""no" 1>&6
2105 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2107 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2108 echo "configure:2109: checking if the linker ($LD) is GNU ld" >&5
2109 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2113 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2114 ac_cv_prog_gnu_ld=yes
2116 ac_cv_prog_gnu_ld=no
2120 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2123 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2124 echo "configure:2125: checking for BSD-compatible nm" >&5
2125 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2130 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2134 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2135 test -z "$ac_dir" && ac_dir=.
2136 if test -f $ac_dir/nm; then
2137 # Check to see if the nm accepts a BSD-compat flag.
2138 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2139 # nm: unknown option "B" ignored
2140 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2141 ac_cv_path_NM="$ac_dir/nm -B"
2142 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2143 ac_cv_path_NM="$ac_dir/nm -p"
2145 ac_cv_path_NM="$ac_dir/nm"
2151 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2157 echo "$ac_t""$NM" 1>&6
2160 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2161 echo "configure:2162: checking whether ln -s works" >&5
2162 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2166 if ln -s X conftestdata 2>/dev/null
2169 ac_cv_prog_LN_S="ln -s"
2174 LN_S="$ac_cv_prog_LN_S"
2175 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2176 echo "$ac_t""yes" 1>&6
2178 echo "$ac_t""no" 1>&6
2181 # Always use our own libtool.
2182 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2184 # Check for any special flags to pass to ltconfig.
2186 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2187 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2188 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2189 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2190 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2192 # Some flags need to be propagated to the compiler or linker for good
2196 # Find out which ABI we are using.
2197 echo '#line 2198 "configure"' > conftest.$ac_ext
2198 if { (eval echo configure:2199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2199 case "`/usr/bin/file conftest.o`" in
2215 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2216 CFLAGS="$CFLAGS -belf"
2220 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2221 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2222 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2223 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2224 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2225 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2228 for ac_prog in mawk gawk nawk awk
2230 # Extract the first word of "$ac_prog", so it can be a program name with args.
2231 set dummy $ac_prog; ac_word=$2
2232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2233 echo "configure:2234: checking for $ac_word" >&5
2234 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 if test -n "$AWK"; then
2238 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2242 for ac_dir in $ac_dummy; do
2243 test -z "$ac_dir" && ac_dir=.
2244 if test -f $ac_dir/$ac_word; then
2245 ac_cv_prog_AWK="$ac_prog"
2252 AWK="$ac_cv_prog_AWK"
2253 if test -n "$AWK"; then
2254 echo "$ac_t""$AWK" 1>&6
2256 echo "$ac_t""no" 1>&6
2259 test -n "$AWK" && break
2262 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2263 echo "configure:2264: checking whether ln -s works" >&5
2264 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2268 if ln -s X conftestdata 2>/dev/null
2271 ac_cv_prog_LN_S="ln -s"
2276 LN_S="$ac_cv_prog_LN_S"
2277 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2278 echo "$ac_t""yes" 1>&6
2280 echo "$ac_t""no" 1>&6
2284 # Extract the first word of "sendmail", so it can be a program name with args.
2285 set dummy sendmail; ac_word=$2
2286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2287 echo "configure:2288: checking for $ac_word" >&5
2288 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2293 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2296 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2300 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2301 for ac_dir in $ac_dummy; do
2302 test -z "$ac_dir" && ac_dir=.
2303 if test -f $ac_dir/$ac_word; then
2304 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2309 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2313 SENDMAIL="$ac_cv_path_SENDMAIL"
2314 if test -n "$SENDMAIL"; then
2315 echo "$ac_t""$SENDMAIL" 1>&6
2317 echo "$ac_t""no" 1>&6
2320 # Extract the first word of "vi", so it can be a program name with args.
2321 set dummy vi; ac_word=$2
2322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2323 echo "configure:2324: checking for $ac_word" >&5
2324 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2329 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2332 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2336 ac_dummy="$PATH:/usr/ucb"
2337 for ac_dir in $ac_dummy; do
2338 test -z "$ac_dir" && ac_dir=.
2339 if test -f $ac_dir/$ac_word; then
2340 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2345 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2349 EDITOR="$ac_cv_path_EDITOR"
2350 if test -n "$EDITOR"; then
2351 echo "$ac_t""$EDITOR" 1>&6
2353 echo "$ac_t""no" 1>&6
2356 # Extract the first word of "finger", so it can be a program name with args.
2357 set dummy finger; ac_word=$2
2358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_word" >&5
2360 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2365 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2368 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2372 ac_dummy="$PATH:/usr/ucb"
2373 for ac_dir in $ac_dummy; do
2374 test -z "$ac_dir" && ac_dir=.
2375 if test -f $ac_dir/$ac_word; then
2376 ac_cv_path_FINGER="$ac_dir/$ac_word"
2381 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2385 FINGER="$ac_cv_path_FINGER"
2386 if test -n "$FINGER"; then
2387 echo "$ac_t""$FINGER" 1>&6
2389 echo "$ac_t""no" 1>&6
2393 if test $ol_enable_perl = yes ; then
2394 # Extract the first word of "perl", so it can be a program name with args.
2395 set dummy perl; ac_word=$2
2396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2397 echo "configure:2398: checking for $ac_word" >&5
2398 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2403 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2406 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2411 for ac_dir in $ac_dummy; do
2412 test -z "$ac_dir" && ac_dir=.
2413 if test -f $ac_dir/$ac_word; then
2414 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2419 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2423 PERLBIN="$ac_cv_path_PERLBIN"
2424 if test -n "$PERLBIN"; then
2425 echo "$ac_t""$PERLBIN" 1>&6
2427 echo "$ac_t""no" 1>&6
2431 if test "no$PERLBIN" = "no" ; then
2435 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2436 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
2439 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2440 echo "configure:2441: checking how to run the C preprocessor" >&5
2441 # On Suns, sometimes $CPP names a directory.
2442 if test -n "$CPP" && test -d "$CPP"; then
2445 if test -z "$CPP"; then
2446 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 # This must be in double quotes, not single quotes, because CPP may get
2450 # substituted into the Makefile and "${CC-cc}" will confuse make.
2452 # On the NeXT, cc -E runs the code through the compiler's parser,
2453 # not just through cpp.
2454 cat > conftest.$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2461 { (eval echo configure:2462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2463 if test -z "$ac_err"; then
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2470 CPP="${CC-cc} -E -traditional-cpp"
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2487 CPP="${CC-cc} -nologo -E"
2488 cat > conftest.$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2495 { (eval echo configure:2496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2497 if test -z "$ac_err"; then
2501 echo "configure: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2511 ac_cv_prog_CPP="$CPP"
2513 CPP="$ac_cv_prog_CPP"
2515 ac_cv_prog_CPP="$CPP"
2517 echo "$ac_t""$CPP" 1>&6
2520 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2521 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2523 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2524 echo "configure: warning: programs compiled here do run here..." 1>&2
2525 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2527 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2528 echo "configure: warning: programs compiled here do not run here..." 1>&2
2529 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2532 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2533 echo "configure:2534: checking for AIX" >&5
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2543 egrep "yes" >/dev/null 2>&1; then
2545 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2546 #define _ALL_SOURCE 1
2551 echo "$ac_t""no" 1>&6
2556 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2557 echo "configure:2558: checking for POSIXized ISC" >&5
2558 if test -d /etc/conf/kconfig.d &&
2559 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2561 echo "$ac_t""yes" 1>&6
2562 ISC=yes # If later tests want to check for ISC.
2563 cat >> confdefs.h <<\EOF
2564 #define _POSIX_SOURCE 1
2567 if test "$GCC" = yes; then
2573 echo "$ac_t""no" 1>&6
2577 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2578 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2579 echo "configure:2580: checking for minix/config.h" >&5
2580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 #include <minix/config.h>
2588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2589 { (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2591 if test -z "$ac_err"; then
2593 eval "ac_cv_header_$ac_safe=yes"
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2599 eval "ac_cv_header_$ac_safe=no"
2603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2607 echo "$ac_t""no" 1>&6
2611 if test "$MINIX" = yes; then
2612 cat >> confdefs.h <<\EOF
2613 #define _POSIX_SOURCE 1
2616 cat >> confdefs.h <<\EOF
2617 #define _POSIX_1_SOURCE 2
2620 cat >> confdefs.h <<\EOF
2627 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2628 echo "configure:2629: checking for Cygwin environment" >&5
2629 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2639 #define __CYGWIN__ __CYGWIN32__
2644 if { (eval echo configure:2645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2648 echo "configure: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2657 echo "$ac_t""$ac_cv_cygwin" 1>&6
2659 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2660 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2661 echo "configure:2662: checking for mingw32 environment" >&5
2662 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2673 if { (eval echo configure:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2686 echo "$ac_t""$ac_cv_mingw32" 1>&6
2688 test "$ac_cv_mingw32" = yes && MINGW32=yes
2691 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2692 echo "configure:2693: checking for executable suffix" >&5
2693 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2700 echo 'int main () { return 0; }' > conftest.$ac_ext
2702 if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2703 for file in conftest.*; do
2705 *.c | *.o | *.obj) ;;
2706 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2710 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2713 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2718 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2719 echo "$ac_t""${ac_cv_exeext}" 1>&6
2722 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2723 echo "configure:2724: checking for object suffix" >&5
2724 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2728 echo 'int i = 1;' > conftest.$ac_ext
2729 if { (eval echo configure:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2730 for ac_file in conftest.*; do
2733 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2737 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2742 echo "$ac_t""$ac_cv_objext" 1>&6
2743 OBJEXT=$ac_cv_objext
2744 ac_objext=$ac_cv_objext
2750 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2751 echo "configure:2752: checking for ${CC-cc} option to accept ANSI C" >&5
2752 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 am_cv_prog_cc_stdc=no
2757 # Don't try gcc -ansi; that turns off useful extensions and
2758 # breaks some systems' header files.
2759 # AIX -qlanglvl=ansi
2760 # Ultrix and OSF/1 -std1
2761 # HP-UX -Aa -D_HPUX_SOURCE
2762 # SVR4 -Xc -D__EXTENSIONS__
2763 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2765 CC="$ac_save_CC $ac_arg"
2766 cat > conftest.$ac_ext <<EOF
2767 #line 2768 "configure"
2768 #include "confdefs.h"
2771 #include <sys/types.h>
2772 #include <sys/stat.h>
2773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2774 struct buf { int x; };
2775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2776 static char *e (p, i)
2782 static char *f (char * (*g) (char **, int), char **p, ...)
2787 s = g (p, va_arg (v,int));
2791 int test (int i, double x);
2792 struct s1 {int (*f) (int a);};
2793 struct s2 {int (*f) (double a);};
2794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2804 if { (eval echo configure:2805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2806 am_cv_prog_cc_stdc="$ac_arg"; break
2808 echo "configure: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2817 if test -z "$am_cv_prog_cc_stdc"; then
2818 echo "$ac_t""none needed" 1>&6
2820 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2822 case "x$am_cv_prog_cc_stdc" in
2824 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2827 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2828 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2834 echo $ac_n "checking for socket""... $ac_c" 1>&6
2835 echo "configure:2836: checking for socket" >&5
2836 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2842 /* System header to define __stub macros and hopefully few prototypes,
2843 which can conflict with char socket(); below. */
2845 /* Override any gcc2 internal prototype to avoid an error. */
2846 /* We use char because int might match the return type of a gcc2
2847 builtin and then its argument prototype would still apply. */
2852 /* The GNU C library defines this for functions which it implements
2853 to always fail with ENOSYS. Some functions are actually named
2854 something starting with __ and the normal name is an alias. */
2855 #if defined (__stub_socket) || defined (__stub___socket)
2863 if { (eval echo configure:2864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2865 eval "ac_cv_func_socket=yes"
2867 echo "configure: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2870 eval "ac_cv_func_socket=no"
2875 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2876 echo "$ac_t""yes" 1>&6
2879 echo "$ac_t""no" 1>&6
2881 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2882 echo "configure:2883: checking for main in -lsocket" >&5
2883 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6
2887 ac_save_LIBS="$LIBS"
2888 LIBS="-lsocket $LIBS"
2889 cat > conftest.$ac_ext <<EOF
2890 #line 2891 "configure"
2891 #include "confdefs.h"
2897 if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2899 eval "ac_cv_lib_$ac_lib_var=yes"
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2904 eval "ac_cv_lib_$ac_lib_var=no"
2907 LIBS="$ac_save_LIBS"
2910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2911 echo "$ac_t""yes" 1>&6
2912 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2913 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2914 cat >> confdefs.h <<EOF
2915 #define $ac_tr_lib 1
2918 LIBS="-lsocket $LIBS"
2921 echo "$ac_t""no" 1>&6
2924 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2925 echo "configure:2926: checking for main in -lnet" >&5
2926 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 ac_save_LIBS="$LIBS"
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2940 if { (eval echo configure:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2942 eval "ac_cv_lib_$ac_lib_var=yes"
2944 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2947 eval "ac_cv_lib_$ac_lib_var=no"
2950 LIBS="$ac_save_LIBS"
2953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2954 echo "$ac_t""yes" 1>&6
2955 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2956 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2957 cat >> confdefs.h <<EOF
2958 #define $ac_tr_lib 1
2964 echo "$ac_t""no" 1>&6
2967 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2968 echo "configure:2969: checking for main in -lnsl_s" >&5
2969 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 ac_save_LIBS="$LIBS"
2974 LIBS="-lnsl_s $LIBS"
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2983 if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2985 eval "ac_cv_lib_$ac_lib_var=yes"
2987 echo "configure: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2990 eval "ac_cv_lib_$ac_lib_var=no"
2993 LIBS="$ac_save_LIBS"
2996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2997 echo "$ac_t""yes" 1>&6
2998 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2999 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3000 cat >> confdefs.h <<EOF
3001 #define $ac_tr_lib 1
3004 LIBS="-lnsl_s $LIBS"
3007 echo "$ac_t""no" 1>&6
3010 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3011 echo "configure:3012: checking for main in -lnsl" >&5
3012 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3016 ac_save_LIBS="$LIBS"
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3026 if { (eval echo configure:3027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3028 eval "ac_cv_lib_$ac_lib_var=yes"
3030 echo "configure: failed program was:" >&5
3031 cat conftest.$ac_ext >&5
3033 eval "ac_cv_lib_$ac_lib_var=no"
3036 LIBS="$ac_save_LIBS"
3039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3040 echo "$ac_t""yes" 1>&6
3041 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3042 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3043 cat >> confdefs.h <<EOF
3044 #define $ac_tr_lib 1
3050 echo "$ac_t""no" 1>&6
3053 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3054 echo "configure:3055: checking for socket in -linet" >&5
3055 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3059 ac_save_LIBS="$LIBS"
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3064 /* Override any gcc2 internal prototype to avoid an error. */
3065 /* We use char because int might match the return type of a gcc2
3066 builtin and then its argument prototype would still apply. */
3073 if { (eval echo configure:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3075 eval "ac_cv_lib_$ac_lib_var=yes"
3077 echo "configure: failed program was:" >&5
3078 cat conftest.$ac_ext >&5
3080 eval "ac_cv_lib_$ac_lib_var=no"
3083 LIBS="$ac_save_LIBS"
3086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3087 echo "$ac_t""yes" 1>&6
3088 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3089 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3090 cat >> confdefs.h <<EOF
3091 #define $ac_tr_lib 1
3097 echo "$ac_t""no" 1>&6
3100 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3101 echo "configure:3102: checking for main in -lgen" >&5
3102 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3106 ac_save_LIBS="$LIBS"
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3116 if { (eval echo configure:3117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3118 eval "ac_cv_lib_$ac_lib_var=yes"
3120 echo "configure: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3123 eval "ac_cv_lib_$ac_lib_var=no"
3126 LIBS="$ac_save_LIBS"
3129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3130 echo "$ac_t""yes" 1>&6
3131 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3132 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3133 cat >> confdefs.h <<EOF
3134 #define $ac_tr_lib 1
3140 echo "$ac_t""no" 1>&6
3147 for ac_func in res_search
3149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3150 echo "configure:3151: checking for $ac_func" >&5
3151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3157 /* System header to define __stub macros and hopefully few prototypes,
3158 which can conflict with char $ac_func(); below. */
3160 /* Override any gcc2 internal prototype to avoid an error. */
3161 /* We use char because int might match the return type of a gcc2
3162 builtin and then its argument prototype would still apply. */
3167 /* The GNU C library defines this for functions which it implements
3168 to always fail with ENOSYS. Some functions are actually named
3169 something starting with __ and the normal name is an alias. */
3170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3178 if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3180 eval "ac_cv_func_$ac_func=yes"
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3185 eval "ac_cv_func_$ac_func=no"
3190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3191 echo "$ac_t""yes" 1>&6
3192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3193 cat >> confdefs.h <<EOF
3194 #define $ac_tr_func 1
3198 echo "$ac_t""no" 1>&6
3202 if test $ac_cv_func_res_search = "no" ; then
3203 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3204 echo "configure:3205: checking for res_search in -lbind" >&5
3205 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3209 ac_save_LIBS="$LIBS"
3211 cat > conftest.$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3214 /* Override any gcc2 internal prototype to avoid an error. */
3215 /* We use char because int might match the return type of a gcc2
3216 builtin and then its argument prototype would still apply. */
3223 if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3225 eval "ac_cv_lib_$ac_lib_var=yes"
3227 echo "configure: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3230 eval "ac_cv_lib_$ac_lib_var=no"
3233 LIBS="$ac_save_LIBS"
3236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3237 echo "$ac_t""yes" 1>&6
3238 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3240 cat >> confdefs.h <<EOF
3241 #define $ac_tr_lib 1
3247 echo "$ac_t""no" 1>&6
3250 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3251 cat >> confdefs.h <<\EOF
3252 #define HAVE_RES_SEARCH 1
3256 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3257 echo "configure:3258: checking for res_search in -lresolv" >&5
3258 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 ac_save_LIBS="$LIBS"
3263 LIBS="-lresolv $LIBS"
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3267 /* Override any gcc2 internal prototype to avoid an error. */
3268 /* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3276 if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3278 eval "ac_cv_lib_$ac_lib_var=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3283 eval "ac_cv_lib_$ac_lib_var=no"
3286 LIBS="$ac_save_LIBS"
3289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3290 echo "$ac_t""yes" 1>&6
3291 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3292 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3293 cat >> confdefs.h <<EOF
3294 #define $ac_tr_lib 1
3297 LIBS="-lresolv $LIBS"
3300 echo "$ac_t""no" 1>&6
3303 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3304 cat >> confdefs.h <<\EOF
3305 #define HAVE_RES_SEARCH 1
3312 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3313 echo "configure:3314: checking for sigset in -lV3" >&5
3314 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 ac_save_LIBS="$LIBS"
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 /* Override any gcc2 internal prototype to avoid an error. */
3324 /* We use char because int might match the return type of a gcc2
3325 builtin and then its argument prototype would still apply. */
3332 if { (eval echo configure:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3334 eval "ac_cv_lib_$ac_lib_var=yes"
3336 echo "configure: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3339 eval "ac_cv_lib_$ac_lib_var=no"
3342 LIBS="$ac_save_LIBS"
3345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3346 echo "$ac_t""yes" 1>&6
3347 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3348 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3349 cat >> confdefs.h <<EOF
3350 #define $ac_tr_lib 1
3356 echo "$ac_t""no" 1>&6
3362 if test $ol_enable_ldapd != no ; then
3363 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3364 echo "configure:3365: checking for main in -lxtpp" >&5
3365 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 ac_save_LIBS="$LIBS"
3370 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3379 if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3381 eval "ac_cv_lib_$ac_lib_var=yes"
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3386 eval "ac_cv_lib_$ac_lib_var=no"
3389 LIBS="$ac_save_LIBS"
3392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3393 echo "$ac_t""yes" 1>&6
3396 cat >> confdefs.h <<\EOF
3400 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3403 echo "$ac_t""no" 1>&6
3407 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3408 echo "configure:3409: checking for main in -ldsap" >&5
3409 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 ac_save_LIBS="$LIBS"
3414 LIBS="-ldsap -lisode $LIBS"
3415 cat > conftest.$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3423 if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3425 eval "ac_cv_lib_$ac_lib_var=yes"
3427 echo "configure: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3430 eval "ac_cv_lib_$ac_lib_var=no"
3433 LIBS="$ac_save_LIBS"
3436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3437 echo "$ac_t""yes" 1>&6
3440 cat >> confdefs.h <<\EOF
3444 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3447 echo "$ac_t""no" 1>&6
3451 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3452 echo "configure:3453: checking for main in -lisode" >&5
3453 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 ac_save_LIBS="$LIBS"
3458 LIBS="-lisode $LIBS"
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3467 if { (eval echo configure:3468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3469 eval "ac_cv_lib_$ac_lib_var=yes"
3471 echo "configure: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3474 eval "ac_cv_lib_$ac_lib_var=no"
3477 LIBS="$ac_save_LIBS"
3480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3481 echo "$ac_t""yes" 1>&6
3484 cat >> confdefs.h <<\EOF
3485 #define HAVE_ISODE 1
3488 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3491 echo "$ac_t""no" 1>&6
3497 if test $ol_link_isode != no; then
3498 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3499 echo "configure:3500: checking for main in -lpp" >&5
3500 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 ac_save_LIBS="$LIBS"
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3516 eval "ac_cv_lib_$ac_lib_var=yes"
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3521 eval "ac_cv_lib_$ac_lib_var=no"
3524 LIBS="$ac_save_LIBS"
3527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3528 echo "$ac_t""yes" 1>&6
3530 cat >> confdefs.h <<\EOF
3534 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3537 echo "$ac_t""no" 1>&6
3542 # Extract the first word of "pepsy", so it can be a program name with args.
3543 set dummy pepsy; ac_word=$2
3544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3545 echo "configure:3546: checking for $ac_word" >&5
3546 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3551 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3554 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3559 for ac_dir in $ac_dummy; do
3560 test -z "$ac_dir" && ac_dir=.
3561 if test -f $ac_dir/$ac_word; then
3562 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3570 PEPSY="$ac_cv_path_PEPSY"
3571 if test -n "$PEPSY"; then
3572 echo "$ac_t""$PEPSY" 1>&6
3574 echo "$ac_t""no" 1>&6
3581 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3582 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3586 echo "configure:3587: checking for $ac_hdr" >&5
3587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3590 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3596 { (eval echo configure:3597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3598 if test -z "$ac_err"; then
3600 eval "ac_cv_header_$ac_safe=yes"
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3606 eval "ac_cv_header_$ac_safe=no"
3610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3611 echo "$ac_t""yes" 1>&6
3612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3613 cat >> confdefs.h <<EOF
3614 #define $ac_tr_hdr 1
3618 echo "$ac_t""no" 1>&6
3623 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3624 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3625 echo "configure:3626: checking for main in -lkrb4" >&5
3626 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 ac_save_LIBS="$LIBS"
3631 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3640 if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3642 eval "ac_cv_lib_$ac_lib_var=yes"
3644 echo "configure: failed program was:" >&5
3645 cat conftest.$ac_ext >&5
3647 eval "ac_cv_lib_$ac_lib_var=no"
3650 LIBS="$ac_save_LIBS"
3653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3654 echo "$ac_t""yes" 1>&6
3657 echo "$ac_t""no" 1>&6
3662 if test $have_k5 = yes ; then
3663 ol_with_kerberos=found
3664 ol_link_kerberos=yes
3666 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3668 LIBS="$KRB_LIBS $LIBS"
3670 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3671 echo "configure:3672: checking for des_debug in Kerberos libraries" >&5
3672 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3677 LIBS="$KRB_LIBS $LIBS"
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3682 #include <kerberosIV/krb.h>
3683 #include <kerberosIV/des.h>
3684 extern int des_debug;
3692 if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3694 ol_cv_var_des_debug=yes
3696 echo "configure: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3699 ol_cv_var_des_debug=no
3706 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3708 if test $ol_cv_var_des_debug= yes ; then
3709 cat >> confdefs.h <<\EOF
3710 #define HAVE_DES_DEBUG 1
3720 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3721 for ac_hdr in krb.h des.h
3723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3725 echo "configure:3726: checking for $ac_hdr" >&5
3726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3735 { (eval echo configure:3736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3737 if test -z "$ac_err"; then
3739 eval "ac_cv_header_$ac_safe=yes"
3742 echo "configure: failed program was:" >&5
3743 cat conftest.$ac_ext >&5
3745 eval "ac_cv_header_$ac_safe=no"
3749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3750 echo "$ac_t""yes" 1>&6
3751 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3752 cat >> confdefs.h <<EOF
3753 #define $ac_tr_hdr 1
3757 echo "$ac_t""no" 1>&6
3762 if test $ac_cv_header_krb_h = yes ; then
3763 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3764 echo "configure:3765: checking for main in -lkrb" >&5
3765 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3769 ac_save_LIBS="$LIBS"
3770 LIBS="-lkrb -ldes $LIBS"
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3779 if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3781 eval "ac_cv_lib_$ac_lib_var=yes"
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3786 eval "ac_cv_lib_$ac_lib_var=no"
3789 LIBS="$ac_save_LIBS"
3792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3793 echo "$ac_t""yes" 1>&6
3796 echo "$ac_t""no" 1>&6
3801 if test $have_k4 = yes ; then
3802 ol_with_kerberos=found
3803 ol_link_kerberos=yes
3805 KRB_LIBS="-lkrb -ldes"
3810 if test $ol_link_kerberos = yes ; then
3811 cat >> confdefs.h <<\EOF
3812 #define HAVE_KERBEROS 1
3818 if test $ol_with_tls = auto -o $ol_with_tls = ssleay \
3819 -o $ol_with_tls = openssl ; then
3823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3825 echo "configure:3826: checking for $ac_hdr" >&5
3826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3835 { (eval echo configure:3836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3837 if test -z "$ac_err"; then
3839 eval "ac_cv_header_$ac_safe=yes"
3842 echo "configure: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3845 eval "ac_cv_header_$ac_safe=no"
3849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3850 echo "$ac_t""yes" 1>&6
3851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3852 cat >> confdefs.h <<EOF
3853 #define $ac_tr_hdr 1
3857 echo "$ac_t""no" 1>&6
3862 if test $ac_cv_header_ssl_h = yes ; then
3863 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
3864 echo "configure:3865: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
3865 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
3866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 ac_save_LIBS="$LIBS"
3870 LIBS="-lssl -lcrypto $LIBS"
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3877 char SSLeay_add_ssl_algorithms();
3880 SSLeay_add_ssl_algorithms()
3883 if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3885 eval "ac_cv_lib_$ac_lib_var=yes"
3887 echo "configure: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3890 eval "ac_cv_lib_$ac_lib_var=no"
3893 LIBS="$ac_save_LIBS"
3896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3900 echo "$ac_t""no" 1>&6
3905 if test $have_ssleay = yes ; then
3909 cat >> confdefs.h <<\EOF
3910 #define HAVE_SSLEAY 1
3914 TLS_LIBS="-lssl -lcrypto"
3919 if test $ol_link_tls = yes ; then
3920 cat >> confdefs.h <<\EOF
3927 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3928 -o $ol_with_threads = posix ; then
3930 for ac_hdr in pthread.h sched.h
3932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3934 echo "configure:3935: checking for $ac_hdr" >&5
3935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 cat > conftest.$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3944 { (eval echo configure:3945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3946 if test -z "$ac_err"; then
3948 eval "ac_cv_header_$ac_safe=yes"
3951 echo "configure: failed program was:" >&5
3952 cat conftest.$ac_ext >&5
3954 eval "ac_cv_header_$ac_safe=no"
3958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3959 echo "$ac_t""yes" 1>&6
3960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3961 cat >> confdefs.h <<EOF
3962 #define $ac_tr_hdr 1
3966 echo "$ac_t""no" 1>&6
3971 if test $ac_cv_header_pthread_h = yes ; then
3972 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3973 echo "configure:3974: checking POSIX thread version" >&5
3974 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3982 # include <pthread.h>
3983 /* this check could be improved */
3984 # ifdef PTHREAD_ONCE_INIT
3985 pthread_version_final
3989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3990 egrep "pthread_version_final" >/dev/null 2>&1; then
3992 ol_pthread_final=yes
4000 cat > conftest.$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4004 # include <pthread.h>
4005 /* this check could be improved */
4006 # ifdef pthread_once_init
4007 pthread_version_draft4
4011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4012 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4014 ol_pthread_draft4=yes
4017 ol_pthread_draft4=no
4022 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4023 ol_cv_pthread_version=final
4024 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4025 ol_cv_pthread_version=draft4
4027 ol_cv_pthread_version=unknown
4032 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4035 if test $ol_cv_pthread_version = final ; then
4036 cat >> confdefs.h <<\EOF
4037 #define HAVE_PTHREADS_FINAL 1
4040 elif test $ol_cv_pthread_version = draft4 ; then
4041 cat >> confdefs.h <<\EOF
4042 #define HAVE_PTHREADS_D4 1
4046 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4049 # consider threads found
4050 ol_with_threads=found
4053 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4054 echo "configure:4055: checking for LinuxThreads" >&5
4055 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4059 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4060 if test "$res" -gt 0 ; then
4061 ol_cv_linux_threads=yes
4063 ol_cv_linux_threads=no
4068 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4071 if test $ol_cv_linux_threads = yes ; then
4072 cat >> confdefs.h <<\EOF
4073 #define HAVE_LINUX_THREADS 1
4079 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
4080 echo "configure:4081: checking for pthread_create" >&5
4081 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4084 cat > conftest.$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4087 /* System header to define __stub macros and hopefully few prototypes,
4088 which can conflict with char pthread_create(); below. */
4090 /* Override any gcc2 internal prototype to avoid an error. */
4091 /* We use char because int might match the return type of a gcc2
4092 builtin and then its argument prototype would still apply. */
4093 char pthread_create();
4097 /* The GNU C library defines this for functions which it implements
4098 to always fail with ENOSYS. Some functions are actually named
4099 something starting with __ and the normal name is an alias. */
4100 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
4108 if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4110 eval "ac_cv_func_pthread_create=yes"
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4115 eval "ac_cv_func_pthread_create=no"
4120 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
4121 echo "$ac_t""yes" 1>&6
4124 echo "$ac_t""no" 1>&6
4128 if test $ol_link_threads = no ; then
4129 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
4130 echo "configure:4131: checking for pthread_create with -kthread" >&5
4131 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4136 LIBS="-kthread $LIBS"
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 #include <pthread.h>
4142 pthread_create(NULL,NULL,NULL,NULL);
4145 if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4147 ol_cv_kthread_flag=yes
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4152 ol_cv_kthread_flag=no
4159 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
4161 if test $ol_cv_kthread_flag = yes ; then
4162 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
4163 ol_link_threads=posix
4167 if test $ol_link_threads = no ; then
4168 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
4169 echo "configure:4170: checking for pthread_create with -pthread" >&5
4170 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
4171 echo $ac_n "(cached) $ac_c" 1>&6
4175 LIBS="-pthread $LIBS"
4176 cat > conftest.$ac_ext <<EOF
4177 #line 4178 "configure"
4178 #include "confdefs.h"
4179 #include <pthread.h>
4181 pthread_create(NULL,NULL,NULL,NULL);
4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4186 ol_cv_pthread_flag=yes
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4191 ol_cv_pthread_flag=no
4198 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
4200 if test $ol_cv_pthread_flag = yes ; then
4201 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
4202 ol_link_threads=posix
4206 if test $ol_link_threads = no ; then
4207 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
4208 echo "configure:4209: checking for pthread_create with -pthreads" >&5
4209 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4214 LIBS="-pthreads $LIBS"
4215 cat > conftest.$ac_ext <<EOF
4216 #line 4217 "configure"
4217 #include "confdefs.h"
4218 #include <pthread.h>
4220 pthread_create(NULL,NULL,NULL,NULL);
4223 if { (eval echo configure:4224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4225 ol_cv_pthreads_flag=yes
4227 echo "configure: failed program was:" >&5
4228 cat conftest.$ac_ext >&5
4230 ol_cv_pthreads_flag=no
4237 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
4239 if test $ol_cv_pthreads_flag = yes ; then
4240 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
4241 ol_link_threads=posix
4245 if test $ol_link_threads = no ; then
4246 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
4247 echo "configure:4248: checking for pthread_create with -thread" >&5
4248 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4253 LIBS="-thread $LIBS"
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 char pthread_create();
4262 if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4264 ol_cv_thread_flag=yes
4266 echo "configure: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4269 ol_cv_thread_flag=no
4276 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4278 if test $ol_cv_thread_flag = yes ; then
4279 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4280 ol_link_threads=posix
4284 if test $ol_link_threads = no ; then
4285 echo $ac_n "checking for pthread_create with -mt""... $ac_c" 1>&6
4286 echo "configure:4287: checking for pthread_create with -mt" >&5
4287 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4293 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 char pthread_create();
4301 if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4303 ol_cv_thread_flag=yes
4305 echo "configure: failed program was:" >&5
4306 cat conftest.$ac_ext >&5
4308 ol_cv_thread_flag=no
4315 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4317 if test $ol_cv_thread_flag = yes ; then
4318 LTHREAD_LIBS="$LTHREAD_LIBS -mt"
4319 ol_link_threads=posix
4323 if test $ol_link_threads = no ; then
4325 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
4326 echo "configure:4327: checking for pthread_mutex_unlock in -lpthread" >&5
4327 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 ac_save_LIBS="$LIBS"
4332 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
4333 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336 /* Override any gcc2 internal prototype to avoid an error. */
4337 /* We use char because int might match the return type of a gcc2
4338 builtin and then its argument prototype would still apply. */
4339 char pthread_mutex_unlock();
4342 pthread_mutex_unlock()
4345 if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4347 eval "ac_cv_lib_$ac_lib_var=yes"
4349 echo "configure: failed program was:" >&5
4350 cat conftest.$ac_ext >&5
4352 eval "ac_cv_lib_$ac_lib_var=no"
4355 LIBS="$ac_save_LIBS"
4358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4361 ol_link_threads=posix
4362 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
4363 if test $ol_with_yielding_select = auto ; then
4364 ol_with_yielding_select=yes
4368 echo "$ac_t""no" 1>&6
4375 if test $ol_link_threads = no ; then
4377 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4378 echo "configure:4379: checking for pthread_mutex_lock in -lpthread" >&5
4379 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4383 ac_save_LIBS="$LIBS"
4384 LIBS="-lpthread -lmach -lexc $LIBS"
4385 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 /* Override any gcc2 internal prototype to avoid an error. */
4389 /* We use char because int might match the return type of a gcc2
4390 builtin and then its argument prototype would still apply. */
4391 char pthread_mutex_lock();
4394 pthread_mutex_lock()
4397 if { (eval echo configure:4398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4399 eval "ac_cv_lib_$ac_lib_var=yes"
4401 echo "configure: failed program was:" >&5
4402 cat conftest.$ac_ext >&5
4404 eval "ac_cv_lib_$ac_lib_var=no"
4407 LIBS="$ac_save_LIBS"
4410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4411 echo "$ac_t""yes" 1>&6
4413 ol_link_threads=posix
4414 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
4415 if test $ol_with_yielding_select = auto ; then
4416 ol_with_yielding_select=yes
4420 echo "$ac_t""no" 1>&6
4427 if test $ol_link_threads = no ; then
4429 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
4430 echo "configure:4431: checking for pthread_mutex_trylock in -lpthread" >&5
4431 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4432 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4435 ac_save_LIBS="$LIBS"
4436 LIBS="-lpthread -lexc $LIBS"
4437 cat > conftest.$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4440 /* Override any gcc2 internal prototype to avoid an error. */
4441 /* We use char because int might match the return type of a gcc2
4442 builtin and then its argument prototype would still apply. */
4443 char pthread_mutex_trylock();
4446 pthread_mutex_trylock()
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4451 eval "ac_cv_lib_$ac_lib_var=yes"
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4456 eval "ac_cv_lib_$ac_lib_var=no"
4459 LIBS="$ac_save_LIBS"
4462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4463 echo "$ac_t""yes" 1>&6
4465 ol_link_threads=posix
4466 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4467 if test $ol_with_yielding_select = auto ; then
4468 ol_with_yielding_select=yes
4472 echo "$ac_t""no" 1>&6
4479 if test $ol_link_threads = no ; then
4481 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4482 echo "configure:4483: checking for pthread_create in -lpthread" >&5
4483 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4487 ac_save_LIBS="$LIBS"
4488 LIBS="-lpthread $LIBS"
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4492 /* Override any gcc2 internal prototype to avoid an error. */
4493 /* We use char because int might match the return type of a gcc2
4494 builtin and then its argument prototype would still apply. */
4495 char pthread_create();
4501 if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4503 eval "ac_cv_lib_$ac_lib_var=yes"
4505 echo "configure: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4508 eval "ac_cv_lib_$ac_lib_var=no"
4511 LIBS="$ac_save_LIBS"
4514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4515 echo "$ac_t""yes" 1>&6
4517 ol_link_threads=posix
4518 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4520 echo "$ac_t""no" 1>&6
4527 if test $ol_link_threads = no ; then
4529 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4530 echo "configure:4531: checking for pthread_create in -lc_r" >&5
4531 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
4532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 ac_save_LIBS="$LIBS"
4537 cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure"
4539 #include "confdefs.h"
4540 /* Override any gcc2 internal prototype to avoid an error. */
4541 /* We use char because int might match the return type of a gcc2
4542 builtin and then its argument prototype would still apply. */
4543 char pthread_create();
4549 if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4551 eval "ac_cv_lib_$ac_lib_var=yes"
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4556 eval "ac_cv_lib_$ac_lib_var=no"
4559 LIBS="$ac_save_LIBS"
4562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4563 echo "$ac_t""yes" 1>&6
4565 ol_link_threads=posix
4566 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
4568 echo "$ac_t""no" 1>&6
4575 if test $ol_link_threads = no ; then
4577 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
4578 echo "configure:4579: checking for pthread_create in -lpthreads" >&5
4579 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
4580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 ac_save_LIBS="$LIBS"
4584 LIBS="-lpthreads $LIBS"
4585 cat > conftest.$ac_ext <<EOF
4586 #line 4587 "configure"
4587 #include "confdefs.h"
4588 /* Override any gcc2 internal prototype to avoid an error. */
4589 /* We use char because int might match the return type of a gcc2
4590 builtin and then its argument prototype would still apply. */
4591 char pthread_create();
4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4599 eval "ac_cv_lib_$ac_lib_var=yes"
4601 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4604 eval "ac_cv_lib_$ac_lib_var=no"
4607 LIBS="$ac_save_LIBS"
4610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4611 echo "$ac_t""yes" 1>&6
4613 ol_link_threads=posix
4614 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4616 echo "$ac_t""no" 1>&6
4623 if test $ol_link_threads = no ; then
4625 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
4626 echo "configure:4627: checking for pthread_join in -lpthreads" >&5
4627 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
4628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 ac_save_LIBS="$LIBS"
4632 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4639 char pthread_join();
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4647 eval "ac_cv_lib_$ac_lib_var=yes"
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4652 eval "ac_cv_lib_$ac_lib_var=no"
4655 LIBS="$ac_save_LIBS"
4658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4659 echo "$ac_t""yes" 1>&6
4661 ol_link_threads=posix
4662 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4665 echo "$ac_t""no" 1>&6
4672 if test $ol_link_threads = no ; then
4673 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
4674 echo "configure:4675: checking for pthread_create with -threads" >&5
4675 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4680 LIBS="-threads $LIBS"
4681 cat > conftest.$ac_ext <<EOF
4682 #line 4683 "configure"
4683 #include "confdefs.h"
4684 char pthread_create();
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 ol_cv_thread_flag=yes
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4698 ol_cv_thread_flag=no
4705 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4707 if test $ol_cv_thread_flag = yes ; then
4708 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
4709 ol_link_threads=posix
4713 if test $ol_link_threads = no ; then
4715 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
4716 echo "configure:4717: checking for pthread_mutex_unlock in -lpthreads" >&5
4717 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4718 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4721 ac_save_LIBS="$LIBS"
4722 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
4723 cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 /* Override any gcc2 internal prototype to avoid an error. */
4727 /* We use char because int might match the return type of a gcc2
4728 builtin and then its argument prototype would still apply. */
4729 char pthread_mutex_unlock();
4732 pthread_mutex_unlock()
4735 if { (eval echo configure:4736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4737 eval "ac_cv_lib_$ac_lib_var=yes"
4739 echo "configure: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4742 eval "ac_cv_lib_$ac_lib_var=no"
4745 LIBS="$ac_save_LIBS"
4748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4749 echo "$ac_t""yes" 1>&6
4751 ol_link_threads=posix
4752 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
4753 if test $ol_with_yielding_select = auto ; then
4754 ol_with_yielding_select=yes
4758 echo "$ac_t""no" 1>&6
4765 if test $ol_link_threads = no ; then
4767 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
4768 echo "configure:4769: checking for pthread_mutex_lock in -lpthreads" >&5
4769 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4773 ac_save_LIBS="$LIBS"
4774 LIBS="-lpthreads -lmach -lexc $LIBS"
4775 cat > conftest.$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4778 /* Override any gcc2 internal prototype to avoid an error. */
4779 /* We use char because int might match the return type of a gcc2
4780 builtin and then its argument prototype would still apply. */
4781 char pthread_mutex_lock();
4784 pthread_mutex_lock()
4787 if { (eval echo configure:4788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4789 eval "ac_cv_lib_$ac_lib_var=yes"
4791 echo "configure: failed program was:" >&5
4792 cat conftest.$ac_ext >&5
4794 eval "ac_cv_lib_$ac_lib_var=no"
4797 LIBS="$ac_save_LIBS"
4800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4803 ol_link_threads=posix
4804 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
4805 if test $ol_with_yielding_select = auto ; then
4806 ol_with_yielding_select=yes
4810 echo "$ac_t""no" 1>&6
4817 if test $ol_link_threads = no ; then
4819 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
4820 echo "configure:4821: checking for pthread_mutex_trylock in -lpthreads" >&5
4821 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4825 ac_save_LIBS="$LIBS"
4826 LIBS="-lpthreads -lexc $LIBS"
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4830 /* Override any gcc2 internal prototype to avoid an error. */
4831 /* We use char because int might match the return type of a gcc2
4832 builtin and then its argument prototype would still apply. */
4833 char pthread_mutex_trylock();
4836 pthread_mutex_trylock()
4839 if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4841 eval "ac_cv_lib_$ac_lib_var=yes"
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4846 eval "ac_cv_lib_$ac_lib_var=no"
4849 LIBS="$ac_save_LIBS"
4852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4855 ol_link_threads=posix
4856 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
4857 if test $ol_with_yielding_select = auto ; then
4858 ol_with_yielding_select=yes
4862 echo "$ac_t""no" 1>&6
4869 if test $ol_link_threads != no ; then
4870 cat >> confdefs.h <<\EOF
4871 #define HAVE_PTHREADS 1
4875 save_CPPFLAGS="$CPPFLAGS"
4877 LIBS="$LTHREAD_LIBS $LIBS"
4879 for ac_func in sched_yield pthread_yield
4881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882 echo "configure:4883: checking for $ac_func" >&5
4883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4886 cat > conftest.$ac_ext <<EOF
4887 #line 4888 "configure"
4888 #include "confdefs.h"
4889 /* System header to define __stub macros and hopefully few prototypes,
4890 which can conflict with char $ac_func(); below. */
4892 /* Override any gcc2 internal prototype to avoid an error. */
4893 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4899 /* The GNU C library defines this for functions which it implements
4900 to always fail with ENOSYS. Some functions are actually named
4901 something starting with __ and the normal name is an alias. */
4902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4910 if { (eval echo configure:4911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4912 eval "ac_cv_func_$ac_func=yes"
4914 echo "configure: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4917 eval "ac_cv_func_$ac_func=no"
4922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4923 echo "$ac_t""yes" 1>&6
4924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4925 cat >> confdefs.h <<EOF
4926 #define $ac_tr_func 1
4930 echo "$ac_t""no" 1>&6
4935 if test $ac_cv_func_sched_yield = no -a \
4936 $ac_cv_func_pthread_yield = no ; then
4937 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4938 echo "configure:4939: checking for sched_yield in -lrt" >&5
4939 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 ac_save_LIBS="$LIBS"
4945 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4948 /* Override any gcc2 internal prototype to avoid an error. */
4949 /* We use char because int might match the return type of a gcc2
4950 builtin and then its argument prototype would still apply. */
4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4959 eval "ac_cv_lib_$ac_lib_var=yes"
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4964 eval "ac_cv_lib_$ac_lib_var=no"
4967 LIBS="$ac_save_LIBS"
4970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4971 echo "$ac_t""yes" 1>&6
4972 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
4973 cat >> confdefs.h <<\EOF
4974 #define HAVE_SCHED_YIELD 1
4977 ac_cv_func_sched_yield=yes
4979 echo "$ac_t""no" 1>&6
4980 ac_cv_func_sched_yield=no
4984 if test $ac_cv_func_sched_yield = no -a \
4985 $ac_cv_func_pthread_yield = no ; then
4986 for ac_func in thr_yield
4988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4989 echo "configure:4990: checking for $ac_func" >&5
4990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4991 echo $ac_n "(cached) $ac_c" 1>&6
4993 cat > conftest.$ac_ext <<EOF
4994 #line 4995 "configure"
4995 #include "confdefs.h"
4996 /* System header to define __stub macros and hopefully few prototypes,
4997 which can conflict with char $ac_func(); below. */
4999 /* Override any gcc2 internal prototype to avoid an error. */
5000 /* We use char because int might match the return type of a gcc2
5001 builtin and then its argument prototype would still apply. */
5006 /* The GNU C library defines this for functions which it implements
5007 to always fail with ENOSYS. Some functions are actually named
5008 something starting with __ and the normal name is an alias. */
5009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5017 if { (eval echo configure:5018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5019 eval "ac_cv_func_$ac_func=yes"
5021 echo "configure: failed program was:" >&5
5022 cat conftest.$ac_ext >&5
5024 eval "ac_cv_func_$ac_func=no"
5029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5030 echo "$ac_t""yes" 1>&6
5031 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5032 cat >> confdefs.h <<EOF
5033 #define $ac_tr_func 1
5037 echo "$ac_t""no" 1>&6
5042 if test $ac_cv_func_sched_yield = no -a \
5043 $ac_cv_func_pthread_yield = no -a \
5044 "$ac_cv_func_thr_yield" = no ; then
5045 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
5048 for ac_func in pthread_kill
5050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5051 echo "configure:5052: checking for $ac_func" >&5
5052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5053 echo $ac_n "(cached) $ac_c" 1>&6
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5058 /* System header to define __stub macros and hopefully few prototypes,
5059 which can conflict with char $ac_func(); below. */
5061 /* Override any gcc2 internal prototype to avoid an error. */
5062 /* We use char because int might match the return type of a gcc2
5063 builtin and then its argument prototype would still apply. */
5068 /* The GNU C library defines this for functions which it implements
5069 to always fail with ENOSYS. Some functions are actually named
5070 something starting with __ and the normal name is an alias. */
5071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5079 if { (eval echo configure:5080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5081 eval "ac_cv_func_$ac_func=yes"
5083 echo "configure: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5086 eval "ac_cv_func_$ac_func=no"
5091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5092 echo "$ac_t""yes" 1>&6
5093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5094 cat >> confdefs.h <<EOF
5095 #define $ac_tr_func 1
5099 echo "$ac_t""no" 1>&6
5104 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
5105 echo "configure:5106: checking for pthread_detach with <pthread.h>" >&5
5106 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
5107 echo $ac_n "(cached) $ac_c" 1>&6
5110 cat > conftest.$ac_ext <<EOF
5111 #line 5112 "configure"
5112 #include "confdefs.h"
5113 #include <pthread.h>
5115 pthread_detach(NULL);
5118 if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5120 ol_cv_func_pthread_detach=yes
5122 echo "configure: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5125 ol_cv_func_pthread_detach=no
5131 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
5133 if test $ol_cv_func_pthread_detach = no ; then
5134 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
5137 cat >> confdefs.h <<\EOF
5138 #define HAVE_PTHREAD_DETACH 1
5143 pthread_setconcurrency \
5144 pthread_getconcurrency \
5145 thr_setconcurrency \
5146 thr_getconcurrency \
5149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5150 echo "configure:5151: checking for $ac_func" >&5
5151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5152 echo $ac_n "(cached) $ac_c" 1>&6
5154 cat > conftest.$ac_ext <<EOF
5155 #line 5156 "configure"
5156 #include "confdefs.h"
5157 /* System header to define __stub macros and hopefully few prototypes,
5158 which can conflict with char $ac_func(); below. */
5160 /* Override any gcc2 internal prototype to avoid an error. */
5161 /* We use char because int might match the return type of a gcc2
5162 builtin and then its argument prototype would still apply. */
5167 /* The GNU C library defines this for functions which it implements
5168 to always fail with ENOSYS. Some functions are actually named
5169 something starting with __ and the normal name is an alias. */
5170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5180 eval "ac_cv_func_$ac_func=yes"
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5185 eval "ac_cv_func_$ac_func=no"
5190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5191 echo "$ac_t""yes" 1>&6
5192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5193 cat >> confdefs.h <<EOF
5194 #define $ac_tr_func 1
5198 echo "$ac_t""no" 1>&6
5203 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
5204 echo "configure:5205: checking if pthread_create() works" >&5
5205 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5209 if test "$cross_compiling" = yes; then
5210 ol_cv_pthread_create_works=yes
5212 cat > conftest.$ac_ext <<EOF
5213 #line 5214 "configure"
5214 #include "confdefs.h"
5216 #include <pthread.h>
5218 #define NULL (void*)0
5221 static void *task(p)
5224 return (void *) (p == NULL);
5227 int main(argc, argv)
5232 exit(pthread_create(&t, NULL, task, NULL));
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5238 ol_cv_pthread_create_works=yes
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5243 ol_cv_pthread_create_works=no
5250 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
5252 if test $ol_cv_pthread_create_works = no ; then
5253 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
5256 if test $ol_with_yielding_select = auto ; then
5257 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
5258 echo "configure:5259: checking if select yields when using pthreads" >&5
5259 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5263 if test "$cross_compiling" = yes; then
5265 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5271 #include <sys/types.h>
5272 #include <sys/time.h>
5274 #include <pthread.h>
5276 #define NULL (void*) 0
5279 static int fildes[2];
5281 static void *task(p)
5293 FD_SET(fildes[0], &rfds);
5295 /* we're not interested in any fds */
5296 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
5303 exit(0); /* if we exit here, the select blocked the whole process */
5306 int main(argc, argv)
5312 /* create a pipe to select */
5313 if(pipe(&fildes[0])) {
5318 #ifdef HAVE_PTHREAD_SETCONCURRENCY
5319 (void) pthread_setconcurrency(2);
5321 #ifdef HAVE_THR_SETCONCURRENCY
5322 /* Set Solaris LWP concurrency to 2 */
5323 thr_setconcurrency(2);
5327 pthread_create(&t, NULL, task, NULL);
5329 #if HAVE_SCHED_YIELD
5330 sched_yield(); /* make sure task runs first */
5332 #ifdef HAVE_PTHREAD_YIELD
5333 pthread_yield(); /* make sure task runs first */
5340 if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5342 ol_cv_pthread_select_yields=no
5344 echo "configure: failed program was:" >&5
5345 cat conftest.$ac_ext >&5
5347 ol_cv_pthread_select_yields=yes
5354 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
5356 if test $ol_cv_pthread_select_yields = yes ; then
5357 ol_with_yielding_select=yes
5361 CPPFLAGS="$save_CPPFLAGS"
5364 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
5368 if test $ol_with_threads = posix ; then
5369 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
5373 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5374 -o $ol_with_threads = mach ; then
5376 for ac_hdr in mach/cthreads.h
5378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5380 echo "configure:5381: checking for $ac_hdr" >&5
5381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5384 cat > conftest.$ac_ext <<EOF
5385 #line 5386 "configure"
5386 #include "confdefs.h"
5389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5390 { (eval echo configure:5391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5392 if test -z "$ac_err"; then
5394 eval "ac_cv_header_$ac_safe=yes"
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5400 eval "ac_cv_header_$ac_safe=no"
5404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5405 echo "$ac_t""yes" 1>&6
5406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5407 cat >> confdefs.h <<EOF
5408 #define $ac_tr_hdr 1
5412 echo "$ac_t""no" 1>&6
5416 if test $ac_cv_header_mach_cthreads_h = yes ; then
5417 ol_with_threads=found
5419 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
5420 echo "configure:5421: checking for cthread_fork" >&5
5421 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5424 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure"
5426 #include "confdefs.h"
5427 /* System header to define __stub macros and hopefully few prototypes,
5428 which can conflict with char cthread_fork(); below. */
5430 /* Override any gcc2 internal prototype to avoid an error. */
5431 /* We use char because int might match the return type of a gcc2
5432 builtin and then its argument prototype would still apply. */
5433 char cthread_fork();
5437 /* The GNU C library defines this for functions which it implements
5438 to always fail with ENOSYS. Some functions are actually named
5439 something starting with __ and the normal name is an alias. */
5440 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5448 if { (eval echo configure:5449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5450 eval "ac_cv_func_cthread_fork=yes"
5452 echo "configure: failed program was:" >&5
5453 cat conftest.$ac_ext >&5
5455 eval "ac_cv_func_cthread_fork=no"
5460 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5461 echo "$ac_t""yes" 1>&6
5464 echo "$ac_t""no" 1>&6
5468 if test $ol_link_threads = no ; then
5469 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5470 echo "configure:5471: checking for cthread_fork with -all_load" >&5
5471 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
5472 echo $ac_n "(cached) $ac_c" 1>&6
5476 LIBS="-all_load $LIBS"
5477 cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5480 #include <mach/cthreads.h>
5483 cthread_fork((void *)0, (void *)0);
5487 if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5489 ol_cv_cthread_all_load=yes
5491 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5494 ol_cv_cthread_all_load=no
5501 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5503 if test $ol_cv_cthread_all_load = yes ; then
5504 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5505 ol_link_threads=mach
5509 if test $ol_link_threads != no ; then
5510 : check for cthread specific functionality here
5511 cat >> confdefs.h <<\EOF
5512 #define HAVE_MACH_CTHREADS 1
5516 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
5520 if test $ol_with_threads = mach ; then
5521 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
5525 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5526 -o $ol_with_threads = lwp ; then
5528 for ac_hdr in thread.h synch.h
5530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5532 echo "configure:5533: checking for $ac_hdr" >&5
5533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5536 cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5542 { (eval echo configure:5543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5544 if test -z "$ac_err"; then
5546 eval "ac_cv_header_$ac_safe=yes"
5549 echo "configure: failed program was:" >&5
5550 cat conftest.$ac_ext >&5
5552 eval "ac_cv_header_$ac_safe=no"
5556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5557 echo "$ac_t""yes" 1>&6
5558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5559 cat >> confdefs.h <<EOF
5560 #define $ac_tr_hdr 1
5564 echo "$ac_t""no" 1>&6
5568 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
5569 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
5570 echo "configure:5571: checking for thr_create in -lthread" >&5
5571 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
5572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5575 ac_save_LIBS="$LIBS"
5576 LIBS="-lthread $LIBS"
5577 cat > conftest.$ac_ext <<EOF
5578 #line 5579 "configure"
5579 #include "confdefs.h"
5580 /* Override any gcc2 internal prototype to avoid an error. */
5581 /* We use char because int might match the return type of a gcc2
5582 builtin and then its argument prototype would still apply. */
5589 if { (eval echo configure:5590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5591 eval "ac_cv_lib_$ac_lib_var=yes"
5593 echo "configure: failed program was:" >&5
5594 cat conftest.$ac_ext >&5
5596 eval "ac_cv_lib_$ac_lib_var=no"
5599 LIBS="$ac_save_LIBS"
5602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5603 echo "$ac_t""yes" 1>&6
5606 echo "$ac_t""no" 1>&6
5611 if test $have_thr = yes ; then
5612 cat >> confdefs.h <<\EOF
5616 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
5619 if test $ol_with_yielding_select = auto ; then
5620 ol_with_yielding_select=yes
5624 thr_setconcurrency \
5625 thr_getconcurrency \
5628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5629 echo "configure:5630: checking for $ac_func" >&5
5630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5631 echo $ac_n "(cached) $ac_c" 1>&6
5633 cat > conftest.$ac_ext <<EOF
5634 #line 5635 "configure"
5635 #include "confdefs.h"
5636 /* System header to define __stub macros and hopefully few prototypes,
5637 which can conflict with char $ac_func(); below. */
5639 /* Override any gcc2 internal prototype to avoid an error. */
5640 /* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */
5646 /* The GNU C library defines this for functions which it implements
5647 to always fail with ENOSYS. Some functions are actually named
5648 something starting with __ and the normal name is an alias. */
5649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5657 if { (eval echo configure:5658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5659 eval "ac_cv_func_$ac_func=yes"
5661 echo "configure: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5664 eval "ac_cv_func_$ac_func=no"
5669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5670 echo "$ac_t""yes" 1>&6
5671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5672 cat >> confdefs.h <<EOF
5673 #define $ac_tr_func 1
5677 echo "$ac_t""no" 1>&6
5684 for ac_hdr in lwp/lwp.h
5686 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5687 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5688 echo "configure:5689: checking for $ac_hdr" >&5
5689 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5690 echo $ac_n "(cached) $ac_c" 1>&6
5692 cat > conftest.$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5698 { (eval echo configure:5699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5700 if test -z "$ac_err"; then
5702 eval "ac_cv_header_$ac_safe=yes"
5705 echo "configure: failed program was:" >&5
5706 cat conftest.$ac_ext >&5
5708 eval "ac_cv_header_$ac_safe=no"
5712 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5713 echo "$ac_t""yes" 1>&6
5714 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5715 cat >> confdefs.h <<EOF
5716 #define $ac_tr_hdr 1
5720 echo "$ac_t""no" 1>&6
5724 if test $ac_cv_header_lwp_lwp_h = yes ; then
5725 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
5726 echo "configure:5727: checking for lwp_create in -llwp" >&5
5727 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
5728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5729 echo $ac_n "(cached) $ac_c" 1>&6
5731 ac_save_LIBS="$LIBS"
5733 cat > conftest.$ac_ext <<EOF
5734 #line 5735 "configure"
5735 #include "confdefs.h"
5736 /* Override any gcc2 internal prototype to avoid an error. */
5737 /* We use char because int might match the return type of a gcc2
5738 builtin and then its argument prototype would still apply. */
5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5747 eval "ac_cv_lib_$ac_lib_var=yes"
5749 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5752 eval "ac_cv_lib_$ac_lib_var=no"
5755 LIBS="$ac_save_LIBS"
5758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5759 echo "$ac_t""yes" 1>&6
5762 echo "$ac_t""no" 1>&6
5767 if test $have_lwp = yes ; then
5768 cat >> confdefs.h <<\EOF
5772 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
5775 if test $ol_with_yielding_select = auto ; then
5776 ol_with_yielding_select=no
5782 if test $ol_with_yielding_select = yes ; then
5783 cat >> confdefs.h <<\EOF
5784 #define HAVE_YIELDING_SELECT 1
5789 if test $ol_with_threads = manual ; then
5792 echo "configure: warning: thread defines and link options must be set manually" 1>&2
5794 for ac_hdr in pthread.h sched.h
5796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5798 echo "configure:5799: checking for $ac_hdr" >&5
5799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5800 echo $ac_n "(cached) $ac_c" 1>&6
5802 cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5808 { (eval echo configure:5809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5810 if test -z "$ac_err"; then
5812 eval "ac_cv_header_$ac_safe=yes"
5815 echo "configure: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5818 eval "ac_cv_header_$ac_safe=no"
5822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5823 echo "$ac_t""yes" 1>&6
5824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5825 cat >> confdefs.h <<EOF
5826 #define $ac_tr_hdr 1
5830 echo "$ac_t""no" 1>&6
5834 for ac_func in sched_yield pthread_yield
5836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5837 echo "configure:5838: checking for $ac_func" >&5
5838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5839 echo $ac_n "(cached) $ac_c" 1>&6
5841 cat > conftest.$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5844 /* System header to define __stub macros and hopefully few prototypes,
5845 which can conflict with char $ac_func(); below. */
5847 /* Override any gcc2 internal prototype to avoid an error. */
5848 /* We use char because int might match the return type of a gcc2
5849 builtin and then its argument prototype would still apply. */
5854 /* The GNU C library defines this for functions which it implements
5855 to always fail with ENOSYS. Some functions are actually named
5856 something starting with __ and the normal name is an alias. */
5857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5865 if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5867 eval "ac_cv_func_$ac_func=yes"
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5872 eval "ac_cv_func_$ac_func=no"
5877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5878 echo "$ac_t""yes" 1>&6
5879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5880 cat >> confdefs.h <<EOF
5881 #define $ac_tr_func 1
5885 echo "$ac_t""no" 1>&6
5890 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5891 echo "configure:5892: checking for LinuxThreads" >&5
5892 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
5893 echo $ac_n "(cached) $ac_c" 1>&6
5896 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5897 if test "$res" -gt 0 ; then
5898 ol_cv_linux_threads=yes
5900 ol_cv_linux_threads=no
5905 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5908 for ac_hdr in mach/cthreads.h
5910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5912 echo "configure:5913: checking for $ac_hdr" >&5
5913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
5916 cat > conftest.$ac_ext <<EOF
5917 #line 5918 "configure"
5918 #include "confdefs.h"
5921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5922 { (eval echo configure:5923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5924 if test -z "$ac_err"; then
5926 eval "ac_cv_header_$ac_safe=yes"
5929 echo "configure: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5932 eval "ac_cv_header_$ac_safe=no"
5936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5937 echo "$ac_t""yes" 1>&6
5938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5939 cat >> confdefs.h <<EOF
5940 #define $ac_tr_hdr 1
5944 echo "$ac_t""no" 1>&6
5948 for ac_hdr in lwp/lwp.h
5950 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5951 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5952 echo "configure:5953: checking for $ac_hdr" >&5
5953 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5954 echo $ac_n "(cached) $ac_c" 1>&6
5956 cat > conftest.$ac_ext <<EOF
5957 #line 5958 "configure"
5958 #include "confdefs.h"
5961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5962 { (eval echo configure:5963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5964 if test -z "$ac_err"; then
5966 eval "ac_cv_header_$ac_safe=yes"
5969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5972 eval "ac_cv_header_$ac_safe=no"
5976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5977 echo "$ac_t""yes" 1>&6
5978 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5979 cat >> confdefs.h <<EOF
5980 #define $ac_tr_hdr 1
5984 echo "$ac_t""no" 1>&6
5988 for ac_hdr in thread.h synch.h
5990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5992 echo "configure:5993: checking for $ac_hdr" >&5
5993 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5994 echo $ac_n "(cached) $ac_c" 1>&6
5996 cat > conftest.$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
6001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6002 { (eval echo configure:6003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6004 if test -z "$ac_err"; then
6006 eval "ac_cv_header_$ac_safe=yes"
6009 echo "configure: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6012 eval "ac_cv_header_$ac_safe=no"
6016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6017 echo "$ac_t""yes" 1>&6
6018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6019 cat >> confdefs.h <<EOF
6020 #define $ac_tr_hdr 1
6024 echo "$ac_t""no" 1>&6
6030 if test $ol_link_threads != no ; then
6031 cat >> confdefs.h <<\EOF
6035 cat >> confdefs.h <<\EOF
6036 #define _REENTRANT 1
6039 cat >> confdefs.h <<\EOF
6040 #define THREAD_SAFE 1
6043 cat >> confdefs.h <<\EOF
6044 #define _THREAD_SAFE 1
6047 cat >> confdefs.h <<\EOF
6048 #define THREADSAFE 1
6051 cat >> confdefs.h <<\EOF
6052 #define _THREADSAFE 1
6056 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
6057 echo "configure:6058: checking for thread specific errno" >&5
6058 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6
6062 cat > conftest.$ac_ext <<EOF
6063 #line 6064 "configure"
6064 #include "confdefs.h"
6070 if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6072 ol_cv_errno_thread_specific=yes
6074 echo "configure: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6077 ol_cv_errno_thread_specific=no
6083 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
6085 if test $ol_cv_errno_thread_specific != yes ; then
6086 LIBS="$LTHREAD_LIBS $LIBS"
6093 if test $ol_link_threads = no ; then
6094 if test $ol_with_threads = yes ; then
6095 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
6098 if test $ol_with_threads = auto ; then
6099 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
6103 cat >> confdefs.h <<\EOF
6104 #define NO_THREADS 1
6111 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
6112 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
6113 echo "configure:6114: checking for DB2 library" >&5
6114 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
6115 echo $ac_n "(cached) $ac_c" 1>&6
6118 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
6119 echo "configure:6120: checking for db_open in -ldb" >&5
6120 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
6121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6122 echo $ac_n "(cached) $ac_c" 1>&6
6124 ac_save_LIBS="$LIBS"
6126 cat > conftest.$ac_ext <<EOF
6127 #line 6128 "configure"
6128 #include "confdefs.h"
6129 /* Override any gcc2 internal prototype to avoid an error. */
6130 /* We use char because int might match the return type of a gcc2
6131 builtin and then its argument prototype would still apply. */
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6140 eval "ac_cv_lib_$ac_lib_var=yes"
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6145 eval "ac_cv_lib_$ac_lib_var=no"
6148 LIBS="$ac_save_LIBS"
6151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6152 echo "$ac_t""yes" 1>&6
6155 echo "$ac_t""no" 1>&6
6163 echo "$ac_t""$ol_cv_lib_db2" 1>&6
6167 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6169 echo "configure:6170: checking for $ac_hdr" >&5
6170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6171 echo $ac_n "(cached) $ac_c" 1>&6
6173 cat > conftest.$ac_ext <<EOF
6174 #line 6175 "configure"
6175 #include "confdefs.h"
6178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6179 { (eval echo configure:6180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6181 if test -z "$ac_err"; then
6183 eval "ac_cv_header_$ac_safe=yes"
6186 echo "configure: failed program was:" >&5
6187 cat conftest.$ac_ext >&5
6189 eval "ac_cv_header_$ac_safe=no"
6193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6194 echo "$ac_t""yes" 1>&6
6195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6196 cat >> confdefs.h <<EOF
6197 #define $ac_tr_hdr 1
6201 echo "$ac_t""no" 1>&6
6205 if test $ac_cv_header_db_h = yes ; then
6206 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
6207 echo "configure:6208: checking if db.h is DB2" >&5
6208 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
6209 echo $ac_n "(cached) $ac_c" 1>&6
6212 cat > conftest.$ac_ext <<EOF
6213 #line 6214 "configure"
6214 #include "confdefs.h"
6217 /* this check could be improved */
6218 # ifdef DB_VERSION_MAJOR
6219 # if DB_VERSION_MAJOR == 2
6225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6226 egrep "__db_version_2" >/dev/null 2>&1; then
6228 ol_cv_header_db2=yes
6237 echo "$ac_t""$ol_cv_header_db2" 1>&6
6244 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
6245 echo "configure:6246: checking for Berkeley DB2" >&5
6246 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
6247 echo $ac_n "(cached) $ac_c" 1>&6
6250 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
6251 ol_cv_berkeley_db2=no
6253 ol_cv_berkeley_db2=yes
6258 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
6259 if test $ol_cv_berkeley_db2 = yes ; then
6260 cat >> confdefs.h <<\EOF
6261 #define HAVE_BERKELEY_DB2 1
6267 if test $ol_cv_berkeley_db2 = yes ; then
6269 ol_with_ldbm_api=db2
6271 if test $ol_with_ldbm_type = hash ; then
6272 cat >> confdefs.h <<\EOF
6273 #define LDBM_USE_DBHASH 1
6277 cat >> confdefs.h <<\EOF
6278 #define LDBM_USE_DBBTREE 1
6283 if test $ol_cv_lib_db2 != yes ; then
6284 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
6290 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
6294 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
6295 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
6296 echo "configure:6297: checking for Berkeley DB library" >&5
6297 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
6298 echo $ac_n "(cached) $ac_c" 1>&6
6301 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6302 echo "configure:6303: checking for dbopen" >&5
6303 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
6304 echo $ac_n "(cached) $ac_c" 1>&6
6306 cat > conftest.$ac_ext <<EOF
6307 #line 6308 "configure"
6308 #include "confdefs.h"
6309 /* System header to define __stub macros and hopefully few prototypes,
6310 which can conflict with char dbopen(); below. */
6312 /* Override any gcc2 internal prototype to avoid an error. */
6313 /* We use char because int might match the return type of a gcc2
6314 builtin and then its argument prototype would still apply. */
6319 /* The GNU C library defines this for functions which it implements
6320 to always fail with ENOSYS. Some functions are actually named
6321 something starting with __ and the normal name is an alias. */
6322 #if defined (__stub_dbopen) || defined (__stub___dbopen)
6330 if { (eval echo configure:6331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6332 eval "ac_cv_func_dbopen=yes"
6334 echo "configure: failed program was:" >&5
6335 cat conftest.$ac_ext >&5
6337 eval "ac_cv_func_dbopen=no"
6342 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
6343 echo "$ac_t""yes" 1>&6
6346 echo "$ac_t""no" 1>&6
6348 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
6349 echo "configure:6350: checking for dbopen in -ldb" >&5
6350 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
6351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6352 echo $ac_n "(cached) $ac_c" 1>&6
6354 ac_save_LIBS="$LIBS"
6356 cat > conftest.$ac_ext <<EOF
6357 #line 6358 "configure"
6358 #include "confdefs.h"
6359 /* Override any gcc2 internal prototype to avoid an error. */
6360 /* We use char because int might match the return type of a gcc2
6361 builtin and then its argument prototype would still apply. */
6368 if { (eval echo configure:6369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6370 eval "ac_cv_lib_$ac_lib_var=yes"
6372 echo "configure: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6375 eval "ac_cv_lib_$ac_lib_var=no"
6378 LIBS="$ac_save_LIBS"
6381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6382 echo "$ac_t""yes" 1>&6
6385 echo "$ac_t""no" 1>&6
6396 echo "$ac_t""$ol_cv_lib_db" 1>&6
6399 for ac_hdr in db_185.h
6401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6403 echo "configure:6404: checking for $ac_hdr" >&5
6404 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6405 echo $ac_n "(cached) $ac_c" 1>&6
6407 cat > conftest.$ac_ext <<EOF
6408 #line 6409 "configure"
6409 #include "confdefs.h"
6412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6413 { (eval echo configure:6414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6415 if test -z "$ac_err"; then
6417 eval "ac_cv_header_$ac_safe=yes"
6420 echo "configure: failed program was:" >&5
6421 cat conftest.$ac_ext >&5
6423 eval "ac_cv_header_$ac_safe=no"
6427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6428 echo "$ac_t""yes" 1>&6
6429 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6430 cat >> confdefs.h <<EOF
6431 #define $ac_tr_hdr 1
6435 echo "$ac_t""no" 1>&6
6439 if test "$ol_cv_header_db2" = yes ; then
6441 ol_cv_header_db=$ac_cv_header_db_185_h
6443 ol_cv_header_db=$ac_cv_header_db_h
6448 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6449 echo "configure:6450: checking for Berkeley DB" >&5
6450 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
6451 echo $ac_n "(cached) $ac_c" 1>&6
6454 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6455 ol_cv_berkeley_db=no
6457 ol_cv_berkeley_db=yes
6462 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6463 if test $ol_cv_berkeley_db = yes ; then
6464 cat >> confdefs.h <<\EOF
6465 #define HAVE_BERKELEY_DB 1
6471 if test $ol_cv_berkeley_db = yes ; then
6475 if test $ol_with_ldbm_type = hash ; then
6476 cat >> confdefs.h <<\EOF
6477 #define LDBM_USE_DBHASH 1
6481 cat >> confdefs.h <<\EOF
6482 #define LDBM_USE_DBBTREE 1
6487 if test $ol_cv_lib_db != yes ; then
6488 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6493 if test $ol_with_ldbm_api = manual ; then
6496 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6498 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6502 echo "configure:6503: checking for $ac_hdr" >&5
6503 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6504 echo $ac_n "(cached) $ac_c" 1>&6
6506 cat > conftest.$ac_ext <<EOF
6507 #line 6508 "configure"
6508 #include "confdefs.h"
6511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6512 { (eval echo configure:6513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6514 if test -z "$ac_err"; then
6516 eval "ac_cv_header_$ac_safe=yes"
6519 echo "configure: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6522 eval "ac_cv_header_$ac_safe=no"
6526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6527 echo "$ac_t""yes" 1>&6
6528 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6529 cat >> confdefs.h <<EOF
6530 #define $ac_tr_hdr 1
6534 echo "$ac_t""no" 1>&6
6540 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
6541 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
6542 ol_with_ldbm_api=none
6545 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
6546 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
6547 echo "configure:6548: checking for GDBM library" >&5
6548 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6552 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6553 echo "configure:6554: checking for gdbm_open" >&5
6554 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6557 cat > conftest.$ac_ext <<EOF
6558 #line 6559 "configure"
6559 #include "confdefs.h"
6560 /* System header to define __stub macros and hopefully few prototypes,
6561 which can conflict with char gdbm_open(); below. */
6563 /* Override any gcc2 internal prototype to avoid an error. */
6564 /* We use char because int might match the return type of a gcc2
6565 builtin and then its argument prototype would still apply. */
6570 /* The GNU C library defines this for functions which it implements
6571 to always fail with ENOSYS. Some functions are actually named
6572 something starting with __ and the normal name is an alias. */
6573 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
6581 if { (eval echo configure:6582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6583 eval "ac_cv_func_gdbm_open=yes"
6585 echo "configure: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6588 eval "ac_cv_func_gdbm_open=no"
6593 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
6594 echo "$ac_t""yes" 1>&6
6597 echo "$ac_t""no" 1>&6
6599 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
6600 echo "configure:6601: checking for gdbm_open in -lgdbm" >&5
6601 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
6602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6603 echo $ac_n "(cached) $ac_c" 1>&6
6605 ac_save_LIBS="$LIBS"
6607 cat > conftest.$ac_ext <<EOF
6608 #line 6609 "configure"
6609 #include "confdefs.h"
6610 /* Override any gcc2 internal prototype to avoid an error. */
6611 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */
6619 if { (eval echo configure:6620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6621 eval "ac_cv_lib_$ac_lib_var=yes"
6623 echo "configure: failed program was:" >&5
6624 cat conftest.$ac_ext >&5
6626 eval "ac_cv_lib_$ac_lib_var=no"
6629 LIBS="$ac_save_LIBS"
6632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6633 echo "$ac_t""yes" 1>&6
6634 ol_cv_lib_gdbm=-lgdbm
6636 echo "$ac_t""no" 1>&6
6647 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
6650 for ac_hdr in gdbm.h
6652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6654 echo "configure:6655: checking for $ac_hdr" >&5
6655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6664 { (eval echo configure:6665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6666 if test -z "$ac_err"; then
6668 eval "ac_cv_header_$ac_safe=yes"
6671 echo "configure: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6674 eval "ac_cv_header_$ac_safe=no"
6678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6679 echo "$ac_t""yes" 1>&6
6680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6681 cat >> confdefs.h <<EOF
6682 #define $ac_tr_hdr 1
6686 echo "$ac_t""no" 1>&6
6690 echo $ac_n "checking for db""... $ac_c" 1>&6
6691 echo "configure:6692: checking for db" >&5
6692 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
6693 echo $ac_n "(cached) $ac_c" 1>&6
6696 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
6704 echo "$ac_t""$ol_cv_gdbm" 1>&6
6705 if test $ol_cv_gdbm = yes ; then
6706 cat >> confdefs.h <<\EOF
6713 if test $ol_cv_gdbm = yes ; then
6715 ol_with_ldbm_api=gdbm
6717 if test $ol_cv_lib_gdbm != yes ; then
6718 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
6723 if test $ol_with_ldbm_api = auto ; then
6724 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
6725 elif test $ol_with_ldbm_api = ndbm ; then
6726 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
6727 echo "configure:6728: checking for NDBM library" >&5
6728 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
6729 echo $ac_n "(cached) $ac_c" 1>&6
6732 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
6733 echo "configure:6734: checking for dbm_open" >&5
6734 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
6735 echo $ac_n "(cached) $ac_c" 1>&6
6737 cat > conftest.$ac_ext <<EOF
6738 #line 6739 "configure"
6739 #include "confdefs.h"
6740 /* System header to define __stub macros and hopefully few prototypes,
6741 which can conflict with char dbm_open(); below. */
6743 /* Override any gcc2 internal prototype to avoid an error. */
6744 /* We use char because int might match the return type of a gcc2
6745 builtin and then its argument prototype would still apply. */
6750 /* The GNU C library defines this for functions which it implements
6751 to always fail with ENOSYS. Some functions are actually named
6752 something starting with __ and the normal name is an alias. */
6753 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
6761 if { (eval echo configure:6762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6763 eval "ac_cv_func_dbm_open=yes"
6765 echo "configure: failed program was:" >&5
6766 cat conftest.$ac_ext >&5
6768 eval "ac_cv_func_dbm_open=no"
6773 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
6774 echo "$ac_t""yes" 1>&6
6777 echo "$ac_t""no" 1>&6
6779 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
6780 echo "configure:6781: checking for dbm_open in -lndbm" >&5
6781 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
6782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6783 echo $ac_n "(cached) $ac_c" 1>&6
6785 ac_save_LIBS="$LIBS"
6787 cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6790 /* Override any gcc2 internal prototype to avoid an error. */
6791 /* We use char because int might match the return type of a gcc2
6792 builtin and then its argument prototype would still apply. */
6799 if { (eval echo configure:6800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6801 eval "ac_cv_lib_$ac_lib_var=yes"
6803 echo "configure: failed program was:" >&5
6804 cat conftest.$ac_ext >&5
6806 eval "ac_cv_lib_$ac_lib_var=no"
6809 LIBS="$ac_save_LIBS"
6812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6813 echo "$ac_t""yes" 1>&6
6814 ol_cv_lib_ndbm=-lndbm
6816 echo "$ac_t""no" 1>&6
6818 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
6819 echo "configure:6820: checking for dbm_open in -ldbm" >&5
6820 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
6821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6822 echo $ac_n "(cached) $ac_c" 1>&6
6824 ac_save_LIBS="$LIBS"
6826 cat > conftest.$ac_ext <<EOF
6827 #line 6828 "configure"
6828 #include "confdefs.h"
6829 /* Override any gcc2 internal prototype to avoid an error. */
6830 /* We use char because int might match the return type of a gcc2
6831 builtin and then its argument prototype would still apply. */
6838 if { (eval echo configure:6839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6840 eval "ac_cv_lib_$ac_lib_var=yes"
6842 echo "configure: failed program was:" >&5
6843 cat conftest.$ac_ext >&5
6845 eval "ac_cv_lib_$ac_lib_var=no"
6848 LIBS="$ac_save_LIBS"
6851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6852 echo "$ac_t""yes" 1>&6
6853 ol_cv_lib_ndbm=-ldbm
6855 echo "$ac_t""no" 1>&6
6868 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6871 for ac_hdr in ndbm.h
6873 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6874 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6875 echo "configure:6876: checking for $ac_hdr" >&5
6876 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6877 echo $ac_n "(cached) $ac_c" 1>&6
6879 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure"
6881 #include "confdefs.h"
6884 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6885 { (eval echo configure:6886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6886 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6887 if test -z "$ac_err"; then
6889 eval "ac_cv_header_$ac_safe=yes"
6892 echo "configure: failed program was:" >&5
6893 cat conftest.$ac_ext >&5
6895 eval "ac_cv_header_$ac_safe=no"
6899 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6900 echo "$ac_t""yes" 1>&6
6901 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6902 cat >> confdefs.h <<EOF
6903 #define $ac_tr_hdr 1
6907 echo "$ac_t""no" 1>&6
6911 echo $ac_n "checking for db""... $ac_c" 1>&6
6912 echo "configure:6913: checking for db" >&5
6913 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
6914 echo $ac_n "(cached) $ac_c" 1>&6
6917 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
6925 echo "$ac_t""$ol_cv_ndbm" 1>&6
6926 if test $ol_cv_ndbm = yes ; then
6927 cat >> confdefs.h <<\EOF
6934 if test $ol_cv_ndbm = yes ; then
6936 ol_with_ldbm_api=ndbm
6938 if test $ol_cv_lib_ndbm != yes ; then
6939 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
6944 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
6945 echo "configure: warning: could not find suitable LDBM backend" 1>&2
6946 if test $ol_enable_ldbm = yes ; then
6947 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
6950 echo "configure: warning: disabling LDBM" 1>&2
6954 if test $ol_enable_wrappers != no ; then
6955 for ac_hdr in tcpd.h
6957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6959 echo "configure:6960: checking for $ac_hdr" >&5
6960 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6961 echo $ac_n "(cached) $ac_c" 1>&6
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6969 { (eval echo configure:6970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6971 if test -z "$ac_err"; then
6973 eval "ac_cv_header_$ac_safe=yes"
6976 echo "configure: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6979 eval "ac_cv_header_$ac_safe=no"
6983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6984 echo "$ac_t""yes" 1>&6
6985 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6986 cat >> confdefs.h <<EOF
6987 #define $ac_tr_hdr 1
6991 echo "$ac_t""no" 1>&6
6996 if test $ac_cv_header_tcpd_h != yes ; then
6999 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
7000 echo "configure:7001: checking for main in -lwrap" >&5
7001 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
7002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7003 echo $ac_n "(cached) $ac_c" 1>&6
7005 ac_save_LIBS="$LIBS"
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7015 if { (eval echo configure:7016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7017 eval "ac_cv_lib_$ac_lib_var=yes"
7019 echo "configure: failed program was:" >&5
7020 cat conftest.$ac_ext >&5
7022 eval "ac_cv_lib_$ac_lib_var=no"
7025 LIBS="$ac_save_LIBS"
7028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7029 echo "$ac_t""yes" 1>&6
7032 echo "$ac_t""no" 1>&6
7038 if test $have_wrappers = yes ; then
7039 cat >> confdefs.h <<\EOF
7043 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
7045 echo "configure: warning: could not find -lwrap" 1>&2
7046 if test $ol_enable_wrappers = yes ; then
7047 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
7050 echo "configure: warning: disabling wrappers support" 1>&2
7051 ol_enable_wrappers=no
7055 if test $ol_enable_syslog != no ; then
7056 echo $ac_n "checking for openlog""... $ac_c" 1>&6
7057 echo "configure:7058: checking for openlog" >&5
7058 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
7059 echo $ac_n "(cached) $ac_c" 1>&6
7061 cat > conftest.$ac_ext <<EOF
7062 #line 7063 "configure"
7063 #include "confdefs.h"
7064 /* System header to define __stub macros and hopefully few prototypes,
7065 which can conflict with char openlog(); below. */
7067 /* Override any gcc2 internal prototype to avoid an error. */
7068 /* We use char because int might match the return type of a gcc2
7069 builtin and then its argument prototype would still apply. */
7074 /* The GNU C library defines this for functions which it implements
7075 to always fail with ENOSYS. Some functions are actually named
7076 something starting with __ and the normal name is an alias. */
7077 #if defined (__stub_openlog) || defined (__stub___openlog)
7085 if { (eval echo configure:7086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7087 eval "ac_cv_func_openlog=yes"
7089 echo "configure: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7092 eval "ac_cv_func_openlog=no"
7097 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
7098 echo "$ac_t""yes" 1>&6
7101 echo "$ac_t""no" 1>&6
7104 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
7105 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
7107 ol_enable_syslog=$ac_cv_func_openlog
7110 if test $ol_enable_dmalloc != no ; then
7111 for ac_hdr in dmalloc.h
7113 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7114 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7115 echo "configure:7116: checking for $ac_hdr" >&5
7116 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7117 echo $ac_n "(cached) $ac_c" 1>&6
7119 cat > conftest.$ac_ext <<EOF
7120 #line 7121 "configure"
7121 #include "confdefs.h"
7124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7125 { (eval echo configure:7126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7127 if test -z "$ac_err"; then
7129 eval "ac_cv_header_$ac_safe=yes"
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7135 eval "ac_cv_header_$ac_safe=no"
7139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7140 echo "$ac_t""yes" 1>&6
7141 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7142 cat >> confdefs.h <<EOF
7143 #define $ac_tr_hdr 1
7147 echo "$ac_t""no" 1>&6
7151 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
7152 echo "configure:7153: checking for dmalloc_shutdown in -ldmalloc" >&5
7153 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
7154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7155 echo $ac_n "(cached) $ac_c" 1>&6
7157 ac_save_LIBS="$LIBS"
7158 LIBS="-ldmalloc $LIBS"
7159 cat > conftest.$ac_ext <<EOF
7160 #line 7161 "configure"
7161 #include "confdefs.h"
7162 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7165 char dmalloc_shutdown();
7171 if { (eval echo configure:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7173 eval "ac_cv_lib_$ac_lib_var=yes"
7175 echo "configure: failed program was:" >&5
7176 cat conftest.$ac_ext >&5
7178 eval "ac_cv_lib_$ac_lib_var=no"
7181 LIBS="$ac_save_LIBS"
7184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7185 echo "$ac_t""yes" 1>&6
7186 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7188 cat >> confdefs.h <<EOF
7189 #define $ac_tr_lib 1
7192 LIBS="-ldmalloc $LIBS"
7195 echo "$ac_t""no" 1>&6
7200 if test $ol_enable_tcl != no ; then
7203 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7204 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7205 echo "configure:7206: checking for $ac_hdr" >&5
7206 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7209 cat > conftest.$ac_ext <<EOF
7210 #line 7211 "configure"
7211 #include "confdefs.h"
7214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7215 { (eval echo configure:7216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7217 if test -z "$ac_err"; then
7219 eval "ac_cv_header_$ac_safe=yes"
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7225 eval "ac_cv_header_$ac_safe=no"
7229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7230 echo "$ac_t""yes" 1>&6
7231 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7232 cat >> confdefs.h <<EOF
7233 #define $ac_tr_hdr 1
7237 echo "$ac_t""no" 1>&6
7242 if test $ac_cv_header_tcl_h != yes ; then
7245 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
7246 echo "configure:7247: checking for main in -ltcl" >&5
7247 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
7248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7249 echo $ac_n "(cached) $ac_c" 1>&6
7251 ac_save_LIBS="$LIBS"
7253 cat > conftest.$ac_ext <<EOF
7254 #line 7255 "configure"
7255 #include "confdefs.h"
7261 if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7263 eval "ac_cv_lib_$ac_lib_var=yes"
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7268 eval "ac_cv_lib_$ac_lib_var=no"
7271 LIBS="$ac_save_LIBS"
7274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7275 echo "$ac_t""yes" 1>&6
7276 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
7278 echo "$ac_t""no" 1>&6
7283 if test $have_tcl != yes; then
7284 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
7285 echo "configure:7286: checking for main in -ltcl7.6" >&5
7286 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
7287 if eval "test \"`echo '$''{'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="-ltcl7.6 $LIBS"
7292 cat > conftest.$ac_ext <<EOF
7293 #line 7294 "configure"
7294 #include "confdefs.h"
7300 if { (eval echo configure:7301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7302 eval "ac_cv_lib_$ac_lib_var=yes"
7304 echo "configure: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7307 eval "ac_cv_lib_$ac_lib_var=no"
7310 LIBS="$ac_save_LIBS"
7313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7314 echo "$ac_t""yes" 1>&6
7315 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
7317 echo "$ac_t""no" 1>&6
7323 if test $have_tcl != yes; then
7324 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
7325 echo "configure:7326: checking for main in -ltcl8.0" >&5
7326 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
7327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7330 ac_save_LIBS="$LIBS"
7331 LIBS="-ltcl8.0 $LIBS"
7332 cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7340 if { (eval echo configure:7341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7342 eval "ac_cv_lib_$ac_lib_var=yes"
7344 echo "configure: failed program was:" >&5
7345 cat conftest.$ac_ext >&5
7347 eval "ac_cv_lib_$ac_lib_var=no"
7350 LIBS="$ac_save_LIBS"
7353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7354 echo "$ac_t""yes" 1>&6
7355 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
7357 echo "$ac_t""no" 1>&6
7364 if test $have_tcl != yes ; then
7365 echo "configure: warning: could not find -ltcl" 1>&2
7366 if test $ol_enable_tcl = yes ; then
7367 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
7374 # ud needs termcap (should insert check here)
7376 for ac_hdr in termcap.h ncurses.h
7378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7380 echo "configure:7381: checking for $ac_hdr" >&5
7381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7382 echo $ac_n "(cached) $ac_c" 1>&6
7384 cat > conftest.$ac_ext <<EOF
7385 #line 7386 "configure"
7386 #include "confdefs.h"
7389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7390 { (eval echo configure:7391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7392 if test -z "$ac_err"; then
7394 eval "ac_cv_header_$ac_safe=yes"
7397 echo "configure: failed program was:" >&5
7398 cat conftest.$ac_ext >&5
7400 eval "ac_cv_header_$ac_safe=no"
7404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7405 echo "$ac_t""yes" 1>&6
7406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7407 cat >> confdefs.h <<EOF
7408 #define $ac_tr_hdr 1
7412 echo "$ac_t""no" 1>&6
7417 if test $ol_link_termcap = no ; then
7418 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
7419 echo "configure:7420: checking for tputs in -ltermcap" >&5
7420 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
7421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7422 echo $ac_n "(cached) $ac_c" 1>&6
7424 ac_save_LIBS="$LIBS"
7425 LIBS="-ltermcap $LIBS"
7426 cat > conftest.$ac_ext <<EOF
7427 #line 7428 "configure"
7428 #include "confdefs.h"
7429 /* Override any gcc2 internal prototype to avoid an error. */
7430 /* We use char because int might match the return type of a gcc2
7431 builtin and then its argument prototype would still apply. */
7438 if { (eval echo configure:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7440 eval "ac_cv_lib_$ac_lib_var=yes"
7442 echo "configure: failed program was:" >&5
7443 cat conftest.$ac_ext >&5
7445 eval "ac_cv_lib_$ac_lib_var=no"
7448 LIBS="$ac_save_LIBS"
7451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7452 echo "$ac_t""yes" 1>&6
7455 echo "$ac_t""no" 1>&6
7459 if test $have_termcap = yes ; then
7460 cat >> confdefs.h <<\EOF
7461 #define HAVE_TERMCAP 1
7465 TERMCAP_LIBS=-ltermcap
7469 if test $ol_link_termcap = no ; then
7470 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
7471 echo "configure:7472: checking for initscr in -lncurses" >&5
7472 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
7473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7474 echo $ac_n "(cached) $ac_c" 1>&6
7476 ac_save_LIBS="$LIBS"
7477 LIBS="-lncurses $LIBS"
7478 cat > conftest.$ac_ext <<EOF
7479 #line 7480 "configure"
7480 #include "confdefs.h"
7481 /* Override any gcc2 internal prototype to avoid an error. */
7482 /* We use char because int might match the return type of a gcc2
7483 builtin and then its argument prototype would still apply. */
7490 if { (eval echo configure:7491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7492 eval "ac_cv_lib_$ac_lib_var=yes"
7494 echo "configure: failed program was:" >&5
7495 cat conftest.$ac_ext >&5
7497 eval "ac_cv_lib_$ac_lib_var=no"
7500 LIBS="$ac_save_LIBS"
7503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7504 echo "$ac_t""yes" 1>&6
7507 echo "$ac_t""no" 1>&6
7511 if test $have_ncurses = yes ; then
7512 cat >> confdefs.h <<\EOF
7513 #define HAVE_NCURSES 1
7517 TERMCAP_LIBS=-lncurses
7521 if test $ol_link_termcap = no ; then
7522 cat >> confdefs.h <<\EOF
7523 #define NO_TERMCAP 1
7529 # FreeBSD (and others) have crypt(3) in -lcrypt
7530 if test $ol_enable_crypt != no ; then
7531 echo $ac_n "checking for crypt""... $ac_c" 1>&6
7532 echo "configure:7533: checking for crypt" >&5
7533 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
7534 echo $ac_n "(cached) $ac_c" 1>&6
7536 cat > conftest.$ac_ext <<EOF
7537 #line 7538 "configure"
7538 #include "confdefs.h"
7539 /* System header to define __stub macros and hopefully few prototypes,
7540 which can conflict with char crypt(); below. */
7542 /* Override any gcc2 internal prototype to avoid an error. */
7543 /* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7549 /* The GNU C library defines this for functions which it implements
7550 to always fail with ENOSYS. Some functions are actually named
7551 something starting with __ and the normal name is an alias. */
7552 #if defined (__stub_crypt) || defined (__stub___crypt)
7560 if { (eval echo configure:7561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7562 eval "ac_cv_func_crypt=yes"
7564 echo "configure: failed program was:" >&5
7565 cat conftest.$ac_ext >&5
7567 eval "ac_cv_func_crypt=no"
7572 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
7573 echo "$ac_t""yes" 1>&6
7576 echo "$ac_t""no" 1>&6
7578 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7579 echo "configure:7580: checking for crypt in -lcrypt" >&5
7580 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7582 echo $ac_n "(cached) $ac_c" 1>&6
7584 ac_save_LIBS="$LIBS"
7585 LIBS="-lcrypt $LIBS"
7586 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7589 /* Override any gcc2 internal prototype to avoid an error. */
7590 /* We use char because int might match the return type of a gcc2
7591 builtin and then its argument prototype would still apply. */
7598 if { (eval echo configure:7599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7600 eval "ac_cv_lib_$ac_lib_var=yes"
7602 echo "configure: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7605 eval "ac_cv_lib_$ac_lib_var=no"
7608 LIBS="$ac_save_LIBS"
7611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7612 echo "$ac_t""yes" 1>&6
7613 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
7616 echo "$ac_t""no" 1>&6
7623 if test $have_crypt = yes ; then
7624 cat >> confdefs.h <<\EOF
7625 #define HAVE_CRYPT 1
7629 echo "configure: warning: could not find crypt" 1>&2
7630 if test $ol_enable_crypt = yes ; then
7631 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
7634 echo "configure: warning: disabling crypt support" 1>&2
7639 # FreeBSD (and others) have setproctitle(3) in -lutil
7640 if test $ol_enable_proctitle != no ; then
7641 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
7642 echo "configure:7643: checking for setproctitle" >&5
7643 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
7644 echo $ac_n "(cached) $ac_c" 1>&6
7646 cat > conftest.$ac_ext <<EOF
7647 #line 7648 "configure"
7648 #include "confdefs.h"
7649 /* System header to define __stub macros and hopefully few prototypes,
7650 which can conflict with char setproctitle(); below. */
7652 /* Override any gcc2 internal prototype to avoid an error. */
7653 /* We use char because int might match the return type of a gcc2
7654 builtin and then its argument prototype would still apply. */
7655 char setproctitle();
7659 /* The GNU C library defines this for functions which it implements
7660 to always fail with ENOSYS. Some functions are actually named
7661 something starting with __ and the normal name is an alias. */
7662 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
7670 if { (eval echo configure:7671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7672 eval "ac_cv_func_setproctitle=yes"
7674 echo "configure: failed program was:" >&5
7675 cat conftest.$ac_ext >&5
7677 eval "ac_cv_func_setproctitle=no"
7682 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
7683 echo "$ac_t""yes" 1>&6
7684 have_setproctitle=yes
7686 echo "$ac_t""no" 1>&6
7688 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
7689 echo "configure:7690: checking for setproctitle in -lutil" >&5
7690 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
7691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7694 ac_save_LIBS="$LIBS"
7696 cat > conftest.$ac_ext <<EOF
7697 #line 7698 "configure"
7698 #include "confdefs.h"
7699 /* Override any gcc2 internal prototype to avoid an error. */
7700 /* We use char because int might match the return type of a gcc2
7701 builtin and then its argument prototype would still apply. */
7702 char setproctitle();
7708 if { (eval echo configure:7709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7710 eval "ac_cv_lib_$ac_lib_var=yes"
7712 echo "configure: failed program was:" >&5
7713 cat conftest.$ac_ext >&5
7715 eval "ac_cv_lib_$ac_lib_var=no"
7718 LIBS="$ac_save_LIBS"
7721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7722 echo "$ac_t""yes" 1>&6
7723 have_setproctitle=yes
7724 LUTIL_LIBS="$LUTIL_LIBS -lutil"
7726 echo "$ac_t""no" 1>&6
7727 have_setproctitle=no
7728 LIBOBJS="$LIBOBJS setproctitle.o"
7734 if test $have_setproctitle = yes ; then
7735 cat >> confdefs.h <<\EOF
7736 #define HAVE_SETPROCTITLE 1
7742 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7743 echo "configure:7744: checking for ANSI C header files" >&5
7744 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7747 cat > conftest.$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7756 { (eval echo configure:7757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7758 if test -z "$ac_err"; then
7760 ac_cv_header_stdc=yes
7763 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7766 ac_cv_header_stdc=no
7770 if test $ac_cv_header_stdc = yes; then
7771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7772 cat > conftest.$ac_ext <<EOF
7773 #line 7774 "configure"
7774 #include "confdefs.h"
7777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7778 egrep "memchr" >/dev/null 2>&1; then
7782 ac_cv_header_stdc=no
7788 if test $ac_cv_header_stdc = yes; then
7789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7790 cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7796 egrep "free" >/dev/null 2>&1; then
7800 ac_cv_header_stdc=no
7806 if test $ac_cv_header_stdc = yes; then
7807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7808 if test "$cross_compiling" = yes; then
7811 cat > conftest.$ac_ext <<EOF
7812 #line 7813 "configure"
7813 #include "confdefs.h"
7815 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7816 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7817 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7818 int main () { int i; for (i = 0; i < 256; i++)
7819 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7823 if { (eval echo configure:7824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7827 echo "configure: failed program was:" >&5
7828 cat conftest.$ac_ext >&5
7830 ac_cv_header_stdc=no
7838 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7839 if test $ac_cv_header_stdc = yes; then
7840 cat >> confdefs.h <<\EOF
7841 #define STDC_HEADERS 1
7847 if test $ac_cv_header_stdc != yes; then
7848 echo "configure: warning: could not Standard C compliant headers" 1>&2
7852 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
7854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7855 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
7856 echo "configure:7857: checking for $ac_hdr that defines DIR" >&5
7857 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
7858 echo $ac_n "(cached) $ac_c" 1>&6
7860 cat > conftest.$ac_ext <<EOF
7861 #line 7862 "configure"
7862 #include "confdefs.h"
7863 #include <sys/types.h>
7869 if { (eval echo configure:7870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7871 eval "ac_cv_header_dirent_$ac_safe=yes"
7873 echo "configure: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7876 eval "ac_cv_header_dirent_$ac_safe=no"
7880 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
7881 echo "$ac_t""yes" 1>&6
7882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7883 cat >> confdefs.h <<EOF
7884 #define $ac_tr_hdr 1
7886 ac_header_dirent=$ac_hdr; break
7888 echo "$ac_t""no" 1>&6
7891 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7892 if test $ac_header_dirent = dirent.h; then
7893 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
7894 echo "configure:7895: checking for opendir in -ldir" >&5
7895 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
7896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
7899 ac_save_LIBS="$LIBS"
7901 cat > conftest.$ac_ext <<EOF
7902 #line 7903 "configure"
7903 #include "confdefs.h"
7904 /* Override any gcc2 internal prototype to avoid an error. */
7905 /* We use char because int might match the return type of a gcc2
7906 builtin and then its argument prototype would still apply. */
7913 if { (eval echo configure:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7915 eval "ac_cv_lib_$ac_lib_var=yes"
7917 echo "configure: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7920 eval "ac_cv_lib_$ac_lib_var=no"
7923 LIBS="$ac_save_LIBS"
7926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7927 echo "$ac_t""yes" 1>&6
7930 echo "$ac_t""no" 1>&6
7934 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
7935 echo "configure:7936: checking for opendir in -lx" >&5
7936 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
7937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7938 echo $ac_n "(cached) $ac_c" 1>&6
7940 ac_save_LIBS="$LIBS"
7942 cat > conftest.$ac_ext <<EOF
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7945 /* Override any gcc2 internal prototype to avoid an error. */
7946 /* We use char because int might match the return type of a gcc2
7947 builtin and then its argument prototype would still apply. */
7954 if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7956 eval "ac_cv_lib_$ac_lib_var=yes"
7958 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7961 eval "ac_cv_lib_$ac_lib_var=no"
7964 LIBS="$ac_save_LIBS"
7967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7968 echo "$ac_t""yes" 1>&6
7971 echo "$ac_t""no" 1>&6
7976 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7977 echo "configure:7978: checking for sys/wait.h that is POSIX.1 compatible" >&5
7978 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7981 cat > conftest.$ac_ext <<EOF
7982 #line 7983 "configure"
7983 #include "confdefs.h"
7984 #include <sys/types.h>
7985 #include <sys/wait.h>
7987 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7990 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7995 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7998 if { (eval echo configure:7999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8000 ac_cv_header_sys_wait_h=yes
8002 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5
8005 ac_cv_header_sys_wait_h=no
8010 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8011 if test $ac_cv_header_sys_wait_h = yes; then
8012 cat >> confdefs.h <<\EOF
8013 #define HAVE_SYS_WAIT_H 1
8018 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8019 echo "configure:8020: checking POSIX termios" >&5
8020 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
8021 echo $ac_n "(cached) $ac_c" 1>&6
8023 cat > conftest.$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8026 #include <sys/types.h>
8028 #include <termios.h>
8030 /* SunOS 4.0.3 has termios.h but not the library calls. */
8034 if { (eval echo configure:8035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8036 am_cv_sys_posix_termios=yes
8038 echo "configure: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8041 am_cv_sys_posix_termios=no
8046 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8049 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8050 echo "configure:8051: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8051 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8054 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8056 gwinsz_in_termios_h=no
8057 if test $am_cv_sys_posix_termios = yes; then
8058 cat > conftest.$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8061 #include <sys/types.h>
8062 # include <termios.h>
8068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8069 egrep "yes" >/dev/null 2>&1; then
8071 gwinsz_in_termios_h=yes
8077 if test $gwinsz_in_termios_h = no; then
8078 cat > conftest.$ac_ext <<EOF
8079 #line 8080 "configure"
8080 #include "confdefs.h"
8081 #include <sys/types.h>
8082 # include <sys/ioctl.h>
8088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8089 egrep "yes" >/dev/null 2>&1; then
8091 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8099 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8100 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8101 cat >> confdefs.h <<\EOF
8102 #define GWINSZ_IN_SYS_IOCTL 1
8107 if test $am_cv_sys_posix_termios = yes ; then
8108 cat >> confdefs.h <<\EOF
8109 #define HAVE_POSIX_TERMIOS 1
8151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8153 echo "configure:8154: checking for $ac_hdr" >&5
8154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8155 echo $ac_n "(cached) $ac_c" 1>&6
8157 cat > conftest.$ac_ext <<EOF
8158 #line 8159 "configure"
8159 #include "confdefs.h"
8162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8163 { (eval echo configure:8164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8165 if test -z "$ac_err"; then
8167 eval "ac_cv_header_$ac_safe=yes"
8170 echo "configure: failed program was:" >&5
8171 cat conftest.$ac_ext >&5
8173 eval "ac_cv_header_$ac_safe=no"
8177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8178 echo "$ac_t""yes" 1>&6
8179 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8180 cat >> confdefs.h <<EOF
8181 #define $ac_tr_hdr 1
8185 echo "$ac_t""no" 1>&6
8190 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8191 echo "configure:8192: checking for uid_t in sys/types.h" >&5
8192 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8193 echo $ac_n "(cached) $ac_c" 1>&6
8195 cat > conftest.$ac_ext <<EOF
8196 #line 8197 "configure"
8197 #include "confdefs.h"
8198 #include <sys/types.h>
8200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8201 egrep "uid_t" >/dev/null 2>&1; then
8203 ac_cv_type_uid_t=yes
8212 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8213 if test $ac_cv_type_uid_t = no; then
8214 cat >> confdefs.h <<\EOF
8218 cat >> confdefs.h <<\EOF
8224 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
8225 echo "configure:8226: checking type of array argument to getgroups" >&5
8226 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8229 if test "$cross_compiling" = yes; then
8230 ac_cv_type_getgroups=cross
8232 cat > conftest.$ac_ext <<EOF
8233 #line 8234 "configure"
8234 #include "confdefs.h"
8236 /* Thanks to Mike Rendell for this test. */
8237 #include <sys/types.h>
8240 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8245 union { gid_t gval; long lval; } val;
8248 for (i = 0; i < NGID; i++)
8249 gidset[i] = val.gval;
8250 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8252 /* Exit non-zero if getgroups seems to require an array of ints. This
8253 happens when gid_t is short but getgroups modifies an array of ints. */
8254 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8258 if { (eval echo configure:8259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8260 ac_cv_type_getgroups=gid_t
8262 echo "configure: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8265 ac_cv_type_getgroups=int
8270 if test $ac_cv_type_getgroups = cross; then
8271 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8277 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8279 ac_cv_type_getgroups=gid_t
8282 ac_cv_type_getgroups=int
8289 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
8290 cat >> confdefs.h <<EOF
8291 #define GETGROUPS_T $ac_cv_type_getgroups
8294 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8295 echo "configure:8296: checking for mode_t" >&5
8296 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8297 echo $ac_n "(cached) $ac_c" 1>&6
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8301 "configure"
8301 #include "confdefs.h"
8302 #include <sys/types.h>
8308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8309 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8311 ac_cv_type_mode_t=yes
8314 ac_cv_type_mode_t=no
8319 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8320 if test $ac_cv_type_mode_t = no; then
8321 cat >> confdefs.h <<\EOF
8327 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8328 echo "configure:8329: checking for off_t" >&5
8329 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8330 echo $ac_n "(cached) $ac_c" 1>&6
8332 cat > conftest.$ac_ext <<EOF
8333 #line 8334 "configure"
8334 #include "confdefs.h"
8335 #include <sys/types.h>
8341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8342 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8344 ac_cv_type_off_t=yes
8352 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8353 if test $ac_cv_type_off_t = no; then
8354 cat >> confdefs.h <<\EOF
8360 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8361 echo "configure:8362: checking for pid_t" >&5
8362 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8363 echo $ac_n "(cached) $ac_c" 1>&6
8365 cat > conftest.$ac_ext <<EOF
8366 #line 8367 "configure"
8367 #include "confdefs.h"
8368 #include <sys/types.h>
8374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8375 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8377 ac_cv_type_pid_t=yes
8385 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8386 if test $ac_cv_type_pid_t = no; then
8387 cat >> confdefs.h <<\EOF
8393 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
8394 echo "configure:8395: checking for ptrdiff_t" >&5
8395 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
8396 echo $ac_n "(cached) $ac_c" 1>&6
8398 cat > conftest.$ac_ext <<EOF
8399 #line 8400 "configure"
8400 #include "confdefs.h"
8406 if { (eval echo configure:8407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8408 am_cv_type_ptrdiff_t=yes
8410 echo "configure: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8413 am_cv_type_ptrdiff_t=no
8418 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
8419 if test $am_cv_type_ptrdiff_t = yes; then
8420 cat >> confdefs.h <<\EOF
8421 #define HAVE_PTRDIFF_T 1
8426 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8427 echo "configure:8428: checking return type of signal handlers" >&5
8428 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8429 echo $ac_n "(cached) $ac_c" 1>&6
8431 cat > conftest.$ac_ext <<EOF
8432 #line 8433 "configure"
8433 #include "confdefs.h"
8434 #include <sys/types.h>
8440 extern "C" void (*signal (int, void (*)(int)))(int);
8442 void (*signal ()) ();
8449 if { (eval echo configure:8450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8451 ac_cv_type_signal=void
8453 echo "configure: failed program was:" >&5
8454 cat conftest.$ac_ext >&5
8456 ac_cv_type_signal=int
8461 echo "$ac_t""$ac_cv_type_signal" 1>&6
8462 cat >> confdefs.h <<EOF
8463 #define RETSIGTYPE $ac_cv_type_signal
8467 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
8468 echo "configure:8469: checking for sig_atomic_t" >&5
8469 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
8470 echo $ac_n "(cached) $ac_c" 1>&6
8472 cat > conftest.$ac_ext <<EOF
8473 #line 8474 "configure"
8474 #include "confdefs.h"
8477 sig_atomic_t atomic;
8480 if { (eval echo configure:8481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8482 ol_cv_type_sig_atomic_t=yes
8484 echo "configure: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8487 ol_cv_type_sig_atomic_t=no
8492 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
8493 if test $ol_cv_type_sig_atomic_t = no; then
8494 cat >> confdefs.h <<\EOF
8495 #define sig_atomic_t int
8500 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8501 echo "configure:8502: checking for size_t" >&5
8502 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8503 echo $ac_n "(cached) $ac_c" 1>&6
8505 cat > conftest.$ac_ext <<EOF
8506 #line 8507 "configure"
8507 #include "confdefs.h"
8508 #include <sys/types.h>
8514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8515 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8517 ac_cv_type_size_t=yes
8520 ac_cv_type_size_t=no
8525 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8526 if test $ac_cv_type_size_t = no; then
8527 cat >> confdefs.h <<\EOF
8528 #define size_t unsigned
8533 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
8534 echo "configure:8535: checking for st_blksize in struct stat" >&5
8535 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
8536 echo $ac_n "(cached) $ac_c" 1>&6
8538 cat > conftest.$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8541 #include <sys/types.h>
8542 #include <sys/stat.h>
8544 struct stat s; s.st_blksize;
8547 if { (eval echo configure:8548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8549 ac_cv_struct_st_blksize=yes
8551 echo "configure: failed program was:" >&5
8552 cat conftest.$ac_ext >&5
8554 ac_cv_struct_st_blksize=no
8559 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
8560 if test $ac_cv_struct_st_blksize = yes; then
8561 cat >> confdefs.h <<\EOF
8562 #define HAVE_ST_BLKSIZE 1
8567 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8568 echo "configure:8569: checking whether time.h and sys/time.h may both be included" >&5
8569 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8570 echo $ac_n "(cached) $ac_c" 1>&6
8572 cat > conftest.$ac_ext <<EOF
8573 #line 8574 "configure"
8574 #include "confdefs.h"
8575 #include <sys/types.h>
8576 #include <sys/time.h>
8582 if { (eval echo configure:8583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8584 ac_cv_header_time=yes
8586 echo "configure: failed program was:" >&5
8587 cat conftest.$ac_ext >&5
8589 ac_cv_header_time=no
8594 echo "$ac_t""$ac_cv_header_time" 1>&6
8595 if test $ac_cv_header_time = yes; then
8596 cat >> confdefs.h <<\EOF
8597 #define TIME_WITH_SYS_TIME 1
8602 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
8603 echo "configure:8604: checking whether struct tm is in sys/time.h or time.h" >&5
8604 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
8605 echo $ac_n "(cached) $ac_c" 1>&6
8607 cat > conftest.$ac_ext <<EOF
8608 #line 8609 "configure"
8609 #include "confdefs.h"
8610 #include <sys/types.h>
8613 struct tm *tp; tp->tm_sec;
8616 if { (eval echo configure:8617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8618 ac_cv_struct_tm=time.h
8620 echo "configure: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8623 ac_cv_struct_tm=sys/time.h
8628 echo "$ac_t""$ac_cv_struct_tm" 1>&6
8629 if test $ac_cv_struct_tm = sys/time.h; then
8630 cat >> confdefs.h <<\EOF
8631 #define TM_IN_SYS_TIME 1
8638 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
8639 echo "configure:8640: checking if toupper() requires islower()" >&5
8640 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
8641 echo $ac_n "(cached) $ac_c" 1>&6
8644 if test "$cross_compiling" = yes; then
8645 ol_cv_c_upper_lower=safe
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8654 if ('C' == toupper('C'))
8660 if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8662 ol_cv_c_upper_lower=no
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8667 ol_cv_c_upper_lower=yes
8674 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
8675 if test $ol_cv_c_upper_lower != no ; then
8676 cat >> confdefs.h <<\EOF
8677 #define C_UPPER_LOWER 1
8682 echo $ac_n "checking for working const""... $ac_c" 1>&6
8683 echo "configure:8684: checking for working const" >&5
8684 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8685 echo $ac_n "(cached) $ac_c" 1>&6
8687 cat > conftest.$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8693 /* Ultrix mips cc rejects this. */
8694 typedef int charset[2]; const charset x;
8695 /* SunOS 4.1.1 cc rejects this. */
8696 char const *const *ccp;
8698 /* NEC SVR4.0.2 mips cc rejects this. */
8699 struct point {int x, y;};
8700 static struct point const zero = {0,0};
8701 /* AIX XL C 1.02.0.0 rejects this.
8702 It does not let you subtract one const X* pointer from another in an arm
8703 of an if-expression whose if-part is not a constant expression */
8704 const char *g = "string";
8705 ccp = &g + (g ? g-g : 0);
8706 /* HPUX 7.0 cc rejects these. */
8709 ccp = (char const *const *) p;
8710 { /* SCO 3.2v4 cc rejects this. */
8712 char const *s = 0 ? (char *) 0 : (char const *) 0;
8716 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8718 const int *foo = &x[0];
8721 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8722 typedef const int *iptr;
8726 { /* AIX XL C 1.02.0.0 rejects this saying
8727 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8728 struct s { int j; const int *ap[3]; };
8729 struct s *b; b->j = 5;
8731 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8737 if { (eval echo configure:8738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8741 echo "configure: failed program was:" >&5
8742 cat conftest.$ac_ext >&5
8749 echo "$ac_t""$ac_cv_c_const" 1>&6
8750 if test $ac_cv_c_const = no; then
8751 cat >> confdefs.h <<\EOF
8757 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
8758 echo "configure:8759: checking if compiler understands volatile" >&5
8759 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
8760 echo $ac_n "(cached) $ac_c" 1>&6
8762 cat > conftest.$ac_ext <<EOF
8763 #line 8764 "configure"
8764 #include "confdefs.h"
8767 volatile int a; int * volatile b = x ? &y : &z;
8768 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
8772 if { (eval echo configure:8773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8774 ol_cv_c_volatile=yes
8776 echo "configure: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8784 echo "$ac_t""$ol_cv_c_volatile" 1>&6
8785 if test $ol_cv_c_volatile = yes; then
8788 cat >> confdefs.h <<\EOF
8795 if test $cross_compiling = yes ; then
8796 cat >> confdefs.h <<\EOF
8797 #define CROSS_COMPILING 1
8801 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8802 echo "configure:8803: checking whether byte ordering is bigendian" >&5
8803 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8806 ac_cv_c_bigendian=unknown
8807 # See if sys/param.h defines the BYTE_ORDER macro.
8808 cat > conftest.$ac_ext <<EOF
8809 #line 8810 "configure"
8810 #include "confdefs.h"
8811 #include <sys/types.h>
8812 #include <sys/param.h>
8815 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8820 if { (eval echo configure:8821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8822 # It does; now see whether it defined to BIG_ENDIAN or not.
8823 cat > conftest.$ac_ext <<EOF
8824 #line 8825 "configure"
8825 #include "confdefs.h"
8826 #include <sys/types.h>
8827 #include <sys/param.h>
8830 #if BYTE_ORDER != BIG_ENDIAN
8835 if { (eval echo configure:8836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8837 ac_cv_c_bigendian=yes
8839 echo "configure: failed program was:" >&5
8840 cat conftest.$ac_ext >&5
8842 ac_cv_c_bigendian=no
8846 echo "configure: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8850 if test $ac_cv_c_bigendian = unknown; then
8851 if test "$cross_compiling" = yes; then
8852 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8854 cat > conftest.$ac_ext <<EOF
8855 #line 8856 "configure"
8856 #include "confdefs.h"
8858 /* Are we little or big endian? From Harbison&Steele. */
8862 char c[sizeof (long)];
8865 exit (u.c[sizeof (long) - 1] == 1);
8868 if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8870 ac_cv_c_bigendian=no
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8875 ac_cv_c_bigendian=yes
8883 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8884 if test $ac_cv_c_bigendian = yes; then
8885 cat >> confdefs.h <<\EOF
8886 #define WORDS_BIGENDIAN 1
8891 echo $ac_n "checking size of short""... $ac_c" 1>&6
8892 echo "configure:8893: checking size of short" >&5
8893 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8896 if test "$cross_compiling" = yes; then
8897 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8899 cat > conftest.$ac_ext <<EOF
8900 #line 8901 "configure"
8901 #include "confdefs.h"
8905 FILE *f=fopen("conftestval", "w");
8907 fprintf(f, "%d\n", sizeof(short));
8911 if { (eval echo configure:8912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8913 ac_cv_sizeof_short=`cat conftestval`
8915 echo "configure: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8918 ac_cv_sizeof_short=0
8924 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8925 cat >> confdefs.h <<EOF
8926 #define SIZEOF_SHORT $ac_cv_sizeof_short
8930 echo $ac_n "checking size of int""... $ac_c" 1>&6
8931 echo "configure:8932: checking size of int" >&5
8932 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8933 echo $ac_n "(cached) $ac_c" 1>&6
8935 if test "$cross_compiling" = yes; then
8936 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8944 FILE *f=fopen("conftestval", "w");
8946 fprintf(f, "%d\n", sizeof(int));
8950 if { (eval echo configure:8951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8952 ac_cv_sizeof_int=`cat conftestval`
8954 echo "configure: failed program was:" >&5
8955 cat conftest.$ac_ext >&5
8963 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8964 cat >> confdefs.h <<EOF
8965 #define SIZEOF_INT $ac_cv_sizeof_int
8969 echo $ac_n "checking size of long""... $ac_c" 1>&6
8970 echo "configure:8971: checking size of long" >&5
8971 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8972 echo $ac_n "(cached) $ac_c" 1>&6
8974 if test "$cross_compiling" = yes; then
8975 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8977 cat > conftest.$ac_ext <<EOF
8978 #line 8979 "configure"
8979 #include "confdefs.h"
8983 FILE *f=fopen("conftestval", "w");
8985 fprintf(f, "%d\n", sizeof(long));
8989 if { (eval echo configure:8990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8991 ac_cv_sizeof_long=`cat conftestval`
8993 echo "configure: failed program was:" >&5
8994 cat conftest.$ac_ext >&5
9002 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9003 cat >> confdefs.h <<EOF
9004 #define SIZEOF_LONG $ac_cv_sizeof_long
9010 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
9011 echo "configure:9012: checking for 8-bit clean memcmp" >&5
9012 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
9013 echo $ac_n "(cached) $ac_c" 1>&6
9015 if test "$cross_compiling" = yes; then
9016 ac_cv_func_memcmp_clean=no
9018 cat > conftest.$ac_ext <<EOF
9019 #line 9020 "configure"
9020 #include "confdefs.h"
9024 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9025 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
9029 if { (eval echo configure:9030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9031 ac_cv_func_memcmp_clean=yes
9033 echo "configure: failed program was:" >&5
9034 cat conftest.$ac_ext >&5
9036 ac_cv_func_memcmp_clean=no
9043 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
9044 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
9046 echo $ac_n "checking for strftime""... $ac_c" 1>&6
9047 echo "configure:9048: checking for strftime" >&5
9048 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
9049 echo $ac_n "(cached) $ac_c" 1>&6
9051 cat > conftest.$ac_ext <<EOF
9052 #line 9053 "configure"
9053 #include "confdefs.h"
9054 /* System header to define __stub macros and hopefully few prototypes,
9055 which can conflict with char strftime(); below. */
9057 /* Override any gcc2 internal prototype to avoid an error. */
9058 /* We use char because int might match the return type of a gcc2
9059 builtin and then its argument prototype would still apply. */
9064 /* The GNU C library defines this for functions which it implements
9065 to always fail with ENOSYS. Some functions are actually named
9066 something starting with __ and the normal name is an alias. */
9067 #if defined (__stub_strftime) || defined (__stub___strftime)
9075 if { (eval echo configure:9076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9077 eval "ac_cv_func_strftime=yes"
9079 echo "configure: failed program was:" >&5
9080 cat conftest.$ac_ext >&5
9082 eval "ac_cv_func_strftime=no"
9087 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
9088 echo "$ac_t""yes" 1>&6
9089 cat >> confdefs.h <<\EOF
9090 #define HAVE_STRFTIME 1
9094 echo "$ac_t""no" 1>&6
9095 # strftime is in -lintl on SCO UNIX.
9096 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
9097 echo "configure:9098: checking for strftime in -lintl" >&5
9098 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
9099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9100 echo $ac_n "(cached) $ac_c" 1>&6
9102 ac_save_LIBS="$LIBS"
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9106 "configure"
9106 #include "confdefs.h"
9107 /* Override any gcc2 internal prototype to avoid an error. */
9108 /* We use char because int might match the return type of a gcc2
9109 builtin and then its argument prototype would still apply. */
9116 if { (eval echo configure:9117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9118 eval "ac_cv_lib_$ac_lib_var=yes"
9120 echo "configure: failed program was:" >&5
9121 cat conftest.$ac_ext >&5
9123 eval "ac_cv_lib_$ac_lib_var=no"
9126 LIBS="$ac_save_LIBS"
9129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9130 echo "$ac_t""yes" 1>&6
9131 cat >> confdefs.h <<\EOF
9132 #define HAVE_STRFTIME 1
9137 echo "$ac_t""no" 1>&6
9142 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9143 echo "configure:9144: checking for vprintf" >&5
9144 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9145 echo $ac_n "(cached) $ac_c" 1>&6
9147 cat > conftest.$ac_ext <<EOF
9148 #line 9149 "configure"
9149 #include "confdefs.h"
9150 /* System header to define __stub macros and hopefully few prototypes,
9151 which can conflict with char vprintf(); below. */
9153 /* Override any gcc2 internal prototype to avoid an error. */
9154 /* We use char because int might match the return type of a gcc2
9155 builtin and then its argument prototype would still apply. */
9160 /* The GNU C library defines this for functions which it implements
9161 to always fail with ENOSYS. Some functions are actually named
9162 something starting with __ and the normal name is an alias. */
9163 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9171 if { (eval echo configure:9172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9173 eval "ac_cv_func_vprintf=yes"
9175 echo "configure: failed program was:" >&5
9176 cat conftest.$ac_ext >&5
9178 eval "ac_cv_func_vprintf=no"
9183 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9184 echo "$ac_t""yes" 1>&6
9185 cat >> confdefs.h <<\EOF
9186 #define HAVE_VPRINTF 1
9190 echo "$ac_t""no" 1>&6
9193 if test "$ac_cv_func_vprintf" != yes; then
9194 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9195 echo "configure:9196: checking for _doprnt" >&5
9196 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9197 echo $ac_n "(cached) $ac_c" 1>&6
9199 cat > conftest.$ac_ext <<EOF
9200 #line 9201 "configure"
9201 #include "confdefs.h"
9202 /* System header to define __stub macros and hopefully few prototypes,
9203 which can conflict with char _doprnt(); below. */
9205 /* Override any gcc2 internal prototype to avoid an error. */
9206 /* We use char because int might match the return type of a gcc2
9207 builtin and then its argument prototype would still apply. */
9212 /* The GNU C library defines this for functions which it implements
9213 to always fail with ENOSYS. Some functions are actually named
9214 something starting with __ and the normal name is an alias. */
9215 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9223 if { (eval echo configure:9224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9225 eval "ac_cv_func__doprnt=yes"
9227 echo "configure: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9230 eval "ac_cv_func__doprnt=no"
9235 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9236 echo "$ac_t""yes" 1>&6
9237 cat >> confdefs.h <<\EOF
9238 #define HAVE_DOPRNT 1
9242 echo "$ac_t""no" 1>&6
9248 if test $ac_cv_func_vprintf = yes ; then
9249 for ac_func in vsnprintf vsprintf
9251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9252 echo "configure:9253: checking for $ac_func" >&5
9253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9254 echo $ac_n "(cached) $ac_c" 1>&6
9256 cat > conftest.$ac_ext <<EOF
9257 #line 9258 "configure"
9258 #include "confdefs.h"
9259 /* System header to define __stub macros and hopefully few prototypes,
9260 which can conflict with char $ac_func(); below. */
9262 /* Override any gcc2 internal prototype to avoid an error. */
9263 /* We use char because int might match the return type of a gcc2
9264 builtin and then its argument prototype would still apply. */
9269 /* The GNU C library defines this for functions which it implements
9270 to always fail with ENOSYS. Some functions are actually named
9271 something starting with __ and the normal name is an alias. */
9272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9280 if { (eval echo configure:9281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9282 eval "ac_cv_func_$ac_func=yes"
9284 echo "configure: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9287 eval "ac_cv_func_$ac_func=no"
9292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9293 echo "$ac_t""yes" 1>&6
9294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9295 cat >> confdefs.h <<EOF
9296 #define $ac_tr_func 1
9300 echo "$ac_t""no" 1>&6
9337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9338 echo "configure:9339: checking for $ac_func" >&5
9339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9340 echo $ac_n "(cached) $ac_c" 1>&6
9342 cat > conftest.$ac_ext <<EOF
9343 #line 9344 "configure"
9344 #include "confdefs.h"
9345 /* System header to define __stub macros and hopefully few prototypes,
9346 which can conflict with char $ac_func(); below. */
9348 /* Override any gcc2 internal prototype to avoid an error. */
9349 /* We use char because int might match the return type of a gcc2
9350 builtin and then its argument prototype would still apply. */
9355 /* The GNU C library defines this for functions which it implements
9356 to always fail with ENOSYS. Some functions are actually named
9357 something starting with __ and the normal name is an alias. */
9358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9366 if { (eval echo configure:9367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9368 eval "ac_cv_func_$ac_func=yes"
9370 echo "configure: failed program was:" >&5
9371 cat conftest.$ac_ext >&5
9373 eval "ac_cv_func_$ac_func=no"
9378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9379 echo "$ac_t""yes" 1>&6
9380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9381 cat >> confdefs.h <<EOF
9382 #define $ac_tr_func 1
9386 echo "$ac_t""no" 1>&6
9391 # these functions are required to build a thread_safe -lldap
9398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9399 echo "configure:9400: checking for $ac_func" >&5
9400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9401 echo $ac_n "(cached) $ac_c" 1>&6
9403 cat > conftest.$ac_ext <<EOF
9404 #line 9405 "configure"
9405 #include "confdefs.h"
9406 /* System header to define __stub macros and hopefully few prototypes,
9407 which can conflict with char $ac_func(); below. */
9409 /* Override any gcc2 internal prototype to avoid an error. */
9410 /* We use char because int might match the return type of a gcc2
9411 builtin and then its argument prototype would still apply. */
9416 /* The GNU C library defines this for functions which it implements
9417 to always fail with ENOSYS. Some functions are actually named
9418 something starting with __ and the normal name is an alias. */
9419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9427 if { (eval echo configure:9428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9429 eval "ac_cv_func_$ac_func=yes"
9431 echo "configure: failed program was:" >&5
9432 cat conftest.$ac_ext >&5
9434 eval "ac_cv_func_$ac_func=no"
9439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9440 echo "$ac_t""yes" 1>&6
9441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9442 cat >> confdefs.h <<EOF
9443 #define $ac_tr_func 1
9447 echo "$ac_t""no" 1>&6
9452 if test "$ac_cv_func_ctime_r" = yes ; then
9453 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
9454 echo "configure:9455: checking number of arguments of ctime_r" >&5
9455 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
9456 echo $ac_n "(cached) $ac_c" 1>&6
9458 cat > conftest.$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9463 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
9466 if { (eval echo configure:9467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9468 ol_cv_func_ctime_r_nargs=3
9470 echo "configure: failed program was:" >&5
9471 cat conftest.$ac_ext >&5
9473 ol_cv_func_ctime_r_nargs=0
9476 if test $ol_cv_func_ctime_r_nargs = 0 ; then
9477 cat > conftest.$ac_ext <<EOF
9478 #line 9479 "configure"
9479 #include "confdefs.h"
9482 time_t ti; char *buffer;
9483 ctime_r(&ti,buffer);
9486 if { (eval echo configure:9487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9488 ol_cv_func_ctime_r_nargs=2
9490 echo "configure: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9493 ol_cv_func_ctime_r_nargs=0
9500 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
9501 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
9502 cat >> confdefs.h <<EOF
9503 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
9509 ol_cv_func_ctime_r=0
9512 if test "$ac_cv_func_gethostbyname_r" = yes ; then
9513 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
9514 echo "configure:9515: checking number of arguments of gethostbyname_r" >&5
9515 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
9516 echo $ac_n "(cached) $ac_c" 1>&6
9518 cat > conftest.$ac_ext <<EOF
9519 #line 9520 "configure"
9520 #include "confdefs.h"
9521 #include <sys/types.h>
9522 #include <sys/socket.h>
9523 #include <netinet/in.h>
9525 #define BUFSIZE (sizeof(struct hostent)+10)
9527 struct hostent hent; char buffer[BUFSIZE];
9528 int bufsize=BUFSIZE;int h_errno;
9529 (void)gethostbyname_r( "segovia.cs.purdue.edu", &hent, buffer, bufsize, &h_errno);
9533 if { (eval echo configure:9534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9535 ol_cv_func_gethostbyname_r_nargs=5
9537 echo "configure: failed program was:" >&5
9538 cat conftest.$ac_ext >&5
9540 ol_cv_func_gethostbyname_r_nargs=0
9543 if test $ol_cv_func_gethostbyname_r_nargs = 0 ; then
9544 cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 #include <sys/types.h>
9548 #include <sys/socket.h>
9549 #include <netinet/in.h>
9551 #define BUFSIZE (sizeof(struct hostent)+10)
9553 struct hostent hent;struct hostent *rhent;
9554 char buffer[BUFSIZE];
9555 int bufsize=BUFSIZE;int h_errno;
9556 (void)gethostbyname_r( "segovia.cs.purdue.edu", &hent, buffer, bufsize, &rhent, &h_errno);
9560 if { (eval echo configure:9561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9562 ol_cv_func_gethostbyname_r_nargs=6
9564 echo "configure: failed program was:" >&5
9565 cat conftest.$ac_ext >&5
9567 ol_cv_func_gethostbyname_r_nargs=0
9574 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
9575 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
9576 cat >> confdefs.h <<EOF
9577 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
9583 ol_cv_func_gethostbyname_r=0
9586 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
9587 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
9588 echo "configure:9589: checking number of arguments of gethostbyaddr_r" >&5
9589 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
9590 echo $ac_n "(cached) $ac_c" 1>&6
9592 cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9595 #include <sys/types.h>
9596 #include <sys/socket.h>
9597 #include <netinet/in.h>
9599 #define BUFSIZE (sizeof(struct hostent)+10)
9601 struct hostent hent; char buffer[BUFSIZE];
9602 struct in_addr add={0x70707070};
9603 size_t alen=sizeof(struct in_addr);
9604 int bufsize=BUFSIZE;int h_errno;
9605 (void)gethostbyaddr_r( (void *)&(add.s_addr),
9606 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
9610 if { (eval echo configure:9611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9612 ol_cv_func_gethostbyaddr_r_nargs=7
9614 echo "configure: failed program was:" >&5
9615 cat conftest.$ac_ext >&5
9617 ol_cv_func_gethostbyaddr_r_nargs=0
9620 if test $ol_cv_func_gethostbyaddr_r_nargs = 0 ; then
9621 cat > conftest.$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9624 #include <sys/types.h>
9625 #include <sys/socket.h>
9626 #include <netinet/in.h>
9628 #define BUFSIZE (sizeof(struct hostent)+10)
9630 struct hostent hent; struct hostent *rhent; char buffer[BUFSIZE];
9631 struct in_addr add={0x70707070};
9632 size_t alen=sizeof(struct in_addr);
9633 int bufsize=BUFSIZE;int h_errno;
9634 (void)gethostbyaddr_r( (void *)&(add.s_addr),
9635 alen, AF_INET, &hent, buffer, bufsize,
9640 if { (eval echo configure:9641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9642 ol_cv_func_gethostbyaddr_r_nargs=8
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9647 ol_cv_func_gethostbyaddr_r_nargs=0
9654 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
9655 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
9656 cat >> confdefs.h <<EOF
9657 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
9663 ol_cv_func_gethostbyaddr_r=0
9666 if test "$ac_cv_func_ctime_r" = yes \
9667 -a "$ol_cv_func_ctime_r_nargs" -ge 2 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
9668 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
9669 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
9670 -a "$ac_cv_func_gethostbyaddr_r" = yes \
9671 -a "$ac_cv_func_gethostbyname_r" = yes \
9674 cat >> confdefs.h <<\EOF
9675 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
9680 if test $ol_link_threads != no ; then
9681 cat >> confdefs.h <<\EOF
9682 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
9687 for ac_func in getopt tempnam
9689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9690 echo "configure:9691: checking for $ac_func" >&5
9691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9692 echo $ac_n "(cached) $ac_c" 1>&6
9694 cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure"
9696 #include "confdefs.h"
9697 /* System header to define __stub macros and hopefully few prototypes,
9698 which can conflict with char $ac_func(); below. */
9700 /* Override any gcc2 internal prototype to avoid an error. */
9701 /* We use char because int might match the return type of a gcc2
9702 builtin and then its argument prototype would still apply. */
9707 /* The GNU C library defines this for functions which it implements
9708 to always fail with ENOSYS. Some functions are actually named
9709 something starting with __ and the normal name is an alias. */
9710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9718 if { (eval echo configure:9719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9720 eval "ac_cv_func_$ac_func=yes"
9722 echo "configure: failed program was:" >&5
9723 cat conftest.$ac_ext >&5
9725 eval "ac_cv_func_$ac_func=no"
9730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9731 echo "$ac_t""yes" 1>&6
9732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9733 cat >> confdefs.h <<EOF
9734 #define $ac_tr_func 1
9738 echo "$ac_t""no" 1>&6
9739 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9745 # Check Configuration
9747 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9748 echo "configure:9749: checking declaration of sys_errlist" >&5
9749 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
9750 echo $ac_n "(cached) $ac_c" 1>&6
9753 cat > conftest.$ac_ext <<EOF
9754 #line 9755 "configure"
9755 #include "confdefs.h"
9758 #include <sys/types.h>
9761 char *c = (char *) *sys_errlist
9764 if { (eval echo configure:9765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9766 ol_cv_dcl_sys_errlist=yes
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9771 ol_cv_dcl_sys_errlist=no
9776 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9778 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9779 if test $ol_cv_dcl_sys_errlist = no ; then
9780 cat >> confdefs.h <<\EOF
9781 #define DECL_SYS_ERRLIST 1
9784 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9785 echo "configure:9786: checking existence of sys_errlist" >&5
9786 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
9787 echo $ac_n "(cached) $ac_c" 1>&6
9790 cat > conftest.$ac_ext <<EOF
9791 #line 9792 "configure"
9792 #include "confdefs.h"
9795 char *c = (char *) *sys_errlist
9798 if { (eval echo configure:9799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9800 ol_cv_have_sys_errlist=yes
9802 echo "configure: failed program was:" >&5
9803 cat conftest.$ac_ext >&5
9805 ol_cv_have_sys_errlist=no
9810 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9815 if test "$ol_enable_debug" != no ; then
9816 cat >> confdefs.h <<\EOF
9817 #define LDAP_DEBUG 1
9821 if test "$ol_enable_syslog" = yes ; then
9822 cat >> confdefs.h <<\EOF
9823 #define LDAP_SYSLOG 1
9827 if test "$ol_enable_libui" = yes ; then
9828 cat >> confdefs.h <<\EOF
9829 #define LDAP_LIBUI 1
9833 if test "$ol_enable_cache" = no ; then
9834 cat >> confdefs.h <<\EOF
9835 #define LDAP_NOCACHE 1
9839 if test "$ol_enable_dns" != no ; then
9840 cat >> confdefs.h <<\EOF
9841 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
9845 if test "$ol_enable_proctitle" != no ; then
9846 cat >> confdefs.h <<\EOF
9847 #define LDAP_PROCTITLE 1
9851 if test "$ol_enable_referrals" != no ; then
9852 cat >> confdefs.h <<\EOF
9853 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
9857 if test "$ol_enable_cldap" != no ; then
9858 cat >> confdefs.h <<\EOF
9859 #define LDAP_CONNECTIONLESS 1
9864 if test "$ol_enable_aclgroups" != no ; then
9865 cat >> confdefs.h <<\EOF
9866 #define SLAPD_ACLGROUPS 1
9870 if test "$ol_enable_crypt" != no ; then
9871 cat >> confdefs.h <<\EOF
9872 #define SLAPD_CRYPT 1
9876 if test "$ol_enable_cleartext" != no ; then
9877 cat >> confdefs.h <<\EOF
9878 #define SLAPD_CLEARTEXT 1
9882 if test "$ol_enable_phonetic" != no ; then
9883 cat >> confdefs.h <<\EOF
9884 #define SLAPD_PHONETIC 1
9888 if test "$ol_enable_rlookups" != no ; then
9889 cat >> confdefs.h <<\EOF
9890 #define SLAPD_RLOOKUPS 1
9895 if test "$ol_link_bdb2" != no ; then
9896 cat >> confdefs.h <<\EOF
9897 #define SLAPD_BDB2 1
9904 if test "$ol_link_ldbm" != no ; then
9905 cat >> confdefs.h <<\EOF
9906 #define SLAPD_LDBM 1
9913 if test "$ol_enable_passwd" != no ; then
9914 cat >> confdefs.h <<\EOF
9915 #define SLAPD_PASSWD 1
9922 if test "$ol_enable_perl" != no ; then
9923 cat >> confdefs.h <<\EOF
9924 #define SLAPD_PERL 1
9931 if test "$ol_enable_shell" != no ; then
9932 cat >> confdefs.h <<\EOF
9933 #define SLAPD_SHELL 1
9940 if test "$ol_enable_tcl" != no ; then
9941 cat >> confdefs.h <<\EOF
9949 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
9950 $BUILD_SLAPD = yes ; then
9954 if test "$ol_link_isode" != no ; then
9986 cat > confcache <<\EOF
9987 # This file is a shell script that caches the results of configure
9988 # tests run on this system so they can be shared between configure
9989 # scripts and configure runs. It is not useful on other systems.
9990 # If it contains results you don't want to keep, you may remove or edit it.
9992 # By default, configure uses ./config.cache as the cache file,
9993 # creating it if it does not exist already. You can give configure
9994 # the --cache-file=FILE option to use a different cache file; that is
9995 # what configure does when it calls configure scripts in
9996 # subdirectories, so they share the cache.
9997 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9998 # config.status only pays attention to the cache file if you give it the
9999 # --recheck option to rerun configure.
10002 # The following way of writing the cache mishandles newlines in values,
10003 # but we know of no workaround that is simple, portable, and efficient.
10004 # So, don't put newlines in cache variables' values.
10005 # Ultrix sh set writes to stderr and can't be redirected directly,
10006 # and sets the high bit in the cache file unless we assign to the vars.
10008 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10010 # `set' does not quote correctly, so add quotes (double-quote substitution
10011 # turns \\\\ into \\, and sed turns \\ into \).
10013 -e "s/'/'\\\\''/g" \
10014 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10017 # `set' quotes correctly as required by POSIX, so do not add quotes.
10018 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10021 if cmp -s $cache_file confcache; then
10024 if test -w $cache_file; then
10025 echo "updating cache $cache_file"
10026 cat confcache > $cache_file
10028 echo "not updating unwritable cache $cache_file"
10033 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10036 # Let make expand exec_prefix.
10037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10039 # Any assignment to VPATH causes Sun make to only execute
10040 # the first set of double-colon rules, so remove it if not needed.
10041 # If there is a colon in the path, we need to keep it.
10042 if test "x$srcdir" = x.; then
10043 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10046 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10048 DEFS=-DHAVE_CONFIG_H
10050 # Without the "./", some shells look in PATH for config.status.
10051 : ${CONFIG_STATUS=./config.status}
10053 echo creating $CONFIG_STATUS
10054 rm -f $CONFIG_STATUS
10055 cat > $CONFIG_STATUS <<EOF
10057 # Generated automatically by configure.
10058 # Run this file to recreate the current configuration.
10059 # This directory was configured as follows,
10060 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10062 # $0 $ac_configure_args
10064 # Compiler output produced by configure, useful for debugging
10065 # configure, is in ./config.log if it exists.
10067 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10070 case "\$ac_option" in
10071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10072 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10073 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10074 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10075 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10077 -help | --help | --hel | --he | --h)
10078 echo "\$ac_cs_usage"; exit 0 ;;
10079 *) echo "\$ac_cs_usage"; exit 1 ;;
10083 ac_given_srcdir=$srcdir
10084 ac_given_INSTALL="$INSTALL"
10086 trap 'rm -fr `echo "\
10087 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10088 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10089 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10090 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10091 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10092 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10093 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10094 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10095 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10096 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10097 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10098 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10099 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10100 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10101 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10102 include/Makefile:build/top.mk:include/Makefile.in \
10103 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10104 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10105 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10106 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10107 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10108 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10109 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10110 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10111 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10112 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10113 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10114 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10115 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10116 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10117 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10118 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10119 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10120 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10121 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10122 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10123 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10124 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10125 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10127 cat >> $CONFIG_STATUS <<EOF
10129 # Protect against being on the right side of a sed subst in config.status.
10130 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10131 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10135 s%@CFLAGS@%$CFLAGS%g
10136 s%@CPPFLAGS@%$CPPFLAGS%g
10137 s%@CXXFLAGS@%$CXXFLAGS%g
10138 s%@FFLAGS@%$FFLAGS%g
10140 s%@LDFLAGS@%$LDFLAGS%g
10142 s%@exec_prefix@%$exec_prefix%g
10143 s%@prefix@%$prefix%g
10144 s%@program_transform_name@%$program_transform_name%g
10145 s%@bindir@%$bindir%g
10146 s%@sbindir@%$sbindir%g
10147 s%@libexecdir@%$libexecdir%g
10148 s%@datadir@%$datadir%g
10149 s%@sysconfdir@%$sysconfdir%g
10150 s%@sharedstatedir@%$sharedstatedir%g
10151 s%@localstatedir@%$localstatedir%g
10152 s%@libdir@%$libdir%g
10153 s%@includedir@%$includedir%g
10154 s%@oldincludedir@%$oldincludedir%g
10155 s%@infodir@%$infodir%g
10156 s%@mandir@%$mandir%g
10157 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10158 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10159 s%@INSTALL_DATA@%$INSTALL_DATA%g
10160 s%@PACKAGE@%$PACKAGE%g
10161 s%@VERSION@%$VERSION%g
10162 s%@ACLOCAL@%$ACLOCAL%g
10163 s%@AUTOCONF@%$AUTOCONF%g
10164 s%@AUTOMAKE@%$AUTOMAKE%g
10165 s%@AUTOHEADER@%$AUTOHEADER%g
10166 s%@MAKEINFO@%$MAKEINFO%g
10167 s%@SET_MAKE@%$SET_MAKE%g
10168 s%@top_builddir@%$top_builddir%g
10169 s%@ldap_subdir@%$ldap_subdir%g
10171 s%@host_alias@%$host_alias%g
10172 s%@host_cpu@%$host_cpu%g
10173 s%@host_vendor@%$host_vendor%g
10174 s%@host_os@%$host_os%g
10175 s%@RANLIB@%$RANLIB%g
10180 s%@LIBTOOL@%$LIBTOOL%g
10182 s%@SENDMAIL@%$SENDMAIL%g
10183 s%@EDITOR@%$EDITOR%g
10184 s%@FINGER@%$FINGER%g
10185 s%@PERLBIN@%$PERLBIN%g
10187 s%@EXEEXT@%$EXEEXT%g
10188 s%@OBJEXT@%$OBJEXT%g
10190 s%@LIBOBJS@%$LIBOBJS%g
10191 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
10192 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
10193 s%@BUILD_BDB2@%$BUILD_BDB2%g
10194 s%@BUILD_LDBM@%$BUILD_LDBM%g
10195 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
10196 s%@BUILD_PERL@%$BUILD_PERL%g
10197 s%@BUILD_SHELL@%$BUILD_SHELL%g
10198 s%@BUILD_TCL@%$BUILD_TCL%g
10199 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
10200 s%@LDAP_LIBS@%$LDAP_LIBS%g
10201 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
10202 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
10203 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
10204 s%@LDBM_LIBS@%$LDBM_LIBS%g
10205 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
10206 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
10207 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
10208 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
10209 s%@KRB_LIBS@%$KRB_LIBS%g
10210 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
10211 s%@TLS_LIBS@%$TLS_LIBS%g
10216 cat >> $CONFIG_STATUS <<\EOF
10218 # Split the substitutions into bite-sized pieces for seds with
10219 # small command number limits, like on Digital OSF/1 and HP-UX.
10220 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10221 ac_file=1 # Number of current file.
10222 ac_beg=1 # First line for current file.
10223 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10226 while $ac_more_lines; do
10227 if test $ac_beg -gt 1; then
10228 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10230 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10232 if test ! -s conftest.s$ac_file; then
10233 ac_more_lines=false
10234 rm -f conftest.s$ac_file
10236 if test -z "$ac_sed_cmds"; then
10237 ac_sed_cmds="sed -f conftest.s$ac_file"
10239 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10241 ac_file=`expr $ac_file + 1`
10243 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10246 if test -z "$ac_sed_cmds"; then
10251 cat >> $CONFIG_STATUS <<EOF
10253 CONFIG_FILES=\${CONFIG_FILES-"\
10254 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10255 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10256 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10257 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10258 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10259 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10260 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10261 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10262 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10263 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10264 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10265 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10266 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10267 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10268 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10269 include/Makefile:build/top.mk:include/Makefile.in \
10270 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10271 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10272 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10273 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10274 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10275 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10276 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10277 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10278 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10279 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10280 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10281 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10282 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10283 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10284 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10285 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10286 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10287 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10288 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10289 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10290 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10291 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10294 cat >> $CONFIG_STATUS <<\EOF
10295 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10296 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10298 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10299 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10300 *) ac_file_in="${ac_file}.in" ;;
10303 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10305 # Remove last slash and all that follows it. Not all systems have dirname.
10306 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10307 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10308 # The file is in a subdirectory.
10309 test ! -d "$ac_dir" && mkdir "$ac_dir"
10310 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10311 # A "../" for each directory in $ac_dir_suffix.
10312 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10314 ac_dir_suffix= ac_dots=
10317 case "$ac_given_srcdir" in
10319 if test -z "$ac_dots"; then top_srcdir=.
10320 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10321 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10322 *) # Relative path.
10323 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10324 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10327 case "$ac_given_INSTALL" in
10328 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10329 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10332 echo creating "$ac_file"
10334 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10336 *Makefile*) ac_comsub="1i\\
10337 # $configure_input" ;;
10341 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10343 s%@configure_input@%$configure_input%g
10344 s%@srcdir@%$srcdir%g
10345 s%@top_srcdir@%$top_srcdir%g
10346 s%@INSTALL@%$INSTALL%g
10347 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10351 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10352 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10354 # ac_d sets the value in "#define NAME VALUE" lines.
10355 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10356 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10359 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10360 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10361 ac_uB='\([ ]\)%\1#\2define\3'
10364 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10365 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10366 ac_eB='$%\1#\2define\3'
10370 if test "${CONFIG_HEADERS+set}" != set; then
10372 cat >> $CONFIG_STATUS <<EOF
10373 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
10375 cat >> $CONFIG_STATUS <<\EOF
10377 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10378 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10380 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10381 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10382 *) ac_file_in="${ac_file}.in" ;;
10385 echo creating $ac_file
10387 rm -f conftest.frag conftest.in conftest.out
10388 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10389 cat $ac_file_inputs > conftest.in
10393 # Transform confdefs.h into a sed script conftest.vals that substitutes
10394 # the proper values into config.h.in to produce config.h. And first:
10395 # Protect against being on the right side of a sed subst in config.status.
10396 # Protect against being in an unquoted here document in config.status.
10397 rm -f conftest.vals
10398 cat > conftest.hdr <<\EOF
10401 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10405 sed -n -f conftest.hdr confdefs.h > conftest.vals
10408 # This sed command replaces #undef with comments. This is necessary, for
10409 # example, in the case of _POSIX_SOURCE, which is predefined and required
10410 # on some systems where configure will not decide to define it.
10411 cat >> conftest.vals <<\EOF
10412 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10415 # Break up conftest.vals because some shells have a limit on
10416 # the size of here documents, and old seds have small limits too.
10418 rm -f conftest.tail
10421 ac_lines=`grep -c . conftest.vals`
10422 # grep -c gives empty output for an empty file on some AIX systems.
10423 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10424 # Write a limited-size here document to conftest.frag.
10425 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10426 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10428 sed -f conftest.frag conftest.in > conftest.out
10430 mv conftest.out conftest.in
10431 ' >> $CONFIG_STATUS
10432 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10433 rm -f conftest.vals
10434 mv conftest.tail conftest.vals
10436 rm -f conftest.vals
10438 cat >> $CONFIG_STATUS <<\EOF
10439 rm -f conftest.frag conftest.h
10440 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10441 cat conftest.in >> conftest.h
10443 if cmp -s $ac_file conftest.h 2>/dev/null; then
10444 echo "$ac_file is unchanged"
10447 # Remove last slash and all that follows it. Not all systems have dirname.
10448 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10449 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10450 # The file is in a subdirectory.
10451 test ! -d "$ac_dir" && mkdir "$ac_dir"
10454 mv conftest.h $ac_file
10459 cat >> $CONFIG_STATUS <<EOF
10462 cat >> $CONFIG_STATUS <<\EOF
10465 echo Please \"make depend\" to build dependencies
10469 chmod +x $CONFIG_STATUS
10470 rm -fr confdefs* $ac_clean_files
10471 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1