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 with TLS/SSL support (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 != no ; then
3822 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3823 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3824 echo "configure:3825: checking for $ac_hdr" >&5
3825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3834 { (eval echo configure:3835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3836 if test -z "$ac_err"; then
3838 eval "ac_cv_header_$ac_safe=yes"
3841 echo "configure: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3844 eval "ac_cv_header_$ac_safe=no"
3848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3851 cat >> confdefs.h <<EOF
3852 #define $ac_tr_hdr 1
3856 echo "$ac_t""no" 1>&6
3861 if test $ac_cv_header_ssl_h = yes ; then
3862 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
3863 echo "configure:3864: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
3864 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
3865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 ac_save_LIBS="$LIBS"
3869 LIBS="-lssl -lcrypto $LIBS"
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3873 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3876 char SSLeay_add_ssl_algorithms();
3879 SSLeay_add_ssl_algorithms()
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3884 eval "ac_cv_lib_$ac_lib_var=yes"
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 eval "ac_cv_lib_$ac_lib_var=no"
3892 LIBS="$ac_save_LIBS"
3895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3899 echo "$ac_t""no" 1>&6
3904 if test $have_ssleay = no ; then
3905 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
3906 echo "configure:3907: checking for ssl3_accept in -lssl" >&5
3907 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
3908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3911 ac_save_LIBS="$LIBS"
3912 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3916 /* Override any gcc2 internal prototype to avoid an error. */
3917 /* We use char because int might match the return type of a gcc2
3918 builtin and then its argument prototype would still apply. */
3925 if { (eval echo configure:3926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3927 eval "ac_cv_lib_$ac_lib_var=yes"
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 eval "ac_cv_lib_$ac_lib_var=no"
3935 LIBS="$ac_save_LIBS"
3938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3939 echo "$ac_t""yes" 1>&6
3942 echo "$ac_t""no" 1>&6
3948 if test $have_ssleay = yes ; then
3952 cat >> confdefs.h <<\EOF
3953 #define HAVE_SSLEAY 1
3957 TLS_LIBS="-lssl -lcrypto"
3962 if test $ol_link_tls = yes ; then
3963 cat >> confdefs.h <<\EOF
3970 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3971 -o $ol_with_threads = posix ; then
3973 for ac_hdr in pthread.h sched.h
3975 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3977 echo "configure:3978: checking for $ac_hdr" >&5
3978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3979 echo $ac_n "(cached) $ac_c" 1>&6
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3987 { (eval echo configure:3988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3989 if test -z "$ac_err"; then
3991 eval "ac_cv_header_$ac_safe=yes"
3994 echo "configure: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3997 eval "ac_cv_header_$ac_safe=no"
4001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4002 echo "$ac_t""yes" 1>&6
4003 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4004 cat >> confdefs.h <<EOF
4005 #define $ac_tr_hdr 1
4009 echo "$ac_t""no" 1>&6
4014 if test $ac_cv_header_pthread_h = yes ; then
4015 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4016 echo "configure:4017: checking POSIX thread version" >&5
4017 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4021 cat > conftest.$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4025 # include <pthread.h>
4026 /* this check could be improved */
4027 # ifdef PTHREAD_ONCE_INIT
4028 pthread_version_final
4032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4033 egrep "pthread_version_final" >/dev/null 2>&1; then
4035 ol_pthread_final=yes
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4047 # include <pthread.h>
4048 /* this check could be improved */
4049 # ifdef pthread_once_init
4050 pthread_version_draft4
4054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4055 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4057 ol_pthread_draft4=yes
4060 ol_pthread_draft4=no
4065 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4066 ol_cv_pthread_version=final
4067 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4068 ol_cv_pthread_version=draft4
4070 ol_cv_pthread_version=unknown
4075 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4078 if test $ol_cv_pthread_version = final ; then
4079 cat >> confdefs.h <<\EOF
4080 #define HAVE_PTHREADS_FINAL 1
4083 elif test $ol_cv_pthread_version = draft4 ; then
4084 cat >> confdefs.h <<\EOF
4085 #define HAVE_PTHREADS_D4 1
4089 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4092 # consider threads found
4093 ol_with_threads=found
4096 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4097 echo "configure:4098: checking for LinuxThreads" >&5
4098 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4102 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4103 if test "$res" -gt 0 ; then
4104 ol_cv_linux_threads=yes
4106 ol_cv_linux_threads=no
4111 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4114 if test $ol_cv_linux_threads = yes ; then
4115 cat >> confdefs.h <<\EOF
4116 #define HAVE_LINUX_THREADS 1
4122 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
4123 echo "configure:4124: checking for pthread_create" >&5
4124 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4130 /* System header to define __stub macros and hopefully few prototypes,
4131 which can conflict with char pthread_create(); below. */
4133 /* Override any gcc2 internal prototype to avoid an error. */
4134 /* We use char because int might match the return type of a gcc2
4135 builtin and then its argument prototype would still apply. */
4136 char pthread_create();
4140 /* The GNU C library defines this for functions which it implements
4141 to always fail with ENOSYS. Some functions are actually named
4142 something starting with __ and the normal name is an alias. */
4143 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
4151 if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4153 eval "ac_cv_func_pthread_create=yes"
4155 echo "configure: failed program was:" >&5
4156 cat conftest.$ac_ext >&5
4158 eval "ac_cv_func_pthread_create=no"
4163 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
4164 echo "$ac_t""yes" 1>&6
4167 echo "$ac_t""no" 1>&6
4171 if test $ol_link_threads = no ; then
4172 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
4173 echo "configure:4174: checking for pthread_create with -kthread" >&5
4174 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4179 LIBS="-kthread $LIBS"
4180 cat > conftest.$ac_ext <<EOF
4181 #line 4182 "configure"
4182 #include "confdefs.h"
4183 #include <pthread.h>
4185 pthread_create(NULL,NULL,NULL,NULL);
4188 if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4190 ol_cv_kthread_flag=yes
4192 echo "configure: failed program was:" >&5
4193 cat conftest.$ac_ext >&5
4195 ol_cv_kthread_flag=no
4202 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
4204 if test $ol_cv_kthread_flag = yes ; then
4205 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
4206 ol_link_threads=posix
4210 if test $ol_link_threads = no ; then
4211 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
4212 echo "configure:4213: checking for pthread_create with -pthread" >&5
4213 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4218 LIBS="-pthread $LIBS"
4219 cat > conftest.$ac_ext <<EOF
4220 #line 4221 "configure"
4221 #include "confdefs.h"
4222 #include <pthread.h>
4224 pthread_create(NULL,NULL,NULL,NULL);
4227 if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4229 ol_cv_pthread_flag=yes
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4234 ol_cv_pthread_flag=no
4241 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
4243 if test $ol_cv_pthread_flag = yes ; then
4244 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
4245 ol_link_threads=posix
4249 if test $ol_link_threads = no ; then
4250 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
4251 echo "configure:4252: checking for pthread_create with -pthreads" >&5
4252 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4257 LIBS="-pthreads $LIBS"
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 #include <pthread.h>
4263 pthread_create(NULL,NULL,NULL,NULL);
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4268 ol_cv_pthreads_flag=yes
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4273 ol_cv_pthreads_flag=no
4280 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
4282 if test $ol_cv_pthreads_flag = yes ; then
4283 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
4284 ol_link_threads=posix
4288 if test $ol_link_threads = no ; then
4289 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
4290 echo "configure:4291: checking for pthread_create with -thread" >&5
4291 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4292 echo $ac_n "(cached) $ac_c" 1>&6
4296 LIBS="-thread $LIBS"
4297 cat > conftest.$ac_ext <<EOF
4298 #line 4299 "configure"
4299 #include "confdefs.h"
4300 char pthread_create();
4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4307 ol_cv_thread_flag=yes
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4312 ol_cv_thread_flag=no
4319 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4321 if test $ol_cv_thread_flag = yes ; then
4322 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
4323 ol_link_threads=posix
4327 if test $ol_link_threads = no ; then
4328 echo $ac_n "checking for pthread_create with -mt""... $ac_c" 1>&6
4329 echo "configure:4330: checking for pthread_create with -mt" >&5
4330 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4336 cat > conftest.$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4339 char pthread_create();
4344 if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4346 ol_cv_thread_flag=yes
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4351 ol_cv_thread_flag=no
4358 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4360 if test $ol_cv_thread_flag = yes ; then
4361 LTHREAD_LIBS="$LTHREAD_LIBS -mt"
4362 ol_link_threads=posix
4366 if test $ol_link_threads = no ; then
4368 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
4369 echo "configure:4370: checking for pthread_mutex_unlock in -lpthread" >&5
4370 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4372 echo $ac_n "(cached) $ac_c" 1>&6
4374 ac_save_LIBS="$LIBS"
4375 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4379 /* Override any gcc2 internal prototype to avoid an error. */
4380 /* We use char because int might match the return type of a gcc2
4381 builtin and then its argument prototype would still apply. */
4382 char pthread_mutex_unlock();
4385 pthread_mutex_unlock()
4388 if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4390 eval "ac_cv_lib_$ac_lib_var=yes"
4392 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5
4395 eval "ac_cv_lib_$ac_lib_var=no"
4398 LIBS="$ac_save_LIBS"
4401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4402 echo "$ac_t""yes" 1>&6
4404 ol_link_threads=posix
4405 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
4406 if test $ol_with_yielding_select = auto ; then
4407 ol_with_yielding_select=yes
4411 echo "$ac_t""no" 1>&6
4418 if test $ol_link_threads = no ; then
4420 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
4421 echo "configure:4422: checking for pthread_mutex_lock in -lpthread" >&5
4422 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 ac_save_LIBS="$LIBS"
4427 LIBS="-lpthread -lmach -lexc $LIBS"
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 /* Override any gcc2 internal prototype to avoid an error. */
4432 /* We use char because int might match the return type of a gcc2
4433 builtin and then its argument prototype would still apply. */
4434 char pthread_mutex_lock();
4437 pthread_mutex_lock()
4440 if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4442 eval "ac_cv_lib_$ac_lib_var=yes"
4444 echo "configure: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4447 eval "ac_cv_lib_$ac_lib_var=no"
4450 LIBS="$ac_save_LIBS"
4453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4454 echo "$ac_t""yes" 1>&6
4456 ol_link_threads=posix
4457 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
4458 if test $ol_with_yielding_select = auto ; then
4459 ol_with_yielding_select=yes
4463 echo "$ac_t""no" 1>&6
4470 if test $ol_link_threads = no ; then
4472 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
4473 echo "configure:4474: checking for pthread_mutex_trylock in -lpthread" >&5
4474 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 ac_save_LIBS="$LIBS"
4479 LIBS="-lpthread -lexc $LIBS"
4480 cat > conftest.$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 /* Override any gcc2 internal prototype to avoid an error. */
4484 /* We use char because int might match the return type of a gcc2
4485 builtin and then its argument prototype would still apply. */
4486 char pthread_mutex_trylock();
4489 pthread_mutex_trylock()
4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4494 eval "ac_cv_lib_$ac_lib_var=yes"
4496 echo "configure: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4499 eval "ac_cv_lib_$ac_lib_var=no"
4502 LIBS="$ac_save_LIBS"
4505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6
4508 ol_link_threads=posix
4509 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
4510 if test $ol_with_yielding_select = auto ; then
4511 ol_with_yielding_select=yes
4515 echo "$ac_t""no" 1>&6
4522 if test $ol_link_threads = no ; then
4524 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4525 echo "configure:4526: checking for pthread_create in -lpthread" >&5
4526 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 ac_save_LIBS="$LIBS"
4531 LIBS="-lpthread $LIBS"
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4535 /* Override any gcc2 internal prototype to avoid an error. */
4536 /* We use char because int might match the return type of a gcc2
4537 builtin and then its argument prototype would still apply. */
4538 char pthread_create();
4544 if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4546 eval "ac_cv_lib_$ac_lib_var=yes"
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4551 eval "ac_cv_lib_$ac_lib_var=no"
4554 LIBS="$ac_save_LIBS"
4557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4558 echo "$ac_t""yes" 1>&6
4560 ol_link_threads=posix
4561 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4563 echo "$ac_t""no" 1>&6
4570 if test $ol_link_threads = no ; then
4572 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4573 echo "configure:4574: checking for pthread_create in -lc_r" >&5
4574 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
4575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 ac_save_LIBS="$LIBS"
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4583 /* Override any gcc2 internal prototype to avoid an error. */
4584 /* We use char because int might match the return type of a gcc2
4585 builtin and then its argument prototype would still apply. */
4586 char pthread_create();
4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4594 eval "ac_cv_lib_$ac_lib_var=yes"
4596 echo "configure: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4599 eval "ac_cv_lib_$ac_lib_var=no"
4602 LIBS="$ac_save_LIBS"
4605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4606 echo "$ac_t""yes" 1>&6
4608 ol_link_threads=posix
4609 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
4611 echo "$ac_t""no" 1>&6
4618 if test $ol_link_threads = no ; then
4620 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
4621 echo "configure:4622: checking for pthread_create in -lpthreads" >&5
4622 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
4623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 ac_save_LIBS="$LIBS"
4627 LIBS="-lpthreads $LIBS"
4628 cat > conftest.$ac_ext <<EOF
4629 #line 4630 "configure"
4630 #include "confdefs.h"
4631 /* Override any gcc2 internal prototype to avoid an error. */
4632 /* We use char because int might match the return type of a gcc2
4633 builtin and then its argument prototype would still apply. */
4634 char pthread_create();
4640 if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4642 eval "ac_cv_lib_$ac_lib_var=yes"
4644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4647 eval "ac_cv_lib_$ac_lib_var=no"
4650 LIBS="$ac_save_LIBS"
4653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4654 echo "$ac_t""yes" 1>&6
4656 ol_link_threads=posix
4657 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4659 echo "$ac_t""no" 1>&6
4666 if test $ol_link_threads = no ; then
4668 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
4669 echo "configure:4670: checking for pthread_join in -lpthreads" >&5
4670 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
4671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 ac_save_LIBS="$LIBS"
4675 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 /* Override any gcc2 internal prototype to avoid an error. */
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4682 char pthread_join();
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4690 eval "ac_cv_lib_$ac_lib_var=yes"
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4695 eval "ac_cv_lib_$ac_lib_var=no"
4698 LIBS="$ac_save_LIBS"
4701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4702 echo "$ac_t""yes" 1>&6
4704 ol_link_threads=posix
4705 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4708 echo "$ac_t""no" 1>&6
4715 if test $ol_link_threads = no ; then
4716 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
4717 echo "configure:4718: checking for pthread_create with -threads" >&5
4718 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4723 LIBS="-threads $LIBS"
4724 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4727 char pthread_create();
4734 if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4736 ol_cv_thread_flag=yes
4738 echo "configure: failed program was:" >&5
4739 cat conftest.$ac_ext >&5
4741 ol_cv_thread_flag=no
4748 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4750 if test $ol_cv_thread_flag = yes ; then
4751 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
4752 ol_link_threads=posix
4756 if test $ol_link_threads = no ; then
4758 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
4759 echo "configure:4760: checking for pthread_mutex_unlock in -lpthreads" >&5
4760 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4762 echo $ac_n "(cached) $ac_c" 1>&6
4764 ac_save_LIBS="$LIBS"
4765 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
4766 cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4769 /* Override any gcc2 internal prototype to avoid an error. */
4770 /* We use char because int might match the return type of a gcc2
4771 builtin and then its argument prototype would still apply. */
4772 char pthread_mutex_unlock();
4775 pthread_mutex_unlock()
4778 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4780 eval "ac_cv_lib_$ac_lib_var=yes"
4782 echo "configure: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4785 eval "ac_cv_lib_$ac_lib_var=no"
4788 LIBS="$ac_save_LIBS"
4791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4794 ol_link_threads=posix
4795 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
4796 if test $ol_with_yielding_select = auto ; then
4797 ol_with_yielding_select=yes
4801 echo "$ac_t""no" 1>&6
4808 if test $ol_link_threads = no ; then
4810 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
4811 echo "configure:4812: checking for pthread_mutex_lock in -lpthreads" >&5
4812 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 ac_save_LIBS="$LIBS"
4817 LIBS="-lpthreads -lmach -lexc $LIBS"
4818 cat > conftest.$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4821 /* Override any gcc2 internal prototype to avoid an error. */
4822 /* We use char because int might match the return type of a gcc2
4823 builtin and then its argument prototype would still apply. */
4824 char pthread_mutex_lock();
4827 pthread_mutex_lock()
4830 if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4832 eval "ac_cv_lib_$ac_lib_var=yes"
4834 echo "configure: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4837 eval "ac_cv_lib_$ac_lib_var=no"
4840 LIBS="$ac_save_LIBS"
4843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4846 ol_link_threads=posix
4847 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
4848 if test $ol_with_yielding_select = auto ; then
4849 ol_with_yielding_select=yes
4853 echo "$ac_t""no" 1>&6
4860 if test $ol_link_threads = no ; then
4862 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
4863 echo "configure:4864: checking for pthread_mutex_trylock in -lpthreads" >&5
4864 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4868 ac_save_LIBS="$LIBS"
4869 LIBS="-lpthreads -lexc $LIBS"
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4873 /* Override any gcc2 internal prototype to avoid an error. */
4874 /* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4876 char pthread_mutex_trylock();
4879 pthread_mutex_trylock()
4882 if { (eval echo configure:4883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4884 eval "ac_cv_lib_$ac_lib_var=yes"
4886 echo "configure: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4889 eval "ac_cv_lib_$ac_lib_var=no"
4892 LIBS="$ac_save_LIBS"
4895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4896 echo "$ac_t""yes" 1>&6
4898 ol_link_threads=posix
4899 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
4900 if test $ol_with_yielding_select = auto ; then
4901 ol_with_yielding_select=yes
4905 echo "$ac_t""no" 1>&6
4912 if test $ol_link_threads != no ; then
4913 cat >> confdefs.h <<\EOF
4914 #define HAVE_PTHREADS 1
4918 save_CPPFLAGS="$CPPFLAGS"
4920 LIBS="$LTHREAD_LIBS $LIBS"
4922 for ac_func in sched_yield pthread_yield
4924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4925 echo "configure:4926: checking for $ac_func" >&5
4926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4927 echo $ac_n "(cached) $ac_c" 1>&6
4929 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4932 /* System header to define __stub macros and hopefully few prototypes,
4933 which can conflict with char $ac_func(); below. */
4935 /* Override any gcc2 internal prototype to avoid an error. */
4936 /* We use char because int might match the return type of a gcc2
4937 builtin and then its argument prototype would still apply. */
4942 /* The GNU C library defines this for functions which it implements
4943 to always fail with ENOSYS. Some functions are actually named
4944 something starting with __ and the normal name is an alias. */
4945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4953 if { (eval echo configure:4954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4955 eval "ac_cv_func_$ac_func=yes"
4957 echo "configure: failed program was:" >&5
4958 cat conftest.$ac_ext >&5
4960 eval "ac_cv_func_$ac_func=no"
4965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4966 echo "$ac_t""yes" 1>&6
4967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4968 cat >> confdefs.h <<EOF
4969 #define $ac_tr_func 1
4973 echo "$ac_t""no" 1>&6
4978 if test $ac_cv_func_sched_yield = no -a \
4979 $ac_cv_func_pthread_yield = no ; then
4980 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4981 echo "configure:4982: checking for sched_yield in -lrt" >&5
4982 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4984 echo $ac_n "(cached) $ac_c" 1>&6
4986 ac_save_LIBS="$LIBS"
4988 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4991 /* Override any gcc2 internal prototype to avoid an error. */
4992 /* We use char because int might match the return type of a gcc2
4993 builtin and then its argument prototype would still apply. */
5000 if { (eval echo configure:5001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5002 eval "ac_cv_lib_$ac_lib_var=yes"
5004 echo "configure: failed program was:" >&5
5005 cat conftest.$ac_ext >&5
5007 eval "ac_cv_lib_$ac_lib_var=no"
5010 LIBS="$ac_save_LIBS"
5013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5014 echo "$ac_t""yes" 1>&6
5015 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5016 cat >> confdefs.h <<\EOF
5017 #define HAVE_SCHED_YIELD 1
5020 ac_cv_func_sched_yield=yes
5022 echo "$ac_t""no" 1>&6
5023 ac_cv_func_sched_yield=no
5027 if test $ac_cv_func_sched_yield = no -a \
5028 $ac_cv_func_pthread_yield = no ; then
5029 for ac_func in thr_yield
5031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5032 echo "configure:5033: checking for $ac_func" >&5
5033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5036 cat > conftest.$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5039 /* System header to define __stub macros and hopefully few prototypes,
5040 which can conflict with char $ac_func(); below. */
5042 /* Override any gcc2 internal prototype to avoid an error. */
5043 /* We use char because int might match the return type of a gcc2
5044 builtin and then its argument prototype would still apply. */
5049 /* The GNU C library defines this for functions which it implements
5050 to always fail with ENOSYS. Some functions are actually named
5051 something starting with __ and the normal name is an alias. */
5052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5062 eval "ac_cv_func_$ac_func=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 eval "ac_cv_func_$ac_func=no"
5072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5073 echo "$ac_t""yes" 1>&6
5074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5075 cat >> confdefs.h <<EOF
5076 #define $ac_tr_func 1
5080 echo "$ac_t""no" 1>&6
5085 if test $ac_cv_func_sched_yield = no -a \
5086 $ac_cv_func_pthread_yield = no -a \
5087 "$ac_cv_func_thr_yield" = no ; then
5088 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
5091 for ac_func in pthread_kill
5093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5094 echo "configure:5095: checking for $ac_func" >&5
5095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* System header to define __stub macros and hopefully few prototypes,
5102 which can conflict with char $ac_func(); below. */
5104 /* Override any gcc2 internal prototype to avoid an error. */
5105 /* We use char because int might match the return type of a gcc2
5106 builtin and then its argument prototype would still apply. */
5111 /* The GNU C library defines this for functions which it implements
5112 to always fail with ENOSYS. Some functions are actually named
5113 something starting with __ and the normal name is an alias. */
5114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5122 if { (eval echo configure:5123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5124 eval "ac_cv_func_$ac_func=yes"
5126 echo "configure: failed program was:" >&5
5127 cat conftest.$ac_ext >&5
5129 eval "ac_cv_func_$ac_func=no"
5134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5135 echo "$ac_t""yes" 1>&6
5136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5137 cat >> confdefs.h <<EOF
5138 #define $ac_tr_func 1
5142 echo "$ac_t""no" 1>&6
5147 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
5148 echo "configure:5149: checking for pthread_detach with <pthread.h>" >&5
5149 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
5150 echo $ac_n "(cached) $ac_c" 1>&6
5153 cat > conftest.$ac_ext <<EOF
5154 #line 5155 "configure"
5155 #include "confdefs.h"
5156 #include <pthread.h>
5158 pthread_detach(NULL);
5161 if { (eval echo configure:5162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5163 ol_cv_func_pthread_detach=yes
5165 echo "configure: failed program was:" >&5
5166 cat conftest.$ac_ext >&5
5168 ol_cv_func_pthread_detach=no
5174 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
5176 if test $ol_cv_func_pthread_detach = no ; then
5177 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
5180 cat >> confdefs.h <<\EOF
5181 #define HAVE_PTHREAD_DETACH 1
5186 pthread_setconcurrency \
5187 pthread_getconcurrency \
5188 thr_setconcurrency \
5189 thr_getconcurrency \
5192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5193 echo "configure:5194: checking for $ac_func" >&5
5194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200 /* System header to define __stub macros and hopefully few prototypes,
5201 which can conflict with char $ac_func(); below. */
5203 /* Override any gcc2 internal prototype to avoid an error. */
5204 /* We use char because int might match the return type of a gcc2
5205 builtin and then its argument prototype would still apply. */
5210 /* The GNU C library defines this for functions which it implements
5211 to always fail with ENOSYS. Some functions are actually named
5212 something starting with __ and the normal name is an alias. */
5213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5221 if { (eval echo configure:5222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5223 eval "ac_cv_func_$ac_func=yes"
5225 echo "configure: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5228 eval "ac_cv_func_$ac_func=no"
5233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5234 echo "$ac_t""yes" 1>&6
5235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5236 cat >> confdefs.h <<EOF
5237 #define $ac_tr_func 1
5241 echo "$ac_t""no" 1>&6
5246 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
5247 echo "configure:5248: checking if pthread_create() works" >&5
5248 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
5249 echo $ac_n "(cached) $ac_c" 1>&6
5252 if test "$cross_compiling" = yes; then
5253 ol_cv_pthread_create_works=yes
5255 cat > conftest.$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5259 #include <pthread.h>
5261 #define NULL (void*)0
5264 static void *task(p)
5267 return (void *) (p == NULL);
5270 int main(argc, argv)
5275 exit(pthread_create(&t, NULL, task, NULL));
5279 if { (eval echo configure:5280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5281 ol_cv_pthread_create_works=yes
5283 echo "configure: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5286 ol_cv_pthread_create_works=no
5293 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
5295 if test $ol_cv_pthread_create_works = no ; then
5296 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
5299 if test $ol_with_yielding_select = auto ; then
5300 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
5301 echo "configure:5302: checking if select yields when using pthreads" >&5
5302 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
5303 echo $ac_n "(cached) $ac_c" 1>&6
5306 if test "$cross_compiling" = yes; then
5308 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
5310 cat > conftest.$ac_ext <<EOF
5311 #line 5312 "configure"
5312 #include "confdefs.h"
5314 #include <sys/types.h>
5315 #include <sys/time.h>
5317 #include <pthread.h>
5319 #define NULL (void*) 0
5322 static int fildes[2];
5324 static void *task(p)
5336 FD_SET(fildes[0], &rfds);
5338 /* we're not interested in any fds */
5339 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
5346 exit(0); /* if we exit here, the select blocked the whole process */
5349 int main(argc, argv)
5355 /* create a pipe to select */
5356 if(pipe(&fildes[0])) {
5361 #ifdef HAVE_PTHREAD_SETCONCURRENCY
5362 (void) pthread_setconcurrency(2);
5364 #ifdef HAVE_THR_SETCONCURRENCY
5365 /* Set Solaris LWP concurrency to 2 */
5366 thr_setconcurrency(2);
5370 pthread_create(&t, NULL, task, NULL);
5372 #if HAVE_SCHED_YIELD
5373 sched_yield(); /* make sure task runs first */
5375 #ifdef HAVE_PTHREAD_YIELD
5376 pthread_yield(); /* make sure task runs first */
5383 if { (eval echo configure:5384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5385 ol_cv_pthread_select_yields=no
5387 echo "configure: failed program was:" >&5
5388 cat conftest.$ac_ext >&5
5390 ol_cv_pthread_select_yields=yes
5397 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
5399 if test $ol_cv_pthread_select_yields = yes ; then
5400 ol_with_yielding_select=yes
5404 CPPFLAGS="$save_CPPFLAGS"
5407 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
5411 if test $ol_with_threads = posix ; then
5412 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
5416 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5417 -o $ol_with_threads = mach ; then
5419 for ac_hdr in mach/cthreads.h
5421 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5423 echo "configure:5424: checking for $ac_hdr" >&5
5424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5427 cat > conftest.$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5433 { (eval echo configure:5434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5435 if test -z "$ac_err"; then
5437 eval "ac_cv_header_$ac_safe=yes"
5440 echo "configure: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5443 eval "ac_cv_header_$ac_safe=no"
5447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5448 echo "$ac_t""yes" 1>&6
5449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5450 cat >> confdefs.h <<EOF
5451 #define $ac_tr_hdr 1
5455 echo "$ac_t""no" 1>&6
5459 if test $ac_cv_header_mach_cthreads_h = yes ; then
5460 ol_with_threads=found
5462 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
5463 echo "configure:5464: checking for cthread_fork" >&5
5464 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5467 cat > conftest.$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5470 /* System header to define __stub macros and hopefully few prototypes,
5471 which can conflict with char cthread_fork(); below. */
5473 /* Override any gcc2 internal prototype to avoid an error. */
5474 /* We use char because int might match the return type of a gcc2
5475 builtin and then its argument prototype would still apply. */
5476 char cthread_fork();
5480 /* The GNU C library defines this for functions which it implements
5481 to always fail with ENOSYS. Some functions are actually named
5482 something starting with __ and the normal name is an alias. */
5483 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5491 if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5493 eval "ac_cv_func_cthread_fork=yes"
5495 echo "configure: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5498 eval "ac_cv_func_cthread_fork=no"
5503 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5504 echo "$ac_t""yes" 1>&6
5507 echo "$ac_t""no" 1>&6
5511 if test $ol_link_threads = no ; then
5512 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5513 echo "configure:5514: checking for cthread_fork with -all_load" >&5
5514 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5519 LIBS="-all_load $LIBS"
5520 cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5523 #include <mach/cthreads.h>
5526 cthread_fork((void *)0, (void *)0);
5530 if { (eval echo configure:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532 ol_cv_cthread_all_load=yes
5534 echo "configure: failed program was:" >&5
5535 cat conftest.$ac_ext >&5
5537 ol_cv_cthread_all_load=no
5544 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5546 if test $ol_cv_cthread_all_load = yes ; then
5547 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5548 ol_link_threads=mach
5552 if test $ol_link_threads != no ; then
5553 : check for cthread specific functionality here
5554 cat >> confdefs.h <<\EOF
5555 #define HAVE_MACH_CTHREADS 1
5559 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
5563 if test $ol_with_threads = mach ; then
5564 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
5568 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5569 -o $ol_with_threads = lwp ; then
5571 for ac_hdr in thread.h synch.h
5573 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5575 echo "configure:5576: checking for $ac_hdr" >&5
5576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5577 echo $ac_n "(cached) $ac_c" 1>&6
5579 cat > conftest.$ac_ext <<EOF
5580 #line 5581 "configure"
5581 #include "confdefs.h"
5584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5585 { (eval echo configure:5586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5587 if test -z "$ac_err"; then
5589 eval "ac_cv_header_$ac_safe=yes"
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5595 eval "ac_cv_header_$ac_safe=no"
5599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5600 echo "$ac_t""yes" 1>&6
5601 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5602 cat >> confdefs.h <<EOF
5603 #define $ac_tr_hdr 1
5607 echo "$ac_t""no" 1>&6
5611 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
5612 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
5613 echo "configure:5614: checking for thr_create in -lthread" >&5
5614 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
5615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5616 echo $ac_n "(cached) $ac_c" 1>&6
5618 ac_save_LIBS="$LIBS"
5619 LIBS="-lthread $LIBS"
5620 cat > conftest.$ac_ext <<EOF
5621 #line 5622 "configure"
5622 #include "confdefs.h"
5623 /* Override any gcc2 internal prototype to avoid an error. */
5624 /* We use char because int might match the return type of a gcc2
5625 builtin and then its argument prototype would still apply. */
5632 if { (eval echo configure:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5634 eval "ac_cv_lib_$ac_lib_var=yes"
5636 echo "configure: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5639 eval "ac_cv_lib_$ac_lib_var=no"
5642 LIBS="$ac_save_LIBS"
5645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5646 echo "$ac_t""yes" 1>&6
5649 echo "$ac_t""no" 1>&6
5654 if test $have_thr = yes ; then
5655 cat >> confdefs.h <<\EOF
5659 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
5662 if test $ol_with_yielding_select = auto ; then
5663 ol_with_yielding_select=yes
5667 thr_setconcurrency \
5668 thr_getconcurrency \
5671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5672 echo "configure:5673: checking for $ac_func" >&5
5673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5674 echo $ac_n "(cached) $ac_c" 1>&6
5676 cat > conftest.$ac_ext <<EOF
5677 #line 5678 "configure"
5678 #include "confdefs.h"
5679 /* System header to define __stub macros and hopefully few prototypes,
5680 which can conflict with char $ac_func(); below. */
5682 /* Override any gcc2 internal prototype to avoid an error. */
5683 /* We use char because int might match the return type of a gcc2
5684 builtin and then its argument prototype would still apply. */
5689 /* The GNU C library defines this for functions which it implements
5690 to always fail with ENOSYS. Some functions are actually named
5691 something starting with __ and the normal name is an alias. */
5692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5700 if { (eval echo configure:5701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5702 eval "ac_cv_func_$ac_func=yes"
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5707 eval "ac_cv_func_$ac_func=no"
5712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5713 echo "$ac_t""yes" 1>&6
5714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5715 cat >> confdefs.h <<EOF
5716 #define $ac_tr_func 1
5720 echo "$ac_t""no" 1>&6
5727 for ac_hdr in lwp/lwp.h
5729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5731 echo "configure:5732: checking for $ac_hdr" >&5
5732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5733 echo $ac_n "(cached) $ac_c" 1>&6
5735 cat > conftest.$ac_ext <<EOF
5736 #line 5737 "configure"
5737 #include "confdefs.h"
5740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5741 { (eval echo configure:5742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5743 if test -z "$ac_err"; then
5745 eval "ac_cv_header_$ac_safe=yes"
5748 echo "configure: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5751 eval "ac_cv_header_$ac_safe=no"
5755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5756 echo "$ac_t""yes" 1>&6
5757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5758 cat >> confdefs.h <<EOF
5759 #define $ac_tr_hdr 1
5763 echo "$ac_t""no" 1>&6
5767 if test $ac_cv_header_lwp_lwp_h = yes ; then
5768 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
5769 echo "configure:5770: checking for lwp_create in -llwp" >&5
5770 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
5771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5772 echo $ac_n "(cached) $ac_c" 1>&6
5774 ac_save_LIBS="$LIBS"
5776 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure"
5778 #include "confdefs.h"
5779 /* Override any gcc2 internal prototype to avoid an error. */
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5788 if { (eval echo configure:5789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5790 eval "ac_cv_lib_$ac_lib_var=yes"
5792 echo "configure: failed program was:" >&5
5793 cat conftest.$ac_ext >&5
5795 eval "ac_cv_lib_$ac_lib_var=no"
5798 LIBS="$ac_save_LIBS"
5801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5802 echo "$ac_t""yes" 1>&6
5805 echo "$ac_t""no" 1>&6
5810 if test $have_lwp = yes ; then
5811 cat >> confdefs.h <<\EOF
5815 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
5818 if test $ol_with_yielding_select = auto ; then
5819 ol_with_yielding_select=no
5825 if test $ol_with_yielding_select = yes ; then
5826 cat >> confdefs.h <<\EOF
5827 #define HAVE_YIELDING_SELECT 1
5832 if test $ol_with_threads = manual ; then
5835 echo "configure: warning: thread defines and link options must be set manually" 1>&2
5837 for ac_hdr in pthread.h sched.h
5839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5841 echo "configure:5842: checking for $ac_hdr" >&5
5842 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5843 echo $ac_n "(cached) $ac_c" 1>&6
5845 cat > conftest.$ac_ext <<EOF
5846 #line 5847 "configure"
5847 #include "confdefs.h"
5850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5851 { (eval echo configure:5852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5853 if test -z "$ac_err"; then
5855 eval "ac_cv_header_$ac_safe=yes"
5858 echo "configure: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5861 eval "ac_cv_header_$ac_safe=no"
5865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5866 echo "$ac_t""yes" 1>&6
5867 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5868 cat >> confdefs.h <<EOF
5869 #define $ac_tr_hdr 1
5873 echo "$ac_t""no" 1>&6
5877 for ac_func in sched_yield pthread_yield
5879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5880 echo "configure:5881: checking for $ac_func" >&5
5881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6
5884 cat > conftest.$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5887 /* System header to define __stub macros and hopefully few prototypes,
5888 which can conflict with char $ac_func(); below. */
5890 /* Override any gcc2 internal prototype to avoid an error. */
5891 /* We use char because int might match the return type of a gcc2
5892 builtin and then its argument prototype would still apply. */
5897 /* The GNU C library defines this for functions which it implements
5898 to always fail with ENOSYS. Some functions are actually named
5899 something starting with __ and the normal name is an alias. */
5900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5908 if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5910 eval "ac_cv_func_$ac_func=yes"
5912 echo "configure: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5915 eval "ac_cv_func_$ac_func=no"
5920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5921 echo "$ac_t""yes" 1>&6
5922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5923 cat >> confdefs.h <<EOF
5924 #define $ac_tr_func 1
5928 echo "$ac_t""no" 1>&6
5933 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5934 echo "configure:5935: checking for LinuxThreads" >&5
5935 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5939 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5940 if test "$res" -gt 0 ; then
5941 ol_cv_linux_threads=yes
5943 ol_cv_linux_threads=no
5948 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5951 for ac_hdr in mach/cthreads.h
5953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5955 echo "configure:5956: checking for $ac_hdr" >&5
5956 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5959 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5965 { (eval echo configure:5966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5967 if test -z "$ac_err"; then
5969 eval "ac_cv_header_$ac_safe=yes"
5972 echo "configure: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5975 eval "ac_cv_header_$ac_safe=no"
5979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5980 echo "$ac_t""yes" 1>&6
5981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5982 cat >> confdefs.h <<EOF
5983 #define $ac_tr_hdr 1
5987 echo "$ac_t""no" 1>&6
5991 for ac_hdr in lwp/lwp.h
5993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5995 echo "configure:5996: checking for $ac_hdr" >&5
5996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5997 echo $ac_n "(cached) $ac_c" 1>&6
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6005 { (eval echo configure:6006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6007 if test -z "$ac_err"; then
6009 eval "ac_cv_header_$ac_safe=yes"
6012 echo "configure: failed program was:" >&5
6013 cat conftest.$ac_ext >&5
6015 eval "ac_cv_header_$ac_safe=no"
6019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6020 echo "$ac_t""yes" 1>&6
6021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6022 cat >> confdefs.h <<EOF
6023 #define $ac_tr_hdr 1
6027 echo "$ac_t""no" 1>&6
6031 for ac_hdr in thread.h synch.h
6033 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6034 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6035 echo "configure:6036: checking for $ac_hdr" >&5
6036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6039 cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6045 { (eval echo configure:6046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6047 if test -z "$ac_err"; then
6049 eval "ac_cv_header_$ac_safe=yes"
6052 echo "configure: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6055 eval "ac_cv_header_$ac_safe=no"
6059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6060 echo "$ac_t""yes" 1>&6
6061 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6062 cat >> confdefs.h <<EOF
6063 #define $ac_tr_hdr 1
6067 echo "$ac_t""no" 1>&6
6073 if test $ol_link_threads != no ; then
6074 cat >> confdefs.h <<\EOF
6078 cat >> confdefs.h <<\EOF
6079 #define _REENTRANT 1
6082 cat >> confdefs.h <<\EOF
6083 #define THREAD_SAFE 1
6086 cat >> confdefs.h <<\EOF
6087 #define _THREAD_SAFE 1
6090 cat >> confdefs.h <<\EOF
6091 #define THREADSAFE 1
6094 cat >> confdefs.h <<\EOF
6095 #define _THREADSAFE 1
6099 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
6100 echo "configure:6101: checking for thread specific errno" >&5
6101 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
6102 echo $ac_n "(cached) $ac_c" 1>&6
6105 cat > conftest.$ac_ext <<EOF
6106 #line 6107 "configure"
6107 #include "confdefs.h"
6113 if { (eval echo configure:6114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6115 ol_cv_errno_thread_specific=yes
6117 echo "configure: failed program was:" >&5
6118 cat conftest.$ac_ext >&5
6120 ol_cv_errno_thread_specific=no
6126 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
6128 if test $ol_cv_errno_thread_specific != yes ; then
6129 LIBS="$LTHREAD_LIBS $LIBS"
6136 if test $ol_link_threads = no ; then
6137 if test $ol_with_threads = yes ; then
6138 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
6141 if test $ol_with_threads = auto ; then
6142 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
6146 cat >> confdefs.h <<\EOF
6147 #define NO_THREADS 1
6154 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
6155 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
6156 echo "configure:6157: checking for DB2 library" >&5
6157 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
6158 echo $ac_n "(cached) $ac_c" 1>&6
6161 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
6162 echo "configure:6163: checking for db_open in -ldb" >&5
6163 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
6164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6165 echo $ac_n "(cached) $ac_c" 1>&6
6167 ac_save_LIBS="$LIBS"
6169 cat > conftest.$ac_ext <<EOF
6170 #line 6171 "configure"
6171 #include "confdefs.h"
6172 /* Override any gcc2 internal prototype to avoid an error. */
6173 /* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6183 eval "ac_cv_lib_$ac_lib_var=yes"
6185 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6188 eval "ac_cv_lib_$ac_lib_var=no"
6191 LIBS="$ac_save_LIBS"
6194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6195 echo "$ac_t""yes" 1>&6
6198 echo "$ac_t""no" 1>&6
6206 echo "$ac_t""$ol_cv_lib_db2" 1>&6
6210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6212 echo "configure:6213: checking for $ac_hdr" >&5
6213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6222 { (eval echo configure:6223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6224 if test -z "$ac_err"; then
6226 eval "ac_cv_header_$ac_safe=yes"
6229 echo "configure: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6232 eval "ac_cv_header_$ac_safe=no"
6236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6237 echo "$ac_t""yes" 1>&6
6238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6239 cat >> confdefs.h <<EOF
6240 #define $ac_tr_hdr 1
6244 echo "$ac_t""no" 1>&6
6248 if test $ac_cv_header_db_h = yes ; then
6249 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
6250 echo "configure:6251: checking if db.h is DB2" >&5
6251 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6255 cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6260 /* this check could be improved */
6261 # ifdef DB_VERSION_MAJOR
6262 # if DB_VERSION_MAJOR == 2
6268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6269 egrep "__db_version_2" >/dev/null 2>&1; then
6271 ol_cv_header_db2=yes
6280 echo "$ac_t""$ol_cv_header_db2" 1>&6
6287 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
6288 echo "configure:6289: checking for Berkeley DB2" >&5
6289 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6293 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
6294 ol_cv_berkeley_db2=no
6296 ol_cv_berkeley_db2=yes
6301 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
6302 if test $ol_cv_berkeley_db2 = yes ; then
6303 cat >> confdefs.h <<\EOF
6304 #define HAVE_BERKELEY_DB2 1
6310 if test $ol_cv_berkeley_db2 = yes ; then
6312 ol_with_ldbm_api=db2
6314 if test $ol_with_ldbm_type = hash ; then
6315 cat >> confdefs.h <<\EOF
6316 #define LDBM_USE_DBHASH 1
6320 cat >> confdefs.h <<\EOF
6321 #define LDBM_USE_DBBTREE 1
6326 if test $ol_cv_lib_db2 != yes ; then
6327 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
6333 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
6337 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
6338 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
6339 echo "configure:6340: checking for Berkeley DB library" >&5
6340 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
6341 echo $ac_n "(cached) $ac_c" 1>&6
6344 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6345 echo "configure:6346: checking for dbopen" >&5
6346 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
6347 echo $ac_n "(cached) $ac_c" 1>&6
6349 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6352 /* System header to define __stub macros and hopefully few prototypes,
6353 which can conflict with char dbopen(); below. */
6355 /* Override any gcc2 internal prototype to avoid an error. */
6356 /* We use char because int might match the return type of a gcc2
6357 builtin and then its argument prototype would still apply. */
6362 /* The GNU C library defines this for functions which it implements
6363 to always fail with ENOSYS. Some functions are actually named
6364 something starting with __ and the normal name is an alias. */
6365 #if defined (__stub_dbopen) || defined (__stub___dbopen)
6373 if { (eval echo configure:6374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6375 eval "ac_cv_func_dbopen=yes"
6377 echo "configure: failed program was:" >&5
6378 cat conftest.$ac_ext >&5
6380 eval "ac_cv_func_dbopen=no"
6385 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
6386 echo "$ac_t""yes" 1>&6
6389 echo "$ac_t""no" 1>&6
6391 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
6392 echo "configure:6393: checking for dbopen in -ldb" >&5
6393 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
6394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6397 ac_save_LIBS="$LIBS"
6399 cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6402 /* Override any gcc2 internal prototype to avoid an error. */
6403 /* We use char because int might match the return type of a gcc2
6404 builtin and then its argument prototype would still apply. */
6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6413 eval "ac_cv_lib_$ac_lib_var=yes"
6415 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 eval "ac_cv_lib_$ac_lib_var=no"
6421 LIBS="$ac_save_LIBS"
6424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6425 echo "$ac_t""yes" 1>&6
6428 echo "$ac_t""no" 1>&6
6439 echo "$ac_t""$ol_cv_lib_db" 1>&6
6442 for ac_hdr in db_185.h
6444 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6445 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6446 echo "configure:6447: checking for $ac_hdr" >&5
6447 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6448 echo $ac_n "(cached) $ac_c" 1>&6
6450 cat > conftest.$ac_ext <<EOF
6451 #line 6452 "configure"
6452 #include "confdefs.h"
6455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6456 { (eval echo configure:6457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6458 if test -z "$ac_err"; then
6460 eval "ac_cv_header_$ac_safe=yes"
6463 echo "configure: failed program was:" >&5
6464 cat conftest.$ac_ext >&5
6466 eval "ac_cv_header_$ac_safe=no"
6470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6471 echo "$ac_t""yes" 1>&6
6472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6473 cat >> confdefs.h <<EOF
6474 #define $ac_tr_hdr 1
6478 echo "$ac_t""no" 1>&6
6482 if test "$ol_cv_header_db2" = yes ; then
6484 ol_cv_header_db=$ac_cv_header_db_185_h
6486 ol_cv_header_db=$ac_cv_header_db_h
6491 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6492 echo "configure:6493: checking for Berkeley DB" >&5
6493 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6497 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6498 ol_cv_berkeley_db=no
6500 ol_cv_berkeley_db=yes
6505 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6506 if test $ol_cv_berkeley_db = yes ; then
6507 cat >> confdefs.h <<\EOF
6508 #define HAVE_BERKELEY_DB 1
6514 if test $ol_cv_berkeley_db = yes ; then
6518 if test $ol_with_ldbm_type = hash ; then
6519 cat >> confdefs.h <<\EOF
6520 #define LDBM_USE_DBHASH 1
6524 cat >> confdefs.h <<\EOF
6525 #define LDBM_USE_DBBTREE 1
6530 if test $ol_cv_lib_db != yes ; then
6531 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6536 if test $ol_with_ldbm_api = manual ; then
6539 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6541 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6545 echo "configure:6546: checking for $ac_hdr" >&5
6546 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6547 echo $ac_n "(cached) $ac_c" 1>&6
6549 cat > conftest.$ac_ext <<EOF
6550 #line 6551 "configure"
6551 #include "confdefs.h"
6554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6555 { (eval echo configure:6556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6557 if test -z "$ac_err"; then
6559 eval "ac_cv_header_$ac_safe=yes"
6562 echo "configure: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6565 eval "ac_cv_header_$ac_safe=no"
6569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6570 echo "$ac_t""yes" 1>&6
6571 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6572 cat >> confdefs.h <<EOF
6573 #define $ac_tr_hdr 1
6577 echo "$ac_t""no" 1>&6
6583 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
6584 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
6585 ol_with_ldbm_api=none
6588 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
6589 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
6590 echo "configure:6591: checking for GDBM library" >&5
6591 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
6592 echo $ac_n "(cached) $ac_c" 1>&6
6595 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6596 echo "configure:6597: checking for gdbm_open" >&5
6597 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
6598 echo $ac_n "(cached) $ac_c" 1>&6
6600 cat > conftest.$ac_ext <<EOF
6601 #line 6602 "configure"
6602 #include "confdefs.h"
6603 /* System header to define __stub macros and hopefully few prototypes,
6604 which can conflict with char gdbm_open(); below. */
6606 /* Override any gcc2 internal prototype to avoid an error. */
6607 /* We use char because int might match the return type of a gcc2
6608 builtin and then its argument prototype would still apply. */
6613 /* The GNU C library defines this for functions which it implements
6614 to always fail with ENOSYS. Some functions are actually named
6615 something starting with __ and the normal name is an alias. */
6616 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
6624 if { (eval echo configure:6625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626 eval "ac_cv_func_gdbm_open=yes"
6628 echo "configure: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6631 eval "ac_cv_func_gdbm_open=no"
6636 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
6637 echo "$ac_t""yes" 1>&6
6640 echo "$ac_t""no" 1>&6
6642 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
6643 echo "configure:6644: checking for gdbm_open in -lgdbm" >&5
6644 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
6645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6646 echo $ac_n "(cached) $ac_c" 1>&6
6648 ac_save_LIBS="$LIBS"
6650 cat > conftest.$ac_ext <<EOF
6651 #line 6652 "configure"
6652 #include "confdefs.h"
6653 /* Override any gcc2 internal prototype to avoid an error. */
6654 /* We use char because int might match the return type of a gcc2
6655 builtin and then its argument prototype would still apply. */
6662 if { (eval echo configure:6663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6664 eval "ac_cv_lib_$ac_lib_var=yes"
6666 echo "configure: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6669 eval "ac_cv_lib_$ac_lib_var=no"
6672 LIBS="$ac_save_LIBS"
6675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6676 echo "$ac_t""yes" 1>&6
6677 ol_cv_lib_gdbm=-lgdbm
6679 echo "$ac_t""no" 1>&6
6690 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
6693 for ac_hdr in gdbm.h
6695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6697 echo "configure:6698: checking for $ac_hdr" >&5
6698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6699 echo $ac_n "(cached) $ac_c" 1>&6
6701 cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6707 { (eval echo configure:6708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6709 if test -z "$ac_err"; then
6711 eval "ac_cv_header_$ac_safe=yes"
6714 echo "configure: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6717 eval "ac_cv_header_$ac_safe=no"
6721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6723 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6724 cat >> confdefs.h <<EOF
6725 #define $ac_tr_hdr 1
6729 echo "$ac_t""no" 1>&6
6733 echo $ac_n "checking for db""... $ac_c" 1>&6
6734 echo "configure:6735: checking for db" >&5
6735 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
6736 echo $ac_n "(cached) $ac_c" 1>&6
6739 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
6747 echo "$ac_t""$ol_cv_gdbm" 1>&6
6748 if test $ol_cv_gdbm = yes ; then
6749 cat >> confdefs.h <<\EOF
6756 if test $ol_cv_gdbm = yes ; then
6758 ol_with_ldbm_api=gdbm
6760 if test $ol_cv_lib_gdbm != yes ; then
6761 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
6766 if test $ol_with_ldbm_api = auto ; then
6767 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
6768 elif test $ol_with_ldbm_api = ndbm ; then
6769 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
6770 echo "configure:6771: checking for NDBM library" >&5
6771 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6775 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
6776 echo "configure:6777: checking for dbm_open" >&5
6777 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
6778 echo $ac_n "(cached) $ac_c" 1>&6
6780 cat > conftest.$ac_ext <<EOF
6781 #line 6782 "configure"
6782 #include "confdefs.h"
6783 /* System header to define __stub macros and hopefully few prototypes,
6784 which can conflict with char dbm_open(); below. */
6786 /* Override any gcc2 internal prototype to avoid an error. */
6787 /* We use char because int might match the return type of a gcc2
6788 builtin and then its argument prototype would still apply. */
6793 /* The GNU C library defines this for functions which it implements
6794 to always fail with ENOSYS. Some functions are actually named
6795 something starting with __ and the normal name is an alias. */
6796 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
6804 if { (eval echo configure:6805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6806 eval "ac_cv_func_dbm_open=yes"
6808 echo "configure: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6811 eval "ac_cv_func_dbm_open=no"
6816 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
6817 echo "$ac_t""yes" 1>&6
6820 echo "$ac_t""no" 1>&6
6822 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
6823 echo "configure:6824: checking for dbm_open in -lndbm" >&5
6824 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
6825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 ac_save_LIBS="$LIBS"
6830 cat > conftest.$ac_ext <<EOF
6831 #line 6832 "configure"
6832 #include "confdefs.h"
6833 /* Override any gcc2 internal prototype to avoid an error. */
6834 /* We use char because int might match the return type of a gcc2
6835 builtin and then its argument prototype would still apply. */
6842 if { (eval echo configure:6843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6844 eval "ac_cv_lib_$ac_lib_var=yes"
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6849 eval "ac_cv_lib_$ac_lib_var=no"
6852 LIBS="$ac_save_LIBS"
6855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6856 echo "$ac_t""yes" 1>&6
6857 ol_cv_lib_ndbm=-lndbm
6859 echo "$ac_t""no" 1>&6
6861 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
6862 echo "configure:6863: checking for dbm_open in -ldbm" >&5
6863 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
6864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6865 echo $ac_n "(cached) $ac_c" 1>&6
6867 ac_save_LIBS="$LIBS"
6869 cat > conftest.$ac_ext <<EOF
6870 #line 6871 "configure"
6871 #include "confdefs.h"
6872 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6881 if { (eval echo configure:6882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6883 eval "ac_cv_lib_$ac_lib_var=yes"
6885 echo "configure: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6888 eval "ac_cv_lib_$ac_lib_var=no"
6891 LIBS="$ac_save_LIBS"
6894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6895 echo "$ac_t""yes" 1>&6
6896 ol_cv_lib_ndbm=-ldbm
6898 echo "$ac_t""no" 1>&6
6911 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6914 for ac_hdr in ndbm.h
6916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6918 echo "configure:6919: checking for $ac_hdr" >&5
6919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6920 echo $ac_n "(cached) $ac_c" 1>&6
6922 cat > conftest.$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6928 { (eval echo configure:6929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6930 if test -z "$ac_err"; then
6932 eval "ac_cv_header_$ac_safe=yes"
6935 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6938 eval "ac_cv_header_$ac_safe=no"
6942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6943 echo "$ac_t""yes" 1>&6
6944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6945 cat >> confdefs.h <<EOF
6946 #define $ac_tr_hdr 1
6950 echo "$ac_t""no" 1>&6
6954 echo $ac_n "checking for db""... $ac_c" 1>&6
6955 echo "configure:6956: checking for db" >&5
6956 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6960 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
6968 echo "$ac_t""$ol_cv_ndbm" 1>&6
6969 if test $ol_cv_ndbm = yes ; then
6970 cat >> confdefs.h <<\EOF
6977 if test $ol_cv_ndbm = yes ; then
6979 ol_with_ldbm_api=ndbm
6981 if test $ol_cv_lib_ndbm != yes ; then
6982 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
6987 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
6988 echo "configure: warning: could not find suitable LDBM backend" 1>&2
6989 if test $ol_enable_ldbm = yes ; then
6990 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
6993 echo "configure: warning: disabling LDBM" 1>&2
6997 if test $ol_enable_wrappers != no ; then
6998 for ac_hdr in tcpd.h
7000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7002 echo "configure:7003: checking for $ac_hdr" >&5
7003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7004 echo $ac_n "(cached) $ac_c" 1>&6
7006 cat > conftest.$ac_ext <<EOF
7007 #line 7008 "configure"
7008 #include "confdefs.h"
7011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7012 { (eval echo configure:7013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7014 if test -z "$ac_err"; then
7016 eval "ac_cv_header_$ac_safe=yes"
7019 echo "configure: failed program was:" >&5
7020 cat conftest.$ac_ext >&5
7022 eval "ac_cv_header_$ac_safe=no"
7026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7027 echo "$ac_t""yes" 1>&6
7028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7029 cat >> confdefs.h <<EOF
7030 #define $ac_tr_hdr 1
7034 echo "$ac_t""no" 1>&6
7039 if test $ac_cv_header_tcpd_h != yes ; then
7042 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
7043 echo "configure:7044: checking for main in -lwrap" >&5
7044 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
7045 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7046 echo $ac_n "(cached) $ac_c" 1>&6
7048 ac_save_LIBS="$LIBS"
7050 cat > conftest.$ac_ext <<EOF
7051 #line 7052 "configure"
7052 #include "confdefs.h"
7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7060 eval "ac_cv_lib_$ac_lib_var=yes"
7062 echo "configure: failed program was:" >&5
7063 cat conftest.$ac_ext >&5
7065 eval "ac_cv_lib_$ac_lib_var=no"
7068 LIBS="$ac_save_LIBS"
7071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7072 echo "$ac_t""yes" 1>&6
7075 echo "$ac_t""no" 1>&6
7081 if test $have_wrappers = yes ; then
7082 cat >> confdefs.h <<\EOF
7086 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
7088 echo "configure: warning: could not find -lwrap" 1>&2
7089 if test $ol_enable_wrappers = yes ; then
7090 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
7093 echo "configure: warning: disabling wrappers support" 1>&2
7094 ol_enable_wrappers=no
7098 if test $ol_enable_syslog != no ; then
7099 echo $ac_n "checking for openlog""... $ac_c" 1>&6
7100 echo "configure:7101: checking for openlog" >&5
7101 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
7102 echo $ac_n "(cached) $ac_c" 1>&6
7104 cat > conftest.$ac_ext <<EOF
7105 #line 7106 "configure"
7106 #include "confdefs.h"
7107 /* System header to define __stub macros and hopefully few prototypes,
7108 which can conflict with char openlog(); below. */
7110 /* Override any gcc2 internal prototype to avoid an error. */
7111 /* We use char because int might match the return type of a gcc2
7112 builtin and then its argument prototype would still apply. */
7117 /* The GNU C library defines this for functions which it implements
7118 to always fail with ENOSYS. Some functions are actually named
7119 something starting with __ and the normal name is an alias. */
7120 #if defined (__stub_openlog) || defined (__stub___openlog)
7128 if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7130 eval "ac_cv_func_openlog=yes"
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7135 eval "ac_cv_func_openlog=no"
7140 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
7141 echo "$ac_t""yes" 1>&6
7144 echo "$ac_t""no" 1>&6
7147 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
7148 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
7150 ol_enable_syslog=$ac_cv_func_openlog
7153 if test $ol_enable_dmalloc != no ; then
7154 for ac_hdr in dmalloc.h
7156 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7158 echo "configure:7159: checking for $ac_hdr" >&5
7159 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7160 echo $ac_n "(cached) $ac_c" 1>&6
7162 cat > conftest.$ac_ext <<EOF
7163 #line 7164 "configure"
7164 #include "confdefs.h"
7167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7168 { (eval echo configure:7169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7170 if test -z "$ac_err"; then
7172 eval "ac_cv_header_$ac_safe=yes"
7175 echo "configure: failed program was:" >&5
7176 cat conftest.$ac_ext >&5
7178 eval "ac_cv_header_$ac_safe=no"
7182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7183 echo "$ac_t""yes" 1>&6
7184 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7185 cat >> confdefs.h <<EOF
7186 #define $ac_tr_hdr 1
7190 echo "$ac_t""no" 1>&6
7194 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
7195 echo "configure:7196: checking for dmalloc_shutdown in -ldmalloc" >&5
7196 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
7197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7198 echo $ac_n "(cached) $ac_c" 1>&6
7200 ac_save_LIBS="$LIBS"
7201 LIBS="-ldmalloc $LIBS"
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7205 /* Override any gcc2 internal prototype to avoid an error. */
7206 /* We use char because int might match the return type of a gcc2
7207 builtin and then its argument prototype would still apply. */
7208 char dmalloc_shutdown();
7214 if { (eval echo configure:7215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7216 eval "ac_cv_lib_$ac_lib_var=yes"
7218 echo "configure: failed program was:" >&5
7219 cat conftest.$ac_ext >&5
7221 eval "ac_cv_lib_$ac_lib_var=no"
7224 LIBS="$ac_save_LIBS"
7227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7228 echo "$ac_t""yes" 1>&6
7229 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7230 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7231 cat >> confdefs.h <<EOF
7232 #define $ac_tr_lib 1
7235 LIBS="-ldmalloc $LIBS"
7238 echo "$ac_t""no" 1>&6
7243 if test $ol_enable_tcl != no ; then
7246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7248 echo "configure:7249: checking for $ac_hdr" >&5
7249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7250 echo $ac_n "(cached) $ac_c" 1>&6
7252 cat > conftest.$ac_ext <<EOF
7253 #line 7254 "configure"
7254 #include "confdefs.h"
7257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7258 { (eval echo configure:7259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7260 if test -z "$ac_err"; then
7262 eval "ac_cv_header_$ac_safe=yes"
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7268 eval "ac_cv_header_$ac_safe=no"
7272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7273 echo "$ac_t""yes" 1>&6
7274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7275 cat >> confdefs.h <<EOF
7276 #define $ac_tr_hdr 1
7280 echo "$ac_t""no" 1>&6
7285 if test $ac_cv_header_tcl_h != yes ; then
7288 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
7289 echo "configure:7290: checking for main in -ltcl" >&5
7290 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
7291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7292 echo $ac_n "(cached) $ac_c" 1>&6
7294 ac_save_LIBS="$LIBS"
7296 cat > conftest.$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7304 if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7306 eval "ac_cv_lib_$ac_lib_var=yes"
7308 echo "configure: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7311 eval "ac_cv_lib_$ac_lib_var=no"
7314 LIBS="$ac_save_LIBS"
7317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7318 echo "$ac_t""yes" 1>&6
7319 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
7321 echo "$ac_t""no" 1>&6
7326 if test $have_tcl != yes; then
7327 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
7328 echo "configure:7329: checking for main in -ltcl7.6" >&5
7329 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
7330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7331 echo $ac_n "(cached) $ac_c" 1>&6
7333 ac_save_LIBS="$LIBS"
7334 LIBS="-ltcl7.6 $LIBS"
7335 cat > conftest.$ac_ext <<EOF
7336 #line 7337 "configure"
7337 #include "confdefs.h"
7343 if { (eval echo configure:7344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7345 eval "ac_cv_lib_$ac_lib_var=yes"
7347 echo "configure: failed program was:" >&5
7348 cat conftest.$ac_ext >&5
7350 eval "ac_cv_lib_$ac_lib_var=no"
7353 LIBS="$ac_save_LIBS"
7356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7357 echo "$ac_t""yes" 1>&6
7358 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
7360 echo "$ac_t""no" 1>&6
7366 if test $have_tcl != yes; then
7367 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
7368 echo "configure:7369: checking for main in -ltcl8.0" >&5
7369 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
7370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7371 echo $ac_n "(cached) $ac_c" 1>&6
7373 ac_save_LIBS="$LIBS"
7374 LIBS="-ltcl8.0 $LIBS"
7375 cat > conftest.$ac_ext <<EOF
7376 #line 7377 "configure"
7377 #include "confdefs.h"
7383 if { (eval echo configure:7384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7385 eval "ac_cv_lib_$ac_lib_var=yes"
7387 echo "configure: failed program was:" >&5
7388 cat conftest.$ac_ext >&5
7390 eval "ac_cv_lib_$ac_lib_var=no"
7393 LIBS="$ac_save_LIBS"
7396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7397 echo "$ac_t""yes" 1>&6
7398 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
7400 echo "$ac_t""no" 1>&6
7407 if test $have_tcl != yes ; then
7408 echo "configure: warning: could not find -ltcl" 1>&2
7409 if test $ol_enable_tcl = yes ; then
7410 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
7417 # ud needs termcap (should insert check here)
7419 for ac_hdr in termcap.h ncurses.h
7421 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7423 echo "configure:7424: checking for $ac_hdr" >&5
7424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7425 echo $ac_n "(cached) $ac_c" 1>&6
7427 cat > conftest.$ac_ext <<EOF
7428 #line 7429 "configure"
7429 #include "confdefs.h"
7432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7433 { (eval echo configure:7434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7435 if test -z "$ac_err"; then
7437 eval "ac_cv_header_$ac_safe=yes"
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7443 eval "ac_cv_header_$ac_safe=no"
7447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7448 echo "$ac_t""yes" 1>&6
7449 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7450 cat >> confdefs.h <<EOF
7451 #define $ac_tr_hdr 1
7455 echo "$ac_t""no" 1>&6
7460 if test $ol_link_termcap = no ; then
7461 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
7462 echo "configure:7463: checking for tputs in -ltermcap" >&5
7463 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
7464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7465 echo $ac_n "(cached) $ac_c" 1>&6
7467 ac_save_LIBS="$LIBS"
7468 LIBS="-ltermcap $LIBS"
7469 cat > conftest.$ac_ext <<EOF
7470 #line 7471 "configure"
7471 #include "confdefs.h"
7472 /* Override any gcc2 internal prototype to avoid an error. */
7473 /* We use char because int might match the return type of a gcc2
7474 builtin and then its argument prototype would still apply. */
7481 if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7483 eval "ac_cv_lib_$ac_lib_var=yes"
7485 echo "configure: failed program was:" >&5
7486 cat conftest.$ac_ext >&5
7488 eval "ac_cv_lib_$ac_lib_var=no"
7491 LIBS="$ac_save_LIBS"
7494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7495 echo "$ac_t""yes" 1>&6
7498 echo "$ac_t""no" 1>&6
7502 if test $have_termcap = yes ; then
7503 cat >> confdefs.h <<\EOF
7504 #define HAVE_TERMCAP 1
7508 TERMCAP_LIBS=-ltermcap
7512 if test $ol_link_termcap = no ; then
7513 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
7514 echo "configure:7515: checking for initscr in -lncurses" >&5
7515 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
7516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7519 ac_save_LIBS="$LIBS"
7520 LIBS="-lncurses $LIBS"
7521 cat > conftest.$ac_ext <<EOF
7522 #line 7523 "configure"
7523 #include "confdefs.h"
7524 /* Override any gcc2 internal prototype to avoid an error. */
7525 /* We use char because int might match the return type of a gcc2
7526 builtin and then its argument prototype would still apply. */
7533 if { (eval echo configure:7534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7535 eval "ac_cv_lib_$ac_lib_var=yes"
7537 echo "configure: failed program was:" >&5
7538 cat conftest.$ac_ext >&5
7540 eval "ac_cv_lib_$ac_lib_var=no"
7543 LIBS="$ac_save_LIBS"
7546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7547 echo "$ac_t""yes" 1>&6
7550 echo "$ac_t""no" 1>&6
7554 if test $have_ncurses = yes ; then
7555 cat >> confdefs.h <<\EOF
7556 #define HAVE_NCURSES 1
7560 TERMCAP_LIBS=-lncurses
7564 if test $ol_link_termcap = no ; then
7565 cat >> confdefs.h <<\EOF
7566 #define NO_TERMCAP 1
7572 # FreeBSD (and others) have crypt(3) in -lcrypt
7573 if test $ol_enable_crypt != no ; then
7574 echo $ac_n "checking for crypt""... $ac_c" 1>&6
7575 echo "configure:7576: checking for crypt" >&5
7576 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
7577 echo $ac_n "(cached) $ac_c" 1>&6
7579 cat > conftest.$ac_ext <<EOF
7580 #line 7581 "configure"
7581 #include "confdefs.h"
7582 /* System header to define __stub macros and hopefully few prototypes,
7583 which can conflict with char crypt(); below. */
7585 /* Override any gcc2 internal prototype to avoid an error. */
7586 /* We use char because int might match the return type of a gcc2
7587 builtin and then its argument prototype would still apply. */
7592 /* The GNU C library defines this for functions which it implements
7593 to always fail with ENOSYS. Some functions are actually named
7594 something starting with __ and the normal name is an alias. */
7595 #if defined (__stub_crypt) || defined (__stub___crypt)
7603 if { (eval echo configure:7604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7605 eval "ac_cv_func_crypt=yes"
7607 echo "configure: failed program was:" >&5
7608 cat conftest.$ac_ext >&5
7610 eval "ac_cv_func_crypt=no"
7615 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
7616 echo "$ac_t""yes" 1>&6
7619 echo "$ac_t""no" 1>&6
7621 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7622 echo "configure:7623: checking for crypt in -lcrypt" >&5
7623 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7625 echo $ac_n "(cached) $ac_c" 1>&6
7627 ac_save_LIBS="$LIBS"
7628 LIBS="-lcrypt $LIBS"
7629 cat > conftest.$ac_ext <<EOF
7630 #line 7631 "configure"
7631 #include "confdefs.h"
7632 /* Override any gcc2 internal prototype to avoid an error. */
7633 /* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7641 if { (eval echo configure:7642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7643 eval "ac_cv_lib_$ac_lib_var=yes"
7645 echo "configure: failed program was:" >&5
7646 cat conftest.$ac_ext >&5
7648 eval "ac_cv_lib_$ac_lib_var=no"
7651 LIBS="$ac_save_LIBS"
7654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7655 echo "$ac_t""yes" 1>&6
7656 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
7659 echo "$ac_t""no" 1>&6
7666 if test $have_crypt = yes ; then
7667 cat >> confdefs.h <<\EOF
7668 #define HAVE_CRYPT 1
7672 echo "configure: warning: could not find crypt" 1>&2
7673 if test $ol_enable_crypt = yes ; then
7674 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
7677 echo "configure: warning: disabling crypt support" 1>&2
7682 # FreeBSD (and others) have setproctitle(3) in -lutil
7683 if test $ol_enable_proctitle != no ; then
7684 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
7685 echo "configure:7686: checking for setproctitle" >&5
7686 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
7687 echo $ac_n "(cached) $ac_c" 1>&6
7689 cat > conftest.$ac_ext <<EOF
7690 #line 7691 "configure"
7691 #include "confdefs.h"
7692 /* System header to define __stub macros and hopefully few prototypes,
7693 which can conflict with char setproctitle(); below. */
7695 /* Override any gcc2 internal prototype to avoid an error. */
7696 /* We use char because int might match the return type of a gcc2
7697 builtin and then its argument prototype would still apply. */
7698 char setproctitle();
7702 /* The GNU C library defines this for functions which it implements
7703 to always fail with ENOSYS. Some functions are actually named
7704 something starting with __ and the normal name is an alias. */
7705 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
7713 if { (eval echo configure:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7715 eval "ac_cv_func_setproctitle=yes"
7717 echo "configure: failed program was:" >&5
7718 cat conftest.$ac_ext >&5
7720 eval "ac_cv_func_setproctitle=no"
7725 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
7726 echo "$ac_t""yes" 1>&6
7727 have_setproctitle=yes
7729 echo "$ac_t""no" 1>&6
7731 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
7732 echo "configure:7733: checking for setproctitle in -lutil" >&5
7733 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
7734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7735 echo $ac_n "(cached) $ac_c" 1>&6
7737 ac_save_LIBS="$LIBS"
7739 cat > conftest.$ac_ext <<EOF
7740 #line 7741 "configure"
7741 #include "confdefs.h"
7742 /* Override any gcc2 internal prototype to avoid an error. */
7743 /* We use char because int might match the return type of a gcc2
7744 builtin and then its argument prototype would still apply. */
7745 char setproctitle();
7751 if { (eval echo configure:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7753 eval "ac_cv_lib_$ac_lib_var=yes"
7755 echo "configure: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7758 eval "ac_cv_lib_$ac_lib_var=no"
7761 LIBS="$ac_save_LIBS"
7764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7765 echo "$ac_t""yes" 1>&6
7766 have_setproctitle=yes
7767 LUTIL_LIBS="$LUTIL_LIBS -lutil"
7769 echo "$ac_t""no" 1>&6
7770 have_setproctitle=no
7771 LIBOBJS="$LIBOBJS setproctitle.o"
7777 if test $have_setproctitle = yes ; then
7778 cat >> confdefs.h <<\EOF
7779 #define HAVE_SETPROCTITLE 1
7785 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7786 echo "configure:7787: checking for ANSI C header files" >&5
7787 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7790 cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7799 { (eval echo configure:7800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7801 if test -z "$ac_err"; then
7803 ac_cv_header_stdc=yes
7806 echo "configure: failed program was:" >&5
7807 cat conftest.$ac_ext >&5
7809 ac_cv_header_stdc=no
7813 if test $ac_cv_header_stdc = yes; then
7814 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7815 cat > conftest.$ac_ext <<EOF
7816 #line 7817 "configure"
7817 #include "confdefs.h"
7820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7821 egrep "memchr" >/dev/null 2>&1; then
7825 ac_cv_header_stdc=no
7831 if test $ac_cv_header_stdc = yes; then
7832 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7833 cat > conftest.$ac_ext <<EOF
7834 #line 7835 "configure"
7835 #include "confdefs.h"
7838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7839 egrep "free" >/dev/null 2>&1; then
7843 ac_cv_header_stdc=no
7849 if test $ac_cv_header_stdc = yes; then
7850 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7851 if test "$cross_compiling" = yes; then
7854 cat > conftest.$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7858 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7859 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7860 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7861 int main () { int i; for (i = 0; i < 256; i++)
7862 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7866 if { (eval echo configure:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7873 ac_cv_header_stdc=no
7881 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7882 if test $ac_cv_header_stdc = yes; then
7883 cat >> confdefs.h <<\EOF
7884 #define STDC_HEADERS 1
7890 if test $ac_cv_header_stdc != yes; then
7891 echo "configure: warning: could not Standard C compliant headers" 1>&2
7895 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
7897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7898 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
7899 echo "configure:7900: checking for $ac_hdr that defines DIR" >&5
7900 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
7903 cat > conftest.$ac_ext <<EOF
7904 #line 7905 "configure"
7905 #include "confdefs.h"
7906 #include <sys/types.h>
7912 if { (eval echo configure:7913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7914 eval "ac_cv_header_dirent_$ac_safe=yes"
7916 echo "configure: failed program was:" >&5
7917 cat conftest.$ac_ext >&5
7919 eval "ac_cv_header_dirent_$ac_safe=no"
7923 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
7924 echo "$ac_t""yes" 1>&6
7925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7926 cat >> confdefs.h <<EOF
7927 #define $ac_tr_hdr 1
7929 ac_header_dirent=$ac_hdr; break
7931 echo "$ac_t""no" 1>&6
7934 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7935 if test $ac_header_dirent = dirent.h; then
7936 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
7937 echo "configure:7938: checking for opendir in -ldir" >&5
7938 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
7939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7940 echo $ac_n "(cached) $ac_c" 1>&6
7942 ac_save_LIBS="$LIBS"
7944 cat > conftest.$ac_ext <<EOF
7945 #line 7946 "configure"
7946 #include "confdefs.h"
7947 /* Override any gcc2 internal prototype to avoid an error. */
7948 /* We use char because int might match the return type of a gcc2
7949 builtin and then its argument prototype would still apply. */
7956 if { (eval echo configure:7957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7958 eval "ac_cv_lib_$ac_lib_var=yes"
7960 echo "configure: failed program was:" >&5
7961 cat conftest.$ac_ext >&5
7963 eval "ac_cv_lib_$ac_lib_var=no"
7966 LIBS="$ac_save_LIBS"
7969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7970 echo "$ac_t""yes" 1>&6
7973 echo "$ac_t""no" 1>&6
7977 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
7978 echo "configure:7979: checking for opendir in -lx" >&5
7979 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
7980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7983 ac_save_LIBS="$LIBS"
7985 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure"
7987 #include "confdefs.h"
7988 /* Override any gcc2 internal prototype to avoid an error. */
7989 /* We use char because int might match the return type of a gcc2
7990 builtin and then its argument prototype would still apply. */
7997 if { (eval echo configure:7998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7999 eval "ac_cv_lib_$ac_lib_var=yes"
8001 echo "configure: failed program was:" >&5
8002 cat conftest.$ac_ext >&5
8004 eval "ac_cv_lib_$ac_lib_var=no"
8007 LIBS="$ac_save_LIBS"
8010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8011 echo "$ac_t""yes" 1>&6
8014 echo "$ac_t""no" 1>&6
8019 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8020 echo "configure:8021: checking for sys/wait.h that is POSIX.1 compatible" >&5
8021 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8022 echo $ac_n "(cached) $ac_c" 1>&6
8024 cat > conftest.$ac_ext <<EOF
8025 #line 8026 "configure"
8026 #include "confdefs.h"
8027 #include <sys/types.h>
8028 #include <sys/wait.h>
8030 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8033 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8038 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8041 if { (eval echo configure:8042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8043 ac_cv_header_sys_wait_h=yes
8045 echo "configure: failed program was:" >&5
8046 cat conftest.$ac_ext >&5
8048 ac_cv_header_sys_wait_h=no
8053 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8054 if test $ac_cv_header_sys_wait_h = yes; then
8055 cat >> confdefs.h <<\EOF
8056 #define HAVE_SYS_WAIT_H 1
8061 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8062 echo "configure:8063: checking POSIX termios" >&5
8063 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
8064 echo $ac_n "(cached) $ac_c" 1>&6
8066 cat > conftest.$ac_ext <<EOF
8067 #line 8068 "configure"
8068 #include "confdefs.h"
8069 #include <sys/types.h>
8071 #include <termios.h>
8073 /* SunOS 4.0.3 has termios.h but not the library calls. */
8077 if { (eval echo configure:8078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8079 am_cv_sys_posix_termios=yes
8081 echo "configure: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8084 am_cv_sys_posix_termios=no
8089 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8092 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8093 echo "configure:8094: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8094 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8097 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8099 gwinsz_in_termios_h=no
8100 if test $am_cv_sys_posix_termios = yes; then
8101 cat > conftest.$ac_ext <<EOF
8102 #line 8103 "configure"
8103 #include "confdefs.h"
8104 #include <sys/types.h>
8105 # include <termios.h>
8111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8112 egrep "yes" >/dev/null 2>&1; then
8114 gwinsz_in_termios_h=yes
8120 if test $gwinsz_in_termios_h = no; then
8121 cat > conftest.$ac_ext <<EOF
8122 #line 8123 "configure"
8123 #include "confdefs.h"
8124 #include <sys/types.h>
8125 # include <sys/ioctl.h>
8131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8132 egrep "yes" >/dev/null 2>&1; then
8134 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8142 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8143 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8144 cat >> confdefs.h <<\EOF
8145 #define GWINSZ_IN_SYS_IOCTL 1
8150 if test $am_cv_sys_posix_termios = yes ; then
8151 cat >> confdefs.h <<\EOF
8152 #define HAVE_POSIX_TERMIOS 1
8194 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8196 echo "configure:8197: checking for $ac_hdr" >&5
8197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8198 echo $ac_n "(cached) $ac_c" 1>&6
8200 cat > conftest.$ac_ext <<EOF
8201 #line 8202 "configure"
8202 #include "confdefs.h"
8205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8206 { (eval echo configure:8207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8208 if test -z "$ac_err"; then
8210 eval "ac_cv_header_$ac_safe=yes"
8213 echo "configure: failed program was:" >&5
8214 cat conftest.$ac_ext >&5
8216 eval "ac_cv_header_$ac_safe=no"
8220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8221 echo "$ac_t""yes" 1>&6
8222 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8223 cat >> confdefs.h <<EOF
8224 #define $ac_tr_hdr 1
8228 echo "$ac_t""no" 1>&6
8233 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
8234 echo "configure:8235: checking for uid_t in sys/types.h" >&5
8235 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8236 echo $ac_n "(cached) $ac_c" 1>&6
8238 cat > conftest.$ac_ext <<EOF
8239 #line 8240 "configure"
8240 #include "confdefs.h"
8241 #include <sys/types.h>
8243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8244 egrep "uid_t" >/dev/null 2>&1; then
8246 ac_cv_type_uid_t=yes
8255 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8256 if test $ac_cv_type_uid_t = no; then
8257 cat >> confdefs.h <<\EOF
8261 cat >> confdefs.h <<\EOF
8267 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
8268 echo "configure:8269: checking type of array argument to getgroups" >&5
8269 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
8270 echo $ac_n "(cached) $ac_c" 1>&6
8272 if test "$cross_compiling" = yes; then
8273 ac_cv_type_getgroups=cross
8275 cat > conftest.$ac_ext <<EOF
8276 #line 8277 "configure"
8277 #include "confdefs.h"
8279 /* Thanks to Mike Rendell for this test. */
8280 #include <sys/types.h>
8283 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8288 union { gid_t gval; long lval; } val;
8291 for (i = 0; i < NGID; i++)
8292 gidset[i] = val.gval;
8293 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8295 /* Exit non-zero if getgroups seems to require an array of ints. This
8296 happens when gid_t is short but getgroups modifies an array of ints. */
8297 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8301 if { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8303 ac_cv_type_getgroups=gid_t
8305 echo "configure: failed program was:" >&5
8306 cat conftest.$ac_ext >&5
8308 ac_cv_type_getgroups=int
8313 if test $ac_cv_type_getgroups = cross; then
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8320 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8322 ac_cv_type_getgroups=gid_t
8325 ac_cv_type_getgroups=int
8332 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
8333 cat >> confdefs.h <<EOF
8334 #define GETGROUPS_T $ac_cv_type_getgroups
8337 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8338 echo "configure:8339: checking for mode_t" >&5
8339 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8340 echo $ac_n "(cached) $ac_c" 1>&6
8342 cat > conftest.$ac_ext <<EOF
8343 #line 8344 "configure"
8344 #include "confdefs.h"
8345 #include <sys/types.h>
8351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8352 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8354 ac_cv_type_mode_t=yes
8357 ac_cv_type_mode_t=no
8362 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8363 if test $ac_cv_type_mode_t = no; then
8364 cat >> confdefs.h <<\EOF
8370 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8371 echo "configure:8372: checking for off_t" >&5
8372 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8373 echo $ac_n "(cached) $ac_c" 1>&6
8375 cat > conftest.$ac_ext <<EOF
8376 #line 8377 "configure"
8377 #include "confdefs.h"
8378 #include <sys/types.h>
8384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8385 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8387 ac_cv_type_off_t=yes
8395 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8396 if test $ac_cv_type_off_t = no; then
8397 cat >> confdefs.h <<\EOF
8403 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8404 echo "configure:8405: checking for pid_t" >&5
8405 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8406 echo $ac_n "(cached) $ac_c" 1>&6
8408 cat > conftest.$ac_ext <<EOF
8409 #line 8410 "configure"
8410 #include "confdefs.h"
8411 #include <sys/types.h>
8417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8418 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8420 ac_cv_type_pid_t=yes
8428 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8429 if test $ac_cv_type_pid_t = no; then
8430 cat >> confdefs.h <<\EOF
8436 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
8437 echo "configure:8438: checking for ptrdiff_t" >&5
8438 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
8439 echo $ac_n "(cached) $ac_c" 1>&6
8441 cat > conftest.$ac_ext <<EOF
8442 #line 8443 "configure"
8443 #include "confdefs.h"
8449 if { (eval echo configure:8450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8451 am_cv_type_ptrdiff_t=yes
8453 echo "configure: failed program was:" >&5
8454 cat conftest.$ac_ext >&5
8456 am_cv_type_ptrdiff_t=no
8461 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
8462 if test $am_cv_type_ptrdiff_t = yes; then
8463 cat >> confdefs.h <<\EOF
8464 #define HAVE_PTRDIFF_T 1
8469 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8470 echo "configure:8471: checking return type of signal handlers" >&5
8471 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8472 echo $ac_n "(cached) $ac_c" 1>&6
8474 cat > conftest.$ac_ext <<EOF
8475 #line 8476 "configure"
8476 #include "confdefs.h"
8477 #include <sys/types.h>
8483 extern "C" void (*signal (int, void (*)(int)))(int);
8485 void (*signal ()) ();
8492 if { (eval echo configure:8493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8494 ac_cv_type_signal=void
8496 echo "configure: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8499 ac_cv_type_signal=int
8504 echo "$ac_t""$ac_cv_type_signal" 1>&6
8505 cat >> confdefs.h <<EOF
8506 #define RETSIGTYPE $ac_cv_type_signal
8510 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
8511 echo "configure:8512: checking for sig_atomic_t" >&5
8512 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
8513 echo $ac_n "(cached) $ac_c" 1>&6
8515 cat > conftest.$ac_ext <<EOF
8516 #line 8517 "configure"
8517 #include "confdefs.h"
8520 sig_atomic_t atomic;
8523 if { (eval echo configure:8524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8525 ol_cv_type_sig_atomic_t=yes
8527 echo "configure: failed program was:" >&5
8528 cat conftest.$ac_ext >&5
8530 ol_cv_type_sig_atomic_t=no
8535 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
8536 if test $ol_cv_type_sig_atomic_t = no; then
8537 cat >> confdefs.h <<\EOF
8538 #define sig_atomic_t int
8543 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8544 echo "configure:8545: checking for size_t" >&5
8545 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8546 echo $ac_n "(cached) $ac_c" 1>&6
8548 cat > conftest.$ac_ext <<EOF
8549 #line 8550 "configure"
8550 #include "confdefs.h"
8551 #include <sys/types.h>
8557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8558 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8560 ac_cv_type_size_t=yes
8563 ac_cv_type_size_t=no
8568 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8569 if test $ac_cv_type_size_t = no; then
8570 cat >> confdefs.h <<\EOF
8571 #define size_t unsigned
8576 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
8577 echo "configure:8578: checking for st_blksize in struct stat" >&5
8578 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
8581 cat > conftest.$ac_ext <<EOF
8582 #line 8583 "configure"
8583 #include "confdefs.h"
8584 #include <sys/types.h>
8585 #include <sys/stat.h>
8587 struct stat s; s.st_blksize;
8590 if { (eval echo configure:8591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8592 ac_cv_struct_st_blksize=yes
8594 echo "configure: failed program was:" >&5
8595 cat conftest.$ac_ext >&5
8597 ac_cv_struct_st_blksize=no
8602 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
8603 if test $ac_cv_struct_st_blksize = yes; then
8604 cat >> confdefs.h <<\EOF
8605 #define HAVE_ST_BLKSIZE 1
8610 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8611 echo "configure:8612: checking whether time.h and sys/time.h may both be included" >&5
8612 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8613 echo $ac_n "(cached) $ac_c" 1>&6
8615 cat > conftest.$ac_ext <<EOF
8616 #line 8617 "configure"
8617 #include "confdefs.h"
8618 #include <sys/types.h>
8619 #include <sys/time.h>
8625 if { (eval echo configure:8626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8627 ac_cv_header_time=yes
8629 echo "configure: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8632 ac_cv_header_time=no
8637 echo "$ac_t""$ac_cv_header_time" 1>&6
8638 if test $ac_cv_header_time = yes; then
8639 cat >> confdefs.h <<\EOF
8640 #define TIME_WITH_SYS_TIME 1
8645 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
8646 echo "configure:8647: checking whether struct tm is in sys/time.h or time.h" >&5
8647 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
8648 echo $ac_n "(cached) $ac_c" 1>&6
8650 cat > conftest.$ac_ext <<EOF
8651 #line 8652 "configure"
8652 #include "confdefs.h"
8653 #include <sys/types.h>
8656 struct tm *tp; tp->tm_sec;
8659 if { (eval echo configure:8660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8661 ac_cv_struct_tm=time.h
8663 echo "configure: failed program was:" >&5
8664 cat conftest.$ac_ext >&5
8666 ac_cv_struct_tm=sys/time.h
8671 echo "$ac_t""$ac_cv_struct_tm" 1>&6
8672 if test $ac_cv_struct_tm = sys/time.h; then
8673 cat >> confdefs.h <<\EOF
8674 #define TM_IN_SYS_TIME 1
8681 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
8682 echo "configure:8683: checking if toupper() requires islower()" >&5
8683 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
8687 if test "$cross_compiling" = yes; then
8688 ol_cv_c_upper_lower=safe
8690 cat > conftest.$ac_ext <<EOF
8691 #line 8692 "configure"
8692 #include "confdefs.h"
8697 if ('C' == toupper('C'))
8703 if { (eval echo configure:8704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8705 ol_cv_c_upper_lower=no
8707 echo "configure: failed program was:" >&5
8708 cat conftest.$ac_ext >&5
8710 ol_cv_c_upper_lower=yes
8717 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
8718 if test $ol_cv_c_upper_lower != no ; then
8719 cat >> confdefs.h <<\EOF
8720 #define C_UPPER_LOWER 1
8725 echo $ac_n "checking for working const""... $ac_c" 1>&6
8726 echo "configure:8727: checking for working const" >&5
8727 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8728 echo $ac_n "(cached) $ac_c" 1>&6
8730 cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8736 /* Ultrix mips cc rejects this. */
8737 typedef int charset[2]; const charset x;
8738 /* SunOS 4.1.1 cc rejects this. */
8739 char const *const *ccp;
8741 /* NEC SVR4.0.2 mips cc rejects this. */
8742 struct point {int x, y;};
8743 static struct point const zero = {0,0};
8744 /* AIX XL C 1.02.0.0 rejects this.
8745 It does not let you subtract one const X* pointer from another in an arm
8746 of an if-expression whose if-part is not a constant expression */
8747 const char *g = "string";
8748 ccp = &g + (g ? g-g : 0);
8749 /* HPUX 7.0 cc rejects these. */
8752 ccp = (char const *const *) p;
8753 { /* SCO 3.2v4 cc rejects this. */
8755 char const *s = 0 ? (char *) 0 : (char const *) 0;
8759 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8761 const int *foo = &x[0];
8764 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8765 typedef const int *iptr;
8769 { /* AIX XL C 1.02.0.0 rejects this saying
8770 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8771 struct s { int j; const int *ap[3]; };
8772 struct s *b; b->j = 5;
8774 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8780 if { (eval echo configure:8781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8784 echo "configure: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8792 echo "$ac_t""$ac_cv_c_const" 1>&6
8793 if test $ac_cv_c_const = no; then
8794 cat >> confdefs.h <<\EOF
8800 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
8801 echo "configure:8802: checking if compiler understands volatile" >&5
8802 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
8803 echo $ac_n "(cached) $ac_c" 1>&6
8805 cat > conftest.$ac_ext <<EOF
8806 #line 8807 "configure"
8807 #include "confdefs.h"
8810 volatile int a; int * volatile b = x ? &y : &z;
8811 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
8815 if { (eval echo configure:8816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8817 ol_cv_c_volatile=yes
8819 echo "configure: failed program was:" >&5
8820 cat conftest.$ac_ext >&5
8827 echo "$ac_t""$ol_cv_c_volatile" 1>&6
8828 if test $ol_cv_c_volatile = yes; then
8831 cat >> confdefs.h <<\EOF
8838 if test $cross_compiling = yes ; then
8839 cat >> confdefs.h <<\EOF
8840 #define CROSS_COMPILING 1
8844 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8845 echo "configure:8846: checking whether byte ordering is bigendian" >&5
8846 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8847 echo $ac_n "(cached) $ac_c" 1>&6
8849 ac_cv_c_bigendian=unknown
8850 # See if sys/param.h defines the BYTE_ORDER macro.
8851 cat > conftest.$ac_ext <<EOF
8852 #line 8853 "configure"
8853 #include "confdefs.h"
8854 #include <sys/types.h>
8855 #include <sys/param.h>
8858 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8863 if { (eval echo configure:8864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8865 # It does; now see whether it defined to BIG_ENDIAN or not.
8866 cat > conftest.$ac_ext <<EOF
8867 #line 8868 "configure"
8868 #include "confdefs.h"
8869 #include <sys/types.h>
8870 #include <sys/param.h>
8873 #if BYTE_ORDER != BIG_ENDIAN
8878 if { (eval echo configure:8879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8880 ac_cv_c_bigendian=yes
8882 echo "configure: failed program was:" >&5
8883 cat conftest.$ac_ext >&5
8885 ac_cv_c_bigendian=no
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8893 if test $ac_cv_c_bigendian = unknown; then
8894 if test "$cross_compiling" = yes; then
8895 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8897 cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure"
8899 #include "confdefs.h"
8901 /* Are we little or big endian? From Harbison&Steele. */
8905 char c[sizeof (long)];
8908 exit (u.c[sizeof (long) - 1] == 1);
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_c_bigendian=no
8915 echo "configure: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8918 ac_cv_c_bigendian=yes
8926 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8927 if test $ac_cv_c_bigendian = yes; then
8928 cat >> confdefs.h <<\EOF
8929 #define WORDS_BIGENDIAN 1
8934 echo $ac_n "checking size of short""... $ac_c" 1>&6
8935 echo "configure:8936: checking size of short" >&5
8936 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8937 echo $ac_n "(cached) $ac_c" 1>&6
8939 if test "$cross_compiling" = yes; then
8940 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8942 cat > conftest.$ac_ext <<EOF
8943 #line 8944 "configure"
8944 #include "confdefs.h"
8948 FILE *f=fopen("conftestval", "w");
8950 fprintf(f, "%d\n", sizeof(short));
8954 if { (eval echo configure:8955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8956 ac_cv_sizeof_short=`cat conftestval`
8958 echo "configure: failed program was:" >&5
8959 cat conftest.$ac_ext >&5
8961 ac_cv_sizeof_short=0
8967 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8968 cat >> confdefs.h <<EOF
8969 #define SIZEOF_SHORT $ac_cv_sizeof_short
8973 echo $ac_n "checking size of int""... $ac_c" 1>&6
8974 echo "configure:8975: checking size of int" >&5
8975 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8976 echo $ac_n "(cached) $ac_c" 1>&6
8978 if test "$cross_compiling" = yes; then
8979 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8981 cat > conftest.$ac_ext <<EOF
8982 #line 8983 "configure"
8983 #include "confdefs.h"
8987 FILE *f=fopen("conftestval", "w");
8989 fprintf(f, "%d\n", sizeof(int));
8993 if { (eval echo configure:8994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8995 ac_cv_sizeof_int=`cat conftestval`
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
9006 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9007 cat >> confdefs.h <<EOF
9008 #define SIZEOF_INT $ac_cv_sizeof_int
9012 echo $ac_n "checking size of long""... $ac_c" 1>&6
9013 echo "configure:9014: checking size of long" >&5
9014 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9015 echo $ac_n "(cached) $ac_c" 1>&6
9017 if test "$cross_compiling" = yes; then
9018 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9020 cat > conftest.$ac_ext <<EOF
9021 #line 9022 "configure"
9022 #include "confdefs.h"
9026 FILE *f=fopen("conftestval", "w");
9028 fprintf(f, "%d\n", sizeof(long));
9032 if { (eval echo configure:9033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9034 ac_cv_sizeof_long=`cat conftestval`
9036 echo "configure: failed program was:" >&5
9037 cat conftest.$ac_ext >&5
9045 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9046 cat >> confdefs.h <<EOF
9047 #define SIZEOF_LONG $ac_cv_sizeof_long
9053 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
9054 echo "configure:9055: checking for 8-bit clean memcmp" >&5
9055 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
9056 echo $ac_n "(cached) $ac_c" 1>&6
9058 if test "$cross_compiling" = yes; then
9059 ac_cv_func_memcmp_clean=no
9061 cat > conftest.$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9067 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9068 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
9072 if { (eval echo configure:9073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9074 ac_cv_func_memcmp_clean=yes
9076 echo "configure: failed program was:" >&5
9077 cat conftest.$ac_ext >&5
9079 ac_cv_func_memcmp_clean=no
9086 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
9087 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
9089 echo $ac_n "checking for strftime""... $ac_c" 1>&6
9090 echo "configure:9091: checking for strftime" >&5
9091 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9094 cat > conftest.$ac_ext <<EOF
9095 #line 9096 "configure"
9096 #include "confdefs.h"
9097 /* System header to define __stub macros and hopefully few prototypes,
9098 which can conflict with char strftime(); below. */
9100 /* Override any gcc2 internal prototype to avoid an error. */
9101 /* We use char because int might match the return type of a gcc2
9102 builtin and then its argument prototype would still apply. */
9107 /* The GNU C library defines this for functions which it implements
9108 to always fail with ENOSYS. Some functions are actually named
9109 something starting with __ and the normal name is an alias. */
9110 #if defined (__stub_strftime) || defined (__stub___strftime)
9118 if { (eval echo configure:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9120 eval "ac_cv_func_strftime=yes"
9122 echo "configure: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9125 eval "ac_cv_func_strftime=no"
9130 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
9131 echo "$ac_t""yes" 1>&6
9132 cat >> confdefs.h <<\EOF
9133 #define HAVE_STRFTIME 1
9137 echo "$ac_t""no" 1>&6
9138 # strftime is in -lintl on SCO UNIX.
9139 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
9140 echo "configure:9141: checking for strftime in -lintl" >&5
9141 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
9142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9143 echo $ac_n "(cached) $ac_c" 1>&6
9145 ac_save_LIBS="$LIBS"
9147 cat > conftest.$ac_ext <<EOF
9148 #line 9149 "configure"
9149 #include "confdefs.h"
9150 /* Override any gcc2 internal prototype to avoid an error. */
9151 /* We use char because int might match the return type of a gcc2
9152 builtin and then its argument prototype would still apply. */
9159 if { (eval echo configure:9160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9161 eval "ac_cv_lib_$ac_lib_var=yes"
9163 echo "configure: failed program was:" >&5
9164 cat conftest.$ac_ext >&5
9166 eval "ac_cv_lib_$ac_lib_var=no"
9169 LIBS="$ac_save_LIBS"
9172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9173 echo "$ac_t""yes" 1>&6
9174 cat >> confdefs.h <<\EOF
9175 #define HAVE_STRFTIME 1
9180 echo "$ac_t""no" 1>&6
9185 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9186 echo "configure:9187: checking for vprintf" >&5
9187 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9188 echo $ac_n "(cached) $ac_c" 1>&6
9190 cat > conftest.$ac_ext <<EOF
9191 #line 9192 "configure"
9192 #include "confdefs.h"
9193 /* System header to define __stub macros and hopefully few prototypes,
9194 which can conflict with char vprintf(); below. */
9196 /* Override any gcc2 internal prototype to avoid an error. */
9197 /* We use char because int might match the return type of a gcc2
9198 builtin and then its argument prototype would still apply. */
9203 /* The GNU C library defines this for functions which it implements
9204 to always fail with ENOSYS. Some functions are actually named
9205 something starting with __ and the normal name is an alias. */
9206 #if defined (__stub_vprintf) || defined (__stub___vprintf)
9214 if { (eval echo configure:9215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9216 eval "ac_cv_func_vprintf=yes"
9218 echo "configure: failed program was:" >&5
9219 cat conftest.$ac_ext >&5
9221 eval "ac_cv_func_vprintf=no"
9226 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9227 echo "$ac_t""yes" 1>&6
9228 cat >> confdefs.h <<\EOF
9229 #define HAVE_VPRINTF 1
9233 echo "$ac_t""no" 1>&6
9236 if test "$ac_cv_func_vprintf" != yes; then
9237 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9238 echo "configure:9239: checking for _doprnt" >&5
9239 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9240 echo $ac_n "(cached) $ac_c" 1>&6
9242 cat > conftest.$ac_ext <<EOF
9243 #line 9244 "configure"
9244 #include "confdefs.h"
9245 /* System header to define __stub macros and hopefully few prototypes,
9246 which can conflict with char _doprnt(); below. */
9248 /* Override any gcc2 internal prototype to avoid an error. */
9249 /* We use char because int might match the return type of a gcc2
9250 builtin and then its argument prototype would still apply. */
9255 /* The GNU C library defines this for functions which it implements
9256 to always fail with ENOSYS. Some functions are actually named
9257 something starting with __ and the normal name is an alias. */
9258 #if defined (__stub__doprnt) || defined (__stub____doprnt)
9266 if { (eval echo configure:9267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9268 eval "ac_cv_func__doprnt=yes"
9270 echo "configure: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9273 eval "ac_cv_func__doprnt=no"
9278 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9279 echo "$ac_t""yes" 1>&6
9280 cat >> confdefs.h <<\EOF
9281 #define HAVE_DOPRNT 1
9285 echo "$ac_t""no" 1>&6
9291 if test $ac_cv_func_vprintf = yes ; then
9292 for ac_func in vsnprintf vsprintf
9294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9295 echo "configure:9296: checking for $ac_func" >&5
9296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9297 echo $ac_n "(cached) $ac_c" 1>&6
9299 cat > conftest.$ac_ext <<EOF
9300 #line 9301 "configure"
9301 #include "confdefs.h"
9302 /* System header to define __stub macros and hopefully few prototypes,
9303 which can conflict with char $ac_func(); below. */
9305 /* Override any gcc2 internal prototype to avoid an error. */
9306 /* We use char because int might match the return type of a gcc2
9307 builtin and then its argument prototype would still apply. */
9312 /* The GNU C library defines this for functions which it implements
9313 to always fail with ENOSYS. Some functions are actually named
9314 something starting with __ and the normal name is an alias. */
9315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9323 if { (eval echo configure:9324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9325 eval "ac_cv_func_$ac_func=yes"
9327 echo "configure: failed program was:" >&5
9328 cat conftest.$ac_ext >&5
9330 eval "ac_cv_func_$ac_func=no"
9335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9336 echo "$ac_t""yes" 1>&6
9337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9338 cat >> confdefs.h <<EOF
9339 #define $ac_tr_func 1
9343 echo "$ac_t""no" 1>&6
9380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9381 echo "configure:9382: checking for $ac_func" >&5
9382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9383 echo $ac_n "(cached) $ac_c" 1>&6
9385 cat > conftest.$ac_ext <<EOF
9386 #line 9387 "configure"
9387 #include "confdefs.h"
9388 /* System header to define __stub macros and hopefully few prototypes,
9389 which can conflict with char $ac_func(); below. */
9391 /* Override any gcc2 internal prototype to avoid an error. */
9392 /* We use char because int might match the return type of a gcc2
9393 builtin and then its argument prototype would still apply. */
9398 /* The GNU C library defines this for functions which it implements
9399 to always fail with ENOSYS. Some functions are actually named
9400 something starting with __ and the normal name is an alias. */
9401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9409 if { (eval echo configure:9410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9411 eval "ac_cv_func_$ac_func=yes"
9413 echo "configure: failed program was:" >&5
9414 cat conftest.$ac_ext >&5
9416 eval "ac_cv_func_$ac_func=no"
9421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9422 echo "$ac_t""yes" 1>&6
9423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9424 cat >> confdefs.h <<EOF
9425 #define $ac_tr_func 1
9429 echo "$ac_t""no" 1>&6
9434 # these functions are required to build a thread_safe -lldap
9441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9442 echo "configure:9443: checking for $ac_func" >&5
9443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9444 echo $ac_n "(cached) $ac_c" 1>&6
9446 cat > conftest.$ac_ext <<EOF
9447 #line 9448 "configure"
9448 #include "confdefs.h"
9449 /* System header to define __stub macros and hopefully few prototypes,
9450 which can conflict with char $ac_func(); below. */
9452 /* Override any gcc2 internal prototype to avoid an error. */
9453 /* We use char because int might match the return type of a gcc2
9454 builtin and then its argument prototype would still apply. */
9459 /* The GNU C library defines this for functions which it implements
9460 to always fail with ENOSYS. Some functions are actually named
9461 something starting with __ and the normal name is an alias. */
9462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9470 if { (eval echo configure:9471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9472 eval "ac_cv_func_$ac_func=yes"
9474 echo "configure: failed program was:" >&5
9475 cat conftest.$ac_ext >&5
9477 eval "ac_cv_func_$ac_func=no"
9482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9483 echo "$ac_t""yes" 1>&6
9484 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9485 cat >> confdefs.h <<EOF
9486 #define $ac_tr_func 1
9490 echo "$ac_t""no" 1>&6
9495 if test "$ac_cv_func_ctime_r" = yes ; then
9496 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
9497 echo "configure:9498: checking number of arguments of ctime_r" >&5
9498 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
9499 echo $ac_n "(cached) $ac_c" 1>&6
9501 cat > conftest.$ac_ext <<EOF
9502 #line 9503 "configure"
9503 #include "confdefs.h"
9506 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
9509 if { (eval echo configure:9510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9511 ol_cv_func_ctime_r_nargs=3
9513 echo "configure: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9516 ol_cv_func_ctime_r_nargs=0
9519 if test $ol_cv_func_ctime_r_nargs = 0 ; then
9520 cat > conftest.$ac_ext <<EOF
9521 #line 9522 "configure"
9522 #include "confdefs.h"
9525 time_t ti; char *buffer;
9526 ctime_r(&ti,buffer);
9529 if { (eval echo configure:9530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9531 ol_cv_func_ctime_r_nargs=2
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9536 ol_cv_func_ctime_r_nargs=0
9543 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
9544 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
9545 cat >> confdefs.h <<EOF
9546 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
9551 echo $ac_n "checking return type of ctime_r""... $ac_c" 1>&6
9552 echo "configure:9553: checking return type of ctime_r" >&5
9553 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_type'+set}'`\" = set"; then
9554 echo $ac_n "(cached) $ac_c" 1>&6
9556 cat > conftest.$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9564 if { (eval echo configure:9565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9566 ol_cv_func_ctime_r_type="int"
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9571 ol_cv_func_ctime_r_type="charp"
9577 echo "$ac_t""$ol_cv_func_ctime_r_type" 1>&6
9578 if test $ol_cv_func_ctime_r_type = "int" ; then
9579 cat >> confdefs.h <<EOF
9580 #define CTIME_R_RETURNS_INT 1
9586 ol_cv_func_ctime_r_nargs=0
9589 if test "$ac_cv_func_gethostbyname_r" = yes ; then
9590 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
9591 echo "configure:9592: checking number of arguments of gethostbyname_r" >&5
9592 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
9593 echo $ac_n "(cached) $ac_c" 1>&6
9595 cat > conftest.$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9598 #include <sys/types.h>
9599 #include <sys/socket.h>
9600 #include <netinet/in.h>
9602 #define BUFSIZE (sizeof(struct hostent)+10)
9604 struct hostent hent; char buffer[BUFSIZE];
9605 int bufsize=BUFSIZE;int h_errno;
9606 (void)gethostbyname_r( "segovia.cs.purdue.edu", &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_gethostbyname_r_nargs=5
9614 echo "configure: failed program was:" >&5
9615 cat conftest.$ac_ext >&5
9617 ol_cv_func_gethostbyname_r_nargs=0
9620 if test $ol_cv_func_gethostbyname_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;
9631 char buffer[BUFSIZE];
9632 int bufsize=BUFSIZE;int h_errno;
9633 (void)gethostbyname_r( "segovia.cs.purdue.edu", &hent, buffer, bufsize, &rhent, &h_errno);
9637 if { (eval echo configure:9638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9639 ol_cv_func_gethostbyname_r_nargs=6
9641 echo "configure: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9644 ol_cv_func_gethostbyname_r_nargs=0
9651 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
9652 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
9653 cat >> confdefs.h <<EOF
9654 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
9660 ol_cv_func_gethostbyname_r=0
9663 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
9664 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
9665 echo "configure:9666: checking number of arguments of gethostbyaddr_r" >&5
9666 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
9667 echo $ac_n "(cached) $ac_c" 1>&6
9669 cat > conftest.$ac_ext <<EOF
9670 #line 9671 "configure"
9671 #include "confdefs.h"
9672 #include <sys/types.h>
9673 #include <sys/socket.h>
9674 #include <netinet/in.h>
9676 #define BUFSIZE (sizeof(struct hostent)+10)
9678 struct hostent hent; char buffer[BUFSIZE];
9679 struct in_addr add={0x70707070};
9680 size_t alen=sizeof(struct in_addr);
9681 int bufsize=BUFSIZE;int h_errno;
9682 (void)gethostbyaddr_r( (void *)&(add.s_addr),
9683 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
9687 if { (eval echo configure:9688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9689 ol_cv_func_gethostbyaddr_r_nargs=7
9691 echo "configure: failed program was:" >&5
9692 cat conftest.$ac_ext >&5
9694 ol_cv_func_gethostbyaddr_r_nargs=0
9697 if test $ol_cv_func_gethostbyaddr_r_nargs = 0 ; then
9698 cat > conftest.$ac_ext <<EOF
9699 #line 9700 "configure"
9700 #include "confdefs.h"
9701 #include <sys/types.h>
9702 #include <sys/socket.h>
9703 #include <netinet/in.h>
9705 #define BUFSIZE (sizeof(struct hostent)+10)
9707 struct hostent hent; struct hostent *rhent; char buffer[BUFSIZE];
9708 struct in_addr add={0x70707070};
9709 size_t alen=sizeof(struct in_addr);
9710 int bufsize=BUFSIZE;int h_errno;
9711 (void)gethostbyaddr_r( (void *)&(add.s_addr),
9712 alen, AF_INET, &hent, buffer, bufsize,
9717 if { (eval echo configure:9718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9719 ol_cv_func_gethostbyaddr_r_nargs=8
9721 echo "configure: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9724 ol_cv_func_gethostbyaddr_r_nargs=0
9731 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
9732 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
9733 cat >> confdefs.h <<EOF
9734 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
9740 ol_cv_func_gethostbyaddr_r=0
9743 if test "$ac_cv_func_ctime_r" = yes \
9744 -a "$ol_cv_func_ctime_r_nargs" -ge 2 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
9745 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
9746 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
9747 -a "$ac_cv_func_gethostbyaddr_r" = yes \
9748 -a "$ac_cv_func_gethostbyname_r" = yes \
9751 cat >> confdefs.h <<\EOF
9752 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
9757 if test $ol_link_threads != no ; then
9758 cat >> confdefs.h <<\EOF
9759 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
9764 for ac_func in getopt tempnam
9766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9767 echo "configure:9768: checking for $ac_func" >&5
9768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9769 echo $ac_n "(cached) $ac_c" 1>&6
9771 cat > conftest.$ac_ext <<EOF
9772 #line 9773 "configure"
9773 #include "confdefs.h"
9774 /* System header to define __stub macros and hopefully few prototypes,
9775 which can conflict with char $ac_func(); below. */
9777 /* Override any gcc2 internal prototype to avoid an error. */
9778 /* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9784 /* The GNU C library defines this for functions which it implements
9785 to always fail with ENOSYS. Some functions are actually named
9786 something starting with __ and the normal name is an alias. */
9787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9795 if { (eval echo configure:9796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9797 eval "ac_cv_func_$ac_func=yes"
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9802 eval "ac_cv_func_$ac_func=no"
9807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9808 echo "$ac_t""yes" 1>&6
9809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9810 cat >> confdefs.h <<EOF
9811 #define $ac_tr_func 1
9815 echo "$ac_t""no" 1>&6
9816 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
9822 # Check Configuration
9824 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9825 echo "configure:9826: checking declaration of sys_errlist" >&5
9826 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
9827 echo $ac_n "(cached) $ac_c" 1>&6
9830 cat > conftest.$ac_ext <<EOF
9831 #line 9832 "configure"
9832 #include "confdefs.h"
9835 #include <sys/types.h>
9838 char *c = (char *) *sys_errlist
9841 if { (eval echo configure:9842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9843 ol_cv_dcl_sys_errlist=yes
9845 echo "configure: failed program was:" >&5
9846 cat conftest.$ac_ext >&5
9848 ol_cv_dcl_sys_errlist=no
9853 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9855 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9856 if test $ol_cv_dcl_sys_errlist = no ; then
9857 cat >> confdefs.h <<\EOF
9858 #define DECL_SYS_ERRLIST 1
9861 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9862 echo "configure:9863: checking existence of sys_errlist" >&5
9863 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
9864 echo $ac_n "(cached) $ac_c" 1>&6
9867 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure"
9869 #include "confdefs.h"
9872 char *c = (char *) *sys_errlist
9875 if { (eval echo configure:9876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9877 ol_cv_have_sys_errlist=yes
9879 echo "configure: failed program was:" >&5
9880 cat conftest.$ac_ext >&5
9882 ol_cv_have_sys_errlist=no
9887 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9892 if test "$ol_enable_debug" != no ; then
9893 cat >> confdefs.h <<\EOF
9894 #define LDAP_DEBUG 1
9898 if test "$ol_enable_syslog" = yes ; then
9899 cat >> confdefs.h <<\EOF
9900 #define LDAP_SYSLOG 1
9904 if test "$ol_enable_libui" = yes ; then
9905 cat >> confdefs.h <<\EOF
9906 #define LDAP_LIBUI 1
9910 if test "$ol_enable_cache" = no ; then
9911 cat >> confdefs.h <<\EOF
9912 #define LDAP_NOCACHE 1
9916 if test "$ol_enable_dns" != no ; then
9917 cat >> confdefs.h <<\EOF
9918 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
9922 if test "$ol_enable_proctitle" != no ; then
9923 cat >> confdefs.h <<\EOF
9924 #define LDAP_PROCTITLE 1
9928 if test "$ol_enable_referrals" != no ; then
9929 cat >> confdefs.h <<\EOF
9930 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
9934 if test "$ol_enable_cldap" != no ; then
9935 cat >> confdefs.h <<\EOF
9936 #define LDAP_CONNECTIONLESS 1
9941 if test "$ol_enable_aclgroups" != no ; then
9942 cat >> confdefs.h <<\EOF
9943 #define SLAPD_ACLGROUPS 1
9947 if test "$ol_enable_crypt" != no ; then
9948 cat >> confdefs.h <<\EOF
9949 #define SLAPD_CRYPT 1
9953 if test "$ol_enable_cleartext" != no ; then
9954 cat >> confdefs.h <<\EOF
9955 #define SLAPD_CLEARTEXT 1
9959 if test "$ol_enable_phonetic" != no ; then
9960 cat >> confdefs.h <<\EOF
9961 #define SLAPD_PHONETIC 1
9965 if test "$ol_enable_rlookups" != no ; then
9966 cat >> confdefs.h <<\EOF
9967 #define SLAPD_RLOOKUPS 1
9972 if test "$ol_link_bdb2" != no ; then
9973 cat >> confdefs.h <<\EOF
9974 #define SLAPD_BDB2 1
9981 if test "$ol_link_ldbm" != no ; then
9982 cat >> confdefs.h <<\EOF
9983 #define SLAPD_LDBM 1
9990 if test "$ol_enable_passwd" != no ; then
9991 cat >> confdefs.h <<\EOF
9992 #define SLAPD_PASSWD 1
9999 if test "$ol_enable_perl" != no ; then
10000 cat >> confdefs.h <<\EOF
10001 #define SLAPD_PERL 1
10008 if test "$ol_enable_shell" != no ; then
10009 cat >> confdefs.h <<\EOF
10010 #define SLAPD_SHELL 1
10017 if test "$ol_enable_tcl" != no ; then
10018 cat >> confdefs.h <<\EOF
10019 #define SLAPD_TCL 1
10026 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
10027 $BUILD_SLAPD = yes ; then
10031 if test "$ol_link_isode" != no ; then
10063 cat > confcache <<\EOF
10064 # This file is a shell script that caches the results of configure
10065 # tests run on this system so they can be shared between configure
10066 # scripts and configure runs. It is not useful on other systems.
10067 # If it contains results you don't want to keep, you may remove or edit it.
10069 # By default, configure uses ./config.cache as the cache file,
10070 # creating it if it does not exist already. You can give configure
10071 # the --cache-file=FILE option to use a different cache file; that is
10072 # what configure does when it calls configure scripts in
10073 # subdirectories, so they share the cache.
10074 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10075 # config.status only pays attention to the cache file if you give it the
10076 # --recheck option to rerun configure.
10079 # The following way of writing the cache mishandles newlines in values,
10080 # but we know of no workaround that is simple, portable, and efficient.
10081 # So, don't put newlines in cache variables' values.
10082 # Ultrix sh set writes to stderr and can't be redirected directly,
10083 # and sets the high bit in the cache file unless we assign to the vars.
10085 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10087 # `set' does not quote correctly, so add quotes (double-quote substitution
10088 # turns \\\\ into \\, and sed turns \\ into \).
10090 -e "s/'/'\\\\''/g" \
10091 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10094 # `set' quotes correctly as required by POSIX, so do not add quotes.
10095 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10098 if cmp -s $cache_file confcache; then
10101 if test -w $cache_file; then
10102 echo "updating cache $cache_file"
10103 cat confcache > $cache_file
10105 echo "not updating unwritable cache $cache_file"
10110 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10113 # Let make expand exec_prefix.
10114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10116 # Any assignment to VPATH causes Sun make to only execute
10117 # the first set of double-colon rules, so remove it if not needed.
10118 # If there is a colon in the path, we need to keep it.
10119 if test "x$srcdir" = x.; then
10120 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10123 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10125 DEFS=-DHAVE_CONFIG_H
10127 # Without the "./", some shells look in PATH for config.status.
10128 : ${CONFIG_STATUS=./config.status}
10130 echo creating $CONFIG_STATUS
10131 rm -f $CONFIG_STATUS
10132 cat > $CONFIG_STATUS <<EOF
10134 # Generated automatically by configure.
10135 # Run this file to recreate the current configuration.
10136 # This directory was configured as follows,
10137 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10139 # $0 $ac_configure_args
10141 # Compiler output produced by configure, useful for debugging
10142 # configure, is in ./config.log if it exists.
10144 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10147 case "\$ac_option" in
10148 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10149 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10150 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10151 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10152 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10154 -help | --help | --hel | --he | --h)
10155 echo "\$ac_cs_usage"; exit 0 ;;
10156 *) echo "\$ac_cs_usage"; exit 1 ;;
10160 ac_given_srcdir=$srcdir
10161 ac_given_INSTALL="$INSTALL"
10163 trap 'rm -fr `echo "\
10164 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10165 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10166 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10167 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10168 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10169 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10170 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10171 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10172 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10173 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10174 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10175 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10176 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10177 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10178 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10179 include/Makefile:build/top.mk:include/Makefile.in \
10180 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10181 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10182 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10183 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10184 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10185 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10186 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10187 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10188 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10189 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10190 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10191 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10192 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10193 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10194 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10195 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10196 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10197 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10198 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10199 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10200 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10201 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10202 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10204 cat >> $CONFIG_STATUS <<EOF
10206 # Protect against being on the right side of a sed subst in config.status.
10207 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10208 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10212 s%@CFLAGS@%$CFLAGS%g
10213 s%@CPPFLAGS@%$CPPFLAGS%g
10214 s%@CXXFLAGS@%$CXXFLAGS%g
10215 s%@FFLAGS@%$FFLAGS%g
10217 s%@LDFLAGS@%$LDFLAGS%g
10219 s%@exec_prefix@%$exec_prefix%g
10220 s%@prefix@%$prefix%g
10221 s%@program_transform_name@%$program_transform_name%g
10222 s%@bindir@%$bindir%g
10223 s%@sbindir@%$sbindir%g
10224 s%@libexecdir@%$libexecdir%g
10225 s%@datadir@%$datadir%g
10226 s%@sysconfdir@%$sysconfdir%g
10227 s%@sharedstatedir@%$sharedstatedir%g
10228 s%@localstatedir@%$localstatedir%g
10229 s%@libdir@%$libdir%g
10230 s%@includedir@%$includedir%g
10231 s%@oldincludedir@%$oldincludedir%g
10232 s%@infodir@%$infodir%g
10233 s%@mandir@%$mandir%g
10234 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10235 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10236 s%@INSTALL_DATA@%$INSTALL_DATA%g
10237 s%@PACKAGE@%$PACKAGE%g
10238 s%@VERSION@%$VERSION%g
10239 s%@ACLOCAL@%$ACLOCAL%g
10240 s%@AUTOCONF@%$AUTOCONF%g
10241 s%@AUTOMAKE@%$AUTOMAKE%g
10242 s%@AUTOHEADER@%$AUTOHEADER%g
10243 s%@MAKEINFO@%$MAKEINFO%g
10244 s%@SET_MAKE@%$SET_MAKE%g
10245 s%@top_builddir@%$top_builddir%g
10246 s%@ldap_subdir@%$ldap_subdir%g
10248 s%@host_alias@%$host_alias%g
10249 s%@host_cpu@%$host_cpu%g
10250 s%@host_vendor@%$host_vendor%g
10251 s%@host_os@%$host_os%g
10252 s%@RANLIB@%$RANLIB%g
10257 s%@LIBTOOL@%$LIBTOOL%g
10259 s%@SENDMAIL@%$SENDMAIL%g
10260 s%@EDITOR@%$EDITOR%g
10261 s%@FINGER@%$FINGER%g
10262 s%@PERLBIN@%$PERLBIN%g
10264 s%@EXEEXT@%$EXEEXT%g
10265 s%@OBJEXT@%$OBJEXT%g
10267 s%@LIBOBJS@%$LIBOBJS%g
10268 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
10269 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
10270 s%@BUILD_BDB2@%$BUILD_BDB2%g
10271 s%@BUILD_LDBM@%$BUILD_LDBM%g
10272 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
10273 s%@BUILD_PERL@%$BUILD_PERL%g
10274 s%@BUILD_SHELL@%$BUILD_SHELL%g
10275 s%@BUILD_TCL@%$BUILD_TCL%g
10276 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
10277 s%@LDAP_LIBS@%$LDAP_LIBS%g
10278 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
10279 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
10280 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
10281 s%@LDBM_LIBS@%$LDBM_LIBS%g
10282 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
10283 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
10284 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
10285 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
10286 s%@KRB_LIBS@%$KRB_LIBS%g
10287 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
10288 s%@TLS_LIBS@%$TLS_LIBS%g
10293 cat >> $CONFIG_STATUS <<\EOF
10295 # Split the substitutions into bite-sized pieces for seds with
10296 # small command number limits, like on Digital OSF/1 and HP-UX.
10297 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10298 ac_file=1 # Number of current file.
10299 ac_beg=1 # First line for current file.
10300 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10303 while $ac_more_lines; do
10304 if test $ac_beg -gt 1; then
10305 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10307 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10309 if test ! -s conftest.s$ac_file; then
10310 ac_more_lines=false
10311 rm -f conftest.s$ac_file
10313 if test -z "$ac_sed_cmds"; then
10314 ac_sed_cmds="sed -f conftest.s$ac_file"
10316 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10318 ac_file=`expr $ac_file + 1`
10320 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10323 if test -z "$ac_sed_cmds"; then
10328 cat >> $CONFIG_STATUS <<EOF
10330 CONFIG_FILES=\${CONFIG_FILES-"\
10331 Makefile:build/top.mk:Makefile.in:build/dir.mk \
10332 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
10333 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
10334 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
10335 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
10336 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
10337 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
10338 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
10339 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
10340 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
10341 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
10342 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
10343 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
10344 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
10345 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
10346 include/Makefile:build/top.mk:include/Makefile.in \
10347 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
10348 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
10349 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
10350 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
10351 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
10352 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
10353 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
10354 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
10355 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
10356 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
10357 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
10358 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
10359 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
10360 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
10361 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
10362 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
10363 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
10364 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
10365 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
10366 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
10367 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
10368 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
10371 cat >> $CONFIG_STATUS <<\EOF
10372 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10375 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10376 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10377 *) ac_file_in="${ac_file}.in" ;;
10380 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10382 # Remove last slash and all that follows it. Not all systems have dirname.
10383 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10384 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10385 # The file is in a subdirectory.
10386 test ! -d "$ac_dir" && mkdir "$ac_dir"
10387 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10388 # A "../" for each directory in $ac_dir_suffix.
10389 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10391 ac_dir_suffix= ac_dots=
10394 case "$ac_given_srcdir" in
10396 if test -z "$ac_dots"; then top_srcdir=.
10397 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10398 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10399 *) # Relative path.
10400 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10401 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10404 case "$ac_given_INSTALL" in
10405 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10406 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10409 echo creating "$ac_file"
10411 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10413 *Makefile*) ac_comsub="1i\\
10414 # $configure_input" ;;
10418 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10420 s%@configure_input@%$configure_input%g
10421 s%@srcdir@%$srcdir%g
10422 s%@top_srcdir@%$top_srcdir%g
10423 s%@INSTALL@%$INSTALL%g
10424 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10428 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10429 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10431 # ac_d sets the value in "#define NAME VALUE" lines.
10432 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10433 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10436 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10437 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10438 ac_uB='\([ ]\)%\1#\2define\3'
10441 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10442 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10443 ac_eB='$%\1#\2define\3'
10447 if test "${CONFIG_HEADERS+set}" != set; then
10449 cat >> $CONFIG_STATUS <<EOF
10450 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
10452 cat >> $CONFIG_STATUS <<\EOF
10454 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10457 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10458 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10459 *) ac_file_in="${ac_file}.in" ;;
10462 echo creating $ac_file
10464 rm -f conftest.frag conftest.in conftest.out
10465 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10466 cat $ac_file_inputs > conftest.in
10470 # Transform confdefs.h into a sed script conftest.vals that substitutes
10471 # the proper values into config.h.in to produce config.h. And first:
10472 # Protect against being on the right side of a sed subst in config.status.
10473 # Protect against being in an unquoted here document in config.status.
10474 rm -f conftest.vals
10475 cat > conftest.hdr <<\EOF
10478 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10482 sed -n -f conftest.hdr confdefs.h > conftest.vals
10485 # This sed command replaces #undef with comments. This is necessary, for
10486 # example, in the case of _POSIX_SOURCE, which is predefined and required
10487 # on some systems where configure will not decide to define it.
10488 cat >> conftest.vals <<\EOF
10489 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10492 # Break up conftest.vals because some shells have a limit on
10493 # the size of here documents, and old seds have small limits too.
10495 rm -f conftest.tail
10498 ac_lines=`grep -c . conftest.vals`
10499 # grep -c gives empty output for an empty file on some AIX systems.
10500 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10501 # Write a limited-size here document to conftest.frag.
10502 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10503 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10505 sed -f conftest.frag conftest.in > conftest.out
10507 mv conftest.out conftest.in
10508 ' >> $CONFIG_STATUS
10509 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10510 rm -f conftest.vals
10511 mv conftest.tail conftest.vals
10513 rm -f conftest.vals
10515 cat >> $CONFIG_STATUS <<\EOF
10516 rm -f conftest.frag conftest.h
10517 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10518 cat conftest.in >> conftest.h
10520 if cmp -s $ac_file conftest.h 2>/dev/null; then
10521 echo "$ac_file is unchanged"
10524 # Remove last slash and all that follows it. Not all systems have dirname.
10525 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10526 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10527 # The file is in a subdirectory.
10528 test ! -d "$ac_dir" && mkdir "$ac_dir"
10531 mv conftest.h $ac_file
10536 cat >> $CONFIG_STATUS <<EOF
10539 cat >> $CONFIG_STATUS <<\EOF
10542 echo Please \"make depend\" to build dependencies
10546 chmod +x $CONFIG_STATUS
10547 rm -fr confdefs* $ac_clean_files
10548 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1