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-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-kerberos with Kerberos support (auto)"
38 --with-readline with readline support (auto)"
40 --with-threads use threads (auto)"
42 --with-tls with TLS/SSL support (auto)"
44 --with-yielding-select with implicitly yielding select (auto)"
48 --enable-ldapd enable building ldapd (no)"
52 --enable-slapd enable building slapd (yes)"
54 --enable-aclgroups enable ACL group support (auto)"
56 --enable-cleartext enable cleartext passwords (yes)"
58 --enable-crypt enable crypt(3) passwords (auto)"
60 --enable-modules enable dynamic module support (no)"
62 --enable-phonetic enable phonetic/soundex (no)"
64 --enable-rlookups enable reverse lookups (auto)"
66 --enable-wrappers enable tcp wrapper support (no)"
68 --enable-bdb2 enable bdb2 backend (no)"
70 --enable-ldap enable ldap backend (no)"
72 --enable-ldbm enable ldbm backend (yes)"
74 --with-ldbm-api use LDBM API (auto)"
76 --with-ldbm-type use LDBM type (auto)"
78 --enable-passwd enable passwd backend (no)"
80 --enable-perl enable perl backend (no)"
82 --enable-shell enable shell backend (no)"
84 --enable-tcl enable tcl backend (no)"
88 --enable-slurpd enable building slurpd (auto)"
90 Library Generation & Linking Options"
92 --enable-static build static libraries [default=yes]
93 --enable-static=PKGS only build shared libraries if the current package
94 appears as an element in the PKGS list"
96 --enable-shared build shared libraries [default=yes]
97 --enable-shared=PKGS only build shared libraries if the current package
98 appears as an element in the PKGS list"
100 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
102 # Initialize some variables set by options.
103 # The variables have the same names as the options, with
104 # dashes changed to underlines.
106 cache_file=./config.cache
115 program_transform_name=s,x,x,
123 bindir='${exec_prefix}/bin'
124 sbindir='${exec_prefix}/sbin'
125 libexecdir='${exec_prefix}/libexec'
126 datadir='${prefix}/share'
127 sysconfdir='${prefix}/etc'
128 sharedstatedir='${prefix}/com'
129 localstatedir='${prefix}/var'
130 libdir='${exec_prefix}/lib'
131 includedir='${prefix}/include'
132 oldincludedir='/usr/include'
133 infodir='${prefix}/info'
134 mandir='${prefix}/man'
136 # Initialize some other variables.
139 SHELL=${CONFIG_SHELL-/bin/sh}
140 # Maximum number of lines to put in a shell here document.
147 # If the previous option needs an argument, assign it.
148 if test -n "$ac_prev"; then
149 eval "$ac_prev=\$ac_option"
155 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
159 # Accept the important Cygnus configure options, so we can diagnose typos.
163 -bindir | --bindir | --bindi | --bind | --bin | --bi)
165 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
166 bindir="$ac_optarg" ;;
168 -build | --build | --buil | --bui | --bu)
170 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
171 build="$ac_optarg" ;;
173 -cache-file | --cache-file | --cache-fil | --cache-fi \
174 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
175 ac_prev=cache_file ;;
176 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
177 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
178 cache_file="$ac_optarg" ;;
180 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
182 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
184 datadir="$ac_optarg" ;;
186 -disable-* | --disable-*)
187 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
188 # Reject names that are not valid shell variable names.
189 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
190 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}=no" ;;
195 -enable-* | --enable-*)
196 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
197 # Reject names that are not valid shell variable names.
198 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
199 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
206 eval "enable_${ac_feature}='$ac_optarg'" ;;
208 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
209 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
210 | --exec | --exe | --ex)
211 ac_prev=exec_prefix ;;
212 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
213 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
214 | --exec=* | --exe=* | --ex=*)
215 exec_prefix="$ac_optarg" ;;
217 -gas | --gas | --ga | --g)
218 # Obsolete; use --with-gas.
221 -help | --help | --hel | --he)
222 # Omit some internal or obsolete options to make the list less imposing.
223 # This message is too long to be a string in the A/UX 3.1 sh.
225 Usage: configure [options] [host]
226 Options: [defaults in brackets after descriptions]
228 --cache-file=FILE cache test results in FILE
229 --help print this message
230 --no-create do not create output files
231 --quiet, --silent do not print \`checking...' messages
232 --version print the version of autoconf that created configure
233 Directory and file names:
234 --prefix=PREFIX install architecture-independent files in PREFIX
236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
238 --bindir=DIR user executables in DIR [EPREFIX/bin]
239 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
240 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
241 --datadir=DIR read-only architecture-independent data in DIR
243 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
244 --sharedstatedir=DIR modifiable architecture-independent data in DIR
246 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
247 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
248 --includedir=DIR C header files in DIR [PREFIX/include]
249 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
250 --infodir=DIR info documentation in DIR [PREFIX/info]
251 --mandir=DIR man documentation in DIR [PREFIX/man]
252 --srcdir=DIR find the sources in DIR [configure dir or ..]
253 --program-prefix=PREFIX prepend PREFIX to installed program names
254 --program-suffix=SUFFIX append SUFFIX to installed program names
255 --program-transform-name=PROGRAM
256 run sed PROGRAM on installed program names
260 --build=BUILD configure for building on BUILD [BUILD=HOST]
261 --host=HOST configure for HOST [guessed]
262 --target=TARGET configure for TARGET [TARGET=HOST]
263 Features and packages:
264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
266 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
267 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
268 --x-includes=DIR X include files are in DIR
269 --x-libraries=DIR X library files are in DIR
271 if test -n "$ac_help"; then
272 echo "--enable and --with options recognized:$ac_help"
276 -host | --host | --hos | --ho)
278 -host=* | --host=* | --hos=* | --ho=*)
281 -includedir | --includedir | --includedi | --included | --include \
282 | --includ | --inclu | --incl | --inc)
283 ac_prev=includedir ;;
284 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
285 | --includ=* | --inclu=* | --incl=* | --inc=*)
286 includedir="$ac_optarg" ;;
288 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
291 infodir="$ac_optarg" ;;
293 -libdir | --libdir | --libdi | --libd)
295 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 libdir="$ac_optarg" ;;
298 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
299 | --libexe | --libex | --libe)
300 ac_prev=libexecdir ;;
301 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
302 | --libexe=* | --libex=* | --libe=*)
303 libexecdir="$ac_optarg" ;;
305 -localstatedir | --localstatedir | --localstatedi | --localstated \
306 | --localstate | --localstat | --localsta | --localst \
307 | --locals | --local | --loca | --loc | --lo)
308 ac_prev=localstatedir ;;
309 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
310 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
311 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
312 localstatedir="$ac_optarg" ;;
314 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
317 mandir="$ac_optarg" ;;
320 # Obsolete; use --without-fp.
323 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
327 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
328 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
331 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
332 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
333 | --oldin | --oldi | --old | --ol | --o)
334 ac_prev=oldincludedir ;;
335 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
336 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
337 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
338 oldincludedir="$ac_optarg" ;;
340 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 prefix="$ac_optarg" ;;
345 -program-prefix | --program-prefix | --program-prefi | --program-pref \
346 | --program-pre | --program-pr | --program-p)
347 ac_prev=program_prefix ;;
348 -program-prefix=* | --program-prefix=* | --program-prefi=* \
349 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
350 program_prefix="$ac_optarg" ;;
352 -program-suffix | --program-suffix | --program-suffi | --program-suff \
353 | --program-suf | --program-su | --program-s)
354 ac_prev=program_suffix ;;
355 -program-suffix=* | --program-suffix=* | --program-suffi=* \
356 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
357 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
367 -program-transform-name=* | --program-transform-name=* \
368 | --program-transform-nam=* | --program-transform-na=* \
369 | --program-transform-n=* | --program-transform-=* \
370 | --program-transform=* | --program-transfor=* \
371 | --program-transfo=* | --program-transf=* \
372 | --program-trans=* | --program-tran=* \
373 | --progr-tra=* | --program-tr=* | --program-t=*)
374 program_transform_name="$ac_optarg" ;;
376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
377 | -silent | --silent | --silen | --sile | --sil)
380 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 sbindir="$ac_optarg" ;;
386 -sharedstatedir | --sharedstatedir | --sharedstatedi \
387 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
388 | --sharedst | --shareds | --shared | --share | --shar \
390 ac_prev=sharedstatedir ;;
391 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
392 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
393 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 sharedstatedir="$ac_optarg" ;;
397 -site | --site | --sit)
399 -site=* | --site=* | --sit=*)
402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 srcdir="$ac_optarg" ;;
407 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
408 | --syscon | --sysco | --sysc | --sys | --sy)
409 ac_prev=sysconfdir ;;
410 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
411 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
412 sysconfdir="$ac_optarg" ;;
414 -target | --target | --targe | --targ | --tar | --ta | --t)
416 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
417 target="$ac_optarg" ;;
419 -v | -verbose | --verbose | --verbos | --verbo | --verb)
422 -version | --version | --versio | --versi | --vers)
423 echo "configure generated by autoconf version 2.13"
427 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
437 eval "with_${ac_package}='$ac_optarg'" ;;
439 -without-* | --without-*)
440 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}=no" ;;
449 # Obsolete; use --with-x.
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev=x_includes ;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
457 x_includes="$ac_optarg" ;;
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev=x_libraries ;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
464 x_libraries="$ac_optarg" ;;
466 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
470 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
471 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 if test "x$nonopt" != xNONE; then
474 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
482 if test -n "$ac_prev"; then
483 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488 # File descriptor usage:
491 # 2 errors and warnings
492 # 3 some systems may open it to /dev/tty
493 # 4 used on the Kubota Titan
494 # 6 checking for... messages and results
495 # 5 compiler messages saved in config.log
496 if test "$silent" = yes; then
504 This file contains any messages produced by compilers while
505 running configure, to aid debugging if configure makes a mistake.
508 # Strip out --no-create and --no-recursion so they do not pile up.
509 # Also quote any args containing shell metacharacters.
514 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
515 | --no-cr | --no-c) ;;
516 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
517 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
518 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
519 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
520 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
525 # Only set these to C if already set. These must not be set unconditionally
526 # because not all systems understand e.g. LANG=C (notably SCO).
527 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
528 # Non-C LC_CTYPE values break the ctype check.
529 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
530 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
531 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
532 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
535 rm -rf conftest* confdefs.h
536 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
539 # A filename unique to this package, relative to the directory that
540 # configure is in, which we can look for to find out if srcdir is correct.
541 ac_unique_file=build/version
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted=yes
546 # Try the directory containing this script, then its parent.
548 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
551 if test ! -r $srcdir/$ac_unique_file; then
555 ac_srcdir_defaulted=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
561 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
564 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566 # Prefer explicitly selected file to automatically selected ones.
567 if test -z "$CONFIG_SITE"; then
568 if test "x$prefix" != xNONE; then
569 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
571 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
574 for ac_site_file in $CONFIG_SITE; do
575 if test -r "$ac_site_file"; then
576 echo "loading site script $ac_site_file"
583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
584 ac_cpp='$CPP $CPPFLAGS'
585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
587 cross_compiling=$ac_cv_prog_cc_cross
591 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
592 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
593 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
600 ac_n= ac_c='\c' ac_t=
604 for ac_dir in build $srcdir/build; do
605 if test -f $ac_dir/install-sh; then
607 ac_install_sh="$ac_aux_dir/install-sh -c"
609 elif test -f $ac_dir/install.sh; then
611 ac_install_sh="$ac_aux_dir/install.sh -c"
615 if test -z "$ac_aux_dir"; then
616 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 OL_VERSION=`cat $ac_aux_dir/version`
623 if test -z "$OL_VERSION"; then
624 { echo "configure: error: could not determine version" 1>&2; exit 1; }
627 # Find a good install program. We prefer a C program (faster),
628 # so one script is as good as another. But avoid the broken or
629 # incompatible versions:
630 # SysV /etc/install, /usr/sbin/install
631 # SunOS /usr/etc/install
634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
637 # ./install, which can be erroneously created by make from ./install.sh.
638 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
639 echo "configure:640: checking for a BSD compatible install" >&5
640 if test -z "$INSTALL"; then
641 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
644 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
645 for ac_dir in $PATH; do
646 # Account for people who put trailing slashes in PATH elements.
648 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
650 # OSF1 and SCO ODT 3.0 have their own names for install.
651 # Don't use installbsd from OSF since it installs stuff as root
653 for ac_prog in ginstall scoinst install; do
654 if test -f $ac_dir/$ac_prog; then
655 if test $ac_prog = install &&
656 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
657 # AIX install. It has an incompatible calling convention.
660 ac_cv_path_install="$ac_dir/$ac_prog -c"
671 if test "${ac_cv_path_install+set}" = set; then
672 INSTALL="$ac_cv_path_install"
674 # As a last resort, use the slow shell script. We don't cache a
675 # path for INSTALL within a source directory, because that will
676 # break other packages using the cache if that directory is
677 # removed, or if the path is relative.
678 INSTALL="$ac_install_sh"
681 echo "$ac_t""$INSTALL" 1>&6
683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
684 # It thinks the first close brace ends the variable substitution.
685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
691 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
692 echo "configure:693: checking whether build environment is sane" >&5
695 echo timestamp > conftestfile
696 # Do `set' in a subshell so we don't clobber the current shell's
697 # arguments. Must try -L first in case configure is actually a
698 # symlink; some systems play weird games with the mod time of symlinks
699 # (eg FreeBSD returns the mod time of the symlink's containing
702 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
703 if test "$*" = "X"; then
705 set X `ls -t $srcdir/configure conftestfile`
707 if test "$*" != "X $srcdir/configure conftestfile" \
708 && test "$*" != "X conftestfile $srcdir/configure"; then
710 # If neither matched, then we have a broken ls. This can happen
711 # if, for instance, CONFIG_SHELL is bash and it inherits a
712 # broken ls alias from the environment. This has actually
713 # happened. Such a system could not be considered "sane".
714 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
715 alias in your environment" 1>&2; exit 1; }
718 test "$2" = conftestfile
724 { echo "configure: error: newly created file is older than distributed files!
725 Check your system clock" 1>&2; exit 1; }
728 echo "$ac_t""yes" 1>&6
729 if test "$program_transform_name" = s,x,x,; then
730 program_transform_name=
732 # Double any \ or $. echo might interpret backslashes.
733 cat <<\EOF_SED > conftestsed
734 s,\\,\\\\,g; s,\$,$$,g
736 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
739 test "$program_prefix" != NONE &&
740 program_transform_name="s,^,${program_prefix},; $program_transform_name"
741 # Use a double $ so make ignores it.
742 test "$program_suffix" != NONE &&
743 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
745 # sed with no file args requires a program.
746 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
748 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
749 echo "configure:750: checking whether ${MAKE-make} sets \${MAKE}" >&5
750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
751 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftestmake <<\EOF
756 @echo 'ac_maketemp="${MAKE}"'
758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
759 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
760 if test -n "$ac_maketemp"; then
761 eval ac_cv_prog_make_${ac_make}_set=yes
763 eval ac_cv_prog_make_${ac_make}_set=no
767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
768 echo "$ac_t""yes" 1>&6
771 echo "$ac_t""no" 1>&6
772 SET_MAKE="MAKE=${MAKE-make}"
780 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
781 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
786 missing_dir=`cd $ac_aux_dir && pwd`
787 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
788 echo "configure:789: checking for working aclocal" >&5
789 # Run test in a subshell; some versions of sh will print an error if
790 # an executable is not found, even if stderr is redirected.
791 # Redirect stdin to placate older versions of autoconf. Sigh.
792 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
794 echo "$ac_t""found" 1>&6
796 ACLOCAL="$missing_dir/missing aclocal"
797 echo "$ac_t""missing" 1>&6
800 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
801 echo "configure:802: checking for working autoconf" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
807 echo "$ac_t""found" 1>&6
809 AUTOCONF="$missing_dir/missing autoconf"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working automake""... $ac_c" 1>&6
814 echo "configure:815: checking for working automake" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (automake --version) < /dev/null > /dev/null 2>&1; then
820 echo "$ac_t""found" 1>&6
822 AUTOMAKE="$missing_dir/missing automake"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
827 echo "configure:828: checking for working autoheader" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
832 AUTOHEADER=autoheader
833 echo "$ac_t""found" 1>&6
835 AUTOHEADER="$missing_dir/missing autoheader"
836 echo "$ac_t""missing" 1>&6
839 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
840 echo "configure:841: checking for working makeinfo" >&5
841 # Run test in a subshell; some versions of sh will print an error if
842 # an executable is not found, even if stderr is redirected.
843 # Redirect stdin to placate older versions of autoconf. Sigh.
844 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
846 echo "$ac_t""found" 1>&6
848 MAKEINFO="$missing_dir/missing makeinfo"
849 echo "$ac_t""missing" 1>&6
854 cat >> confdefs.h <<EOF
855 #define OPENLDAP_PACKAGE "$PACKAGE"
858 cat >> confdefs.h <<EOF
859 #define OPENLDAP_VERSION "$VERSION"
865 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
866 echo "configure:867: checking configure arguments" >&5
871 cat >> confdefs.h <<\EOF
872 #define HAVE_MKVERSION 1
876 ldap_subdir="openldap"
878 # Check whether --with-subdir or --without-subdir was given.
879 if test "${with_subdir+set}" = set; then
880 withval="$with_subdir"
882 if test "$withval" = "no"; then
884 elif test "$withval" != "yes"; then
885 ldap_subdir="$withval"
891 # OpenLDAP --enable-debug
892 # Check whether --enable-debug or --disable-debug was given.
893 if test "${enable_debug+set}" = set; then
894 enableval="$enable_debug"
897 for ol_val in auto yes no ; do
898 if test "$enableval" = "$ol_val" ; then
902 if test "$ol_arg" = "invalid" ; then
903 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
905 ol_enable_debug="$ol_arg"
908 ol_enable_debug="yes"
911 # OpenLDAP --enable-syslog
912 # Check whether --enable-syslog or --disable-syslog was given.
913 if test "${enable_syslog+set}" = set; then
914 enableval="$enable_syslog"
917 for ol_val in auto yes no ; do
918 if test "$enableval" = "$ol_val" ; then
922 if test "$ol_arg" = "invalid" ; then
923 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
925 ol_enable_syslog="$ol_arg"
928 ol_enable_syslog="auto"
930 # end --enable-syslog
931 # OpenLDAP --enable-proctitle
932 # Check whether --enable-proctitle or --disable-proctitle was given.
933 if test "${enable_proctitle+set}" = set; then
934 enableval="$enable_proctitle"
937 for ol_val in auto yes no ; do
938 if test "$enableval" = "$ol_val" ; then
942 if test "$ol_arg" = "invalid" ; then
943 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
945 ol_enable_proctitle="$ol_arg"
948 ol_enable_proctitle="yes"
950 # end --enable-proctitle
951 # OpenLDAP --enable-cache
952 # Check whether --enable-cache or --disable-cache was given.
953 if test "${enable_cache+set}" = set; then
954 enableval="$enable_cache"
957 for ol_val in auto yes no ; do
958 if test "$enableval" = "$ol_val" ; then
962 if test "$ol_arg" = "invalid" ; then
963 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
965 ol_enable_cache="$ol_arg"
968 ol_enable_cache="yes"
971 # OpenLDAP --enable-dns
972 # Check whether --enable-dns or --disable-dns was given.
973 if test "${enable_dns+set}" = set; then
974 enableval="$enable_dns"
977 for ol_val in auto yes no ; do
978 if test "$enableval" = "$ol_val" ; then
982 if test "$ol_arg" = "invalid" ; then
983 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
985 ol_enable_dns="$ol_arg"
991 # OpenLDAP --enable-referrals
992 # Check whether --enable-referrals or --disable-referrals was given.
993 if test "${enable_referrals+set}" = set; then
994 enableval="$enable_referrals"
997 for ol_val in auto yes no ; do
998 if test "$enableval" = "$ol_val" ; then
1002 if test "$ol_arg" = "invalid" ; then
1003 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1005 ol_enable_referrals="$ol_arg"
1008 ol_enable_referrals="yes"
1010 # end --enable-referrals
1011 # OpenLDAP --enable-cldap
1012 # Check whether --enable-cldap or --disable-cldap was given.
1013 if test "${enable_cldap+set}" = set; then
1014 enableval="$enable_cldap"
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-cldap" 1>&2; exit 1; }
1025 ol_enable_cldap="$ol_arg"
1028 ol_enable_cldap="no"
1030 # end --enable-cldap
1031 # OpenLDAP --enable-x_compile
1032 # Check whether --enable-x_compile or --disable-x_compile was given.
1033 if test "${enable_x_compile+set}" = set; then
1034 enableval="$enable_x_compile"
1037 for ol_val in yes no ; do
1038 if test "$enableval" = "$ol_val" ; then
1042 if test "$ol_arg" = "invalid" ; then
1043 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1045 ol_enable_x_compile="$ol_arg"
1048 ol_enable_x_compile="no"
1050 # end --enable-x_compile
1052 # OpenLDAP --enable-dmalloc
1053 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1054 if test "${enable_dmalloc+set}" = set; then
1055 enableval="$enable_dmalloc"
1058 for ol_val in auto yes no ; do
1059 if test "$enableval" = "$ol_val" ; then
1063 if test "$ol_arg" = "invalid" ; then
1064 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1066 ol_enable_dmalloc="$ol_arg"
1069 ol_enable_dmalloc="no"
1071 # end --enable-dmalloc
1073 # OpenLDAP --with-kerberos
1074 # Check whether --with-kerberos or --without-kerberos was given.
1075 if test "${with_kerberos+set}" = set; then
1076 withval="$with_kerberos"
1079 for ol_val in auto k5 k4 afs yes no ; do
1080 if test "$withval" = "$ol_val" ; then
1084 if test "$ol_arg" = "invalid" ; then
1085 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1087 ol_with_kerberos="$ol_arg"
1090 ol_with_kerberos="auto"
1092 # end --with-kerberos
1094 # OpenLDAP --with-readline
1095 # Check whether --with-readline or --without-readline was given.
1096 if test "${with_readline+set}" = set; then
1097 withval="$with_readline"
1100 for ol_val in auto yes no ; do
1101 if test "$withval" = "$ol_val" ; then
1105 if test "$ol_arg" = "invalid" ; then
1106 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1108 ol_with_readline="$ol_arg"
1111 ol_with_readline="auto"
1113 # end --with-readline
1115 # OpenLDAP --with-threads
1116 # Check whether --with-threads or --without-threads was given.
1117 if test "${with_threads+set}" = set; then
1118 withval="$with_threads"
1121 for ol_val in auto posix mach lwp yes no manual ; do
1122 if test "$withval" = "$ol_val" ; then
1126 if test "$ol_arg" = "invalid" ; then
1127 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1129 ol_with_threads="$ol_arg"
1132 ol_with_threads="auto"
1134 # end --with-threads
1136 # OpenLDAP --with-tls
1137 # Check whether --with-tls or --without-tls was given.
1138 if test "${with_tls+set}" = set; then
1142 for ol_val in auto ssleay openssl yes no ; do
1143 if test "$withval" = "$ol_val" ; then
1147 if test "$ol_arg" = "invalid" ; then
1148 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1150 ol_with_tls="$ol_arg"
1157 # OpenLDAP --with-yielding_select
1158 # Check whether --with-yielding_select or --without-yielding_select was given.
1159 if test "${with_yielding_select+set}" = set; then
1160 withval="$with_yielding_select"
1163 for ol_val in auto yes no manual ; do
1164 if test "$withval" = "$ol_val" ; then
1168 if test "$ol_arg" = "invalid" ; then
1169 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1171 ol_with_yielding_select="$ol_arg"
1174 ol_with_yielding_select="auto"
1176 # end --with-yielding_select
1180 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1181 if test "${with_xxldapdoptions+set}" = set; then
1182 withval="$with_xxldapdoptions"
1186 # OpenLDAP --enable-ldapd
1187 # Check whether --enable-ldapd or --disable-ldapd was given.
1188 if test "${enable_ldapd+set}" = set; then
1189 enableval="$enable_ldapd"
1192 for ol_val in auto yes no ; do
1193 if test "$enableval" = "$ol_val" ; then
1197 if test "$ol_arg" = "invalid" ; then
1198 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1200 ol_enable_ldapd="$ol_arg"
1203 ol_enable_ldapd="no"
1205 # end --enable-ldapd
1207 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1208 if test "${with_xxslapdoptions+set}" = set; then
1209 withval="$with_xxslapdoptions"
1213 # OpenLDAP --enable-slapd
1214 # Check whether --enable-slapd or --disable-slapd was given.
1215 if test "${enable_slapd+set}" = set; then
1216 enableval="$enable_slapd"
1219 for ol_val in auto yes no ; do
1220 if test "$enableval" = "$ol_val" ; then
1224 if test "$ol_arg" = "invalid" ; then
1225 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1227 ol_enable_slapd="$ol_arg"
1230 ol_enable_slapd="yes"
1232 # end --enable-slapd
1233 # OpenLDAP --enable-aclgroups
1234 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1235 if test "${enable_aclgroups+set}" = set; then
1236 enableval="$enable_aclgroups"
1239 for ol_val in auto yes no ; do
1240 if test "$enableval" = "$ol_val" ; then
1244 if test "$ol_arg" = "invalid" ; then
1245 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1247 ol_enable_aclgroups="$ol_arg"
1250 ol_enable_aclgroups="auto"
1252 # end --enable-aclgroups
1253 # OpenLDAP --enable-cleartext
1254 # Check whether --enable-cleartext or --disable-cleartext was given.
1255 if test "${enable_cleartext+set}" = set; then
1256 enableval="$enable_cleartext"
1259 for ol_val in auto yes no ; do
1260 if test "$enableval" = "$ol_val" ; then
1264 if test "$ol_arg" = "invalid" ; then
1265 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1267 ol_enable_cleartext="$ol_arg"
1270 ol_enable_cleartext="yes"
1272 # end --enable-cleartext
1273 # OpenLDAP --enable-crypt
1274 # Check whether --enable-crypt or --disable-crypt was given.
1275 if test "${enable_crypt+set}" = set; then
1276 enableval="$enable_crypt"
1279 for ol_val in auto yes no ; do
1280 if test "$enableval" = "$ol_val" ; then
1284 if test "$ol_arg" = "invalid" ; then
1285 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1287 ol_enable_crypt="$ol_arg"
1290 ol_enable_crypt="auto"
1292 # end --enable-crypt
1293 # OpenLDAP --enable-modules
1294 # Check whether --enable-modules or --disable-modules was given.
1295 if test "${enable_modules+set}" = set; then
1296 enableval="$enable_modules"
1299 for ol_val in auto yes no ; do
1300 if test "$enableval" = "$ol_val" ; then
1304 if test "$ol_arg" = "invalid" ; then
1305 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1307 ol_enable_modules="$ol_arg"
1310 ol_enable_modules="no"
1312 # end --enable-modules
1313 # OpenLDAP --enable-phonetic
1314 # Check whether --enable-phonetic or --disable-phonetic was given.
1315 if test "${enable_phonetic+set}" = set; then
1316 enableval="$enable_phonetic"
1319 for ol_val in auto yes no ; do
1320 if test "$enableval" = "$ol_val" ; then
1324 if test "$ol_arg" = "invalid" ; then
1325 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1327 ol_enable_phonetic="$ol_arg"
1330 ol_enable_phonetic="no"
1332 # end --enable-phonetic
1333 # OpenLDAP --enable-rlookups
1334 # Check whether --enable-rlookups or --disable-rlookups was given.
1335 if test "${enable_rlookups+set}" = set; then
1336 enableval="$enable_rlookups"
1339 for ol_val in auto yes no ; do
1340 if test "$enableval" = "$ol_val" ; then
1344 if test "$ol_arg" = "invalid" ; then
1345 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1347 ol_enable_rlookups="$ol_arg"
1350 ol_enable_rlookups="auto"
1352 # end --enable-rlookups
1353 # OpenLDAP --enable-wrappers
1354 # Check whether --enable-wrappers or --disable-wrappers was given.
1355 if test "${enable_wrappers+set}" = set; then
1356 enableval="$enable_wrappers"
1359 for ol_val in auto yes no ; do
1360 if test "$enableval" = "$ol_val" ; then
1364 if test "$ol_arg" = "invalid" ; then
1365 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1367 ol_enable_wrappers="$ol_arg"
1370 ol_enable_wrappers="no"
1372 # end --enable-wrappers
1374 # OpenLDAP --enable-bdb2
1375 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1376 if test "${enable_bdb2+set}" = set; then
1377 enableval="$enable_bdb2"
1380 for ol_val in auto yes no ; do
1381 if test "$enableval" = "$ol_val" ; then
1385 if test "$ol_arg" = "invalid" ; then
1386 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1388 ol_enable_bdb2="$ol_arg"
1394 # OpenLDAP --enable-ldap
1395 # Check whether --enable-ldap or --disable-ldap was given.
1396 if test "${enable_ldap+set}" = set; then
1397 enableval="$enable_ldap"
1400 for ol_val in auto yes no ; do
1401 if test "$enableval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1408 ol_enable_ldap="$ol_arg"
1414 # OpenLDAP --enable-ldbm
1415 # Check whether --enable-ldbm or --disable-ldbm was given.
1416 if test "${enable_ldbm+set}" = set; then
1417 enableval="$enable_ldbm"
1420 for ol_val in auto yes no ; do
1421 if test "$enableval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1428 ol_enable_ldbm="$ol_arg"
1431 ol_enable_ldbm="yes"
1434 # OpenLDAP --with-ldbm_api
1435 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1436 if test "${with_ldbm_api+set}" = set; then
1437 withval="$with_ldbm_api"
1440 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1441 if test "$withval" = "$ol_val" ; then
1445 if test "$ol_arg" = "invalid" ; then
1446 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1448 ol_with_ldbm_api="$ol_arg"
1451 ol_with_ldbm_api="auto"
1453 # end --with-ldbm_api
1455 # OpenLDAP --with-ldbm_type
1456 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1457 if test "${with_ldbm_type+set}" = set; then
1458 withval="$with_ldbm_type"
1461 for ol_val in auto btree hash ; do
1462 if test "$withval" = "$ol_val" ; then
1466 if test "$ol_arg" = "invalid" ; then
1467 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1469 ol_with_ldbm_type="$ol_arg"
1472 ol_with_ldbm_type="auto"
1474 # end --with-ldbm_type
1477 # OpenLDAP --enable-passwd
1478 # Check whether --enable-passwd or --disable-passwd was given.
1479 if test "${enable_passwd+set}" = set; then
1480 enableval="$enable_passwd"
1483 for ol_val in auto yes no ; do
1484 if test "$enableval" = "$ol_val" ; then
1488 if test "$ol_arg" = "invalid" ; then
1489 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1491 ol_enable_passwd="$ol_arg"
1494 ol_enable_passwd="no"
1496 # end --enable-passwd
1497 # OpenLDAP --enable-perl
1498 # Check whether --enable-perl or --disable-perl was given.
1499 if test "${enable_perl+set}" = set; then
1500 enableval="$enable_perl"
1503 for ol_val in auto yes no ; do
1504 if test "$enableval" = "$ol_val" ; then
1508 if test "$ol_arg" = "invalid" ; then
1509 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1511 ol_enable_perl="$ol_arg"
1517 # OpenLDAP --enable-shell
1518 # Check whether --enable-shell or --disable-shell was given.
1519 if test "${enable_shell+set}" = set; then
1520 enableval="$enable_shell"
1523 for ol_val in auto yes no ; do
1524 if test "$enableval" = "$ol_val" ; then
1528 if test "$ol_arg" = "invalid" ; then
1529 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1531 ol_enable_shell="$ol_arg"
1534 ol_enable_shell="no"
1536 # end --enable-shell
1537 # OpenLDAP --enable-tcl
1538 # Check whether --enable-tcl or --disable-tcl was given.
1539 if test "${enable_tcl+set}" = set; then
1540 enableval="$enable_tcl"
1543 for ol_val in auto yes no ; do
1544 if test "$enableval" = "$ol_val" ; then
1548 if test "$ol_arg" = "invalid" ; then
1549 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1551 ol_enable_tcl="$ol_arg"
1558 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1559 if test "${with_xxslurpdoptions+set}" = set; then
1560 withval="$with_xxslurpdoptions"
1564 # OpenLDAP --enable-slurpd
1565 # Check whether --enable-slurpd or --disable-slurpd was given.
1566 if test "${enable_slurpd+set}" = set; then
1567 enableval="$enable_slurpd"
1570 for ol_val in auto yes no ; do
1571 if test "$enableval" = "$ol_val" ; then
1575 if test "$ol_arg" = "invalid" ; then
1576 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1578 ol_enable_slurpd="$ol_arg"
1581 ol_enable_slurpd="auto"
1583 # end --enable-slurpd
1585 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1586 if test "${with_xxliboptions+set}" = set; then
1587 withval="$with_xxliboptions"
1591 # Check whether --enable-static or --disable-static was given.
1592 if test "${enable_static+set}" = set; then
1593 enableval="$enable_static"
1594 p=${PACKAGE-default}
1595 case "$enableval" in
1596 yes) enable_static=yes ;;
1597 no) enable_static=no ;;
1600 # Look at the argument we got. We use all the common list separators.
1601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1602 for pkg in $enableval; do
1603 if test "X$pkg" = "X$p"; then
1614 # Check whether --enable-shared or --disable-shared was given.
1615 if test "${enable_shared+set}" = set; then
1616 enableval="$enable_shared"
1617 p=${PACKAGE-default}
1618 case "$enableval" in
1619 yes) enable_shared=yes ;;
1620 no) enable_shared=no ;;
1623 # Look at the argument we got. We use all the common list separators.
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1625 for pkg in $enableval; do
1626 if test "X$pkg" = "X$p"; then
1639 if test $ol_enable_dns = yes ; then
1640 if test $ol_enable_referrals = no ; then
1641 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1643 if test $ol_enable_referrals = auto ; then
1644 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1645 ol_enable_referrals=yes
1649 if test $ol_enable_slapd = no ; then
1650 if test $ol_enable_bdb2 = yes ; then
1651 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
1653 if test $ol_enable_ldap = yes ; then
1654 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
1656 if test $ol_enable_ldbm = yes ; then
1657 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
1659 if test $ol_enable_passwd = yes ; then
1660 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
1662 if test $ol_enable_perl = yes ; then
1663 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
1665 if test $ol_enable_shell = yes ; then
1666 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
1668 if test $ol_enable_tcl = yes ; then
1669 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
1671 if test $ol_enable_aclgroups = yes ; then
1672 echo "configure: warning: slapd disabled, ignoring --enable-aclgroups argument" 1>&2
1674 if test $ol_enable_modules = yes ; then
1675 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
1677 if test $ol_enable_wrappers = yes ; then
1678 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
1680 if test $ol_enable_phonetic = yes ; then
1681 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
1683 if test $ol_enable_rlookups = yes ; then
1684 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
1686 if test $ol_with_ldbm_api != auto ; then
1687 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
1689 if test $ol_with_ldbm_type != auto ; then
1690 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
1692 if test $ol_enable_slurpd = yes ; then
1693 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1696 # force settings to no
1705 ol_enable_aclgroups=no
1706 ol_enable_modules=no
1707 ol_enable_phonetic=no
1708 ol_enable_rlookups=no
1709 ol_enable_wrappers=no
1712 ol_with_ldbm_type=no
1716 elif test $ol_enable_ldbm = no ; then
1718 if test $ol_with_ldbm_api != auto ; then
1719 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
1722 if test $ol_with_ldbm_type != auto ; then
1723 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
1726 if test $ol_enable_bdb2 = yes ; then
1727 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1730 if test $ol_enable_modules != yes -a \
1731 $ol_enable_ldap = no -a \
1732 $ol_enable_passwd = no -a \
1733 $ol_enable_perl = no -a \
1734 $ol_enable_shell = no -a \
1735 $ol_enable_tcl = no ; then
1736 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1740 ol_with_ldbm_type=no
1742 elif test $ol_enable_bdb2 = yes ; then
1744 if test $ol_with_ldbm_api != auto -a \
1745 $ol_with_ldbm_api != db2 ; then
1746 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1749 ol_with_ldbm_api=db2
1753 if test $ol_enable_bdb2 != no ; then
1754 if test $ol_with_ldbm_api != auto -a \
1755 $ol_with_ldbm_api != db2 ; then
1756 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1761 if test $ol_with_ldbm_api = gdbm -a \
1762 $ol_with_ldbm_type = btree ; then
1763 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1765 if test $ol_with_ldbm_api = mdbm -a \
1766 $ol_with_ldbm_type = btree ; then
1767 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1769 if test $ol_with_ldbm_api = ndbm -a \
1770 $ol_with_ldbm_type = btree ; then
1771 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1775 if test $ol_enable_slurpd = yes ; then
1776 if test $ol_with_threads = no ; then
1777 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1781 echo "$ac_t""done" 1>&6
1806 SLAPD_MODULES_LDFLAGS=
1807 SLAPD_MODULES_CPPFLAGS=
1810 SLAPD_PERL_CPPFLAGS=
1822 # Make sure we can run config.sub.
1823 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1824 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1827 echo $ac_n "checking host system type""... $ac_c" 1>&6
1828 echo "configure:1829: checking host system type" >&5
1831 case "$host_alias" in
1835 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1836 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1838 *) host_alias=$nonopt ;;
1842 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1843 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1844 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1845 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1846 echo "$ac_t""$host" 1>&6
1848 # Extract the first word of "ranlib", so it can be a program name with args.
1849 set dummy ranlib; ac_word=$2
1850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1851 echo "configure:1852: checking for $ac_word" >&5
1852 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 if test -n "$RANLIB"; then
1856 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1858 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1860 for ac_dir in $ac_dummy; do
1861 test -z "$ac_dir" && ac_dir=.
1862 if test -f $ac_dir/$ac_word; then
1863 ac_cv_prog_RANLIB="ranlib"
1868 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1871 RANLIB="$ac_cv_prog_RANLIB"
1872 if test -n "$RANLIB"; then
1873 echo "$ac_t""$RANLIB" 1>&6
1875 echo "$ac_t""no" 1>&6
1878 # Extract the first word of "gcc", so it can be a program name with args.
1879 set dummy gcc; ac_word=$2
1880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_word" >&5
1882 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1890 for ac_dir in $ac_dummy; do
1891 test -z "$ac_dir" && ac_dir=.
1892 if test -f $ac_dir/$ac_word; then
1901 if test -n "$CC"; then
1902 echo "$ac_t""$CC" 1>&6
1904 echo "$ac_t""no" 1>&6
1907 if test -z "$CC"; then
1908 # Extract the first word of "cc", so it can be a program name with args.
1909 set dummy cc; ac_word=$2
1910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_word" >&5
1912 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1921 for ac_dir in $ac_dummy; do
1922 test -z "$ac_dir" && ac_dir=.
1923 if test -f $ac_dir/$ac_word; then
1924 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1925 ac_prog_rejected=yes
1933 if test $ac_prog_rejected = yes; then
1934 # We found a bogon in the path, so make sure we never use it.
1935 set dummy $ac_cv_prog_CC
1937 if test $# -gt 0; then
1938 # We chose a different compiler from the bogus one.
1939 # However, it has the same basename, so the bogon will be chosen
1940 # first if we set CC to just the basename; use the full file name.
1942 set dummy "$ac_dir/$ac_word" "$@"
1950 if test -n "$CC"; then
1951 echo "$ac_t""$CC" 1>&6
1953 echo "$ac_t""no" 1>&6
1956 if test -z "$CC"; then
1957 case "`uname -s`" in
1959 # Extract the first word of "cl", so it can be a program name with args.
1960 set dummy cl; ac_word=$2
1961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_word" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1971 for ac_dir in $ac_dummy; do
1972 test -z "$ac_dir" && ac_dir=.
1973 if test -f $ac_dir/$ac_word; then
1982 if test -n "$CC"; then
1983 echo "$ac_t""$CC" 1>&6
1985 echo "$ac_t""no" 1>&6
1990 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1994 echo "configure:1995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1997 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2000 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2001 cross_compiling=$ac_cv_prog_cc_cross
2003 cat > conftest.$ac_ext << EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2010 if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2011 ac_cv_prog_cc_works=yes
2012 # If we can't run a trivial program, we are probably using a cross compiler.
2013 if (./conftest; exit) 2>/dev/null; then
2014 ac_cv_prog_cc_cross=no
2016 ac_cv_prog_cc_cross=yes
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2021 ac_cv_prog_cc_works=no
2025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2026 ac_cpp='$CPP $CPPFLAGS'
2027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2029 cross_compiling=$ac_cv_prog_cc_cross
2031 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2032 if test $ac_cv_prog_cc_works = no; then
2033 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2035 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2036 echo "configure:2037: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2037 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2038 cross_compiling=$ac_cv_prog_cc_cross
2040 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2041 echo "configure:2042: checking whether we are using GNU C" >&5
2042 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.c <<EOF
2050 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2057 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2059 if test $ac_cv_prog_gcc = yes; then
2065 ac_test_CFLAGS="${CFLAGS+set}"
2066 ac_save_CFLAGS="$CFLAGS"
2068 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2069 echo "configure:2070: checking whether ${CC-cc} accepts -g" >&5
2070 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 echo 'void f(){}' > conftest.c
2074 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2083 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2084 if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS="$ac_save_CFLAGS"
2086 elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2093 if test "$GCC" = yes; then
2100 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2101 if test "${with_gnu_ld+set}" = set; then
2102 withval="$with_gnu_ld"
2103 test "$withval" = no || with_gnu_ld=yes
2110 if test "$ac_cv_prog_gcc" = yes; then
2111 # Check if gcc -print-prog-name=ld gives a path.
2112 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2113 echo "configure:2114: checking for ld used by GCC" >&5
2114 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2116 # Accept absolute paths.
2118 test -z "$LD" && LD="$ac_prog"
2121 # If it fails, then pretend we aren't using GCC.
2125 # If it is relative, then search for the first ld in PATH.
2129 elif test "$with_gnu_ld" = yes; then
2130 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2131 echo "configure:2132: checking for GNU ld" >&5
2133 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2134 echo "configure:2135: checking for non-GNU ld" >&5
2136 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2139 if test -z "$LD"; then
2140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2141 for ac_dir in $PATH; do
2142 test -z "$ac_dir" && ac_dir=.
2143 if test -f "$ac_dir/$ac_prog"; then
2144 ac_cv_path_LD="$ac_dir/$ac_prog"
2145 # Check to see if the program is GNU ld. I'd rather use --version,
2146 # but apparently some GNU ld's only accept -v.
2147 # Break only if it was the GNU/non-GNU ld that we prefer.
2148 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2149 test "$with_gnu_ld" != no && break
2151 test "$with_gnu_ld" != yes && break
2157 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2162 if test -n "$LD"; then
2163 echo "$ac_t""$LD" 1>&6
2165 echo "$ac_t""no" 1>&6
2167 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2169 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2170 echo "configure:2171: checking if the linker ($LD) is GNU ld" >&5
2171 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2174 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2175 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2176 ac_cv_prog_gnu_ld=yes
2178 ac_cv_prog_gnu_ld=no
2182 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2185 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2186 echo "configure:2187: checking for BSD-compatible nm" >&5
2187 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2192 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2196 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2197 test -z "$ac_dir" && ac_dir=.
2198 if test -f $ac_dir/nm; then
2199 # Check to see if the nm accepts a BSD-compat flag.
2200 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2201 # nm: unknown option "B" ignored
2202 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2203 ac_cv_path_NM="$ac_dir/nm -B"
2204 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2205 ac_cv_path_NM="$ac_dir/nm -p"
2207 ac_cv_path_NM="$ac_dir/nm"
2213 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2219 echo "$ac_t""$NM" 1>&6
2222 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2223 echo "configure:2224: checking whether ln -s works" >&5
2224 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2228 if ln -s X conftestdata 2>/dev/null
2231 ac_cv_prog_LN_S="ln -s"
2236 LN_S="$ac_cv_prog_LN_S"
2237 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2238 echo "$ac_t""yes" 1>&6
2240 echo "$ac_t""no" 1>&6
2243 # Always use our own libtool.
2244 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2246 # Check for any special flags to pass to ltconfig.
2248 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2249 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2250 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2251 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2252 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2254 # Some flags need to be propagated to the compiler or linker for good
2258 # Find out which ABI we are using.
2259 echo '#line 2260 "configure"' > conftest.$ac_ext
2260 if { (eval echo configure:2261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2261 case "`/usr/bin/file conftest.o`" in
2277 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2278 CFLAGS="$CFLAGS -belf"
2282 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2283 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2284 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2285 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2286 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2287 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2290 for ac_prog in mawk gawk nawk awk
2292 # Extract the first word of "$ac_prog", so it can be a program name with args.
2293 set dummy $ac_prog; ac_word=$2
2294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2295 echo "configure:2296: checking for $ac_word" >&5
2296 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 if test -n "$AWK"; then
2300 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2304 for ac_dir in $ac_dummy; do
2305 test -z "$ac_dir" && ac_dir=.
2306 if test -f $ac_dir/$ac_word; then
2307 ac_cv_prog_AWK="$ac_prog"
2314 AWK="$ac_cv_prog_AWK"
2315 if test -n "$AWK"; then
2316 echo "$ac_t""$AWK" 1>&6
2318 echo "$ac_t""no" 1>&6
2321 test -n "$AWK" && break
2324 # test for ln hardlink support
2325 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2326 echo "configure:2327: checking whether ln works" >&5
2327 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 rm -f conftest.src conftest.dst
2331 echo "conftest" > conftest.src
2332 if ln conftest.src conftest.dst 2>/dev/null
2334 ol_cv_prog_LN_H="ln"
2336 ol_cv_prog_LN_H="cp"
2338 rm -f conftest.src conftest.dst
2341 LN_H="$ol_cv_prog_LN_H"
2342 if test "$ol_cv_prog_LN_H" = "ln"; then
2343 echo "$ac_t""yes" 1>&6
2345 echo "$ac_t""no" 1>&6
2348 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2349 echo "configure:2350: checking whether ln -s works" >&5
2350 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2354 if ln -s X conftestdata 2>/dev/null
2357 ac_cv_prog_LN_S="ln -s"
2362 LN_S="$ac_cv_prog_LN_S"
2363 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2364 echo "$ac_t""yes" 1>&6
2366 echo "$ac_t""no" 1>&6
2370 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2374 # Extract the first word of "sendmail", so it can be a program name with args.
2375 set dummy sendmail; ac_word=$2
2376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2377 echo "configure:2378: checking for $ac_word" >&5
2378 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2383 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2386 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2390 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2391 for ac_dir in $ac_dummy; do
2392 test -z "$ac_dir" && ac_dir=.
2393 if test -f $ac_dir/$ac_word; then
2394 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2399 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2403 SENDMAIL="$ac_cv_path_SENDMAIL"
2404 if test -n "$SENDMAIL"; then
2405 echo "$ac_t""$SENDMAIL" 1>&6
2407 echo "$ac_t""no" 1>&6
2410 # Extract the first word of "vi", so it can be a program name with args.
2411 set dummy vi; ac_word=$2
2412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2413 echo "configure:2414: checking for $ac_word" >&5
2414 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2419 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2422 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2426 ac_dummy="$PATH:/usr/ucb"
2427 for ac_dir in $ac_dummy; do
2428 test -z "$ac_dir" && ac_dir=.
2429 if test -f $ac_dir/$ac_word; then
2430 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2435 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2439 EDITOR="$ac_cv_path_EDITOR"
2440 if test -n "$EDITOR"; then
2441 echo "$ac_t""$EDITOR" 1>&6
2443 echo "$ac_t""no" 1>&6
2446 # Extract the first word of "finger", so it can be a program name with args.
2447 set dummy finger; ac_word=$2
2448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2449 echo "configure:2450: checking for $ac_word" >&5
2450 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2455 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2458 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2462 ac_dummy="$PATH:/usr/ucb"
2463 for ac_dir in $ac_dummy; do
2464 test -z "$ac_dir" && ac_dir=.
2465 if test -f $ac_dir/$ac_word; then
2466 ac_cv_path_FINGER="$ac_dir/$ac_word"
2471 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2475 FINGER="$ac_cv_path_FINGER"
2476 if test -n "$FINGER"; then
2477 echo "$ac_t""$FINGER" 1>&6
2479 echo "$ac_t""no" 1>&6
2484 if test $ol_enable_modules != no ; then
2485 # Extract the first word of "glib-config", so it can be a program name with args.
2486 set dummy glib-config; ac_word=$2
2487 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2488 echo "configure:2489: checking for $ac_word" >&5
2489 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 case "$GLIBCONFIG" in
2494 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2497 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2502 for ac_dir in $ac_dummy; do
2503 test -z "$ac_dir" && ac_dir=.
2504 if test -f $ac_dir/$ac_word; then
2505 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2513 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2514 if test -n "$GLIBCONFIG"; then
2515 echo "$ac_t""$GLIBCONFIG" 1>&6
2517 echo "$ac_t""no" 1>&6
2521 if test "no$GLIBCONFIG" = "no" ; then
2522 if test $ol_enable_modules = yes ; then
2523 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2527 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2528 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2529 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2536 if test $ol_enable_perl != no ; then
2537 # Extract the first word of "perl", so it can be a program name with args.
2538 set dummy perl; ac_word=$2
2539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_word" >&5
2541 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2546 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2549 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2554 for ac_dir in $ac_dummy; do
2555 test -z "$ac_dir" && ac_dir=.
2556 if test -f $ac_dir/$ac_word; then
2557 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2562 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2566 PERLBIN="$ac_cv_path_PERLBIN"
2567 if test -n "$PERLBIN"; then
2568 echo "$ac_t""$PERLBIN" 1>&6
2570 echo "$ac_t""no" 1>&6
2574 if test "no$PERLBIN" = "no" ; then
2575 if test $ol_enable_perl = yes ; then
2576 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2580 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2581 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2587 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2588 echo "configure:2589: checking how to run the C preprocessor" >&5
2589 # On Suns, sometimes $CPP names a directory.
2590 if test -n "$CPP" && test -d "$CPP"; then
2593 if test -z "$CPP"; then
2594 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 # This must be in double quotes, not single quotes, because CPP may get
2598 # substituted into the Makefile and "${CC-cc}" will confuse make.
2600 # On the NeXT, cc -E runs the code through the compiler's parser,
2601 # not just through cpp.
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2609 { (eval echo configure:2610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2611 if test -z "$ac_err"; then
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2618 CPP="${CC-cc} -E -traditional-cpp"
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2626 { (eval echo configure:2627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2628 if test -z "$ac_err"; then
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2635 CPP="${CC-cc} -nologo -E"
2636 cat > conftest.$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2643 { (eval echo configure:2644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2645 if test -z "$ac_err"; then
2649 echo "configure: failed program was:" >&5
2650 cat conftest.$ac_ext >&5
2659 ac_cv_prog_CPP="$CPP"
2661 CPP="$ac_cv_prog_CPP"
2663 ac_cv_prog_CPP="$CPP"
2665 echo "$ac_t""$CPP" 1>&6
2668 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2669 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2671 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2672 echo "configure: warning: programs compiled here do run here..." 1>&2
2673 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2675 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2676 echo "configure: warning: programs compiled here do not run here..." 1>&2
2677 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2680 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2681 echo "configure:2682: checking for AIX" >&5
2682 cat > conftest.$ac_ext <<EOF
2683 #line 2684 "configure"
2684 #include "confdefs.h"
2690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2691 egrep "yes" >/dev/null 2>&1; then
2693 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2694 #define _ALL_SOURCE 1
2699 echo "$ac_t""no" 1>&6
2704 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2705 echo "configure:2706: checking for POSIXized ISC" >&5
2706 if test -d /etc/conf/kconfig.d &&
2707 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2709 echo "$ac_t""yes" 1>&6
2710 ISC=yes # If later tests want to check for ISC.
2711 cat >> confdefs.h <<\EOF
2712 #define _POSIX_SOURCE 1
2715 if test "$GCC" = yes; then
2721 echo "$ac_t""no" 1>&6
2725 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2726 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2727 echo "configure:2728: checking for minix/config.h" >&5
2728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2734 #include <minix/config.h>
2736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2737 { (eval echo configure:2738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2739 if test -z "$ac_err"; then
2741 eval "ac_cv_header_$ac_safe=yes"
2744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2747 eval "ac_cv_header_$ac_safe=no"
2751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2752 echo "$ac_t""yes" 1>&6
2755 echo "$ac_t""no" 1>&6
2759 if test "$MINIX" = yes; then
2760 cat >> confdefs.h <<\EOF
2761 #define _POSIX_SOURCE 1
2764 cat >> confdefs.h <<\EOF
2765 #define _POSIX_1_SOURCE 2
2768 cat >> confdefs.h <<\EOF
2775 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2776 echo "configure:2777: checking for be_app in -lbe" >&5
2777 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 ac_save_LIBS="$LIBS"
2782 LIBS="-lbe -lroot -lnet $LIBS"
2783 cat > conftest.$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2786 /* Override any gcc2 internal prototype to avoid an error. */
2787 /* We use char because int might match the return type of a gcc2
2788 builtin and then its argument prototype would still apply. */
2795 if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2797 eval "ac_cv_lib_$ac_lib_var=yes"
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2802 eval "ac_cv_lib_$ac_lib_var=no"
2805 LIBS="$ac_save_LIBS"
2808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2809 echo "$ac_t""yes" 1>&6
2810 LIBS="$LIBS -lbe -lroot -lnet"
2812 echo "$ac_t""no" 1>&6
2817 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2818 echo "configure:2819: checking for Cygwin environment" >&5
2819 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2829 #define __CYGWIN__ __CYGWIN32__
2834 if { (eval echo configure:2835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2838 echo "configure: failed program was:" >&5
2839 cat conftest.$ac_ext >&5
2847 echo "$ac_t""$ac_cv_cygwin" 1>&6
2849 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2850 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2851 echo "configure:2852: checking for mingw32 environment" >&5
2852 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 cat > conftest.$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2863 if { (eval echo configure:2864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2867 echo "configure: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2876 echo "$ac_t""$ac_cv_mingw32" 1>&6
2878 test "$ac_cv_mingw32" = yes && MINGW32=yes
2881 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2882 echo "configure:2883: checking for executable suffix" >&5
2883 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2890 echo 'int main () { return 0; }' > conftest.$ac_ext
2892 if { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2893 for file in conftest.*; do
2895 *.c | *.o | *.obj) ;;
2896 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2900 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2903 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2908 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2909 echo "$ac_t""${ac_cv_exeext}" 1>&6
2912 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2913 echo "configure:2914: checking for object suffix" >&5
2914 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2918 echo 'int i = 1;' > conftest.$ac_ext
2919 if { (eval echo configure:2920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2920 for ac_file in conftest.*; do
2923 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2927 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2932 echo "$ac_t""$ac_cv_objext" 1>&6
2933 OBJEXT=$ac_cv_objext
2934 ac_objext=$ac_cv_objext
2937 cat >> confdefs.h <<EOF
2938 #define EXEEXT "${EXEEXT}"
2945 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2946 echo "configure:2947: checking for ${CC-cc} option to accept ANSI C" >&5
2947 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 am_cv_prog_cc_stdc=no
2952 # Don't try gcc -ansi; that turns off useful extensions and
2953 # breaks some systems' header files.
2954 # AIX -qlanglvl=ansi
2955 # Ultrix and OSF/1 -std1
2956 # HP-UX -Aa -D_HPUX_SOURCE
2957 # SVR4 -Xc -D__EXTENSIONS__
2958 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2960 CC="$ac_save_CC $ac_arg"
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2966 #include <sys/types.h>
2967 #include <sys/stat.h>
2968 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2969 struct buf { int x; };
2970 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2971 static char *e (p, i)
2977 static char *f (char * (*g) (char **, int), char **p, ...)
2982 s = g (p, va_arg (v,int));
2986 int test (int i, double x);
2987 struct s1 {int (*f) (int a);};
2988 struct s2 {int (*f) (double a);};
2989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2995 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2999 if { (eval echo configure:3000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3001 am_cv_prog_cc_stdc="$ac_arg"; break
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3012 if test -z "$am_cv_prog_cc_stdc"; then
3013 echo "$ac_t""none needed" 1>&6
3015 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3017 case "x$am_cv_prog_cc_stdc" in
3019 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3022 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3023 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
3029 echo $ac_n "checking for socket""... $ac_c" 1>&6
3030 echo "configure:3031: checking for socket" >&5
3031 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 /* System header to define __stub macros and hopefully few prototypes,
3038 which can conflict with char socket(); below. */
3040 /* Override any gcc2 internal prototype to avoid an error. */
3041 /* We use char because int might match the return type of a gcc2
3042 builtin and then its argument prototype would still apply. */
3047 /* The GNU C library defines this for functions which it implements
3048 to always fail with ENOSYS. Some functions are actually named
3049 something starting with __ and the normal name is an alias. */
3050 #if defined (__stub_socket) || defined (__stub___socket)
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3060 eval "ac_cv_func_socket=yes"
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 eval "ac_cv_func_socket=no"
3070 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3071 echo "$ac_t""yes" 1>&6
3074 echo "$ac_t""no" 1>&6
3076 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3077 echo "configure:3078: checking for main in -lsocket" >&5
3078 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 ac_save_LIBS="$LIBS"
3083 LIBS="-lsocket $LIBS"
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3092 if { (eval echo configure:3093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3094 eval "ac_cv_lib_$ac_lib_var=yes"
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3099 eval "ac_cv_lib_$ac_lib_var=no"
3102 LIBS="$ac_save_LIBS"
3105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3106 echo "$ac_t""yes" 1>&6
3107 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3108 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3109 cat >> confdefs.h <<EOF
3110 #define $ac_tr_lib 1
3113 LIBS="-lsocket $LIBS"
3116 echo "$ac_t""no" 1>&6
3119 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3120 echo "configure:3121: checking for main in -lnet" >&5
3121 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 ac_save_LIBS="$LIBS"
3127 cat > conftest.$ac_ext <<EOF
3128 #line 3129 "configure"
3129 #include "confdefs.h"
3135 if { (eval echo configure:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3137 eval "ac_cv_lib_$ac_lib_var=yes"
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3142 eval "ac_cv_lib_$ac_lib_var=no"
3145 LIBS="$ac_save_LIBS"
3148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3149 echo "$ac_t""yes" 1>&6
3150 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3151 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3152 cat >> confdefs.h <<EOF
3153 #define $ac_tr_lib 1
3159 echo "$ac_t""no" 1>&6
3162 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3163 echo "configure:3164: checking for socket in -lnet" >&5
3164 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3168 ac_save_LIBS="$LIBS"
3170 cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3173 /* Override any gcc2 internal prototype to avoid an error. */
3174 /* We use char because int might match the return type of a gcc2
3175 builtin and then its argument prototype would still apply. */
3182 if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3184 eval "ac_cv_lib_$ac_lib_var=yes"
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3189 eval "ac_cv_lib_$ac_lib_var=no"
3192 LIBS="$ac_save_LIBS"
3195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3196 echo "$ac_t""yes" 1>&6
3197 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3198 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3199 cat >> confdefs.h <<EOF
3200 #define $ac_tr_lib 1
3206 echo "$ac_t""no" 1>&6
3209 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3210 echo "configure:3211: checking for main in -lnsl_s" >&5
3211 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3213 echo $ac_n "(cached) $ac_c" 1>&6
3215 ac_save_LIBS="$LIBS"
3216 LIBS="-lnsl_s $LIBS"
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3225 if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3227 eval "ac_cv_lib_$ac_lib_var=yes"
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 eval "ac_cv_lib_$ac_lib_var=no"
3235 LIBS="$ac_save_LIBS"
3238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3239 echo "$ac_t""yes" 1>&6
3240 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3241 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3242 cat >> confdefs.h <<EOF
3243 #define $ac_tr_lib 1
3246 LIBS="-lnsl_s $LIBS"
3249 echo "$ac_t""no" 1>&6
3252 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3253 echo "configure:3254: checking for main in -lnsl" >&5
3254 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 ac_save_LIBS="$LIBS"
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3268 if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3270 eval "ac_cv_lib_$ac_lib_var=yes"
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 eval "ac_cv_lib_$ac_lib_var=no"
3278 LIBS="$ac_save_LIBS"
3281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3282 echo "$ac_t""yes" 1>&6
3283 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3284 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3285 cat >> confdefs.h <<EOF
3286 #define $ac_tr_lib 1
3292 echo "$ac_t""no" 1>&6
3295 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3296 echo "configure:3297: checking for socket in -linet" >&5
3297 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 ac_save_LIBS="$LIBS"
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 /* Override any gcc2 internal prototype to avoid an error. */
3307 /* We use char because int might match the return type of a gcc2
3308 builtin and then its argument prototype would still apply. */
3315 if { (eval echo configure:3316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3317 eval "ac_cv_lib_$ac_lib_var=yes"
3319 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3322 eval "ac_cv_lib_$ac_lib_var=no"
3325 LIBS="$ac_save_LIBS"
3328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3329 echo "$ac_t""yes" 1>&6
3330 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3331 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3332 cat >> confdefs.h <<EOF
3333 #define $ac_tr_lib 1
3339 echo "$ac_t""no" 1>&6
3342 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3343 echo "configure:3344: checking for main in -lgen" >&5
3344 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 ac_save_LIBS="$LIBS"
3350 cat > conftest.$ac_ext <<EOF
3351 #line 3352 "configure"
3352 #include "confdefs.h"
3358 if { (eval echo configure:3359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3360 eval "ac_cv_lib_$ac_lib_var=yes"
3362 echo "configure: failed program was:" >&5
3363 cat conftest.$ac_ext >&5
3365 eval "ac_cv_lib_$ac_lib_var=no"
3368 LIBS="$ac_save_LIBS"
3371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3372 echo "$ac_t""yes" 1>&6
3373 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3374 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3375 cat >> confdefs.h <<EOF
3376 #define $ac_tr_lib 1
3382 echo "$ac_t""no" 1>&6
3389 for ac_func in res_search
3391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3392 echo "configure:3393: checking for $ac_func" >&5
3393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 cat > conftest.$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3399 /* System header to define __stub macros and hopefully few prototypes,
3400 which can conflict with char $ac_func(); below. */
3402 /* Override any gcc2 internal prototype to avoid an error. */
3403 /* We use char because int might match the return type of a gcc2
3404 builtin and then its argument prototype would still apply. */
3409 /* The GNU C library defines this for functions which it implements
3410 to always fail with ENOSYS. Some functions are actually named
3411 something starting with __ and the normal name is an alias. */
3412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3420 if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3422 eval "ac_cv_func_$ac_func=yes"
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3427 eval "ac_cv_func_$ac_func=no"
3432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3433 echo "$ac_t""yes" 1>&6
3434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3435 cat >> confdefs.h <<EOF
3436 #define $ac_tr_func 1
3440 echo "$ac_t""no" 1>&6
3444 if test $ac_cv_func_res_search = "no" ; then
3445 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3446 echo "configure:3447: checking for res_search in -lbind" >&5
3447 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3451 ac_save_LIBS="$LIBS"
3453 cat > conftest.$ac_ext <<EOF
3454 #line 3455 "configure"
3455 #include "confdefs.h"
3456 /* Override any gcc2 internal prototype to avoid an error. */
3457 /* We use char because int might match the return type of a gcc2
3458 builtin and then its argument prototype would still apply. */
3465 if { (eval echo configure:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3467 eval "ac_cv_lib_$ac_lib_var=yes"
3469 echo "configure: failed program was:" >&5
3470 cat conftest.$ac_ext >&5
3472 eval "ac_cv_lib_$ac_lib_var=no"
3475 LIBS="$ac_save_LIBS"
3478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3479 echo "$ac_t""yes" 1>&6
3480 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3481 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3482 cat >> confdefs.h <<EOF
3483 #define $ac_tr_lib 1
3489 echo "$ac_t""no" 1>&6
3492 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3493 cat >> confdefs.h <<\EOF
3494 #define HAVE_RES_SEARCH 1
3498 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3499 echo "configure:3500: checking for res_search in -lresolv" >&5
3500 ac_lib_var=`echo resolv'_'res_search | 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"
3505 LIBS="-lresolv $LIBS"
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 /* Override any gcc2 internal prototype to avoid an error. */
3510 /* We use char because int might match the return type of a gcc2
3511 builtin and then its argument prototype would still apply. */
3518 if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3520 eval "ac_cv_lib_$ac_lib_var=yes"
3522 echo "configure: failed program was:" >&5
3523 cat conftest.$ac_ext >&5
3525 eval "ac_cv_lib_$ac_lib_var=no"
3528 LIBS="$ac_save_LIBS"
3531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3532 echo "$ac_t""yes" 1>&6
3533 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3534 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3535 cat >> confdefs.h <<EOF
3536 #define $ac_tr_lib 1
3539 LIBS="-lresolv $LIBS"
3542 echo "$ac_t""no" 1>&6
3545 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3546 cat >> confdefs.h <<\EOF
3547 #define HAVE_RES_SEARCH 1
3554 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3555 echo "configure:3556: checking for sigset in -lV3" >&5
3556 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 ac_save_LIBS="$LIBS"
3562 cat > conftest.$ac_ext <<EOF
3563 #line 3564 "configure"
3564 #include "confdefs.h"
3565 /* Override any gcc2 internal prototype to avoid an error. */
3566 /* We use char because int might match the return type of a gcc2
3567 builtin and then its argument prototype would still apply. */
3574 if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3576 eval "ac_cv_lib_$ac_lib_var=yes"
3578 echo "configure: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3581 eval "ac_cv_lib_$ac_lib_var=no"
3584 LIBS="$ac_save_LIBS"
3587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3588 echo "$ac_t""yes" 1>&6
3589 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3590 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3591 cat >> confdefs.h <<EOF
3592 #define $ac_tr_lib 1
3598 echo "$ac_t""no" 1>&6
3602 echo $ac_n "checking for select""... $ac_c" 1>&6
3603 echo "configure:3604: checking for select" >&5
3604 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3610 /* System header to define __stub macros and hopefully few prototypes,
3611 which can conflict with char select(); below. */
3613 /* Override any gcc2 internal prototype to avoid an error. */
3614 /* We use char because int might match the return type of a gcc2
3615 builtin and then its argument prototype would still apply. */
3620 /* The GNU C library defines this for functions which it implements
3621 to always fail with ENOSYS. Some functions are actually named
3622 something starting with __ and the normal name is an alias. */
3623 #if defined (__stub_select) || defined (__stub___select)
3631 if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3633 eval "ac_cv_func_select=yes"
3635 echo "configure: failed program was:" >&5
3636 cat conftest.$ac_ext >&5
3638 eval "ac_cv_func_select=no"
3643 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3644 echo "$ac_t""yes" 1>&6
3647 echo "$ac_t""no" 1>&6
3648 { echo "configure: error: select() required." 1>&2; exit 1; }
3652 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
3653 echo "configure:3654: checking types of arguments for select()" >&5
3654 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
3658 echo $ac_n "(cached) $ac_c" 1>&6
3660 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
3664 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3665 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
3666 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3669 #ifdef HAVE_SYS_TYPES_H
3670 #include <sys/types.h>
3672 #ifdef HAVE_SYS_TIME_H
3673 #include <sys/time.h>
3675 #ifdef HAVE_SYS_SELECT_H
3676 #include <sys/select.h>
3678 #ifdef HAVE_SYS_SOCKET_H
3679 #include <sys/socket.h>
3681 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
3686 if { (eval echo configure:3687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3688 ac_not_found=no ; break 3
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3705 if test "$ac_not_found" = yes; then
3706 ac_cv_func_select_arg1=int
3707 ac_cv_func_select_arg234='int *'
3708 ac_cv_func_select_arg5='struct timeval *'
3710 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
3711 cat >> confdefs.h <<EOF
3712 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
3715 cat >> confdefs.h <<EOF
3716 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
3719 cat >> confdefs.h <<EOF
3720 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
3727 if test $ol_enable_ldapd != no ; then
3728 echo "configure: warning: ldapd support deprecated. Manual intervention required." 1>&2
3730 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3731 echo "configure:3732: checking for main in -lxtpp" >&5
3732 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3733 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3734 echo $ac_n "(cached) $ac_c" 1>&6
3736 ac_save_LIBS="$LIBS"
3737 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3738 cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure"
3740 #include "confdefs.h"
3746 if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3748 eval "ac_cv_lib_$ac_lib_var=yes"
3750 echo "configure: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3753 eval "ac_cv_lib_$ac_lib_var=no"
3756 LIBS="$ac_save_LIBS"
3759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3760 echo "$ac_t""yes" 1>&6
3763 cat >> confdefs.h <<\EOF
3767 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3770 echo "$ac_t""no" 1>&6
3774 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3775 echo "configure:3776: checking for main in -ldsap" >&5
3776 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 ac_save_LIBS="$LIBS"
3781 LIBS="-ldsap -lisode $LIBS"
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3790 if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3792 eval "ac_cv_lib_$ac_lib_var=yes"
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3797 eval "ac_cv_lib_$ac_lib_var=no"
3800 LIBS="$ac_save_LIBS"
3803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3804 echo "$ac_t""yes" 1>&6
3807 cat >> confdefs.h <<\EOF
3811 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3814 echo "$ac_t""no" 1>&6
3818 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3819 echo "configure:3820: checking for main in -lisode" >&5
3820 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3824 ac_save_LIBS="$LIBS"
3825 LIBS="-lisode $LIBS"
3826 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3834 if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3836 eval "ac_cv_lib_$ac_lib_var=yes"
3838 echo "configure: failed program was:" >&5
3839 cat conftest.$ac_ext >&5
3841 eval "ac_cv_lib_$ac_lib_var=no"
3844 LIBS="$ac_save_LIBS"
3847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3848 echo "$ac_t""yes" 1>&6
3851 cat >> confdefs.h <<\EOF
3852 #define HAVE_ISODE 1
3855 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3858 echo "$ac_t""no" 1>&6
3864 if test $ol_link_isode != no; then
3865 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3866 echo "configure:3867: checking for main in -lpp" >&5
3867 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 ac_save_LIBS="$LIBS"
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3883 eval "ac_cv_lib_$ac_lib_var=yes"
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3888 eval "ac_cv_lib_$ac_lib_var=no"
3891 LIBS="$ac_save_LIBS"
3894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3895 echo "$ac_t""yes" 1>&6
3897 cat >> confdefs.h <<\EOF
3901 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3904 echo "$ac_t""no" 1>&6
3909 # Extract the first word of "pepsy", so it can be a program name with args.
3910 set dummy pepsy; ac_word=$2
3911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3912 echo "configure:3913: checking for $ac_word" >&5
3913 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3918 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3921 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3926 for ac_dir in $ac_dummy; do
3927 test -z "$ac_dir" && ac_dir=.
3928 if test -f $ac_dir/$ac_word; then
3929 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3937 PEPSY="$ac_cv_path_PEPSY"
3938 if test -n "$PEPSY"; then
3939 echo "$ac_t""$PEPSY" 1>&6
3941 echo "$ac_t""no" 1>&6
3948 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3949 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3951 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3953 echo "configure:3954: checking for $ac_hdr" >&5
3954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 cat > conftest.$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3963 { (eval echo configure:3964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3965 if test -z "$ac_err"; then
3967 eval "ac_cv_header_$ac_safe=yes"
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3973 eval "ac_cv_header_$ac_safe=no"
3977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3978 echo "$ac_t""yes" 1>&6
3979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3980 cat >> confdefs.h <<EOF
3981 #define $ac_tr_hdr 1
3985 echo "$ac_t""no" 1>&6
3990 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3991 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3992 echo "configure:3993: checking for main in -lkrb4" >&5
3993 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3997 ac_save_LIBS="$LIBS"
3998 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4007 if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4009 eval "ac_cv_lib_$ac_lib_var=yes"
4011 echo "configure: failed program was:" >&5
4012 cat conftest.$ac_ext >&5
4014 eval "ac_cv_lib_$ac_lib_var=no"
4017 LIBS="$ac_save_LIBS"
4020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4021 echo "$ac_t""yes" 1>&6
4024 echo "$ac_t""no" 1>&6
4029 if test $have_k5 = yes ; then
4030 ol_with_kerberos=found
4031 ol_link_kerberos=yes
4033 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4035 LIBS="$KRB_LIBS $LIBS"
4037 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4038 echo "configure:4039: checking for des_debug in Kerberos libraries" >&5
4039 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4044 LIBS="$KRB_LIBS $LIBS"
4045 cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4049 #include <kerberosIV/krb.h>
4050 #include <kerberosIV/des.h>
4051 extern int des_debug;
4059 if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4061 ol_cv_var_des_debug=yes
4063 echo "configure: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4066 ol_cv_var_des_debug=no
4073 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4075 if test $ol_cv_var_des_debug = yes ; then
4076 cat >> confdefs.h <<\EOF
4077 #define HAVE_DES_DEBUG 1
4087 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4088 for ac_hdr in krb.h des.h
4090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4092 echo "configure:4093: checking for $ac_hdr" >&5
4093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4094 echo $ac_n "(cached) $ac_c" 1>&6
4096 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4102 { (eval echo configure:4103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4104 if test -z "$ac_err"; then
4106 eval "ac_cv_header_$ac_safe=yes"
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4112 eval "ac_cv_header_$ac_safe=no"
4116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4117 echo "$ac_t""yes" 1>&6
4118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4119 cat >> confdefs.h <<EOF
4120 #define $ac_tr_hdr 1
4124 echo "$ac_t""no" 1>&6
4129 if test $ac_cv_header_krb_h = yes ; then
4130 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4131 echo "configure:4132: checking for main in -lkrb" >&5
4132 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4136 ac_save_LIBS="$LIBS"
4137 LIBS="-lkrb -ldes $LIBS"
4138 cat > conftest.$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4146 if { (eval echo configure:4147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4148 eval "ac_cv_lib_$ac_lib_var=yes"
4150 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4153 eval "ac_cv_lib_$ac_lib_var=no"
4156 LIBS="$ac_save_LIBS"
4159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4160 echo "$ac_t""yes" 1>&6
4163 echo "$ac_t""no" 1>&6
4168 if test $have_k4 = yes ; then
4169 ol_with_kerberos=found
4170 ol_link_kerberos=yes
4172 KRB_LIBS="-lkrb -ldes"
4177 if test $ol_link_kerberos = yes ; then
4178 cat >> confdefs.h <<\EOF
4179 #define HAVE_KERBEROS 1
4185 if test $ol_with_tls != no ; then
4189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4191 echo "configure:4192: checking for $ac_hdr" >&5
4192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4193 echo $ac_n "(cached) $ac_c" 1>&6
4195 cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4201 { (eval echo configure:4202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4203 if test -z "$ac_err"; then
4205 eval "ac_cv_header_$ac_safe=yes"
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 eval "ac_cv_header_$ac_safe=no"
4215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4216 echo "$ac_t""yes" 1>&6
4217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4218 cat >> confdefs.h <<EOF
4219 #define $ac_tr_hdr 1
4223 echo "$ac_t""no" 1>&6
4228 if test $ac_cv_header_ssl_h = yes ; then
4229 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4230 echo "configure:4231: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4231 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4235 ac_save_LIBS="$LIBS"
4236 LIBS="-lssl -lcrypto $LIBS"
4237 cat > conftest.$ac_ext <<EOF
4238 #line 4239 "configure"
4239 #include "confdefs.h"
4240 /* Override any gcc2 internal prototype to avoid an error. */
4241 /* We use char because int might match the return type of a gcc2
4242 builtin and then its argument prototype would still apply. */
4243 char SSLeay_add_ssl_algorithms();
4246 SSLeay_add_ssl_algorithms()
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4251 eval "ac_cv_lib_$ac_lib_var=yes"
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4256 eval "ac_cv_lib_$ac_lib_var=no"
4259 LIBS="$ac_save_LIBS"
4262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4263 echo "$ac_t""yes" 1>&6
4267 echo "$ac_t""no" 1>&6
4272 if test $have_ssleay = no ; then
4273 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4274 echo "configure:4275: checking for ssl3_accept in -lssl" >&5
4275 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4279 ac_save_LIBS="$LIBS"
4280 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4281 cat > conftest.$ac_ext <<EOF
4282 #line 4283 "configure"
4283 #include "confdefs.h"
4284 /* Override any gcc2 internal prototype to avoid an error. */
4285 /* We use char because int might match the return type of a gcc2
4286 builtin and then its argument prototype would still apply. */
4293 if { (eval echo configure:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4295 eval "ac_cv_lib_$ac_lib_var=yes"
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4300 eval "ac_cv_lib_$ac_lib_var=no"
4303 LIBS="$ac_save_LIBS"
4306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4307 echo "$ac_t""yes" 1>&6
4311 echo "$ac_t""no" 1>&6
4317 if test $have_ssleay = yes ; then
4321 cat >> confdefs.h <<\EOF
4322 #define HAVE_SSLEAY 1
4326 if test $need_rsaref = yes; then
4327 cat >> confdefs.h <<\EOF
4328 #define HAVE_RSAREF 1
4332 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4334 TLS_LIBS="-lssl -lcrypto"
4340 if test $ol_link_tls = yes ; then
4341 cat >> confdefs.h <<\EOF
4349 gethostbyname_r gethostbyaddr_r \
4352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4353 echo "configure:4354: checking for $ac_func" >&5
4354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4360 /* System header to define __stub macros and hopefully few prototypes,
4361 which can conflict with char $ac_func(); below. */
4363 /* Override any gcc2 internal prototype to avoid an error. */
4364 /* We use char because int might match the return type of a gcc2
4365 builtin and then its argument prototype would still apply. */
4370 /* The GNU C library defines this for functions which it implements
4371 to always fail with ENOSYS. Some functions are actually named
4372 something starting with __ and the normal name is an alias. */
4373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4381 if { (eval echo configure:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4383 eval "ac_cv_func_$ac_func=yes"
4385 echo "configure: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4388 eval "ac_cv_func_$ac_func=no"
4393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4394 echo "$ac_t""yes" 1>&6
4395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4396 cat >> confdefs.h <<EOF
4397 #define $ac_tr_func 1
4401 echo "$ac_t""no" 1>&6
4406 if test "$ac_cv_func_ctime_r" = no ; then
4407 ol_cv_func_ctime_r_nargs=0
4409 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4410 echo "configure:4411: checking number of arguments of ctime_r" >&5
4411 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4412 echo $ac_n "(cached) $ac_c" 1>&6
4414 cat > conftest.$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4419 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4422 if { (eval echo configure:4423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4424 ol_cv_func_ctime_r_nargs=3
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4429 cat > conftest.$ac_ext <<EOF
4430 #line 4431 "configure"
4431 #include "confdefs.h"
4434 time_t ti; char *buffer; ctime_r(&ti,buffer);
4437 if { (eval echo configure:4438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4439 ol_cv_func_ctime_r_nargs=2
4441 echo "configure: failed program was:" >&5
4442 cat conftest.$ac_ext >&5
4444 ol_cv_func_ctime_r_nargs=0
4451 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4452 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4453 cat >> confdefs.h <<EOF
4454 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4461 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4462 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4463 echo "configure:4464: checking number of arguments of gethostbyname_r" >&5
4464 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4467 cat > conftest.$ac_ext <<EOF
4468 #line 4469 "configure"
4469 #include "confdefs.h"
4470 #include <sys/types.h>
4471 #include <sys/socket.h>
4472 #include <netinet/in.h>
4474 #define BUFSIZE (sizeof(struct hostent)+10)
4476 struct hostent hent; char buffer[BUFSIZE];
4477 int bufsize=BUFSIZE;int h_errno;
4478 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4479 buffer, bufsize, &h_errno);
4482 if { (eval echo configure:4483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4484 ol_cv_func_gethostbyname_r_nargs=5
4486 echo "configure: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4489 cat > conftest.$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4492 #include <sys/types.h>
4493 #include <sys/socket.h>
4494 #include <netinet/in.h>
4496 #define BUFSIZE (sizeof(struct hostent)+10)
4498 struct hostent hent;struct hostent *rhent;
4499 char buffer[BUFSIZE];
4500 int bufsize=BUFSIZE;int h_errno;
4501 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4505 if { (eval echo configure:4506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4507 ol_cv_func_gethostbyname_r_nargs=6
4509 echo "configure: failed program was:" >&5
4510 cat conftest.$ac_ext >&5
4512 ol_cv_func_gethostbyname_r_nargs=0
4519 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4520 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4521 cat >> confdefs.h <<EOF
4522 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4528 ol_cv_func_gethostbyname_r_nargs=0
4531 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4532 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4533 echo "configure:4534: checking number of arguments of gethostbyaddr_r" >&5
4534 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4537 cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure"
4539 #include "confdefs.h"
4540 #include <sys/types.h>
4541 #include <sys/socket.h>
4542 #include <netinet/in.h>
4544 #define BUFSIZE (sizeof(struct hostent)+10)
4546 struct hostent hent; char buffer[BUFSIZE];
4548 size_t alen=sizeof(struct in_addr);
4549 int bufsize=BUFSIZE;int h_errno;
4550 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4551 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4554 if { (eval echo configure:4555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4556 ol_cv_func_gethostbyaddr_r_nargs=7
4558 echo "configure: failed program was:" >&5
4559 cat conftest.$ac_ext >&5
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 #include <sys/types.h>
4565 #include <sys/socket.h>
4566 #include <netinet/in.h>
4568 #define BUFSIZE (sizeof(struct hostent)+10)
4570 struct hostent hent;
4571 struct hostent *rhent; char buffer[BUFSIZE];
4573 size_t alen=sizeof(struct in_addr);
4574 int bufsize=BUFSIZE;int h_errno;
4575 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4576 alen, AF_INET, &hent, buffer, bufsize,
4580 if { (eval echo configure:4581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4582 ol_cv_func_gethostbyaddr_r_nargs=8
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4587 ol_cv_func_gethostbyaddr_r_nargs=0
4594 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4595 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4596 cat >> confdefs.h <<EOF
4597 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4603 ol_cv_func_gethostbyaddr_r_nargs=0
4606 if test "$ac_cv_func_ctime_r" = yes \
4607 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4608 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4609 -a "$ac_cv_func_gethostbyname_r" = yes \
4610 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4611 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4612 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4613 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4614 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4617 cat >> confdefs.h <<\EOF
4618 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4624 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4625 -o $ol_with_threads = posix ; then
4627 for ac_hdr in pthread.h sched.h
4629 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4630 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4631 echo "configure:4632: checking for $ac_hdr" >&5
4632 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4633 echo $ac_n "(cached) $ac_c" 1>&6
4635 cat > conftest.$ac_ext <<EOF
4636 #line 4637 "configure"
4637 #include "confdefs.h"
4640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4641 { (eval echo configure:4642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4643 if test -z "$ac_err"; then
4645 eval "ac_cv_header_$ac_safe=yes"
4648 echo "configure: failed program was:" >&5
4649 cat conftest.$ac_ext >&5
4651 eval "ac_cv_header_$ac_safe=no"
4655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4656 echo "$ac_t""yes" 1>&6
4657 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4658 cat >> confdefs.h <<EOF
4659 #define $ac_tr_hdr 1
4663 echo "$ac_t""no" 1>&6
4668 if test $ac_cv_header_pthread_h = yes ; then
4669 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4670 echo "configure:4671: checking POSIX thread version" >&5
4671 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4675 cat > conftest.$ac_ext <<EOF
4676 #line 4677 "configure"
4677 #include "confdefs.h"
4679 # include <pthread.h>
4680 /* this check could be improved */
4681 # ifdef PTHREAD_ONCE_INIT
4682 pthread_version_final
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 egrep "pthread_version_final" >/dev/null 2>&1; then
4689 ol_pthread_final=yes
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4701 # include <pthread.h>
4702 /* this check could be improved */
4703 # ifdef pthread_once_init
4704 pthread_version_draft4
4708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4709 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4711 ol_pthread_draft4=yes
4714 ol_pthread_draft4=no
4719 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4720 ol_cv_pthread_version=final
4721 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4722 ol_cv_pthread_version=draft4
4724 ol_cv_pthread_version=unknown
4729 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4732 if test $ol_cv_pthread_version = final ; then
4733 cat >> confdefs.h <<\EOF
4734 #define HAVE_PTHREADS_FINAL 1
4737 elif test $ol_cv_pthread_version = draft4 ; then
4738 cat >> confdefs.h <<\EOF
4739 #define HAVE_PTHREADS_D4 1
4743 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4746 # consider threads found
4747 ol_with_threads=found
4750 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
4751 echo "configure:4752: checking for LinuxThreads pthread.h" >&5
4752 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 #include <pthread.h>
4760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4761 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
4763 ol_cv_header_linux_threads=yes
4766 ol_cv_header_linux_threads=no
4773 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
4774 if test $ol_cv_header_linux_threads = yes; then
4775 cat >> confdefs.h <<\EOF
4776 #define HAVE_LINUX_THREADS 1
4783 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
4784 echo "configure:4785: checking for pthread_create in default libraries" >&5
4785 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4789 if test "$cross_compiling" = yes; then
4790 ol_cv_pthread_create=yes
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4796 #include <pthread.h>
4798 #define NULL (void*)0
4801 static void *task(p)
4804 return (void *) (p == NULL);
4807 int main(argc, argv)
4814 /* make sure pthread_create() isn't just a stub */
4815 #if HAVE_PTHREADS_D4
4816 status = pthread_create(&t, pthread_attr_default, task, NULL);
4818 status = pthread_create(&t, NULL, task, NULL);
4821 if( status ) return status;
4823 /* make sure pthread_detach() isn't just a stub */
4824 #if HAVE_PTHREADS_D4
4825 status = pthread_detach( &t );
4827 status = pthread_detach( t );
4830 if( status ) return status;
4836 if { (eval echo configure:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4838 ol_cv_pthread_create=yes
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4843 ol_cv_pthread_create=no
4850 echo "$ac_t""$ol_cv_pthread_create" 1>&6
4852 if test $ol_cv_pthread_create != no ; then
4853 ol_link_threads=posix
4857 # Pthread try link: -mt (ol_cv_pthread_mt)
4858 if test "$ol_link_threads" = no ; then
4860 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
4861 echo "configure:4862: checking for pthread link with -mt" >&5
4862 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4874 #include <pthread.h>
4876 #define NULL (void*)0
4883 #if HAVE_PTHREADS_D4
4884 pthread_create(&t, pthread_attr_default, NULL, NULL);
4885 pthread_detach( &t );
4887 pthread_create(&t, NULL, NULL, NULL);
4888 pthread_detach( t );
4890 #ifdef HAVE_LINUX_THREADS
4891 pthread_kill_other_threads_np();
4896 if { (eval echo configure:4897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4898 ol_cv_pthread_mt=yes
4900 echo "configure: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4912 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
4914 if test $ol_cv_pthread_mt = yes ; then
4915 ol_link_pthreads="-mt"
4916 ol_link_threads=posix
4920 # Pthread try link: -kthread (ol_cv_pthread_kthread)
4921 if test "$ol_link_threads" = no ; then
4923 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
4924 echo "configure:4925: checking for pthread link with -kthread" >&5
4925 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4931 LIBS="-kthread $LIBS"
4933 cat > conftest.$ac_ext <<EOF
4934 #line 4935 "configure"
4935 #include "confdefs.h"
4937 #include <pthread.h>
4939 #define NULL (void*)0
4946 #if HAVE_PTHREADS_D4
4947 pthread_create(&t, pthread_attr_default, NULL, NULL);
4948 pthread_detach( &t );
4950 pthread_create(&t, NULL, NULL, NULL);
4951 pthread_detach( t );
4953 #ifdef HAVE_LINUX_THREADS
4954 pthread_kill_other_threads_np();
4959 if { (eval echo configure:4960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961 ol_cv_pthread_kthread=yes
4963 echo "configure: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4966 ol_cv_pthread_kthread=no
4975 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
4977 if test $ol_cv_pthread_kthread = yes ; then
4978 ol_link_pthreads="-kthread"
4979 ol_link_threads=posix
4983 # Pthread try link: -pthread (ol_cv_pthread_pthread)
4984 if test "$ol_link_threads" = no ; then
4986 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
4987 echo "configure:4988: checking for pthread link with -pthread" >&5
4988 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
4989 echo $ac_n "(cached) $ac_c" 1>&6
4994 LIBS="-pthread $LIBS"
4996 cat > conftest.$ac_ext <<EOF
4997 #line 4998 "configure"
4998 #include "confdefs.h"
5000 #include <pthread.h>
5002 #define NULL (void*)0
5009 #if HAVE_PTHREADS_D4
5010 pthread_create(&t, pthread_attr_default, NULL, NULL);
5011 pthread_detach( &t );
5013 pthread_create(&t, NULL, NULL, NULL);
5014 pthread_detach( t );
5016 #ifdef HAVE_LINUX_THREADS
5017 pthread_kill_other_threads_np();
5022 if { (eval echo configure:5023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5024 ol_cv_pthread_pthread=yes
5026 echo "configure: failed program was:" >&5
5027 cat conftest.$ac_ext >&5
5029 ol_cv_pthread_pthread=no
5038 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5040 if test $ol_cv_pthread_pthread = yes ; then
5041 ol_link_pthreads="-pthread"
5042 ol_link_threads=posix
5046 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5047 if test "$ol_link_threads" = no ; then
5049 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5050 echo "configure:5051: checking for pthread link with -pthreads" >&5
5051 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5052 echo $ac_n "(cached) $ac_c" 1>&6
5057 LIBS="-pthreads $LIBS"
5059 cat > conftest.$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5063 #include <pthread.h>
5065 #define NULL (void*)0
5072 #if HAVE_PTHREADS_D4
5073 pthread_create(&t, pthread_attr_default, NULL, NULL);
5074 pthread_detach( &t );
5076 pthread_create(&t, NULL, NULL, NULL);
5077 pthread_detach( t );
5079 #ifdef HAVE_LINUX_THREADS
5080 pthread_kill_other_threads_np();
5085 if { (eval echo configure:5086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5087 ol_cv_pthread_pthreads=yes
5089 echo "configure: failed program was:" >&5
5090 cat conftest.$ac_ext >&5
5092 ol_cv_pthread_pthreads=no
5101 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5103 if test $ol_cv_pthread_pthreads = yes ; then
5104 ol_link_pthreads="-pthreads"
5105 ol_link_threads=posix
5109 # Pthread try link: -thread (ol_cv_pthread_thread)
5110 if test "$ol_link_threads" = no ; then
5112 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5113 echo "configure:5114: checking for pthread link with -thread" >&5
5114 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5120 LIBS="-thread $LIBS"
5122 cat > conftest.$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5126 #include <pthread.h>
5128 #define NULL (void*)0
5135 #if HAVE_PTHREADS_D4
5136 pthread_create(&t, pthread_attr_default, NULL, NULL);
5137 pthread_detach( &t );
5139 pthread_create(&t, NULL, NULL, NULL);
5140 pthread_detach( t );
5142 #ifdef HAVE_LINUX_THREADS
5143 pthread_kill_other_threads_np();
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5150 ol_cv_pthread_thread=yes
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5155 ol_cv_pthread_thread=no
5164 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5166 if test $ol_cv_pthread_thread = yes ; then
5167 ol_link_pthreads="-thread"
5168 ol_link_threads=posix
5173 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5174 if test "$ol_link_threads" = no ; then
5175 # try -lpthread -lmach -lexc -lc_r
5176 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5177 echo "configure:5178: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5178 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5184 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5186 cat > conftest.$ac_ext <<EOF
5187 #line 5188 "configure"
5188 #include "confdefs.h"
5190 #include <pthread.h>
5192 #define NULL (void*)0
5199 #if HAVE_PTHREADS_D4
5200 pthread_create(&t, pthread_attr_default, NULL, NULL);
5201 pthread_detach( &t );
5203 pthread_create(&t, NULL, NULL, NULL);
5204 pthread_detach( t );
5206 #ifdef HAVE_LINUX_THREADS
5207 pthread_kill_other_threads_np();
5212 if { (eval echo configure:5213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5214 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5216 echo "configure: failed program was:" >&5
5217 cat conftest.$ac_ext >&5
5219 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5228 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5230 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5231 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5232 ol_link_threads=posix
5236 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5237 if test "$ol_link_threads" = no ; then
5238 # try -lpthread -lmach -lexc
5239 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5240 echo "configure:5241: checking for pthread link with -lpthread -lmach -lexc" >&5
5241 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5247 LIBS="-lpthread -lmach -lexc $LIBS"
5249 cat > conftest.$ac_ext <<EOF
5250 #line 5251 "configure"
5251 #include "confdefs.h"
5253 #include <pthread.h>
5255 #define NULL (void*)0
5262 #if HAVE_PTHREADS_D4
5263 pthread_create(&t, pthread_attr_default, NULL, NULL);
5264 pthread_detach( &t );
5266 pthread_create(&t, NULL, NULL, NULL);
5267 pthread_detach( t );
5269 #ifdef HAVE_LINUX_THREADS
5270 pthread_kill_other_threads_np();
5275 if { (eval echo configure:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5277 ol_cv_pthread_lpthread_lmach_lexc=yes
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5282 ol_cv_pthread_lpthread_lmach_lexc=no
5291 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5293 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5294 ol_link_pthreads="-lpthread -lmach -lexc"
5295 ol_link_threads=posix
5300 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5301 if test "$ol_link_threads" = no ; then
5302 # try -lpthread -Wl,-woff,85
5303 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5304 echo "configure:5305: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5305 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5311 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5313 cat > conftest.$ac_ext <<EOF
5314 #line 5315 "configure"
5315 #include "confdefs.h"
5317 #include <pthread.h>
5319 #define NULL (void*)0
5326 #if HAVE_PTHREADS_D4
5327 pthread_create(&t, pthread_attr_default, NULL, NULL);
5328 pthread_detach( &t );
5330 pthread_create(&t, NULL, NULL, NULL);
5331 pthread_detach( t );
5333 #ifdef HAVE_LINUX_THREADS
5334 pthread_kill_other_threads_np();
5339 if { (eval echo configure:5340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5341 ol_cv_pthread_lib_lpthread_woff=yes
5343 echo "configure: failed program was:" >&5
5344 cat conftest.$ac_ext >&5
5346 ol_cv_pthread_lib_lpthread_woff=no
5355 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5357 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5358 ol_link_pthreads="-lpthread -Wl,-woff,85"
5359 ol_link_threads=posix
5364 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5365 if test "$ol_link_threads" = no ; then
5367 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5368 echo "configure:5369: checking for pthread link with -lpthread" >&5
5369 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5375 LIBS="-lpthread $LIBS"
5377 cat > conftest.$ac_ext <<EOF
5378 #line 5379 "configure"
5379 #include "confdefs.h"
5381 #include <pthread.h>
5383 #define NULL (void*)0
5390 #if HAVE_PTHREADS_D4
5391 pthread_create(&t, pthread_attr_default, NULL, NULL);
5392 pthread_detach( &t );
5394 pthread_create(&t, NULL, NULL, NULL);
5395 pthread_detach( t );
5397 #ifdef HAVE_LINUX_THREADS
5398 pthread_kill_other_threads_np();
5403 if { (eval echo configure:5404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5405 ol_cv_pthread_lpthread=yes
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5410 ol_cv_pthread_lpthread=no
5419 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5421 if test $ol_cv_pthread_lpthread = yes ; then
5422 ol_link_pthreads="-lpthread"
5423 ol_link_threads=posix
5427 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5428 if test "$ol_link_threads" = no ; then
5430 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5431 echo "configure:5432: checking for pthread link with -lc_r" >&5
5432 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5440 cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5444 #include <pthread.h>
5446 #define NULL (void*)0
5453 #if HAVE_PTHREADS_D4
5454 pthread_create(&t, pthread_attr_default, NULL, NULL);
5455 pthread_detach( &t );
5457 pthread_create(&t, NULL, NULL, NULL);
5458 pthread_detach( t );
5460 #ifdef HAVE_LINUX_THREADS
5461 pthread_kill_other_threads_np();
5466 if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5468 ol_cv_pthread_lc_r=yes
5470 echo "configure: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5473 ol_cv_pthread_lc_r=no
5482 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5484 if test $ol_cv_pthread_lc_r = yes ; then
5485 ol_link_pthreads="-lc_r"
5486 ol_link_threads=posix
5491 # Pthread try link: -threads (ol_cv_pthread_threads)
5492 if test "$ol_link_threads" = no ; then
5494 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5495 echo "configure:5496: checking for pthread link with -threads" >&5
5496 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5502 LIBS="-threads $LIBS"
5504 cat > conftest.$ac_ext <<EOF
5505 #line 5506 "configure"
5506 #include "confdefs.h"
5508 #include <pthread.h>
5510 #define NULL (void*)0
5517 #if HAVE_PTHREADS_D4
5518 pthread_create(&t, pthread_attr_default, NULL, NULL);
5519 pthread_detach( &t );
5521 pthread_create(&t, NULL, NULL, NULL);
5522 pthread_detach( t );
5524 #ifdef HAVE_LINUX_THREADS
5525 pthread_kill_other_threads_np();
5530 if { (eval echo configure:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532 ol_cv_pthread_threads=yes
5534 echo "configure: failed program was:" >&5
5535 cat conftest.$ac_ext >&5
5537 ol_cv_pthread_threads=no
5546 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5548 if test $ol_cv_pthread_threads = yes ; then
5549 ol_link_pthreads="-threads"
5550 ol_link_threads=posix
5555 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5556 if test "$ol_link_threads" = no ; then
5557 # try -lpthreads -lmach -lexc -lc_r
5558 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5559 echo "configure:5560: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5560 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5566 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5572 #include <pthread.h>
5574 #define NULL (void*)0
5581 #if HAVE_PTHREADS_D4
5582 pthread_create(&t, pthread_attr_default, NULL, NULL);
5583 pthread_detach( &t );
5585 pthread_create(&t, NULL, NULL, NULL);
5586 pthread_detach( t );
5588 #ifdef HAVE_LINUX_THREADS
5589 pthread_kill_other_threads_np();
5594 if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5596 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5598 echo "configure: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5601 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5610 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5612 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5613 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5614 ol_link_threads=posix
5618 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5619 if test "$ol_link_threads" = no ; then
5620 # try -lpthreads -lmach -lexc
5621 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5622 echo "configure:5623: checking for pthread link with -lpthreads -lmach -lexc" >&5
5623 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5624 echo $ac_n "(cached) $ac_c" 1>&6
5629 LIBS="-lpthreads -lmach -lexc $LIBS"
5631 cat > conftest.$ac_ext <<EOF
5632 #line 5633 "configure"
5633 #include "confdefs.h"
5635 #include <pthread.h>
5637 #define NULL (void*)0
5644 #if HAVE_PTHREADS_D4
5645 pthread_create(&t, pthread_attr_default, NULL, NULL);
5646 pthread_detach( &t );
5648 pthread_create(&t, NULL, NULL, NULL);
5649 pthread_detach( t );
5651 #ifdef HAVE_LINUX_THREADS
5652 pthread_kill_other_threads_np();
5657 if { (eval echo configure:5658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5659 ol_cv_pthread_lpthreads_lmach_lexc=yes
5661 echo "configure: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5664 ol_cv_pthread_lpthreads_lmach_lexc=no
5673 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
5675 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
5676 ol_link_pthreads="-lpthreads -lmach -lexc"
5677 ol_link_threads=posix
5681 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
5682 if test "$ol_link_threads" = no ; then
5683 # try -lpthreads -lexc
5684 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
5685 echo "configure:5686: checking for pthread link with -lpthreads -lexc" >&5
5686 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
5687 echo $ac_n "(cached) $ac_c" 1>&6
5692 LIBS="-lpthreads -lexc $LIBS"
5694 cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5698 #include <pthread.h>
5700 #define NULL (void*)0
5707 #if HAVE_PTHREADS_D4
5708 pthread_create(&t, pthread_attr_default, NULL, NULL);
5709 pthread_detach( &t );
5711 pthread_create(&t, NULL, NULL, NULL);
5712 pthread_detach( t );
5714 #ifdef HAVE_LINUX_THREADS
5715 pthread_kill_other_threads_np();
5720 if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5722 ol_cv_pthread_lpthreads_lexc=yes
5724 echo "configure: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5727 ol_cv_pthread_lpthreads_lexc=no
5736 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
5738 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
5739 ol_link_pthreads="-lpthreads -lexc"
5740 ol_link_threads=posix
5745 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
5746 if test "$ol_link_threads" = no ; then
5748 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
5749 echo "configure:5750: checking for pthread link with -lpthreads" >&5
5750 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
5751 echo $ac_n "(cached) $ac_c" 1>&6
5756 LIBS="-lpthreads $LIBS"
5758 cat > conftest.$ac_ext <<EOF
5759 #line 5760 "configure"
5760 #include "confdefs.h"
5762 #include <pthread.h>
5764 #define NULL (void*)0
5771 #if HAVE_PTHREADS_D4
5772 pthread_create(&t, pthread_attr_default, NULL, NULL);
5773 pthread_detach( &t );
5775 pthread_create(&t, NULL, NULL, NULL);
5776 pthread_detach( t );
5778 #ifdef HAVE_LINUX_THREADS
5779 pthread_kill_other_threads_np();
5784 if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5786 ol_cv_pthread_lib_lpthreads=yes
5788 echo "configure: failed program was:" >&5
5789 cat conftest.$ac_ext >&5
5791 ol_cv_pthread_lib_lpthreads=no
5800 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
5802 if test $ol_cv_pthread_lib_lpthreads = yes ; then
5803 ol_link_pthreads="-lpthreads"
5804 ol_link_threads=posix
5809 if test $ol_link_threads != no ; then
5810 cat >> confdefs.h <<\EOF
5811 #define HAVE_PTHREADS 1
5815 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
5817 save_CPPFLAGS="$CPPFLAGS"
5819 LIBS="$LTHREAD_LIBS $LIBS"
5821 for ac_func in sched_yield pthread_yield
5823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5824 echo "configure:5825: checking for $ac_func" >&5
5825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5826 echo $ac_n "(cached) $ac_c" 1>&6
5828 cat > conftest.$ac_ext <<EOF
5829 #line 5830 "configure"
5830 #include "confdefs.h"
5831 /* System header to define __stub macros and hopefully few prototypes,
5832 which can conflict with char $ac_func(); below. */
5834 /* Override any gcc2 internal prototype to avoid an error. */
5835 /* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5841 /* The GNU C library defines this for functions which it implements
5842 to always fail with ENOSYS. Some functions are actually named
5843 something starting with __ and the normal name is an alias. */
5844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5852 if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5854 eval "ac_cv_func_$ac_func=yes"
5856 echo "configure: failed program was:" >&5
5857 cat conftest.$ac_ext >&5
5859 eval "ac_cv_func_$ac_func=no"
5864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5865 echo "$ac_t""yes" 1>&6
5866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5867 cat >> confdefs.h <<EOF
5868 #define $ac_tr_func 1
5872 echo "$ac_t""no" 1>&6
5877 if test $ac_cv_func_sched_yield = no -a \
5878 $ac_cv_func_pthread_yield = no ; then
5879 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5880 echo "configure:5881: checking for sched_yield in -lrt" >&5
5881 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5883 echo $ac_n "(cached) $ac_c" 1>&6
5885 ac_save_LIBS="$LIBS"
5887 cat > conftest.$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
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. */
5899 if { (eval echo configure:5900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5901 eval "ac_cv_lib_$ac_lib_var=yes"
5903 echo "configure: failed program was:" >&5
5904 cat conftest.$ac_ext >&5
5906 eval "ac_cv_lib_$ac_lib_var=no"
5909 LIBS="$ac_save_LIBS"
5912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5913 echo "$ac_t""yes" 1>&6
5914 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5915 cat >> confdefs.h <<\EOF
5916 #define HAVE_SCHED_YIELD 1
5919 ac_cv_func_sched_yield=yes
5921 echo "$ac_t""no" 1>&6
5922 ac_cv_func_sched_yield=no
5926 if test $ac_cv_func_sched_yield = no -a \
5927 $ac_cv_func_pthread_yield = no ; then
5928 for ac_func in thr_yield
5930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5931 echo "configure:5932: checking for $ac_func" >&5
5932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5933 echo $ac_n "(cached) $ac_c" 1>&6
5935 cat > conftest.$ac_ext <<EOF
5936 #line 5937 "configure"
5937 #include "confdefs.h"
5938 /* System header to define __stub macros and hopefully few prototypes,
5939 which can conflict with char $ac_func(); below. */
5941 /* Override any gcc2 internal prototype to avoid an error. */
5942 /* We use char because int might match the return type of a gcc2
5943 builtin and then its argument prototype would still apply. */
5948 /* The GNU C library defines this for functions which it implements
5949 to always fail with ENOSYS. Some functions are actually named
5950 something starting with __ and the normal name is an alias. */
5951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5959 if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5961 eval "ac_cv_func_$ac_func=yes"
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5966 eval "ac_cv_func_$ac_func=no"
5971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5972 echo "$ac_t""yes" 1>&6
5973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5974 cat >> confdefs.h <<EOF
5975 #define $ac_tr_func 1
5979 echo "$ac_t""no" 1>&6
5984 if test $ac_cv_func_sched_yield = no -a \
5985 $ac_cv_func_pthread_yield = no -a \
5986 "$ac_cv_func_thr_yield" = no ; then
5987 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
5990 for ac_func in pthread_kill
5992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5993 echo "configure:5994: checking for $ac_func" >&5
5994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5995 echo $ac_n "(cached) $ac_c" 1>&6
5997 cat > conftest.$ac_ext <<EOF
5998 #line 5999 "configure"
5999 #include "confdefs.h"
6000 /* System header to define __stub macros and hopefully few prototypes,
6001 which can conflict with char $ac_func(); below. */
6003 /* Override any gcc2 internal prototype to avoid an error. */
6004 /* We use char because int might match the return type of a gcc2
6005 builtin and then its argument prototype would still apply. */
6010 /* The GNU C library defines this for functions which it implements
6011 to always fail with ENOSYS. Some functions are actually named
6012 something starting with __ and the normal name is an alias. */
6013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6021 if { (eval echo configure:6022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6023 eval "ac_cv_func_$ac_func=yes"
6025 echo "configure: failed program was:" >&5
6026 cat conftest.$ac_ext >&5
6028 eval "ac_cv_func_$ac_func=no"
6033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6034 echo "$ac_t""yes" 1>&6
6035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6036 cat >> confdefs.h <<EOF
6037 #define $ac_tr_func 1
6041 echo "$ac_t""no" 1>&6
6046 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6047 echo "configure:6048: checking for pthread_detach with <pthread.h>" >&5
6048 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6049 echo $ac_n "(cached) $ac_c" 1>&6
6052 cat > conftest.$ac_ext <<EOF
6053 #line 6054 "configure"
6054 #include "confdefs.h"
6056 #include <pthread.h>
6058 #define NULL (void*)0
6062 pthread_detach(NULL);
6065 if { (eval echo configure:6066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6067 ol_cv_func_pthread_detach=yes
6069 echo "configure: failed program was:" >&5
6070 cat conftest.$ac_ext >&5
6072 ol_cv_func_pthread_detach=no
6078 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6080 if test $ol_cv_func_pthread_detach = no ; then
6081 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6084 cat >> confdefs.h <<\EOF
6085 #define HAVE_PTHREAD_DETACH 1
6090 pthread_setconcurrency \
6091 pthread_getconcurrency \
6092 thr_setconcurrency \
6093 thr_getconcurrency \
6096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6097 echo "configure:6098: checking for $ac_func" >&5
6098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6099 echo $ac_n "(cached) $ac_c" 1>&6
6101 cat > conftest.$ac_ext <<EOF
6102 #line 6103 "configure"
6103 #include "confdefs.h"
6104 /* System header to define __stub macros and hopefully few prototypes,
6105 which can conflict with char $ac_func(); below. */
6107 /* Override any gcc2 internal prototype to avoid an error. */
6108 /* We use char because int might match the return type of a gcc2
6109 builtin and then its argument prototype would still apply. */
6114 /* The GNU C library defines this for functions which it implements
6115 to always fail with ENOSYS. Some functions are actually named
6116 something starting with __ and the normal name is an alias. */
6117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6125 if { (eval echo configure:6126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6127 eval "ac_cv_func_$ac_func=yes"
6129 echo "configure: failed program was:" >&5
6130 cat conftest.$ac_ext >&5
6132 eval "ac_cv_func_$ac_func=no"
6137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6138 echo "$ac_t""yes" 1>&6
6139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6140 cat >> confdefs.h <<EOF
6141 #define $ac_tr_func 1
6145 echo "$ac_t""no" 1>&6
6151 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6152 echo "configure:6153: checking for pthread_kill_other_threads_np" >&5
6153 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6154 echo $ac_n "(cached) $ac_c" 1>&6
6156 cat > conftest.$ac_ext <<EOF
6157 #line 6158 "configure"
6158 #include "confdefs.h"
6159 /* System header to define __stub macros and hopefully few prototypes,
6160 which can conflict with char pthread_kill_other_threads_np(); below. */
6162 /* Override any gcc2 internal prototype to avoid an error. */
6163 /* We use char because int might match the return type of a gcc2
6164 builtin and then its argument prototype would still apply. */
6165 char pthread_kill_other_threads_np();
6169 /* The GNU C library defines this for functions which it implements
6170 to always fail with ENOSYS. Some functions are actually named
6171 something starting with __ and the normal name is an alias. */
6172 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6175 pthread_kill_other_threads_np();
6180 if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6182 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6184 echo "configure: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6187 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6192 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6193 echo "$ac_t""yes" 1>&6
6196 echo "$ac_t""no" 1>&6
6199 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6200 echo "configure:6201: checking for LinuxThreads implementation" >&5
6201 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6202 echo $ac_n "(cached) $ac_c" 1>&6
6204 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6207 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6212 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6213 echo "configure:6214: checking for LinuxThreads consistency" >&5
6214 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6215 echo $ac_n "(cached) $ac_c" 1>&6
6218 if test $ol_cv_header_linux_threads = yes -a \
6219 $ol_cv_sys_linux_threads = yes; then
6220 ol_cv_linux_threads=yes
6221 elif test $ol_cv_header_linux_threads = no -a \
6222 $ol_cv_sys_linux_threads = no; then
6223 ol_cv_linux_threads=no
6225 ol_cv_linux_threads=error
6230 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6233 if test $ol_cv_linux_threads = error; then
6234 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6237 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6238 echo "configure:6239: checking if pthread_create() works" >&5
6239 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6240 echo $ac_n "(cached) $ac_c" 1>&6
6243 if test "$cross_compiling" = yes; then
6244 ol_cv_pthread_create_works=yes
6246 cat > conftest.$ac_ext <<EOF
6247 #line 6248 "configure"
6248 #include "confdefs.h"
6250 #include <pthread.h>
6252 #define NULL (void*)0
6255 static void *task(p)
6258 return (void *) (p == NULL);
6261 int main(argc, argv)
6266 #if HAVE_PTHREADS_D4
6267 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6269 exit(pthread_create(&t, NULL, task, NULL));
6274 if { (eval echo configure:6275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6276 ol_cv_pthread_create_works=yes
6278 echo "configure: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6281 ol_cv_pthread_create_works=no
6288 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6290 if test $ol_cv_pthread_create_works = no ; then
6291 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6294 if test $ol_with_yielding_select = auto ; then
6295 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6296 echo "configure:6297: checking if select yields when using pthreads" >&5
6297 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6298 echo $ac_n "(cached) $ac_c" 1>&6
6301 if test "$cross_compiling" = yes; then
6303 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6305 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6309 #include <sys/types.h>
6310 #include <sys/time.h>
6312 #include <pthread.h>
6314 #define NULL (void*) 0
6317 static int fildes[2];
6319 static void *task(p)
6331 FD_SET(fildes[0], &rfds);
6333 /* we're not interested in any fds */
6334 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6341 exit(0); /* if we exit here, the select blocked the whole process */
6344 int main(argc, argv)
6350 /* create a pipe to select */
6351 if(pipe(&fildes[0])) {
6356 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6357 (void) pthread_setconcurrency(2);
6359 #ifdef HAVE_THR_SETCONCURRENCY
6360 /* Set Solaris LWP concurrency to 2 */
6361 thr_setconcurrency(2);
6365 #if HAVE_PTHREADS_D4
6366 pthread_create(&t, pthread_attr_default, task, NULL);
6368 pthread_create(&t, NULL, task, NULL);
6371 #if HAVE_SCHED_YIELD
6372 sched_yield(); /* make sure task runs first */
6374 #ifdef HAVE_PTHREAD_YIELD
6375 pthread_yield(); /* make sure task runs first */
6382 if { (eval echo configure:6383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6384 ol_cv_pthread_select_yields=no
6386 echo "configure: failed program was:" >&5
6387 cat conftest.$ac_ext >&5
6389 ol_cv_pthread_select_yields=yes
6396 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6398 if test $ol_cv_pthread_select_yields = yes ; then
6399 ol_with_yielding_select=yes
6403 CPPFLAGS="$save_CPPFLAGS"
6406 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6410 if test $ol_with_threads = posix ; then
6411 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6415 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6416 -o $ol_with_threads = mach ; then
6418 for ac_hdr in mach/cthreads.h
6420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6422 echo "configure:6423: checking for $ac_hdr" >&5
6423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6424 echo $ac_n "(cached) $ac_c" 1>&6
6426 cat > conftest.$ac_ext <<EOF
6427 #line 6428 "configure"
6428 #include "confdefs.h"
6431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6432 { (eval echo configure:6433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6434 if test -z "$ac_err"; then
6436 eval "ac_cv_header_$ac_safe=yes"
6439 echo "configure: failed program was:" >&5
6440 cat conftest.$ac_ext >&5
6442 eval "ac_cv_header_$ac_safe=no"
6446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6447 echo "$ac_t""yes" 1>&6
6448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6449 cat >> confdefs.h <<EOF
6450 #define $ac_tr_hdr 1
6454 echo "$ac_t""no" 1>&6
6458 if test $ac_cv_header_mach_cthreads_h = yes ; then
6459 ol_with_threads=found
6461 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6462 echo "configure:6463: checking for cthread_fork" >&5
6463 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6464 echo $ac_n "(cached) $ac_c" 1>&6
6466 cat > conftest.$ac_ext <<EOF
6467 #line 6468 "configure"
6468 #include "confdefs.h"
6469 /* System header to define __stub macros and hopefully few prototypes,
6470 which can conflict with char cthread_fork(); below. */
6472 /* Override any gcc2 internal prototype to avoid an error. */
6473 /* We use char because int might match the return type of a gcc2
6474 builtin and then its argument prototype would still apply. */
6475 char cthread_fork();
6479 /* The GNU C library defines this for functions which it implements
6480 to always fail with ENOSYS. Some functions are actually named
6481 something starting with __ and the normal name is an alias. */
6482 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6490 if { (eval echo configure:6491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6492 eval "ac_cv_func_cthread_fork=yes"
6494 echo "configure: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6497 eval "ac_cv_func_cthread_fork=no"
6502 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6503 echo "$ac_t""yes" 1>&6
6506 echo "$ac_t""no" 1>&6
6510 if test $ol_link_threads = no ; then
6511 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6512 echo "configure:6513: checking for cthread_fork with -all_load" >&5
6513 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6518 LIBS="-all_load $LIBS"
6519 cat > conftest.$ac_ext <<EOF
6520 #line 6521 "configure"
6521 #include "confdefs.h"
6522 #include <mach/cthreads.h>
6525 cthread_fork((void *)0, (void *)0);
6529 if { (eval echo configure:6530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6531 ol_cv_cthread_all_load=yes
6533 echo "configure: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6536 ol_cv_cthread_all_load=no
6543 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6545 if test $ol_cv_cthread_all_load = yes ; then
6546 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6547 ol_link_threads=mach
6551 if test $ol_link_threads != no ; then
6552 : check for cthread specific functionality here
6553 cat >> confdefs.h <<\EOF
6554 #define HAVE_MACH_CTHREADS 1
6558 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6562 if test $ol_with_threads = mach ; then
6563 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6567 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6568 -o $ol_with_threads = lwp ; then
6570 for ac_hdr in thread.h synch.h
6572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6574 echo "configure:6575: checking for $ac_hdr" >&5
6575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 cat > conftest.$ac_ext <<EOF
6579 #line 6580 "configure"
6580 #include "confdefs.h"
6583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6584 { (eval echo configure:6585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6586 if test -z "$ac_err"; then
6588 eval "ac_cv_header_$ac_safe=yes"
6591 echo "configure: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6594 eval "ac_cv_header_$ac_safe=no"
6598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6599 echo "$ac_t""yes" 1>&6
6600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6601 cat >> confdefs.h <<EOF
6602 #define $ac_tr_hdr 1
6606 echo "$ac_t""no" 1>&6
6610 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6611 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6612 echo "configure:6613: checking for thr_create in -lthread" >&5
6613 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6615 echo $ac_n "(cached) $ac_c" 1>&6
6617 ac_save_LIBS="$LIBS"
6618 LIBS="-lthread $LIBS"
6619 cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* Override any gcc2 internal prototype to avoid an error. */
6623 /* We use char because int might match the return type of a gcc2
6624 builtin and then its argument prototype would still apply. */
6631 if { (eval echo configure:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6633 eval "ac_cv_lib_$ac_lib_var=yes"
6635 echo "configure: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6638 eval "ac_cv_lib_$ac_lib_var=no"
6641 LIBS="$ac_save_LIBS"
6644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6645 echo "$ac_t""yes" 1>&6
6648 echo "$ac_t""no" 1>&6
6653 if test $have_thr = yes ; then
6654 cat >> confdefs.h <<\EOF
6658 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6661 if test $ol_with_yielding_select = auto ; then
6662 ol_with_yielding_select=yes
6666 thr_setconcurrency \
6667 thr_getconcurrency \
6670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6671 echo "configure:6672: checking for $ac_func" >&5
6672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6673 echo $ac_n "(cached) $ac_c" 1>&6
6675 cat > conftest.$ac_ext <<EOF
6676 #line 6677 "configure"
6677 #include "confdefs.h"
6678 /* System header to define __stub macros and hopefully few prototypes,
6679 which can conflict with char $ac_func(); below. */
6681 /* Override any gcc2 internal prototype to avoid an error. */
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6688 /* The GNU C library defines this for functions which it implements
6689 to always fail with ENOSYS. Some functions are actually named
6690 something starting with __ and the normal name is an alias. */
6691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6699 if { (eval echo configure:6700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6701 eval "ac_cv_func_$ac_func=yes"
6703 echo "configure: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6706 eval "ac_cv_func_$ac_func=no"
6711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6712 echo "$ac_t""yes" 1>&6
6713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6714 cat >> confdefs.h <<EOF
6715 #define $ac_tr_func 1
6719 echo "$ac_t""no" 1>&6
6726 for ac_hdr in lwp/lwp.h
6728 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6729 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6730 echo "configure:6731: checking for $ac_hdr" >&5
6731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6732 echo $ac_n "(cached) $ac_c" 1>&6
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6740 { (eval echo configure:6741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6742 if test -z "$ac_err"; then
6744 eval "ac_cv_header_$ac_safe=yes"
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6750 eval "ac_cv_header_$ac_safe=no"
6754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6755 echo "$ac_t""yes" 1>&6
6756 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6757 cat >> confdefs.h <<EOF
6758 #define $ac_tr_hdr 1
6762 echo "$ac_t""no" 1>&6
6766 if test $ac_cv_header_lwp_lwp_h = yes ; then
6767 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6768 echo "configure:6769: checking for lwp_create in -llwp" >&5
6769 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6771 echo $ac_n "(cached) $ac_c" 1>&6
6773 ac_save_LIBS="$LIBS"
6775 cat > conftest.$ac_ext <<EOF
6776 #line 6777 "configure"
6777 #include "confdefs.h"
6778 /* Override any gcc2 internal prototype to avoid an error. */
6779 /* We use char because int might match the return type of a gcc2
6780 builtin and then its argument prototype would still apply. */
6787 if { (eval echo configure:6788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6789 eval "ac_cv_lib_$ac_lib_var=yes"
6791 echo "configure: failed program was:" >&5
6792 cat conftest.$ac_ext >&5
6794 eval "ac_cv_lib_$ac_lib_var=no"
6797 LIBS="$ac_save_LIBS"
6800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6801 echo "$ac_t""yes" 1>&6
6804 echo "$ac_t""no" 1>&6
6809 if test $have_lwp = yes ; then
6810 cat >> confdefs.h <<\EOF
6814 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6817 if test $ol_with_yielding_select = auto ; then
6818 ol_with_yielding_select=no
6824 if test $ol_with_yielding_select = yes ; then
6825 cat >> confdefs.h <<\EOF
6826 #define HAVE_YIELDING_SELECT 1
6831 if test $ol_with_threads = manual ; then
6834 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6836 for ac_hdr in pthread.h sched.h
6838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6840 echo "configure:6841: checking for $ac_hdr" >&5
6841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6844 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6850 { (eval echo configure:6851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6852 if test -z "$ac_err"; then
6854 eval "ac_cv_header_$ac_safe=yes"
6857 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6860 eval "ac_cv_header_$ac_safe=no"
6864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6865 echo "$ac_t""yes" 1>&6
6866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6867 cat >> confdefs.h <<EOF
6868 #define $ac_tr_hdr 1
6872 echo "$ac_t""no" 1>&6
6876 for ac_func in sched_yield pthread_yield
6878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6879 echo "configure:6880: checking for $ac_func" >&5
6880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6881 echo $ac_n "(cached) $ac_c" 1>&6
6883 cat > conftest.$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6886 /* System header to define __stub macros and hopefully few prototypes,
6887 which can conflict with char $ac_func(); below. */
6889 /* Override any gcc2 internal prototype to avoid an error. */
6890 /* We use char because int might match the return type of a gcc2
6891 builtin and then its argument prototype would still apply. */
6896 /* The GNU C library defines this for functions which it implements
6897 to always fail with ENOSYS. Some functions are actually named
6898 something starting with __ and the normal name is an alias. */
6899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6907 if { (eval echo configure:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6909 eval "ac_cv_func_$ac_func=yes"
6911 echo "configure: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6914 eval "ac_cv_func_$ac_func=no"
6919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6920 echo "$ac_t""yes" 1>&6
6921 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6922 cat >> confdefs.h <<EOF
6923 #define $ac_tr_func 1
6927 echo "$ac_t""no" 1>&6
6932 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6933 echo "configure:6934: checking for LinuxThreads pthread.h" >&5
6934 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
6935 echo $ac_n "(cached) $ac_c" 1>&6
6937 cat > conftest.$ac_ext <<EOF
6938 #line 6939 "configure"
6939 #include "confdefs.h"
6940 #include <pthread.h>
6942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6943 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6945 ol_cv_header_linux_threads=yes
6948 ol_cv_header_linux_threads=no
6955 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6956 if test $ol_cv_header_linux_threads = yes; then
6957 cat >> confdefs.h <<\EOF
6958 #define HAVE_LINUX_THREADS 1
6964 for ac_hdr in mach/cthreads.h
6966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6968 echo "configure:6969: checking for $ac_hdr" >&5
6969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6970 echo $ac_n "(cached) $ac_c" 1>&6
6972 cat > conftest.$ac_ext <<EOF
6973 #line 6974 "configure"
6974 #include "confdefs.h"
6977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6978 { (eval echo configure:6979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6980 if test -z "$ac_err"; then
6982 eval "ac_cv_header_$ac_safe=yes"
6985 echo "configure: failed program was:" >&5
6986 cat conftest.$ac_ext >&5
6988 eval "ac_cv_header_$ac_safe=no"
6992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6993 echo "$ac_t""yes" 1>&6
6994 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6995 cat >> confdefs.h <<EOF
6996 #define $ac_tr_hdr 1
7000 echo "$ac_t""no" 1>&6
7004 for ac_hdr in lwp/lwp.h
7006 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7008 echo "configure:7009: checking for $ac_hdr" >&5
7009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7010 echo $ac_n "(cached) $ac_c" 1>&6
7012 cat > conftest.$ac_ext <<EOF
7013 #line 7014 "configure"
7014 #include "confdefs.h"
7017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7018 { (eval echo configure:7019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7020 if test -z "$ac_err"; then
7022 eval "ac_cv_header_$ac_safe=yes"
7025 echo "configure: failed program was:" >&5
7026 cat conftest.$ac_ext >&5
7028 eval "ac_cv_header_$ac_safe=no"
7032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7033 echo "$ac_t""yes" 1>&6
7034 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7035 cat >> confdefs.h <<EOF
7036 #define $ac_tr_hdr 1
7040 echo "$ac_t""no" 1>&6
7044 for ac_hdr in thread.h synch.h
7046 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7047 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7048 echo "configure:7049: checking for $ac_hdr" >&5
7049 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7050 echo $ac_n "(cached) $ac_c" 1>&6
7052 cat > conftest.$ac_ext <<EOF
7053 #line 7054 "configure"
7054 #include "confdefs.h"
7057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7058 { (eval echo configure:7059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7060 if test -z "$ac_err"; then
7062 eval "ac_cv_header_$ac_safe=yes"
7065 echo "configure: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7068 eval "ac_cv_header_$ac_safe=no"
7072 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7073 echo "$ac_t""yes" 1>&6
7074 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7075 cat >> confdefs.h <<EOF
7076 #define $ac_tr_hdr 1
7080 echo "$ac_t""no" 1>&6
7086 if test $ol_link_threads != no ; then
7087 cat >> confdefs.h <<\EOF
7091 cat >> confdefs.h <<\EOF
7092 #define _REENTRANT 1
7095 cat >> confdefs.h <<\EOF
7096 #define THREAD_SAFE 1
7099 cat >> confdefs.h <<\EOF
7100 #define _THREAD_SAFE 1
7103 cat >> confdefs.h <<\EOF
7104 #define THREADSAFE 1
7107 cat >> confdefs.h <<\EOF
7108 #define _THREADSAFE 1
7112 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7113 echo "configure:7114: checking for thread specific errno" >&5
7114 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7115 echo $ac_n "(cached) $ac_c" 1>&6
7118 cat > conftest.$ac_ext <<EOF
7119 #line 7120 "configure"
7120 #include "confdefs.h"
7126 if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7128 ol_cv_errno_thread_specific=yes
7130 echo "configure: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7133 ol_cv_errno_thread_specific=no
7139 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7141 if test $ol_cv_errno_thread_specific != yes ; then
7142 LIBS="$LTHREAD_LIBS $LIBS"
7148 if test $ol_link_threads = no ; then
7149 if test $ol_with_threads = yes ; then
7150 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7153 if test $ol_with_threads = auto ; then
7154 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7158 cat >> confdefs.h <<\EOF
7159 #define NO_THREADS 1
7165 if test $ol_link_threads != no ; then
7166 cat >> confdefs.h <<\EOF
7167 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7174 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7175 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7176 echo "configure:7177: checking for DB2 library" >&5
7177 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7178 echo $ac_n "(cached) $ac_c" 1>&6
7181 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7182 echo "configure:7183: checking for db_open in -ldb" >&5
7183 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7185 echo $ac_n "(cached) $ac_c" 1>&6
7187 ac_save_LIBS="$LIBS"
7189 cat > conftest.$ac_ext <<EOF
7190 #line 7191 "configure"
7191 #include "confdefs.h"
7192 /* Override any gcc2 internal prototype to avoid an error. */
7193 /* We use char because int might match the return type of a gcc2
7194 builtin and then its argument prototype would still apply. */
7201 if { (eval echo configure:7202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7203 eval "ac_cv_lib_$ac_lib_var=yes"
7205 echo "configure: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7208 eval "ac_cv_lib_$ac_lib_var=no"
7211 LIBS="$ac_save_LIBS"
7214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7215 echo "$ac_t""yes" 1>&6
7218 echo "$ac_t""no" 1>&6
7226 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7232 echo "configure:7233: checking for $ac_hdr" >&5
7233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7234 echo $ac_n "(cached) $ac_c" 1>&6
7236 cat > conftest.$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7242 { (eval echo configure:7243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7244 if test -z "$ac_err"; then
7246 eval "ac_cv_header_$ac_safe=yes"
7249 echo "configure: failed program was:" >&5
7250 cat conftest.$ac_ext >&5
7252 eval "ac_cv_header_$ac_safe=no"
7256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7257 echo "$ac_t""yes" 1>&6
7258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7259 cat >> confdefs.h <<EOF
7260 #define $ac_tr_hdr 1
7264 echo "$ac_t""no" 1>&6
7268 if test $ac_cv_header_db_h = yes ; then
7269 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7270 echo "configure:7271: checking if db.h is DB2" >&5
7271 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7272 echo $ac_n "(cached) $ac_c" 1>&6
7275 cat > conftest.$ac_ext <<EOF
7276 #line 7277 "configure"
7277 #include "confdefs.h"
7280 /* this check could be improved */
7281 # ifdef DB_VERSION_MAJOR
7282 # if DB_VERSION_MAJOR == 2
7288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7289 egrep "__db_version_2" >/dev/null 2>&1; then
7291 ol_cv_header_db2=yes
7300 echo "$ac_t""$ol_cv_header_db2" 1>&6
7307 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7308 echo "configure:7309: checking for Berkeley DB2" >&5
7309 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7310 echo $ac_n "(cached) $ac_c" 1>&6
7313 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7314 ol_cv_berkeley_db2=no
7316 ol_cv_berkeley_db2=yes
7321 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7322 if test $ol_cv_berkeley_db2 = yes ; then
7323 cat >> confdefs.h <<\EOF
7324 #define HAVE_BERKELEY_DB2 1
7330 if test $ol_cv_berkeley_db2 = yes ; then
7332 ol_with_ldbm_api=db2
7334 if test $ol_with_ldbm_type = hash ; then
7335 cat >> confdefs.h <<\EOF
7336 #define LDBM_USE_DBHASH 1
7340 cat >> confdefs.h <<\EOF
7341 #define LDBM_USE_DBBTREE 1
7346 if test $ol_cv_lib_db2 != yes ; then
7347 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7353 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7357 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7358 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7359 echo "configure:7360: checking for Berkeley DB library" >&5
7360 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7361 echo $ac_n "(cached) $ac_c" 1>&6
7364 for ac_hdr in db1/db.h
7366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7368 echo "configure:7369: checking for $ac_hdr" >&5
7369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7372 cat > conftest.$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7378 { (eval echo configure:7379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7380 if test -z "$ac_err"; then
7382 eval "ac_cv_header_$ac_safe=yes"
7385 echo "configure: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7388 eval "ac_cv_header_$ac_safe=no"
7392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7393 echo "$ac_t""yes" 1>&6
7394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7395 cat >> confdefs.h <<EOF
7396 #define $ac_tr_hdr 1
7400 echo "$ac_t""no" 1>&6
7405 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7406 echo "configure:7407: checking for dbopen" >&5
7407 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7408 echo $ac_n "(cached) $ac_c" 1>&6
7410 cat > conftest.$ac_ext <<EOF
7411 #line 7412 "configure"
7412 #include "confdefs.h"
7413 /* System header to define __stub macros and hopefully few prototypes,
7414 which can conflict with char dbopen(); below. */
7416 /* Override any gcc2 internal prototype to avoid an error. */
7417 /* We use char because int might match the return type of a gcc2
7418 builtin and then its argument prototype would still apply. */
7423 /* The GNU C library defines this for functions which it implements
7424 to always fail with ENOSYS. Some functions are actually named
7425 something starting with __ and the normal name is an alias. */
7426 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7434 if { (eval echo configure:7435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7436 eval "ac_cv_func_dbopen=yes"
7438 echo "configure: failed program was:" >&5
7439 cat conftest.$ac_ext >&5
7441 eval "ac_cv_func_dbopen=no"
7446 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7447 echo "$ac_t""yes" 1>&6
7450 echo "$ac_t""no" 1>&6
7452 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
7453 echo "configure:7454: checking for dbopen in -ldb1" >&5
7454 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
7455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7456 echo $ac_n "(cached) $ac_c" 1>&6
7458 ac_save_LIBS="$LIBS"
7460 cat > conftest.$ac_ext <<EOF
7461 #line 7462 "configure"
7462 #include "confdefs.h"
7463 /* Override any gcc2 internal prototype to avoid an error. */
7464 /* We use char because int might match the return type of a gcc2
7465 builtin and then its argument prototype would still apply. */
7472 if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7474 eval "ac_cv_lib_$ac_lib_var=yes"
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7479 eval "ac_cv_lib_$ac_lib_var=no"
7482 LIBS="$ac_save_LIBS"
7485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7486 echo "$ac_t""yes" 1>&6
7489 echo "$ac_t""no" 1>&6
7491 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7492 echo "configure:7493: checking for dbopen in -ldb" >&5
7493 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7495 echo $ac_n "(cached) $ac_c" 1>&6
7497 ac_save_LIBS="$LIBS"
7499 cat > conftest.$ac_ext <<EOF
7500 #line 7501 "configure"
7501 #include "confdefs.h"
7502 /* Override any gcc2 internal prototype to avoid an error. */
7503 /* We use char because int might match the return type of a gcc2
7504 builtin and then its argument prototype would still apply. */
7511 if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7513 eval "ac_cv_lib_$ac_lib_var=yes"
7515 echo "configure: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7518 eval "ac_cv_lib_$ac_lib_var=no"
7521 LIBS="$ac_save_LIBS"
7524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7525 echo "$ac_t""yes" 1>&6
7528 echo "$ac_t""no" 1>&6
7542 echo "$ac_t""$ol_cv_lib_db" 1>&6
7545 for ac_hdr in db_185.h
7547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7549 echo "configure:7550: checking for $ac_hdr" >&5
7550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7551 echo $ac_n "(cached) $ac_c" 1>&6
7553 cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7559 { (eval echo configure:7560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7561 if test -z "$ac_err"; then
7563 eval "ac_cv_header_$ac_safe=yes"
7566 echo "configure: failed program was:" >&5
7567 cat conftest.$ac_ext >&5
7569 eval "ac_cv_header_$ac_safe=no"
7573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7574 echo "$ac_t""yes" 1>&6
7575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7576 cat >> confdefs.h <<EOF
7577 #define $ac_tr_hdr 1
7581 echo "$ac_t""no" 1>&6
7585 if test "$ol_cv_header_db2" = yes ; then
7587 ol_cv_header_db=$ac_cv_header_db_185_h
7589 ol_cv_header_db=$ac_cv_header_db_h
7594 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7595 echo "configure:7596: checking for Berkeley DB" >&5
7596 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7597 echo $ac_n "(cached) $ac_c" 1>&6
7600 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7601 ol_cv_berkeley_db=no
7603 ol_cv_berkeley_db=yes
7608 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
7609 if test $ol_cv_berkeley_db = yes ; then
7610 cat >> confdefs.h <<\EOF
7611 #define HAVE_BERKELEY_DB 1
7617 if test $ol_cv_berkeley_db = yes ; then
7621 if test $ol_with_ldbm_type = hash ; then
7622 cat >> confdefs.h <<\EOF
7623 #define LDBM_USE_DBHASH 1
7627 cat >> confdefs.h <<\EOF
7628 #define LDBM_USE_DBBTREE 1
7633 if test $ol_cv_lib_db != yes ; then
7634 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
7639 if test $ol_with_ldbm_api = manual ; then
7642 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
7644 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
7646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7648 echo "configure:7649: checking for $ac_hdr" >&5
7649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7650 echo $ac_n "(cached) $ac_c" 1>&6
7652 cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7658 { (eval echo configure:7659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7660 if test -z "$ac_err"; then
7662 eval "ac_cv_header_$ac_safe=yes"
7665 echo "configure: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7668 eval "ac_cv_header_$ac_safe=no"
7672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7673 echo "$ac_t""yes" 1>&6
7674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7675 cat >> confdefs.h <<EOF
7676 #define $ac_tr_hdr 1
7680 echo "$ac_t""no" 1>&6
7686 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7687 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7688 ol_with_ldbm_api=none
7691 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7692 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7693 echo "configure:7694: checking for MDBM library" >&5
7694 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7695 echo $ac_n "(cached) $ac_c" 1>&6
7698 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7699 echo "configure:7700: checking for mdbm_set_chain" >&5
7700 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
7701 echo $ac_n "(cached) $ac_c" 1>&6
7703 cat > conftest.$ac_ext <<EOF
7704 #line 7705 "configure"
7705 #include "confdefs.h"
7706 /* System header to define __stub macros and hopefully few prototypes,
7707 which can conflict with char mdbm_set_chain(); below. */
7709 /* Override any gcc2 internal prototype to avoid an error. */
7710 /* We use char because int might match the return type of a gcc2
7711 builtin and then its argument prototype would still apply. */
7712 char mdbm_set_chain();
7716 /* The GNU C library defines this for functions which it implements
7717 to always fail with ENOSYS. Some functions are actually named
7718 something starting with __ and the normal name is an alias. */
7719 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7727 if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7729 eval "ac_cv_func_mdbm_set_chain=yes"
7731 echo "configure: failed program was:" >&5
7732 cat conftest.$ac_ext >&5
7734 eval "ac_cv_func_mdbm_set_chain=no"
7739 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
7740 echo "$ac_t""yes" 1>&6
7743 echo "$ac_t""no" 1>&6
7745 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
7746 echo "configure:7747: checking for mdbm_set_chain in -lmdbm" >&5
7747 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
7748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7749 echo $ac_n "(cached) $ac_c" 1>&6
7751 ac_save_LIBS="$LIBS"
7753 cat > conftest.$ac_ext <<EOF
7754 #line 7755 "configure"
7755 #include "confdefs.h"
7756 /* Override any gcc2 internal prototype to avoid an error. */
7757 /* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7759 char mdbm_set_chain();
7765 if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7767 eval "ac_cv_lib_$ac_lib_var=yes"
7769 echo "configure: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7772 eval "ac_cv_lib_$ac_lib_var=no"
7775 LIBS="$ac_save_LIBS"
7778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7779 echo "$ac_t""yes" 1>&6
7780 ol_cv_lib_mdbm=-lmdbm
7782 echo "$ac_t""no" 1>&6
7793 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
7796 for ac_hdr in mdbm.h
7798 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7800 echo "configure:7801: checking for $ac_hdr" >&5
7801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7804 cat > conftest.$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7810 { (eval echo configure:7811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7812 if test -z "$ac_err"; then
7814 eval "ac_cv_header_$ac_safe=yes"
7817 echo "configure: failed program was:" >&5
7818 cat conftest.$ac_ext >&5
7820 eval "ac_cv_header_$ac_safe=no"
7824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7825 echo "$ac_t""yes" 1>&6
7826 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7827 cat >> confdefs.h <<EOF
7828 #define $ac_tr_hdr 1
7832 echo "$ac_t""no" 1>&6
7836 echo $ac_n "checking for db""... $ac_c" 1>&6
7837 echo "configure:7838: checking for db" >&5
7838 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7842 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
7850 echo "$ac_t""$ol_cv_mdbm" 1>&6
7851 if test $ol_cv_mdbm = yes ; then
7852 cat >> confdefs.h <<\EOF
7859 if test $ol_cv_mdbm = yes ; then
7861 ol_with_ldbm_api=mdbm
7862 if test $ol_cv_lib_mdbm != yes ; then
7863 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
7868 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
7869 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
7870 echo "configure:7871: checking for GDBM library" >&5
7871 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
7872 echo $ac_n "(cached) $ac_c" 1>&6
7875 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
7876 echo "configure:7877: checking for gdbm_open" >&5
7877 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
7878 echo $ac_n "(cached) $ac_c" 1>&6
7880 cat > conftest.$ac_ext <<EOF
7881 #line 7882 "configure"
7882 #include "confdefs.h"
7883 /* System header to define __stub macros and hopefully few prototypes,
7884 which can conflict with char gdbm_open(); below. */
7886 /* Override any gcc2 internal prototype to avoid an error. */
7887 /* We use char because int might match the return type of a gcc2
7888 builtin and then its argument prototype would still apply. */
7893 /* The GNU C library defines this for functions which it implements
7894 to always fail with ENOSYS. Some functions are actually named
7895 something starting with __ and the normal name is an alias. */
7896 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
7904 if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7906 eval "ac_cv_func_gdbm_open=yes"
7908 echo "configure: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7911 eval "ac_cv_func_gdbm_open=no"
7916 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
7917 echo "$ac_t""yes" 1>&6
7920 echo "$ac_t""no" 1>&6
7922 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
7923 echo "configure:7924: checking for gdbm_open in -lgdbm" >&5
7924 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
7925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7928 ac_save_LIBS="$LIBS"
7930 cat > conftest.$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7933 /* Override any gcc2 internal prototype to avoid an error. */
7934 /* We use char because int might match the return type of a gcc2
7935 builtin and then its argument prototype would still apply. */
7942 if { (eval echo configure:7943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7944 eval "ac_cv_lib_$ac_lib_var=yes"
7946 echo "configure: failed program was:" >&5
7947 cat conftest.$ac_ext >&5
7949 eval "ac_cv_lib_$ac_lib_var=no"
7952 LIBS="$ac_save_LIBS"
7955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7956 echo "$ac_t""yes" 1>&6
7957 ol_cv_lib_gdbm=-lgdbm
7959 echo "$ac_t""no" 1>&6
7970 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
7973 for ac_hdr in gdbm.h
7975 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7977 echo "configure:7978: checking for $ac_hdr" >&5
7978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7981 cat > conftest.$ac_ext <<EOF
7982 #line 7983 "configure"
7983 #include "confdefs.h"
7986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7987 { (eval echo configure:7988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7989 if test -z "$ac_err"; then
7991 eval "ac_cv_header_$ac_safe=yes"
7994 echo "configure: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7997 eval "ac_cv_header_$ac_safe=no"
8001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8002 echo "$ac_t""yes" 1>&6
8003 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8004 cat >> confdefs.h <<EOF
8005 #define $ac_tr_hdr 1
8009 echo "$ac_t""no" 1>&6
8013 echo $ac_n "checking for db""... $ac_c" 1>&6
8014 echo "configure:8015: checking for db" >&5
8015 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
8016 echo $ac_n "(cached) $ac_c" 1>&6
8019 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8027 echo "$ac_t""$ol_cv_gdbm" 1>&6
8028 if test $ol_cv_gdbm = yes ; then
8029 cat >> confdefs.h <<\EOF
8036 if test $ol_cv_gdbm = yes ; then
8038 ol_with_ldbm_api=gdbm
8040 if test $ol_cv_lib_gdbm != yes ; then
8041 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8046 if test $ol_with_ldbm_api = auto ; then
8047 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8048 elif test $ol_with_ldbm_api = ndbm ; then
8049 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8050 echo "configure:8051: checking for NDBM library" >&5
8051 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8055 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8056 echo "configure:8057: checking for dbm_open" >&5
8057 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
8058 echo $ac_n "(cached) $ac_c" 1>&6
8060 cat > conftest.$ac_ext <<EOF
8061 #line 8062 "configure"
8062 #include "confdefs.h"
8063 /* System header to define __stub macros and hopefully few prototypes,
8064 which can conflict with char dbm_open(); below. */
8066 /* Override any gcc2 internal prototype to avoid an error. */
8067 /* We use char because int might match the return type of a gcc2
8068 builtin and then its argument prototype would still apply. */
8073 /* The GNU C library defines this for functions which it implements
8074 to always fail with ENOSYS. Some functions are actually named
8075 something starting with __ and the normal name is an alias. */
8076 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8084 if { (eval echo configure:8085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8086 eval "ac_cv_func_dbm_open=yes"
8088 echo "configure: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8091 eval "ac_cv_func_dbm_open=no"
8096 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8097 echo "$ac_t""yes" 1>&6
8100 echo "$ac_t""no" 1>&6
8102 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8103 echo "configure:8104: checking for dbm_open in -lndbm" >&5
8104 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8106 echo $ac_n "(cached) $ac_c" 1>&6
8108 ac_save_LIBS="$LIBS"
8110 cat > conftest.$ac_ext <<EOF
8111 #line 8112 "configure"
8112 #include "confdefs.h"
8113 /* Override any gcc2 internal prototype to avoid an error. */
8114 /* We use char because int might match the return type of a gcc2
8115 builtin and then its argument prototype would still apply. */
8122 if { (eval echo configure:8123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8124 eval "ac_cv_lib_$ac_lib_var=yes"
8126 echo "configure: failed program was:" >&5
8127 cat conftest.$ac_ext >&5
8129 eval "ac_cv_lib_$ac_lib_var=no"
8132 LIBS="$ac_save_LIBS"
8135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8136 echo "$ac_t""yes" 1>&6
8137 ol_cv_lib_ndbm=-lndbm
8139 echo "$ac_t""no" 1>&6
8141 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8142 echo "configure:8143: checking for dbm_open in -ldbm" >&5
8143 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8145 echo $ac_n "(cached) $ac_c" 1>&6
8147 ac_save_LIBS="$LIBS"
8149 cat > conftest.$ac_ext <<EOF
8150 #line 8151 "configure"
8151 #include "confdefs.h"
8152 /* Override any gcc2 internal prototype to avoid an error. */
8153 /* We use char because int might match the return type of a gcc2
8154 builtin and then its argument prototype would still apply. */
8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8163 eval "ac_cv_lib_$ac_lib_var=yes"
8165 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8168 eval "ac_cv_lib_$ac_lib_var=no"
8171 LIBS="$ac_save_LIBS"
8174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8175 echo "$ac_t""yes" 1>&6
8176 ol_cv_lib_ndbm=-ldbm
8178 echo "$ac_t""no" 1>&6
8191 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8194 for ac_hdr in ndbm.h
8196 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8198 echo "configure:8199: checking for $ac_hdr" >&5
8199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8200 echo $ac_n "(cached) $ac_c" 1>&6
8202 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8208 { (eval echo configure:8209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8210 if test -z "$ac_err"; then
8212 eval "ac_cv_header_$ac_safe=yes"
8215 echo "configure: failed program was:" >&5
8216 cat conftest.$ac_ext >&5
8218 eval "ac_cv_header_$ac_safe=no"
8222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8223 echo "$ac_t""yes" 1>&6
8224 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8225 cat >> confdefs.h <<EOF
8226 #define $ac_tr_hdr 1
8230 echo "$ac_t""no" 1>&6
8234 echo $ac_n "checking for db""... $ac_c" 1>&6
8235 echo "configure:8236: checking for db" >&5
8236 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8237 echo $ac_n "(cached) $ac_c" 1>&6
8240 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8248 echo "$ac_t""$ol_cv_ndbm" 1>&6
8249 if test $ol_cv_ndbm = yes ; then
8250 cat >> confdefs.h <<\EOF
8257 if test $ol_cv_ndbm = yes ; then
8259 ol_with_ldbm_api=ndbm
8261 if test $ol_cv_lib_ndbm != yes ; then
8262 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8267 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8268 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8269 if test $ol_enable_ldbm = yes ; then
8270 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8273 echo "configure: warning: disabling LDBM" 1>&2
8277 if test $ol_enable_wrappers != no ; then
8278 for ac_hdr in tcpd.h
8280 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8281 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8282 echo "configure:8283: checking for $ac_hdr" >&5
8283 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8284 echo $ac_n "(cached) $ac_c" 1>&6
8286 cat > conftest.$ac_ext <<EOF
8287 #line 8288 "configure"
8288 #include "confdefs.h"
8291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8292 { (eval echo configure:8293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8294 if test -z "$ac_err"; then
8296 eval "ac_cv_header_$ac_safe=yes"
8299 echo "configure: failed program was:" >&5
8300 cat conftest.$ac_ext >&5
8302 eval "ac_cv_header_$ac_safe=no"
8306 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8307 echo "$ac_t""yes" 1>&6
8308 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8309 cat >> confdefs.h <<EOF
8310 #define $ac_tr_hdr 1
8314 echo "$ac_t""no" 1>&6
8319 if test $ac_cv_header_tcpd_h != yes ; then
8322 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8323 echo "configure:8324: checking for main in -lwrap" >&5
8324 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8325 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8326 echo $ac_n "(cached) $ac_c" 1>&6
8328 ac_save_LIBS="$LIBS"
8330 cat > conftest.$ac_ext <<EOF
8331 #line 8332 "configure"
8332 #include "confdefs.h"
8338 if { (eval echo configure:8339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8340 eval "ac_cv_lib_$ac_lib_var=yes"
8342 echo "configure: failed program was:" >&5
8343 cat conftest.$ac_ext >&5
8345 eval "ac_cv_lib_$ac_lib_var=no"
8348 LIBS="$ac_save_LIBS"
8351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8352 echo "$ac_t""yes" 1>&6
8355 echo "$ac_t""no" 1>&6
8361 if test $have_wrappers = yes ; then
8362 cat >> confdefs.h <<\EOF
8366 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8368 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8369 echo "configure:8370: checking for main in -lnsl" >&5
8370 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8372 echo $ac_n "(cached) $ac_c" 1>&6
8374 ac_save_LIBS="$LIBS"
8376 cat > conftest.$ac_ext <<EOF
8377 #line 8378 "configure"
8378 #include "confdefs.h"
8384 if { (eval echo configure:8385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8386 eval "ac_cv_lib_$ac_lib_var=yes"
8388 echo "configure: failed program was:" >&5
8389 cat conftest.$ac_ext >&5
8391 eval "ac_cv_lib_$ac_lib_var=no"
8394 LIBS="$ac_save_LIBS"
8397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8398 echo "$ac_t""yes" 1>&6
8399 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8401 cat >> confdefs.h <<EOF
8402 #define $ac_tr_lib 1
8408 echo "$ac_t""no" 1>&6
8412 echo "configure: warning: could not find -lwrap" 1>&2
8413 if test $ol_enable_wrappers = yes ; then
8414 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8417 echo "configure: warning: disabling wrappers support" 1>&2
8418 ol_enable_wrappers=no
8422 if test $ol_enable_syslog != no ; then
8423 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8424 echo "configure:8425: checking for openlog" >&5
8425 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
8428 cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8431 /* System header to define __stub macros and hopefully few prototypes,
8432 which can conflict with char openlog(); below. */
8434 /* Override any gcc2 internal prototype to avoid an error. */
8435 /* We use char because int might match the return type of a gcc2
8436 builtin and then its argument prototype would still apply. */
8441 /* The GNU C library defines this for functions which it implements
8442 to always fail with ENOSYS. Some functions are actually named
8443 something starting with __ and the normal name is an alias. */
8444 #if defined (__stub_openlog) || defined (__stub___openlog)
8452 if { (eval echo configure:8453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8454 eval "ac_cv_func_openlog=yes"
8456 echo "configure: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8459 eval "ac_cv_func_openlog=no"
8464 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8465 echo "$ac_t""yes" 1>&6
8468 echo "$ac_t""no" 1>&6
8471 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8472 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8474 ol_enable_syslog=$ac_cv_func_openlog
8477 if test $ol_enable_dmalloc != no ; then
8478 for ac_hdr in dmalloc.h
8480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8482 echo "configure:8483: checking for $ac_hdr" >&5
8483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8484 echo $ac_n "(cached) $ac_c" 1>&6
8486 cat > conftest.$ac_ext <<EOF
8487 #line 8488 "configure"
8488 #include "confdefs.h"
8491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8492 { (eval echo configure:8493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8494 if test -z "$ac_err"; then
8496 eval "ac_cv_header_$ac_safe=yes"
8499 echo "configure: failed program was:" >&5
8500 cat conftest.$ac_ext >&5
8502 eval "ac_cv_header_$ac_safe=no"
8506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8507 echo "$ac_t""yes" 1>&6
8508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8509 cat >> confdefs.h <<EOF
8510 #define $ac_tr_hdr 1
8514 echo "$ac_t""no" 1>&6
8518 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8519 echo "configure:8520: checking for dmalloc_shutdown in -ldmalloc" >&5
8520 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8521 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8524 ac_save_LIBS="$LIBS"
8525 LIBS="-ldmalloc $LIBS"
8526 cat > conftest.$ac_ext <<EOF
8527 #line 8528 "configure"
8528 #include "confdefs.h"
8529 /* Override any gcc2 internal prototype to avoid an error. */
8530 /* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8532 char dmalloc_shutdown();
8538 if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8540 eval "ac_cv_lib_$ac_lib_var=yes"
8542 echo "configure: failed program was:" >&5
8543 cat conftest.$ac_ext >&5
8545 eval "ac_cv_lib_$ac_lib_var=no"
8548 LIBS="$ac_save_LIBS"
8551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8552 echo "$ac_t""yes" 1>&6
8553 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8554 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8555 cat >> confdefs.h <<EOF
8556 #define $ac_tr_lib 1
8559 LIBS="-ldmalloc $LIBS"
8562 echo "$ac_t""no" 1>&6
8567 if test $ol_enable_tcl != no ; then
8570 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8571 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8572 echo "configure:8573: checking for $ac_hdr" >&5
8573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8574 echo $ac_n "(cached) $ac_c" 1>&6
8576 cat > conftest.$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8582 { (eval echo configure:8583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8584 if test -z "$ac_err"; then
8586 eval "ac_cv_header_$ac_safe=yes"
8589 echo "configure: failed program was:" >&5
8590 cat conftest.$ac_ext >&5
8592 eval "ac_cv_header_$ac_safe=no"
8596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8597 echo "$ac_t""yes" 1>&6
8598 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8599 cat >> confdefs.h <<EOF
8600 #define $ac_tr_hdr 1
8604 echo "$ac_t""no" 1>&6
8609 if test $ac_cv_header_tcl_h != yes ; then
8612 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
8613 echo "configure:8614: checking for main in -ltcl" >&5
8614 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
8615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8616 echo $ac_n "(cached) $ac_c" 1>&6
8618 ac_save_LIBS="$LIBS"
8620 cat > conftest.$ac_ext <<EOF
8621 #line 8622 "configure"
8622 #include "confdefs.h"
8628 if { (eval echo configure:8629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8630 eval "ac_cv_lib_$ac_lib_var=yes"
8632 echo "configure: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8635 eval "ac_cv_lib_$ac_lib_var=no"
8638 LIBS="$ac_save_LIBS"
8641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8642 echo "$ac_t""yes" 1>&6
8643 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
8645 echo "$ac_t""no" 1>&6
8650 if test $have_tcl != yes; then
8651 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
8652 echo "configure:8653: checking for main in -ltcl7.6" >&5
8653 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
8654 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8655 echo $ac_n "(cached) $ac_c" 1>&6
8657 ac_save_LIBS="$LIBS"
8658 LIBS="-ltcl7.6 $LIBS"
8659 cat > conftest.$ac_ext <<EOF
8660 #line 8661 "configure"
8661 #include "confdefs.h"
8667 if { (eval echo configure:8668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8669 eval "ac_cv_lib_$ac_lib_var=yes"
8671 echo "configure: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8674 eval "ac_cv_lib_$ac_lib_var=no"
8677 LIBS="$ac_save_LIBS"
8680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8681 echo "$ac_t""yes" 1>&6
8682 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
8684 echo "$ac_t""no" 1>&6
8690 if test $have_tcl != yes; then
8691 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
8692 echo "configure:8693: checking for main in -ltcl8.0" >&5
8693 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
8694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8695 echo $ac_n "(cached) $ac_c" 1>&6
8697 ac_save_LIBS="$LIBS"
8698 LIBS="-ltcl8.0 $LIBS"
8699 cat > conftest.$ac_ext <<EOF
8700 #line 8701 "configure"
8701 #include "confdefs.h"
8707 if { (eval echo configure:8708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8709 eval "ac_cv_lib_$ac_lib_var=yes"
8711 echo "configure: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8714 eval "ac_cv_lib_$ac_lib_var=no"
8717 LIBS="$ac_save_LIBS"
8720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8721 echo "$ac_t""yes" 1>&6
8722 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8724 echo "$ac_t""no" 1>&6
8731 if test $have_tcl != yes ; then
8732 echo "configure: warning: could not find -ltcl" 1>&2
8733 if test $ol_enable_tcl = yes ; then
8734 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
8741 # ud needs termcap (should insert check here)
8743 for ac_hdr in termcap.h ncurses.h
8745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8747 echo "configure:8748: checking for $ac_hdr" >&5
8748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8749 echo $ac_n "(cached) $ac_c" 1>&6
8751 cat > conftest.$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8757 { (eval echo configure:8758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8759 if test -z "$ac_err"; then
8761 eval "ac_cv_header_$ac_safe=yes"
8764 echo "configure: failed program was:" >&5
8765 cat conftest.$ac_ext >&5
8767 eval "ac_cv_header_$ac_safe=no"
8771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8772 echo "$ac_t""yes" 1>&6
8773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8774 cat >> confdefs.h <<EOF
8775 #define $ac_tr_hdr 1
8779 echo "$ac_t""no" 1>&6
8784 if test $ol_link_termcap = no ; then
8785 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
8786 echo "configure:8787: checking for tputs in -ltermcap" >&5
8787 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
8788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8789 echo $ac_n "(cached) $ac_c" 1>&6
8791 ac_save_LIBS="$LIBS"
8792 LIBS="-ltermcap $LIBS"
8793 cat > conftest.$ac_ext <<EOF
8794 #line 8795 "configure"
8795 #include "confdefs.h"
8796 /* Override any gcc2 internal prototype to avoid an error. */
8797 /* We use char because int might match the return type of a gcc2
8798 builtin and then its argument prototype would still apply. */
8805 if { (eval echo configure:8806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8807 eval "ac_cv_lib_$ac_lib_var=yes"
8809 echo "configure: failed program was:" >&5
8810 cat conftest.$ac_ext >&5
8812 eval "ac_cv_lib_$ac_lib_var=no"
8815 LIBS="$ac_save_LIBS"
8818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8819 echo "$ac_t""yes" 1>&6
8822 echo "$ac_t""no" 1>&6
8826 if test $have_termcap = yes ; then
8827 cat >> confdefs.h <<\EOF
8828 #define HAVE_TERMCAP 1
8832 TERMCAP_LIBS=-ltermcap
8836 if test $ol_link_termcap = no ; then
8837 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
8838 echo "configure:8839: checking for initscr in -lncurses" >&5
8839 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
8840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8841 echo $ac_n "(cached) $ac_c" 1>&6
8843 ac_save_LIBS="$LIBS"
8844 LIBS="-lncurses $LIBS"
8845 cat > conftest.$ac_ext <<EOF
8846 #line 8847 "configure"
8847 #include "confdefs.h"
8848 /* Override any gcc2 internal prototype to avoid an error. */
8849 /* We use char because int might match the return type of a gcc2
8850 builtin and then its argument prototype would still apply. */
8857 if { (eval echo configure:8858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8859 eval "ac_cv_lib_$ac_lib_var=yes"
8861 echo "configure: failed program was:" >&5
8862 cat conftest.$ac_ext >&5
8864 eval "ac_cv_lib_$ac_lib_var=no"
8867 LIBS="$ac_save_LIBS"
8870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8871 echo "$ac_t""yes" 1>&6
8874 echo "$ac_t""no" 1>&6
8878 if test $have_ncurses = yes ; then
8879 cat >> confdefs.h <<\EOF
8880 #define HAVE_NCURSES 1
8884 TERMCAP_LIBS=-lncurses
8888 if test $ol_link_termcap = no ; then
8889 cat >> confdefs.h <<\EOF
8890 #define NO_TERMCAP 1
8897 if test $ol_with_readline != no ; then
8898 for ac_hdr in readline/readline.h readline/history.h
8900 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8901 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8902 echo "configure:8903: checking for $ac_hdr" >&5
8903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
8906 cat > conftest.$ac_ext <<EOF
8907 #line 8908 "configure"
8908 #include "confdefs.h"
8911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8912 { (eval echo configure:8913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8914 if test -z "$ac_err"; then
8916 eval "ac_cv_header_$ac_safe=yes"
8919 echo "configure: failed program was:" >&5
8920 cat conftest.$ac_ext >&5
8922 eval "ac_cv_header_$ac_safe=no"
8926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8927 echo "$ac_t""yes" 1>&6
8928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8929 cat >> confdefs.h <<EOF
8930 #define $ac_tr_hdr 1
8934 echo "$ac_t""no" 1>&6
8939 if test $ac_cv_header_readline_readline_h = yes ; then
8941 LIBS="$TERMCAP_LIBS $LIBS"
8942 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8943 echo "configure:8944: checking for readline in -lreadline" >&5
8944 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8946 echo $ac_n "(cached) $ac_c" 1>&6
8948 ac_save_LIBS="$LIBS"
8949 LIBS="-lreadline $LIBS"
8950 cat > conftest.$ac_ext <<EOF
8951 #line 8952 "configure"
8952 #include "confdefs.h"
8953 /* Override any gcc2 internal prototype to avoid an error. */
8954 /* We use char because int might match the return type of a gcc2
8955 builtin and then its argument prototype would still apply. */
8962 if { (eval echo configure:8963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8964 eval "ac_cv_lib_$ac_lib_var=yes"
8966 echo "configure: failed program was:" >&5
8967 cat conftest.$ac_ext >&5
8969 eval "ac_cv_lib_$ac_lib_var=no"
8972 LIBS="$ac_save_LIBS"
8975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8976 echo "$ac_t""yes" 1>&6
8979 echo "$ac_t""no" 1>&6
8985 if test $have_readline = yes ; then
8986 ol_with_readline=found
8987 ol_link_readline=yes
8989 READLINE_LIBS="-lreadline"
8994 if test $ol_link_readline = yes ; then
8995 cat >> confdefs.h <<\EOF
8996 #define HAVE_READLINE 1
9002 # FreeBSD (and others) have crypt(3) in -lcrypt
9003 if test $ol_enable_crypt != no ; then
9004 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9005 echo "configure:9006: checking for crypt" >&5
9006 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
9007 echo $ac_n "(cached) $ac_c" 1>&6
9009 cat > conftest.$ac_ext <<EOF
9010 #line 9011 "configure"
9011 #include "confdefs.h"
9012 /* System header to define __stub macros and hopefully few prototypes,
9013 which can conflict with char crypt(); below. */
9015 /* Override any gcc2 internal prototype to avoid an error. */
9016 /* We use char because int might match the return type of a gcc2
9017 builtin and then its argument prototype would still apply. */
9022 /* The GNU C library defines this for functions which it implements
9023 to always fail with ENOSYS. Some functions are actually named
9024 something starting with __ and the normal name is an alias. */
9025 #if defined (__stub_crypt) || defined (__stub___crypt)
9033 if { (eval echo configure:9034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9035 eval "ac_cv_func_crypt=yes"
9037 echo "configure: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9040 eval "ac_cv_func_crypt=no"
9045 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9046 echo "$ac_t""yes" 1>&6
9049 echo "$ac_t""no" 1>&6
9051 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9052 echo "configure:9053: checking for crypt in -lcrypt" >&5
9053 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9055 echo $ac_n "(cached) $ac_c" 1>&6
9057 ac_save_LIBS="$LIBS"
9058 LIBS="-lcrypt $LIBS"
9059 cat > conftest.$ac_ext <<EOF
9060 #line 9061 "configure"
9061 #include "confdefs.h"
9062 /* Override any gcc2 internal prototype to avoid an error. */
9063 /* We use char because int might match the return type of a gcc2
9064 builtin and then its argument prototype would still apply. */
9071 if { (eval echo configure:9072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9073 eval "ac_cv_lib_$ac_lib_var=yes"
9075 echo "configure: failed program was:" >&5
9076 cat conftest.$ac_ext >&5
9078 eval "ac_cv_lib_$ac_lib_var=no"
9081 LIBS="$ac_save_LIBS"
9084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9085 echo "$ac_t""yes" 1>&6
9086 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9089 echo "$ac_t""no" 1>&6
9096 if test $have_crypt = yes ; then
9097 cat >> confdefs.h <<\EOF
9098 #define HAVE_CRYPT 1
9102 echo "configure: warning: could not find crypt" 1>&2
9103 if test $ol_enable_crypt = yes ; then
9104 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9107 echo "configure: warning: disabling crypt support" 1>&2
9112 # FreeBSD (and others) have setproctitle(3) in -lutil
9113 if test $ol_enable_proctitle != no ; then
9114 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9115 echo "configure:9116: checking for setproctitle" >&5
9116 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
9117 echo $ac_n "(cached) $ac_c" 1>&6
9119 cat > conftest.$ac_ext <<EOF
9120 #line 9121 "configure"
9121 #include "confdefs.h"
9122 /* System header to define __stub macros and hopefully few prototypes,
9123 which can conflict with char setproctitle(); below. */
9125 /* Override any gcc2 internal prototype to avoid an error. */
9126 /* We use char because int might match the return type of a gcc2
9127 builtin and then its argument prototype would still apply. */
9128 char setproctitle();
9132 /* The GNU C library defines this for functions which it implements
9133 to always fail with ENOSYS. Some functions are actually named
9134 something starting with __ and the normal name is an alias. */
9135 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9143 if { (eval echo configure:9144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9145 eval "ac_cv_func_setproctitle=yes"
9147 echo "configure: failed program was:" >&5
9148 cat conftest.$ac_ext >&5
9150 eval "ac_cv_func_setproctitle=no"
9155 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9156 echo "$ac_t""yes" 1>&6
9157 have_setproctitle=yes
9159 echo "$ac_t""no" 1>&6
9161 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9162 echo "configure:9163: checking for setproctitle in -lutil" >&5
9163 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9165 echo $ac_n "(cached) $ac_c" 1>&6
9167 ac_save_LIBS="$LIBS"
9169 cat > conftest.$ac_ext <<EOF
9170 #line 9171 "configure"
9171 #include "confdefs.h"
9172 /* Override any gcc2 internal prototype to avoid an error. */
9173 /* We use char because int might match the return type of a gcc2
9174 builtin and then its argument prototype would still apply. */
9175 char setproctitle();
9181 if { (eval echo configure:9182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9183 eval "ac_cv_lib_$ac_lib_var=yes"
9185 echo "configure: failed program was:" >&5
9186 cat conftest.$ac_ext >&5
9188 eval "ac_cv_lib_$ac_lib_var=no"
9191 LIBS="$ac_save_LIBS"
9194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9195 echo "$ac_t""yes" 1>&6
9196 have_setproctitle=yes
9197 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9199 echo "$ac_t""no" 1>&6
9200 have_setproctitle=no
9201 LIBOBJS="$LIBOBJS setproctitle.o"
9207 if test $have_setproctitle = yes ; then
9208 cat >> confdefs.h <<\EOF
9209 #define HAVE_SETPROCTITLE 1
9216 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9217 echo "configure:9218: checking for EBCDIC" >&5
9218 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9219 echo $ac_n "(cached) $ac_c" 1>&6
9222 cat > conftest.$ac_ext <<EOF
9223 #line 9224 "configure"
9224 #include "confdefs.h"
9227 #include <__ASCII__/generate_error.h>
9231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9232 { (eval echo configure:9233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9234 if test -z "$ac_err"; then
9236 ol_cv_cpp_ebcdic=yes
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9247 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9248 if test $ol_cv_cpp_ebcdic = yes ; then
9249 cat >> confdefs.h <<\EOF
9250 #define HAVE_EBCDIC 1
9255 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9256 echo "configure:9257: checking for ANSI C header files" >&5
9257 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9260 cat > conftest.$ac_ext <<EOF
9261 #line 9262 "configure"
9262 #include "confdefs.h"
9268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9269 { (eval echo configure:9270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9271 if test -z "$ac_err"; then
9273 ol_cv_header_stdc=yes
9276 echo "configure: failed program was:" >&5
9277 cat conftest.$ac_ext >&5
9279 ol_cv_header_stdc=no
9283 if test $ol_cv_header_stdc = yes; then
9284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9285 cat > conftest.$ac_ext <<EOF
9286 #line 9287 "configure"
9287 #include "confdefs.h"
9290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9291 egrep "memchr" >/dev/null 2>&1; then
9295 ol_cv_header_stdc=no
9301 if test $ol_cv_header_stdc = yes; then
9302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9303 cat > conftest.$ac_ext <<EOF
9304 #line 9305 "configure"
9305 #include "confdefs.h"
9308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9309 egrep "free" >/dev/null 2>&1; then
9313 ol_cv_header_stdc=no
9319 if test $ol_cv_header_stdc = yes; then
9320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9321 if test "$cross_compiling" = yes; then
9324 cat > conftest.$ac_ext <<EOF
9325 #line 9326 "configure"
9326 #include "confdefs.h"
9329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9332 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9333 || ('j' <= (c) && (c) <= 'r') \
9334 || ('s' <= (c) && (c) <= 'z'))
9335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9338 int main () { int i; for (i = 0; i < 256; i++)
9339 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9343 if { (eval echo configure:9344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9347 echo "configure: failed program was:" >&5
9348 cat conftest.$ac_ext >&5
9350 ol_cv_header_stdc=no
9358 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9359 if test $ol_cv_header_stdc = yes; then
9360 cat >> confdefs.h <<\EOF
9361 #define STDC_HEADERS 1
9365 ac_cv_header_stdc=disable
9368 if test $ol_cv_header_stdc != yes; then
9369 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9373 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9376 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9377 echo "configure:9378: checking for $ac_hdr that defines DIR" >&5
9378 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9379 echo $ac_n "(cached) $ac_c" 1>&6
9381 cat > conftest.$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 #include <sys/types.h>
9390 if { (eval echo configure:9391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9392 eval "ac_cv_header_dirent_$ac_safe=yes"
9394 echo "configure: failed program was:" >&5
9395 cat conftest.$ac_ext >&5
9397 eval "ac_cv_header_dirent_$ac_safe=no"
9401 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9402 echo "$ac_t""yes" 1>&6
9403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9404 cat >> confdefs.h <<EOF
9405 #define $ac_tr_hdr 1
9407 ac_header_dirent=$ac_hdr; break
9409 echo "$ac_t""no" 1>&6
9412 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9413 if test $ac_header_dirent = dirent.h; then
9414 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9415 echo "configure:9416: checking for opendir in -ldir" >&5
9416 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9418 echo $ac_n "(cached) $ac_c" 1>&6
9420 ac_save_LIBS="$LIBS"
9422 cat > conftest.$ac_ext <<EOF
9423 #line 9424 "configure"
9424 #include "confdefs.h"
9425 /* Override any gcc2 internal prototype to avoid an error. */
9426 /* We use char because int might match the return type of a gcc2
9427 builtin and then its argument prototype would still apply. */
9434 if { (eval echo configure:9435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9436 eval "ac_cv_lib_$ac_lib_var=yes"
9438 echo "configure: failed program was:" >&5
9439 cat conftest.$ac_ext >&5
9441 eval "ac_cv_lib_$ac_lib_var=no"
9444 LIBS="$ac_save_LIBS"
9447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9448 echo "$ac_t""yes" 1>&6
9451 echo "$ac_t""no" 1>&6
9455 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9456 echo "configure:9457: checking for opendir in -lx" >&5
9457 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9459 echo $ac_n "(cached) $ac_c" 1>&6
9461 ac_save_LIBS="$LIBS"
9463 cat > conftest.$ac_ext <<EOF
9464 #line 9465 "configure"
9465 #include "confdefs.h"
9466 /* Override any gcc2 internal prototype to avoid an error. */
9467 /* We use char because int might match the return type of a gcc2
9468 builtin and then its argument prototype would still apply. */
9475 if { (eval echo configure:9476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9477 eval "ac_cv_lib_$ac_lib_var=yes"
9479 echo "configure: failed program was:" >&5
9480 cat conftest.$ac_ext >&5
9482 eval "ac_cv_lib_$ac_lib_var=no"
9485 LIBS="$ac_save_LIBS"
9488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9489 echo "$ac_t""yes" 1>&6
9492 echo "$ac_t""no" 1>&6
9497 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9498 echo "configure:9499: checking for sys/wait.h that is POSIX.1 compatible" >&5
9499 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9500 echo $ac_n "(cached) $ac_c" 1>&6
9502 cat > conftest.$ac_ext <<EOF
9503 #line 9504 "configure"
9504 #include "confdefs.h"
9505 #include <sys/types.h>
9506 #include <sys/wait.h>
9508 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9511 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9516 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9519 if { (eval echo configure:9520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9521 ac_cv_header_sys_wait_h=yes
9523 echo "configure: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9526 ac_cv_header_sys_wait_h=no
9531 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9532 if test $ac_cv_header_sys_wait_h = yes; then
9533 cat >> confdefs.h <<\EOF
9534 #define HAVE_SYS_WAIT_H 1
9539 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9540 echo "configure:9541: checking POSIX termios" >&5
9541 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9542 echo $ac_n "(cached) $ac_c" 1>&6
9544 cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 #include <sys/types.h>
9549 #include <termios.h>
9551 /* SunOS 4.0.3 has termios.h but not the library calls. */
9555 if { (eval echo configure:9556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9557 am_cv_sys_posix_termios=yes
9559 echo "configure: failed program was:" >&5
9560 cat conftest.$ac_ext >&5
9562 am_cv_sys_posix_termios=no
9567 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9570 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9571 echo "configure:9572: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9572 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9573 echo $ac_n "(cached) $ac_c" 1>&6
9575 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9577 gwinsz_in_termios_h=no
9578 if test $am_cv_sys_posix_termios = yes; then
9579 cat > conftest.$ac_ext <<EOF
9580 #line 9581 "configure"
9581 #include "confdefs.h"
9582 #include <sys/types.h>
9583 # include <termios.h>
9589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9590 egrep "yes" >/dev/null 2>&1; then
9592 gwinsz_in_termios_h=yes
9598 if test $gwinsz_in_termios_h = no; then
9599 cat > conftest.$ac_ext <<EOF
9600 #line 9601 "configure"
9601 #include "confdefs.h"
9602 #include <sys/types.h>
9603 # include <sys/ioctl.h>
9609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9610 egrep "yes" >/dev/null 2>&1; then
9612 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9620 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9621 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9622 cat >> confdefs.h <<\EOF
9623 #define GWINSZ_IN_SYS_IOCTL 1
9628 if test $am_cv_sys_posix_termios = yes ; then
9629 cat >> confdefs.h <<\EOF
9630 #define HAVE_POSIX_TERMIOS 1
9676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9678 echo "configure:9679: checking for $ac_hdr" >&5
9679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9680 echo $ac_n "(cached) $ac_c" 1>&6
9682 cat > conftest.$ac_ext <<EOF
9683 #line 9684 "configure"
9684 #include "confdefs.h"
9687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9688 { (eval echo configure:9689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9690 if test -z "$ac_err"; then
9692 eval "ac_cv_header_$ac_safe=yes"
9695 echo "configure: failed program was:" >&5
9696 cat conftest.$ac_ext >&5
9698 eval "ac_cv_header_$ac_safe=no"
9702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9703 echo "$ac_t""yes" 1>&6
9704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9705 cat >> confdefs.h <<EOF
9706 #define $ac_tr_hdr 1
9710 echo "$ac_t""no" 1>&6
9715 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9716 echo "configure:9717: checking for uid_t in sys/types.h" >&5
9717 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9718 echo $ac_n "(cached) $ac_c" 1>&6
9720 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9723 #include <sys/types.h>
9725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9726 egrep "uid_t" >/dev/null 2>&1; then
9728 ac_cv_type_uid_t=yes
9737 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9738 if test $ac_cv_type_uid_t = no; then
9739 cat >> confdefs.h <<\EOF
9743 cat >> confdefs.h <<\EOF
9749 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
9750 echo "configure:9751: checking type of array argument to getgroups" >&5
9751 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
9752 echo $ac_n "(cached) $ac_c" 1>&6
9754 if test "$cross_compiling" = yes; then
9755 ac_cv_type_getgroups=cross
9757 cat > conftest.$ac_ext <<EOF
9758 #line 9759 "configure"
9759 #include "confdefs.h"
9761 /* Thanks to Mike Rendell for this test. */
9762 #include <sys/types.h>
9765 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9770 union { gid_t gval; long lval; } val;
9773 for (i = 0; i < NGID; i++)
9774 gidset[i] = val.gval;
9775 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9777 /* Exit non-zero if getgroups seems to require an array of ints. This
9778 happens when gid_t is short but getgroups modifies an array of ints. */
9779 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9783 if { (eval echo configure:9784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9785 ac_cv_type_getgroups=gid_t
9787 echo "configure: failed program was:" >&5
9788 cat conftest.$ac_ext >&5
9790 ac_cv_type_getgroups=int
9795 if test $ac_cv_type_getgroups = cross; then
9796 cat > conftest.$ac_ext <<EOF
9797 #line 9798 "configure"
9798 #include "confdefs.h"
9801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9802 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9804 ac_cv_type_getgroups=gid_t
9807 ac_cv_type_getgroups=int
9814 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
9815 cat >> confdefs.h <<EOF
9816 #define GETGROUPS_T $ac_cv_type_getgroups
9819 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9820 echo "configure:9821: checking for ANSI C header files" >&5
9821 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9822 echo $ac_n "(cached) $ac_c" 1>&6
9824 cat > conftest.$ac_ext <<EOF
9825 #line 9826 "configure"
9826 #include "confdefs.h"
9832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9833 { (eval echo configure:9834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9835 if test -z "$ac_err"; then
9837 ac_cv_header_stdc=yes
9840 echo "configure: failed program was:" >&5
9841 cat conftest.$ac_ext >&5
9843 ac_cv_header_stdc=no
9847 if test $ac_cv_header_stdc = yes; then
9848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9849 cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure"
9851 #include "confdefs.h"
9854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9855 egrep "memchr" >/dev/null 2>&1; then
9859 ac_cv_header_stdc=no
9865 if test $ac_cv_header_stdc = yes; then
9866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9867 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure"
9869 #include "confdefs.h"
9872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9873 egrep "free" >/dev/null 2>&1; then
9877 ac_cv_header_stdc=no
9883 if test $ac_cv_header_stdc = yes; then
9884 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9885 if test "$cross_compiling" = yes; then
9888 cat > conftest.$ac_ext <<EOF
9889 #line 9890 "configure"
9890 #include "confdefs.h"
9892 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9893 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9895 int main () { int i; for (i = 0; i < 256; i++)
9896 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9900 if { (eval echo configure:9901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9904 echo "configure: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9907 ac_cv_header_stdc=no
9915 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9916 if test $ac_cv_header_stdc = yes; then
9917 cat >> confdefs.h <<\EOF
9918 #define STDC_HEADERS 1
9923 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9924 echo "configure:9925: checking for mode_t" >&5
9925 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9926 echo $ac_n "(cached) $ac_c" 1>&6
9928 cat > conftest.$ac_ext <<EOF
9929 #line 9930 "configure"
9930 #include "confdefs.h"
9931 #include <sys/types.h>
9937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9938 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9940 ac_cv_type_mode_t=yes
9943 ac_cv_type_mode_t=no
9948 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9949 if test $ac_cv_type_mode_t = no; then
9950 cat >> confdefs.h <<\EOF
9956 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9957 echo "configure:9958: checking for off_t" >&5
9958 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9959 echo $ac_n "(cached) $ac_c" 1>&6
9961 cat > conftest.$ac_ext <<EOF
9962 #line 9963 "configure"
9963 #include "confdefs.h"
9964 #include <sys/types.h>
9970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9971 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9973 ac_cv_type_off_t=yes
9981 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9982 if test $ac_cv_type_off_t = no; then
9983 cat >> confdefs.h <<\EOF
9989 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9990 echo "configure:9991: checking for pid_t" >&5
9991 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9992 echo $ac_n "(cached) $ac_c" 1>&6
9994 cat > conftest.$ac_ext <<EOF
9995 #line 9996 "configure"
9996 #include "confdefs.h"
9997 #include <sys/types.h>
10000 #include <stddef.h>
10003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10004 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10006 ac_cv_type_pid_t=yes
10009 ac_cv_type_pid_t=no
10014 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10015 if test $ac_cv_type_pid_t = no; then
10016 cat >> confdefs.h <<\EOF
10022 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10023 echo "configure:10024: checking for ptrdiff_t" >&5
10024 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
10025 echo $ac_n "(cached) $ac_c" 1>&6
10027 cat > conftest.$ac_ext <<EOF
10028 #line 10029 "configure"
10029 #include "confdefs.h"
10030 #include <stddef.h>
10035 if { (eval echo configure:10036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10037 am_cv_type_ptrdiff_t=yes
10039 echo "configure: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10042 am_cv_type_ptrdiff_t=no
10047 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10048 if test $am_cv_type_ptrdiff_t = yes; then
10049 cat >> confdefs.h <<\EOF
10050 #define HAVE_PTRDIFF_T 1
10055 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10056 echo "configure:10057: checking return type of signal handlers" >&5
10057 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10058 echo $ac_n "(cached) $ac_c" 1>&6
10060 cat > conftest.$ac_ext <<EOF
10061 #line 10062 "configure"
10062 #include "confdefs.h"
10063 #include <sys/types.h>
10064 #include <signal.h>
10069 extern "C" void (*signal (int, void (*)(int)))(int);
10071 void (*signal ()) ();
10078 if { (eval echo configure:10079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10080 ac_cv_type_signal=void
10082 echo "configure: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10085 ac_cv_type_signal=int
10090 echo "$ac_t""$ac_cv_type_signal" 1>&6
10091 cat >> confdefs.h <<EOF
10092 #define RETSIGTYPE $ac_cv_type_signal
10096 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10097 echo "configure:10098: checking for sig_atomic_t" >&5
10098 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
10099 echo $ac_n "(cached) $ac_c" 1>&6
10101 cat > conftest.$ac_ext <<EOF
10102 #line 10103 "configure"
10103 #include "confdefs.h"
10104 #include <signal.h>
10106 sig_atomic_t atomic;
10109 if { (eval echo configure:10110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10111 ol_cv_type_sig_atomic_t=yes
10113 echo "configure: failed program was:" >&5
10114 cat conftest.$ac_ext >&5
10116 ol_cv_type_sig_atomic_t=no
10121 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10122 if test $ol_cv_type_sig_atomic_t = no; then
10123 cat >> confdefs.h <<\EOF
10124 #define sig_atomic_t int
10129 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10130 echo "configure:10131: checking for size_t" >&5
10131 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10132 echo $ac_n "(cached) $ac_c" 1>&6
10134 cat > conftest.$ac_ext <<EOF
10135 #line 10136 "configure"
10136 #include "confdefs.h"
10137 #include <sys/types.h>
10139 #include <stdlib.h>
10140 #include <stddef.h>
10143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10144 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10146 ac_cv_type_size_t=yes
10149 ac_cv_type_size_t=no
10154 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10155 if test $ac_cv_type_size_t = no; then
10156 cat >> confdefs.h <<\EOF
10157 #define size_t unsigned
10162 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10163 echo "configure:10164: checking for st_blksize in struct stat" >&5
10164 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10167 cat > conftest.$ac_ext <<EOF
10168 #line 10169 "configure"
10169 #include "confdefs.h"
10170 #include <sys/types.h>
10171 #include <sys/stat.h>
10173 struct stat s; s.st_blksize;
10176 if { (eval echo configure:10177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10178 ac_cv_struct_st_blksize=yes
10180 echo "configure: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10183 ac_cv_struct_st_blksize=no
10188 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10189 if test $ac_cv_struct_st_blksize = yes; then
10190 cat >> confdefs.h <<\EOF
10191 #define HAVE_ST_BLKSIZE 1
10196 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10197 echo "configure:10198: checking whether time.h and sys/time.h may both be included" >&5
10198 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10199 echo $ac_n "(cached) $ac_c" 1>&6
10201 cat > conftest.$ac_ext <<EOF
10202 #line 10203 "configure"
10203 #include "confdefs.h"
10204 #include <sys/types.h>
10205 #include <sys/time.h>
10211 if { (eval echo configure:10212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10213 ac_cv_header_time=yes
10215 echo "configure: failed program was:" >&5
10216 cat conftest.$ac_ext >&5
10218 ac_cv_header_time=no
10223 echo "$ac_t""$ac_cv_header_time" 1>&6
10224 if test $ac_cv_header_time = yes; then
10225 cat >> confdefs.h <<\EOF
10226 #define TIME_WITH_SYS_TIME 1
10231 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10232 echo "configure:10233: checking whether struct tm is in sys/time.h or time.h" >&5
10233 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10234 echo $ac_n "(cached) $ac_c" 1>&6
10236 cat > conftest.$ac_ext <<EOF
10237 #line 10238 "configure"
10238 #include "confdefs.h"
10239 #include <sys/types.h>
10242 struct tm *tp; tp->tm_sec;
10245 if { (eval echo configure:10246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10247 ac_cv_struct_tm=time.h
10249 echo "configure: failed program was:" >&5
10250 cat conftest.$ac_ext >&5
10252 ac_cv_struct_tm=sys/time.h
10257 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10258 if test $ac_cv_struct_tm = sys/time.h; then
10259 cat >> confdefs.h <<\EOF
10260 #define TM_IN_SYS_TIME 1
10265 # test for pw_gecos in struct passwd
10266 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10267 echo "configure:10268: checking struct passwd for pw_gecos" >&5
10268 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10269 echo $ac_n "(cached) $ac_c" 1>&6
10272 cat > conftest.$ac_ext <<EOF
10273 #line 10274 "configure"
10274 #include "confdefs.h"
10279 pwd.pw_gecos = pwd.pw_name;
10283 if { (eval echo configure:10284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10285 ol_cv_struct_passwd_pw_gecos=yes
10287 echo "configure: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10290 ol_cv_struct_passwd_pw_gecos=no
10295 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10296 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10297 cat >> confdefs.h <<\EOF
10298 #define HAVE_PW_GECOS 1
10305 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10306 echo "configure:10307: checking if toupper() requires islower()" >&5
10307 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10308 echo $ac_n "(cached) $ac_c" 1>&6
10311 if test "$cross_compiling" = yes; then
10312 ol_cv_c_upper_lower=safe
10314 cat > conftest.$ac_ext <<EOF
10315 #line 10316 "configure"
10316 #include "confdefs.h"
10321 if ('C' == toupper('C'))
10327 if { (eval echo configure:10328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10329 ol_cv_c_upper_lower=no
10331 echo "configure: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10334 ol_cv_c_upper_lower=yes
10341 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10342 if test $ol_cv_c_upper_lower != no ; then
10343 cat >> confdefs.h <<\EOF
10344 #define C_UPPER_LOWER 1
10349 echo $ac_n "checking for working const""... $ac_c" 1>&6
10350 echo "configure:10351: checking for working const" >&5
10351 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10352 echo $ac_n "(cached) $ac_c" 1>&6
10354 cat > conftest.$ac_ext <<EOF
10355 #line 10356 "configure"
10356 #include "confdefs.h"
10360 /* Ultrix mips cc rejects this. */
10361 typedef int charset[2]; const charset x;
10362 /* SunOS 4.1.1 cc rejects this. */
10363 char const *const *ccp;
10365 /* NEC SVR4.0.2 mips cc rejects this. */
10366 struct point {int x, y;};
10367 static struct point const zero = {0,0};
10368 /* AIX XL C 1.02.0.0 rejects this.
10369 It does not let you subtract one const X* pointer from another in an arm
10370 of an if-expression whose if-part is not a constant expression */
10371 const char *g = "string";
10372 ccp = &g + (g ? g-g : 0);
10373 /* HPUX 7.0 cc rejects these. */
10376 ccp = (char const *const *) p;
10377 { /* SCO 3.2v4 cc rejects this. */
10379 char const *s = 0 ? (char *) 0 : (char const *) 0;
10383 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10384 int x[] = {25, 17};
10385 const int *foo = &x[0];
10388 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10389 typedef const int *iptr;
10393 { /* AIX XL C 1.02.0.0 rejects this saying
10394 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10395 struct s { int j; const int *ap[3]; };
10396 struct s *b; b->j = 5;
10398 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10399 const int foo = 10;
10404 if { (eval echo configure:10405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10408 echo "configure: failed program was:" >&5
10409 cat conftest.$ac_ext >&5
10416 echo "$ac_t""$ac_cv_c_const" 1>&6
10417 if test $ac_cv_c_const = no; then
10418 cat >> confdefs.h <<\EOF
10424 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10425 echo "configure:10426: checking if compiler understands volatile" >&5
10426 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10427 echo $ac_n "(cached) $ac_c" 1>&6
10429 cat > conftest.$ac_ext <<EOF
10430 #line 10431 "configure"
10431 #include "confdefs.h"
10434 volatile int a; int * volatile b = x ? &y : &z;
10435 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10439 if { (eval echo configure:10440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10441 ol_cv_c_volatile=yes
10443 echo "configure: failed program was:" >&5
10444 cat conftest.$ac_ext >&5
10446 ol_cv_c_volatile=no
10451 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10452 if test $ol_cv_c_volatile = yes; then
10455 cat >> confdefs.h <<\EOF
10462 if test $cross_compiling = yes ; then
10463 cat >> confdefs.h <<\EOF
10464 #define CROSS_COMPILING 1
10468 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10469 echo "configure:10470: checking whether byte ordering is bigendian" >&5
10470 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10471 echo $ac_n "(cached) $ac_c" 1>&6
10473 ac_cv_c_bigendian=unknown
10474 # See if sys/param.h defines the BYTE_ORDER macro.
10475 cat > conftest.$ac_ext <<EOF
10476 #line 10477 "configure"
10477 #include "confdefs.h"
10478 #include <sys/types.h>
10479 #include <sys/param.h>
10482 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10483 bogus endian macros
10487 if { (eval echo configure:10488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10489 # It does; now see whether it defined to BIG_ENDIAN or not.
10490 cat > conftest.$ac_ext <<EOF
10491 #line 10492 "configure"
10492 #include "confdefs.h"
10493 #include <sys/types.h>
10494 #include <sys/param.h>
10497 #if BYTE_ORDER != BIG_ENDIAN
10502 if { (eval echo configure:10503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10504 ac_cv_c_bigendian=yes
10506 echo "configure: failed program was:" >&5
10507 cat conftest.$ac_ext >&5
10509 ac_cv_c_bigendian=no
10513 echo "configure: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
10517 if test $ac_cv_c_bigendian = unknown; then
10518 if test "$cross_compiling" = yes; then
10519 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10521 cat > conftest.$ac_ext <<EOF
10522 #line 10523 "configure"
10523 #include "confdefs.h"
10525 /* Are we little or big endian? From Harbison&Steele. */
10529 char c[sizeof (long)];
10532 exit (u.c[sizeof (long) - 1] == 1);
10535 if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10537 ac_cv_c_bigendian=no
10539 echo "configure: failed program was:" >&5
10540 cat conftest.$ac_ext >&5
10542 ac_cv_c_bigendian=yes
10550 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10551 if test $ac_cv_c_bigendian = yes; then
10552 cat >> confdefs.h <<\EOF
10553 #define WORDS_BIGENDIAN 1
10558 echo $ac_n "checking size of short""... $ac_c" 1>&6
10559 echo "configure:10560: checking size of short" >&5
10560 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10561 echo $ac_n "(cached) $ac_c" 1>&6
10563 if test "$cross_compiling" = yes; then
10564 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10566 cat > conftest.$ac_ext <<EOF
10567 #line 10568 "configure"
10568 #include "confdefs.h"
10572 FILE *f=fopen("conftestval", "w");
10574 fprintf(f, "%d\n", sizeof(short));
10578 if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10580 ac_cv_sizeof_short=`cat conftestval`
10582 echo "configure: failed program was:" >&5
10583 cat conftest.$ac_ext >&5
10585 ac_cv_sizeof_short=0
10591 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10592 cat >> confdefs.h <<EOF
10593 #define SIZEOF_SHORT $ac_cv_sizeof_short
10597 echo $ac_n "checking size of int""... $ac_c" 1>&6
10598 echo "configure:10599: checking size of int" >&5
10599 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10602 if test "$cross_compiling" = yes; then
10603 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10605 cat > conftest.$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10611 FILE *f=fopen("conftestval", "w");
10613 fprintf(f, "%d\n", sizeof(int));
10617 if { (eval echo configure:10618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10619 ac_cv_sizeof_int=`cat conftestval`
10621 echo "configure: failed program was:" >&5
10622 cat conftest.$ac_ext >&5
10630 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10631 cat >> confdefs.h <<EOF
10632 #define SIZEOF_INT $ac_cv_sizeof_int
10636 echo $ac_n "checking size of long""... $ac_c" 1>&6
10637 echo "configure:10638: checking size of long" >&5
10638 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10639 echo $ac_n "(cached) $ac_c" 1>&6
10641 if test "$cross_compiling" = yes; then
10642 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10644 cat > conftest.$ac_ext <<EOF
10645 #line 10646 "configure"
10646 #include "confdefs.h"
10650 FILE *f=fopen("conftestval", "w");
10652 fprintf(f, "%d\n", sizeof(long));
10656 if { (eval echo configure:10657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10658 ac_cv_sizeof_long=`cat conftestval`
10660 echo "configure: failed program was:" >&5
10661 cat conftest.$ac_ext >&5
10663 ac_cv_sizeof_long=0
10669 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10670 cat >> confdefs.h <<EOF
10671 #define SIZEOF_LONG $ac_cv_sizeof_long
10677 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10678 echo "configure:10679: checking for 8-bit clean memcmp" >&5
10679 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10680 echo $ac_n "(cached) $ac_c" 1>&6
10682 if test "$cross_compiling" = yes; then
10683 ac_cv_func_memcmp_clean=no
10685 cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10691 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10692 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10696 if { (eval echo configure:10697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10698 ac_cv_func_memcmp_clean=yes
10700 echo "configure: failed program was:" >&5
10701 cat conftest.$ac_ext >&5
10703 ac_cv_func_memcmp_clean=no
10710 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10711 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10713 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10714 echo "configure:10715: checking for strftime" >&5
10715 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10716 echo $ac_n "(cached) $ac_c" 1>&6
10718 cat > conftest.$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10721 /* System header to define __stub macros and hopefully few prototypes,
10722 which can conflict with char strftime(); below. */
10723 #include <assert.h>
10724 /* Override any gcc2 internal prototype to avoid an error. */
10725 /* We use char because int might match the return type of a gcc2
10726 builtin and then its argument prototype would still apply. */
10731 /* The GNU C library defines this for functions which it implements
10732 to always fail with ENOSYS. Some functions are actually named
10733 something starting with __ and the normal name is an alias. */
10734 #if defined (__stub_strftime) || defined (__stub___strftime)
10742 if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10744 eval "ac_cv_func_strftime=yes"
10746 echo "configure: failed program was:" >&5
10747 cat conftest.$ac_ext >&5
10749 eval "ac_cv_func_strftime=no"
10754 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
10755 echo "$ac_t""yes" 1>&6
10756 cat >> confdefs.h <<\EOF
10757 #define HAVE_STRFTIME 1
10761 echo "$ac_t""no" 1>&6
10762 # strftime is in -lintl on SCO UNIX.
10763 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
10764 echo "configure:10765: checking for strftime in -lintl" >&5
10765 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
10766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10767 echo $ac_n "(cached) $ac_c" 1>&6
10769 ac_save_LIBS="$LIBS"
10770 LIBS="-lintl $LIBS"
10771 cat > conftest.$ac_ext <<EOF
10772 #line 10773 "configure"
10773 #include "confdefs.h"
10774 /* Override any gcc2 internal prototype to avoid an error. */
10775 /* We use char because int might match the return type of a gcc2
10776 builtin and then its argument prototype would still apply. */
10783 if { (eval echo configure:10784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10785 eval "ac_cv_lib_$ac_lib_var=yes"
10787 echo "configure: failed program was:" >&5
10788 cat conftest.$ac_ext >&5
10790 eval "ac_cv_lib_$ac_lib_var=no"
10793 LIBS="$ac_save_LIBS"
10796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10797 echo "$ac_t""yes" 1>&6
10798 cat >> confdefs.h <<\EOF
10799 #define HAVE_STRFTIME 1
10802 LIBS="-lintl $LIBS"
10804 echo "$ac_t""no" 1>&6
10810 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10811 echo "configure:10812: checking for vprintf" >&5
10812 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10813 echo $ac_n "(cached) $ac_c" 1>&6
10815 cat > conftest.$ac_ext <<EOF
10816 #line 10817 "configure"
10817 #include "confdefs.h"
10818 /* System header to define __stub macros and hopefully few prototypes,
10819 which can conflict with char vprintf(); below. */
10820 #include <assert.h>
10821 /* Override any gcc2 internal prototype to avoid an error. */
10822 /* We use char because int might match the return type of a gcc2
10823 builtin and then its argument prototype would still apply. */
10828 /* The GNU C library defines this for functions which it implements
10829 to always fail with ENOSYS. Some functions are actually named
10830 something starting with __ and the normal name is an alias. */
10831 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10839 if { (eval echo configure:10840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10841 eval "ac_cv_func_vprintf=yes"
10843 echo "configure: failed program was:" >&5
10844 cat conftest.$ac_ext >&5
10846 eval "ac_cv_func_vprintf=no"
10851 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10852 echo "$ac_t""yes" 1>&6
10853 cat >> confdefs.h <<\EOF
10854 #define HAVE_VPRINTF 1
10858 echo "$ac_t""no" 1>&6
10861 if test "$ac_cv_func_vprintf" != yes; then
10862 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10863 echo "configure:10864: checking for _doprnt" >&5
10864 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10865 echo $ac_n "(cached) $ac_c" 1>&6
10867 cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10870 /* System header to define __stub macros and hopefully few prototypes,
10871 which can conflict with char _doprnt(); below. */
10872 #include <assert.h>
10873 /* Override any gcc2 internal prototype to avoid an error. */
10874 /* We use char because int might match the return type of a gcc2
10875 builtin and then its argument prototype would still apply. */
10880 /* The GNU C library defines this for functions which it implements
10881 to always fail with ENOSYS. Some functions are actually named
10882 something starting with __ and the normal name is an alias. */
10883 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10891 if { (eval echo configure:10892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10893 eval "ac_cv_func__doprnt=yes"
10895 echo "configure: failed program was:" >&5
10896 cat conftest.$ac_ext >&5
10898 eval "ac_cv_func__doprnt=no"
10903 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10904 echo "$ac_t""yes" 1>&6
10905 cat >> confdefs.h <<\EOF
10906 #define HAVE_DOPRNT 1
10910 echo "$ac_t""no" 1>&6
10916 if test $ac_cv_func_vprintf = yes ; then
10917 for ac_func in vsnprintf vsprintf
10919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10920 echo "configure:10921: checking for $ac_func" >&5
10921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10924 cat > conftest.$ac_ext <<EOF
10925 #line 10926 "configure"
10926 #include "confdefs.h"
10927 /* System header to define __stub macros and hopefully few prototypes,
10928 which can conflict with char $ac_func(); below. */
10929 #include <assert.h>
10930 /* Override any gcc2 internal prototype to avoid an error. */
10931 /* We use char because int might match the return type of a gcc2
10932 builtin and then its argument prototype would still apply. */
10937 /* The GNU C library defines this for functions which it implements
10938 to always fail with ENOSYS. Some functions are actually named
10939 something starting with __ and the normal name is an alias. */
10940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10948 if { (eval echo configure:10949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10950 eval "ac_cv_func_$ac_func=yes"
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10955 eval "ac_cv_func_$ac_func=no"
10960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10961 echo "$ac_t""yes" 1>&6
10962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10963 cat >> confdefs.h <<EOF
10964 #define $ac_tr_func 1
10968 echo "$ac_t""no" 1>&6
11015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11016 echo "configure:11017: checking for $ac_func" >&5
11017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11018 echo $ac_n "(cached) $ac_c" 1>&6
11020 cat > conftest.$ac_ext <<EOF
11021 #line 11022 "configure"
11022 #include "confdefs.h"
11023 /* System header to define __stub macros and hopefully few prototypes,
11024 which can conflict with char $ac_func(); below. */
11025 #include <assert.h>
11026 /* Override any gcc2 internal prototype to avoid an error. */
11027 /* We use char because int might match the return type of a gcc2
11028 builtin and then its argument prototype would still apply. */
11033 /* The GNU C library defines this for functions which it implements
11034 to always fail with ENOSYS. Some functions are actually named
11035 something starting with __ and the normal name is an alias. */
11036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11044 if { (eval echo configure:11045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11046 eval "ac_cv_func_$ac_func=yes"
11048 echo "configure: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11051 eval "ac_cv_func_$ac_func=no"
11056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11057 echo "$ac_t""yes" 1>&6
11058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11059 cat >> confdefs.h <<EOF
11060 #define $ac_tr_func 1
11064 echo "$ac_t""no" 1>&6
11069 for ac_func in getopt tempnam
11071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11072 echo "configure:11073: checking for $ac_func" >&5
11073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11074 echo $ac_n "(cached) $ac_c" 1>&6
11076 cat > conftest.$ac_ext <<EOF
11077 #line 11078 "configure"
11078 #include "confdefs.h"
11079 /* System header to define __stub macros and hopefully few prototypes,
11080 which can conflict with char $ac_func(); below. */
11081 #include <assert.h>
11082 /* Override any gcc2 internal prototype to avoid an error. */
11083 /* We use char because int might match the return type of a gcc2
11084 builtin and then its argument prototype would still apply. */
11089 /* The GNU C library defines this for functions which it implements
11090 to always fail with ENOSYS. Some functions are actually named
11091 something starting with __ and the normal name is an alias. */
11092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11100 if { (eval echo configure:11101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11102 eval "ac_cv_func_$ac_func=yes"
11104 echo "configure: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11107 eval "ac_cv_func_$ac_func=no"
11112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11113 echo "$ac_t""yes" 1>&6
11114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11115 cat >> confdefs.h <<EOF
11116 #define $ac_tr_func 1
11120 echo "$ac_t""no" 1>&6
11121 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11127 # Check Configuration
11129 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11130 echo "configure:11131: checking declaration of sys_errlist" >&5
11131 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11132 echo $ac_n "(cached) $ac_c" 1>&6
11135 cat > conftest.$ac_ext <<EOF
11136 #line 11137 "configure"
11137 #include "confdefs.h"
11140 #include <sys/types.h>
11143 char *c = (char *) *sys_errlist
11146 if { (eval echo configure:11147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11148 ol_cv_dcl_sys_errlist=yes
11150 echo "configure: failed program was:" >&5
11151 cat conftest.$ac_ext >&5
11153 ol_cv_dcl_sys_errlist=no
11158 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11159 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11160 if test $ol_cv_dcl_sys_errlist = no ; then
11161 cat >> confdefs.h <<\EOF
11162 #define DECL_SYS_ERRLIST 1
11165 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11166 echo "configure:11167: checking existence of sys_errlist" >&5
11167 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11168 echo $ac_n "(cached) $ac_c" 1>&6
11171 cat > conftest.$ac_ext <<EOF
11172 #line 11173 "configure"
11173 #include "confdefs.h"
11176 char *c = (char *) *sys_errlist
11179 if { (eval echo configure:11180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11181 ol_cv_have_sys_errlist=yes
11183 echo "configure: failed program was:" >&5
11184 cat conftest.$ac_ext >&5
11186 ol_cv_have_sys_errlist=no
11191 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11192 if test $ol_cv_have_sys_errlist = yes ; then
11193 cat >> confdefs.h <<\EOF
11194 #define HAVE_SYS_ERRLIST 1
11202 if test "$ol_enable_debug" != no ; then
11203 cat >> confdefs.h <<\EOF
11204 #define LDAP_DEBUG 1
11208 if test "$ol_enable_syslog" = yes ; then
11209 cat >> confdefs.h <<\EOF
11210 #define LDAP_SYSLOG 1
11214 if test "$ol_enable_libui" = yes ; then
11215 cat >> confdefs.h <<\EOF
11216 #define LDAP_LIBUI 1
11220 if test "$ol_enable_cache" = no ; then
11221 cat >> confdefs.h <<\EOF
11222 #define LDAP_NOCACHE 1
11226 if test "$ol_enable_dns" != no ; then
11227 cat >> confdefs.h <<\EOF
11228 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11232 if test "$ol_enable_proctitle" != no ; then
11233 cat >> confdefs.h <<\EOF
11234 #define LDAP_PROCTITLE 1
11238 if test "$ol_enable_referrals" != no ; then
11239 cat >> confdefs.h <<\EOF
11240 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11244 if test "$ol_enable_cldap" != no ; then
11245 cat >> confdefs.h <<\EOF
11246 #define LDAP_CONNECTIONLESS 1
11251 if test "$ol_enable_aclgroups" != no ; then
11252 cat >> confdefs.h <<\EOF
11253 #define SLAPD_ACLGROUPS 1
11257 if test "$ol_enable_crypt" != no ; then
11258 cat >> confdefs.h <<\EOF
11259 #define SLAPD_CRYPT 1
11263 if test "$ol_enable_cleartext" != no ; then
11264 cat >> confdefs.h <<\EOF
11265 #define SLAPD_CLEARTEXT 1
11269 if test "$ol_enable_phonetic" != no ; then
11270 cat >> confdefs.h <<\EOF
11271 #define SLAPD_PHONETIC 1
11275 if test "$ol_enable_rlookups" != no ; then
11276 cat >> confdefs.h <<\EOF
11277 #define SLAPD_RLOOKUPS 1
11282 if test "$ol_link_modules" != no ; then
11283 cat >> confdefs.h <<\EOF
11284 #define SLAPD_MODULES 1
11290 if test "$ol_link_bdb2" != no ; then
11291 cat >> confdefs.h <<\EOF
11292 #define SLAPD_BDB2 1
11299 if test "$ol_enable_ldap" != no ; then
11300 cat >> confdefs.h <<\EOF
11301 #define SLAPD_LDAP 1
11308 if test "$ol_link_ldbm" != no ; then
11309 cat >> confdefs.h <<\EOF
11310 #define SLAPD_LDBM 1
11317 if test "$ol_enable_passwd" != no ; then
11318 cat >> confdefs.h <<\EOF
11319 #define SLAPD_PASSWD 1
11326 if test "$ol_link_perl" != no ; then
11327 cat >> confdefs.h <<\EOF
11328 #define SLAPD_PERL 1
11335 if test "$ol_enable_shell" != no ; then
11336 cat >> confdefs.h <<\EOF
11337 #define SLAPD_SHELL 1
11344 if test "$ol_enable_tcl" != no ; then
11345 cat >> confdefs.h <<\EOF
11346 #define SLAPD_TCL 1
11353 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11354 $BUILD_SLAPD = yes ; then
11358 if test "$ol_link_isode" != no ; then
11396 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11398 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11399 # Let make expand exec_prefix.
11400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11402 # Any assignment to VPATH causes Sun make to only execute
11403 # the first set of double-colon rules, so remove it if not needed.
11404 # If there is a colon in the path, we need to keep it.
11405 if test "x$srcdir" = x.; then
11406 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11409 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11411 DEFS=-DHAVE_CONFIG_H
11413 # Without the "./", some shells look in PATH for config.status.
11414 : ${CONFIG_STATUS=./config.status}
11416 echo creating $CONFIG_STATUS
11417 rm -f $CONFIG_STATUS
11418 cat > $CONFIG_STATUS <<EOF
11420 # Generated automatically by configure.
11421 # Run this file to recreate the current configuration.
11422 # This directory was configured as follows,
11423 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11425 # $0 $ac_configure_args
11427 # Compiler output produced by configure, useful for debugging
11428 # configure, is in ./config.log if it exists.
11430 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11433 case "\$ac_option" in
11434 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11435 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11436 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11437 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11438 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11440 -help | --help | --hel | --he | --h)
11441 echo "\$ac_cs_usage"; exit 0 ;;
11442 *) echo "\$ac_cs_usage"; exit 1 ;;
11446 ac_given_srcdir=$srcdir
11447 ac_given_INSTALL="$INSTALL"
11449 trap 'rm -fr `echo "\
11450 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11451 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11452 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11453 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11454 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11455 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11456 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11457 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11458 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11459 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11460 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11461 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11462 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11463 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11464 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11465 include/Makefile:build/top.mk:include/Makefile.in \
11466 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11467 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11468 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11469 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11470 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11471 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11472 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11473 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11474 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11475 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11476 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11477 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11478 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11479 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11480 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11481 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11482 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11483 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11484 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11485 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11486 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11487 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11488 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11489 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11490 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11491 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11492 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11494 cat >> $CONFIG_STATUS <<EOF
11496 # Protect against being on the right side of a sed subst in config.status.
11497 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11498 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11502 s%@CFLAGS@%$CFLAGS%g
11503 s%@CPPFLAGS@%$CPPFLAGS%g
11504 s%@CXXFLAGS@%$CXXFLAGS%g
11505 s%@FFLAGS@%$FFLAGS%g
11507 s%@LDFLAGS@%$LDFLAGS%g
11509 s%@exec_prefix@%$exec_prefix%g
11510 s%@prefix@%$prefix%g
11511 s%@program_transform_name@%$program_transform_name%g
11512 s%@bindir@%$bindir%g
11513 s%@sbindir@%$sbindir%g
11514 s%@libexecdir@%$libexecdir%g
11515 s%@datadir@%$datadir%g
11516 s%@sysconfdir@%$sysconfdir%g
11517 s%@sharedstatedir@%$sharedstatedir%g
11518 s%@localstatedir@%$localstatedir%g
11519 s%@libdir@%$libdir%g
11520 s%@includedir@%$includedir%g
11521 s%@oldincludedir@%$oldincludedir%g
11522 s%@infodir@%$infodir%g
11523 s%@mandir@%$mandir%g
11524 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11525 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11526 s%@INSTALL_DATA@%$INSTALL_DATA%g
11527 s%@PACKAGE@%$PACKAGE%g
11528 s%@VERSION@%$VERSION%g
11529 s%@ACLOCAL@%$ACLOCAL%g
11530 s%@AUTOCONF@%$AUTOCONF%g
11531 s%@AUTOMAKE@%$AUTOMAKE%g
11532 s%@AUTOHEADER@%$AUTOHEADER%g
11533 s%@MAKEINFO@%$MAKEINFO%g
11534 s%@SET_MAKE@%$SET_MAKE%g
11535 s%@top_builddir@%$top_builddir%g
11536 s%@ldap_subdir@%$ldap_subdir%g
11538 s%@host_alias@%$host_alias%g
11539 s%@host_cpu@%$host_cpu%g
11540 s%@host_vendor@%$host_vendor%g
11541 s%@host_os@%$host_os%g
11542 s%@RANLIB@%$RANLIB%g
11547 s%@LIBTOOL@%$LIBTOOL%g
11550 s%@SENDMAIL@%$SENDMAIL%g
11551 s%@EDITOR@%$EDITOR%g
11552 s%@FINGER@%$FINGER%g
11553 s%@GLIBCONFIG@%$GLIBCONFIG%g
11554 s%@PERLBIN@%$PERLBIN%g
11556 s%@EXEEXT@%$EXEEXT%g
11557 s%@OBJEXT@%$OBJEXT%g
11559 s%@LIBOBJS@%$LIBOBJS%g
11560 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
11561 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
11562 s%@BUILD_BDB2@%$BUILD_BDB2%g
11563 s%@BUILD_LDAP@%$BUILD_LDAP%g
11564 s%@BUILD_LDBM@%$BUILD_LDBM%g
11565 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
11566 s%@BUILD_PERL@%$BUILD_PERL%g
11567 s%@BUILD_SHELL@%$BUILD_SHELL%g
11568 s%@BUILD_TCL@%$BUILD_TCL%g
11569 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
11570 s%@LDAP_LIBS@%$LDAP_LIBS%g
11571 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
11572 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
11573 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
11574 s%@LDBM_LIBS@%$LDBM_LIBS%g
11575 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
11576 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
11577 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
11578 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
11579 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
11580 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
11581 s%@KRB_LIBS@%$KRB_LIBS%g
11582 s%@READLINE_LIBS@%$READLINE_LIBS%g
11583 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
11584 s%@TLS_LIBS@%$TLS_LIBS%g
11589 cat >> $CONFIG_STATUS <<\EOF
11591 # Split the substitutions into bite-sized pieces for seds with
11592 # small command number limits, like on Digital OSF/1 and HP-UX.
11593 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11594 ac_file=1 # Number of current file.
11595 ac_beg=1 # First line for current file.
11596 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11599 while $ac_more_lines; do
11600 if test $ac_beg -gt 1; then
11601 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11603 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11605 if test ! -s conftest.s$ac_file; then
11606 ac_more_lines=false
11607 rm -f conftest.s$ac_file
11609 if test -z "$ac_sed_cmds"; then
11610 ac_sed_cmds="sed -f conftest.s$ac_file"
11612 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11614 ac_file=`expr $ac_file + 1`
11616 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11619 if test -z "$ac_sed_cmds"; then
11624 cat >> $CONFIG_STATUS <<EOF
11626 CONFIG_FILES=\${CONFIG_FILES-"\
11627 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11628 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11629 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11630 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11631 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11632 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11633 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11634 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11635 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11636 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11637 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11638 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11639 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11640 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11641 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11642 include/Makefile:build/top.mk:include/Makefile.in \
11643 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11644 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11645 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11646 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11647 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11648 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11649 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11650 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11651 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11652 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11653 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11654 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11655 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11656 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11657 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11658 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11659 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11660 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11661 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11662 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11663 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11664 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11665 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11666 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11667 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11668 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11671 cat >> $CONFIG_STATUS <<\EOF
11672 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11673 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11675 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11676 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11677 *) ac_file_in="${ac_file}.in" ;;
11680 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11682 # Remove last slash and all that follows it. Not all systems have dirname.
11683 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11684 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11685 # The file is in a subdirectory.
11686 test ! -d "$ac_dir" && mkdir "$ac_dir"
11687 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11688 # A "../" for each directory in $ac_dir_suffix.
11689 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11691 ac_dir_suffix= ac_dots=
11694 case "$ac_given_srcdir" in
11696 if test -z "$ac_dots"; then top_srcdir=.
11697 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11698 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11699 *) # Relative path.
11700 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11701 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11704 case "$ac_given_INSTALL" in
11705 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11706 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11709 echo creating "$ac_file"
11711 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11713 *Makefile*) ac_comsub="1i\\
11714 # $configure_input" ;;
11718 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11720 s%@configure_input@%$configure_input%g
11721 s%@srcdir@%$srcdir%g
11722 s%@top_srcdir@%$top_srcdir%g
11723 s%@INSTALL@%$INSTALL%g
11724 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11728 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11729 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11731 # ac_d sets the value in "#define NAME VALUE" lines.
11732 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11733 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11736 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11737 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11738 ac_uB='\([ ]\)%\1#\2define\3'
11741 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11742 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11743 ac_eB='$%\1#\2define\3'
11747 if test "${CONFIG_HEADERS+set}" != set; then
11749 cat >> $CONFIG_STATUS <<EOF
11750 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
11752 cat >> $CONFIG_STATUS <<\EOF
11754 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11755 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11757 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11758 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11759 *) ac_file_in="${ac_file}.in" ;;
11762 echo creating $ac_file
11764 rm -f conftest.frag conftest.in conftest.out
11765 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11766 cat $ac_file_inputs > conftest.in
11770 # Transform confdefs.h into a sed script conftest.vals that substitutes
11771 # the proper values into config.h.in to produce config.h. And first:
11772 # Protect against being on the right side of a sed subst in config.status.
11773 # Protect against being in an unquoted here document in config.status.
11774 rm -f conftest.vals
11775 cat > conftest.hdr <<\EOF
11778 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11782 sed -n -f conftest.hdr confdefs.h > conftest.vals
11785 # This sed command replaces #undef with comments. This is necessary, for
11786 # example, in the case of _POSIX_SOURCE, which is predefined and required
11787 # on some systems where configure will not decide to define it.
11788 cat >> conftest.vals <<\EOF
11789 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11792 # Break up conftest.vals because some shells have a limit on
11793 # the size of here documents, and old seds have small limits too.
11795 rm -f conftest.tail
11798 ac_lines=`grep -c . conftest.vals`
11799 # grep -c gives empty output for an empty file on some AIX systems.
11800 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11801 # Write a limited-size here document to conftest.frag.
11802 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11803 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11805 sed -f conftest.frag conftest.in > conftest.out
11807 mv conftest.out conftest.in
11808 ' >> $CONFIG_STATUS
11809 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11810 rm -f conftest.vals
11811 mv conftest.tail conftest.vals
11813 rm -f conftest.vals
11815 cat >> $CONFIG_STATUS <<\EOF
11816 rm -f conftest.frag conftest.h
11817 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11818 cat conftest.in >> conftest.h
11820 if cmp -s $ac_file conftest.h 2>/dev/null; then
11821 echo "$ac_file is unchanged"
11824 # Remove last slash and all that follows it. Not all systems have dirname.
11825 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11826 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11827 # The file is in a subdirectory.
11828 test ! -d "$ac_dir" && mkdir "$ac_dir"
11831 mv conftest.h $ac_file
11836 cat >> $CONFIG_STATUS <<EOF
11839 cat >> $CONFIG_STATUS <<\EOF
11842 echo Please \"make depend\" to build dependencies
11846 chmod +x $CONFIG_STATUS
11847 rm -fr confdefs* $ac_clean_files
11848 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1