3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-proctitle enable proctitle support (yes)"
22 --enable-libui enable library user interface (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable dns support (no)"
28 --enable-referrals enable referrals (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --with-kerberos use Kerberos (auto)"
36 --with-threads use threads (auto)"
38 --with-yielding-select with implicitly yielding select (auto)"
42 --enable-ldapd enable building ldapd (no)"
46 --enable-slapd enable building slapd (yes)"
48 --enable-aclgroups enable ACL group support (auto)"
50 --enable-crypt enable crypt(3) passwords (auto)"
52 --enable-md5 enable MD5 passwords (auto)"
54 --enable-sha1 enable SHA1 passwords (auto)"
56 --enable-wrappers enable tcp wrapper support (no)"
58 --enable-phonetic enable phonetic/soundex (no)"
60 --enable-rlookups enable reverse lookups (auto)"
62 --enable-ldbm enable ldbm backend (yes)"
64 --with-ldbm-api use LDBM API (auto)"
66 --with-ldbm-type use LDBM type (auto)"
68 --enable-passwd enable passwd backend (no)"
70 --enable-shell enable shell backend (no)"
74 --enable-slurpd enable building slurpd (auto)"
76 Library Generation & Linking Options"
78 --enable-static build static libraries [default=yes]
79 --enable-static=PKGS only build shared libraries if the current package
80 appears as an element in the PKGS list"
82 --enable-shared build shared libraries [default=yes]
83 --enable-shared=PKGS only build shared libraries if the current package
84 appears as an element in the PKGS list"
86 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file=./config.cache
101 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
151 bindir="$ac_optarg" ;;
153 -build | --build | --buil | --bui | --bu)
155 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
156 build="$ac_optarg" ;;
158 -cache-file | --cache-file | --cache-fil | --cache-fi \
159 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
160 ac_prev=cache_file ;;
161 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
162 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
163 cache_file="$ac_optarg" ;;
165 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 datadir="$ac_optarg" ;;
171 -disable-* | --disable-*)
172 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* | --enable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
194 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
195 | --exec | --exe | --ex)
196 ac_prev=exec_prefix ;;
197 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
198 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
199 | --exec=* | --exe=* | --ex=*)
200 exec_prefix="$ac_optarg" ;;
202 -gas | --gas | --ga | --g)
203 # Obsolete; use --with-gas.
206 -help | --help | --hel | --he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host | --host | --hos | --ho)
263 -host=* | --host=* | --hos=* | --ho=*)
266 -includedir | --includedir | --includedi | --included | --include \
267 | --includ | --inclu | --incl | --inc)
268 ac_prev=includedir ;;
269 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
270 | --includ=* | --inclu=* | --incl=* | --inc=*)
271 includedir="$ac_optarg" ;;
273 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
276 infodir="$ac_optarg" ;;
278 -libdir | --libdir | --libdi | --libd)
280 -libdir=* | --libdir=* | --libdi=* | --libd=*)
281 libdir="$ac_optarg" ;;
283 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
284 | --libexe | --libex | --libe)
285 ac_prev=libexecdir ;;
286 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
287 | --libexe=* | --libex=* | --libe=*)
288 libexecdir="$ac_optarg" ;;
290 -localstatedir | --localstatedir | --localstatedi | --localstated \
291 | --localstate | --localstat | --localsta | --localst \
292 | --locals | --local | --loca | --loc | --lo)
293 ac_prev=localstatedir ;;
294 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
295 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
296 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
297 localstatedir="$ac_optarg" ;;
299 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
302 mandir="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
316 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
317 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
318 | --oldin | --oldi | --old | --ol | --o)
319 ac_prev=oldincludedir ;;
320 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
321 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
322 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
323 oldincludedir="$ac_optarg" ;;
325 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
328 prefix="$ac_optarg" ;;
330 -program-prefix | --program-prefix | --program-prefi | --program-pref \
331 | --program-pre | --program-pr | --program-p)
332 ac_prev=program_prefix ;;
333 -program-prefix=* | --program-prefix=* | --program-prefi=* \
334 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
335 program_prefix="$ac_optarg" ;;
337 -program-suffix | --program-suffix | --program-suffi | --program-suff \
338 | --program-suf | --program-su | --program-s)
339 ac_prev=program_suffix ;;
340 -program-suffix=* | --program-suffix=* | --program-suffi=* \
341 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
342 program_suffix="$ac_optarg" ;;
344 -program-transform-name | --program-transform-name \
345 | --program-transform-nam | --program-transform-na \
346 | --program-transform-n | --program-transform- \
347 | --program-transform | --program-transfor \
348 | --program-transfo | --program-transf \
349 | --program-trans | --program-tran \
350 | --progr-tra | --program-tr | --program-t)
351 ac_prev=program_transform_name ;;
352 -program-transform-name=* | --program-transform-name=* \
353 | --program-transform-nam=* | --program-transform-na=* \
354 | --program-transform-n=* | --program-transform-=* \
355 | --program-transform=* | --program-transfor=* \
356 | --program-transfo=* | --program-transf=* \
357 | --program-trans=* | --program-tran=* \
358 | --progr-tra=* | --program-tr=* | --program-t=*)
359 program_transform_name="$ac_optarg" ;;
361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
362 | -silent | --silent | --silen | --sile | --sil)
365 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 sbindir="$ac_optarg" ;;
371 -sharedstatedir | --sharedstatedir | --sharedstatedi \
372 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
373 | --sharedst | --shareds | --shared | --share | --shar \
375 ac_prev=sharedstatedir ;;
376 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
377 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
378 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 sharedstatedir="$ac_optarg" ;;
382 -site | --site | --sit)
384 -site=* | --site=* | --sit=*)
387 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
390 srcdir="$ac_optarg" ;;
392 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
393 | --syscon | --sysco | --sysc | --sys | --sy)
394 ac_prev=sysconfdir ;;
395 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
396 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
397 sysconfdir="$ac_optarg" ;;
399 -target | --target | --targe | --targ | --tar | --ta | --t)
401 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
402 target="$ac_optarg" ;;
404 -v | -verbose | --verbose | --verbos | --verbo | --verb)
407 -version | --version | --versio | --versi | --vers)
408 echo "configure generated by autoconf version 2.12"
412 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* | --without-*)
425 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
438 | --x-incl | --x-inc | --x-in | --x-i)
439 ac_prev=x_includes ;;
440 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
441 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
442 x_includes="$ac_optarg" ;;
444 -x-libraries | --x-libraries | --x-librarie | --x-librari \
445 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
446 ac_prev=x_libraries ;;
447 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
448 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
449 x_libraries="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c) ;;
501 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
502 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
503 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file=include/ldap.h
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE; then
554 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp='$CPP $CPPFLAGS'
577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling=$ac_cv_prog_cc_cross
581 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
582 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
583 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
590 ac_n= ac_c='\c' ac_t=
594 for ac_dir in build $srcdir/build; do
595 if test -f $ac_dir/install-sh; then
597 ac_install_sh="$ac_aux_dir/install-sh -c"
599 elif test -f $ac_dir/install.sh; then
601 ac_install_sh="$ac_aux_dir/install.sh -c"
605 if test -z "$ac_aux_dir"; then
606 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
608 ac_config_guess=$ac_aux_dir/config.guess
609 ac_config_sub=$ac_aux_dir/config.sub
610 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
611 # Find a good install program. We prefer a C program (faster),
612 # so one script is as good as another. But avoid the broken or
613 # incompatible versions:
614 # SysV /etc/install, /usr/sbin/install
615 # SunOS /usr/etc/install
618 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
619 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
620 # ./install, which can be erroneously created by make from ./install.sh.
621 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
622 echo "configure:623: checking for a BSD compatible install" >&5
623 if test -z "$INSTALL"; then
624 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
625 echo $ac_n "(cached) $ac_c" 1>&6
627 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
628 for ac_dir in $PATH; do
629 # Account for people who put trailing slashes in PATH elements.
631 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
633 # OSF1 and SCO ODT 3.0 have their own names for install.
634 for ac_prog in ginstall installbsd scoinst install; do
635 if test -f $ac_dir/$ac_prog; then
636 if test $ac_prog = install &&
637 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
638 # AIX install. It has an incompatible calling convention.
639 # OSF/1 installbsd also uses dspmsg, but is usable.
642 ac_cv_path_install="$ac_dir/$ac_prog -c"
653 if test "${ac_cv_path_install+set}" = set; then
654 INSTALL="$ac_cv_path_install"
656 # As a last resort, use the slow shell script. We don't cache a
657 # path for INSTALL within a source directory, because that will
658 # break other packages using the cache if that directory is
659 # removed, or if the path is relative.
660 INSTALL="$ac_install_sh"
663 echo "$ac_t""$INSTALL" 1>&6
665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
666 # It thinks the first close brace ends the variable substitution.
667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
669 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
674 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
675 echo "configure:676: checking whether build environment is sane" >&5
678 echo timestamp > conftestfile
679 # Do `set' in a subshell so we don't clobber the current shell's
680 # arguments. Must try -L first in case configure is actually a
681 # symlink; some systems play weird games with the mod time of symlinks
682 # (eg FreeBSD returns the mod time of the symlink's containing
685 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
686 if test "$*" = "X"; then
688 set X `ls -t $srcdir/configure conftestfile`
690 if test "$*" != "X $srcdir/configure conftestfile" \
691 && test "$*" != "X conftestfile $srcdir/configure"; then
693 # If neither matched, then we have a broken ls. This can happen
694 # if, for instance, CONFIG_SHELL is bash and it inherits a
695 # broken ls alias from the environment. This has actually
696 # happened. Such a system could not be considered "sane".
697 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
698 alias in your environment" 1>&2; exit 1; }
701 test "$2" = conftestfile
707 { echo "configure: error: newly created file is older than distributed files!
708 Check your system clock" 1>&2; exit 1; }
711 echo "$ac_t""yes" 1>&6
712 if test "$program_transform_name" = s,x,x,; then
713 program_transform_name=
715 # Double any \ or $. echo might interpret backslashes.
716 cat <<\EOF_SED > conftestsed
717 s,\\,\\\\,g; s,\$,$$,g
719 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
722 test "$program_prefix" != NONE &&
723 program_transform_name="s,^,${program_prefix},; $program_transform_name"
724 # Use a double $ so make ignores it.
725 test "$program_suffix" != NONE &&
726 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
728 # sed with no file args requires a program.
729 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
731 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
732 echo "configure:733: checking whether ${MAKE-make} sets \${MAKE}" >&5
733 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
734 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
735 echo $ac_n "(cached) $ac_c" 1>&6
737 cat > conftestmake <<\EOF
739 @echo 'ac_maketemp="${MAKE}"'
741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
742 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
743 if test -n "$ac_maketemp"; then
744 eval ac_cv_prog_make_${ac_make}_set=yes
746 eval ac_cv_prog_make_${ac_make}_set=no
750 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
751 echo "$ac_t""yes" 1>&6
754 echo "$ac_t""no" 1>&6
755 SET_MAKE="MAKE=${MAKE-make}"
763 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
764 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
769 missing_dir=`cd $ac_aux_dir && pwd`
770 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
771 echo "configure:772: checking for working aclocal" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
777 echo "$ac_t""found" 1>&6
779 ACLOCAL="$missing_dir/missing aclocal"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
784 echo "configure:785: checking for working autoconf" >&5
785 # Run test in a subshell; some versions of sh will print an error if
786 # an executable is not found, even if stderr is redirected.
787 # Redirect stdin to placate older versions of autoconf. Sigh.
788 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
790 echo "$ac_t""found" 1>&6
792 AUTOCONF="$missing_dir/missing autoconf"
793 echo "$ac_t""missing" 1>&6
796 echo $ac_n "checking for working automake""... $ac_c" 1>&6
797 echo "configure:798: checking for working automake" >&5
798 # Run test in a subshell; some versions of sh will print an error if
799 # an executable is not found, even if stderr is redirected.
800 # Redirect stdin to placate older versions of autoconf. Sigh.
801 if (automake --version) < /dev/null > /dev/null 2>&1; then
803 echo "$ac_t""found" 1>&6
805 AUTOMAKE="$missing_dir/missing automake"
806 echo "$ac_t""missing" 1>&6
809 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
810 echo "configure:811: checking for working autoheader" >&5
811 # Run test in a subshell; some versions of sh will print an error if
812 # an executable is not found, even if stderr is redirected.
813 # Redirect stdin to placate older versions of autoconf. Sigh.
814 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
815 AUTOHEADER=autoheader
816 echo "$ac_t""found" 1>&6
818 AUTOHEADER="$missing_dir/missing autoheader"
819 echo "$ac_t""missing" 1>&6
822 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
823 echo "configure:824: checking for working makeinfo" >&5
824 # Run test in a subshell; some versions of sh will print an error if
825 # an executable is not found, even if stderr is redirected.
826 # Redirect stdin to placate older versions of autoconf. Sigh.
827 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
829 echo "$ac_t""found" 1>&6
831 MAKEINFO="$missing_dir/missing makeinfo"
832 echo "$ac_t""missing" 1>&6
838 for ac_dir in build $srcdir/build; do
839 if test -f $ac_dir/install-sh; then
841 ac_install_sh="$ac_aux_dir/install-sh -c"
843 elif test -f $ac_dir/install.sh; then
845 ac_install_sh="$ac_aux_dir/install.sh -c"
849 if test -z "$ac_aux_dir"; then
850 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
852 ac_config_guess=$ac_aux_dir/config.guess
853 ac_config_sub=$ac_aux_dir/config.sub
854 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
857 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
858 echo "configure:859: checking configure arguments" >&5
863 ldap_subdir="openldap"
865 # Check whether --with-subdir or --without-subdir was given.
866 if test "${with_subdir+set}" = set; then
867 withval="$with_subdir"
869 if test "$withval" = "no"; then
871 elif test "$withval" != "yes"; then
872 ldap_subdir="$withval"
877 # OpenLDAP --enable-debug
878 # Check whether --enable-debug or --disable-debug was given.
879 if test "${enable_debug+set}" = set; then
880 enableval="$enable_debug"
883 for ol_val in auto yes no ; do
884 if test "$enableval" = "$ol_val" ; then
888 if test "$ol_arg" = "invalid" ; then
889 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
891 ol_enable_debug="$ol_arg"
894 ol_enable_debug="yes"
897 # OpenLDAP --enable-proctitle
898 # Check whether --enable-proctitle or --disable-proctitle was given.
899 if test "${enable_proctitle+set}" = set; then
900 enableval="$enable_proctitle"
903 for ol_val in auto yes no ; do
904 if test "$enableval" = "$ol_val" ; then
908 if test "$ol_arg" = "invalid" ; then
909 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
911 ol_enable_proctitle="$ol_arg"
914 ol_enable_proctitle="yes"
916 # end --enable-proctitle
917 # OpenLDAP --enable-libui
918 # Check whether --enable-libui or --disable-libui was given.
919 if test "${enable_libui+set}" = set; then
920 enableval="$enable_libui"
923 for ol_val in auto yes no ; do
924 if test "$enableval" = "$ol_val" ; then
928 if test "$ol_arg" = "invalid" ; then
929 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
931 ol_enable_libui="$ol_arg"
934 ol_enable_libui="yes"
937 # OpenLDAP --enable-cache
938 # Check whether --enable-cache or --disable-cache was given.
939 if test "${enable_cache+set}" = set; then
940 enableval="$enable_cache"
943 for ol_val in auto yes no ; do
944 if test "$enableval" = "$ol_val" ; then
948 if test "$ol_arg" = "invalid" ; then
949 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
951 ol_enable_cache="$ol_arg"
954 ol_enable_cache="yes"
957 # OpenLDAP --enable-dns
958 # Check whether --enable-dns or --disable-dns was given.
959 if test "${enable_dns+set}" = set; then
960 enableval="$enable_dns"
963 for ol_val in auto yes no ; do
964 if test "$enableval" = "$ol_val" ; then
968 if test "$ol_arg" = "invalid" ; then
969 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
971 ol_enable_dns="$ol_arg"
977 # OpenLDAP --enable-referrals
978 # Check whether --enable-referrals or --disable-referrals was given.
979 if test "${enable_referrals+set}" = set; then
980 enableval="$enable_referrals"
983 for ol_val in auto yes no ; do
984 if test "$enableval" = "$ol_val" ; then
988 if test "$ol_arg" = "invalid" ; then
989 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
991 ol_enable_referrals="$ol_arg"
994 ol_enable_referrals="yes"
996 # end --enable-referrals
997 # OpenLDAP --enable-cldap
998 # Check whether --enable-cldap or --disable-cldap was given.
999 if test "${enable_cldap+set}" = set; then
1000 enableval="$enable_cldap"
1003 for ol_val in auto yes no ; do
1004 if test "$enableval" = "$ol_val" ; then
1008 if test "$ol_arg" = "invalid" ; then
1009 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1011 ol_enable_cldap="$ol_arg"
1014 ol_enable_cldap="no"
1016 # end --enable-cldap
1017 # OpenLDAP --enable-x_compile
1018 # Check whether --enable-x_compile or --disable-x_compile was given.
1019 if test "${enable_x_compile+set}" = set; then
1020 enableval="$enable_x_compile"
1023 for ol_val in yes no ; do
1024 if test "$enableval" = "$ol_val" ; then
1028 if test "$ol_arg" = "invalid" ; then
1029 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1031 ol_enable_x_compile="$ol_arg"
1034 ol_enable_x_compile="no"
1036 # end --enable-x_compile
1038 # OpenLDAP --with-kerberos
1039 # Check whether --with-kerberos or --without-kerberos was given.
1040 if test "${with_kerberos+set}" = set; then
1041 withval="$with_kerberos"
1044 for ol_val in auto k5 k4 afs yes no ; do
1045 if test "$withval" = "$ol_val" ; then
1049 if test "$ol_arg" = "invalid" ; then
1050 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1052 ol_with_kerberos="$ol_arg"
1055 ol_with_kerberos="auto"
1057 # end --with-kerberos
1059 # OpenLDAP --with-threads
1060 # Check whether --with-threads or --without-threads was given.
1061 if test "${with_threads+set}" = set; then
1062 withval="$with_threads"
1065 for ol_val in auto posix mach lwp yes no manual ; do
1066 if test "$withval" = "$ol_val" ; then
1070 if test "$ol_arg" = "invalid" ; then
1071 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1073 ol_with_threads="$ol_arg"
1076 ol_with_threads="auto"
1078 # end --with-threads
1080 # OpenLDAP --with-yielding_select
1081 # Check whether --with-yielding_select or --without-yielding_select was given.
1082 if test "${with_yielding_select+set}" = set; then
1083 withval="$with_yielding_select"
1086 for ol_val in auto yes no manual ; do
1087 if test "$withval" = "$ol_val" ; then
1091 if test "$ol_arg" = "invalid" ; then
1092 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1094 ol_with_yielding_select="$ol_arg"
1097 ol_with_yielding_select="auto"
1099 # end --with-yielding_select
1103 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1104 if test "${with_xxldapdoptions+set}" = set; then
1105 withval="$with_xxldapdoptions"
1109 # OpenLDAP --enable-ldapd
1110 # Check whether --enable-ldapd or --disable-ldapd was given.
1111 if test "${enable_ldapd+set}" = set; then
1112 enableval="$enable_ldapd"
1115 for ol_val in auto yes no ; do
1116 if test "$enableval" = "$ol_val" ; then
1120 if test "$ol_arg" = "invalid" ; then
1121 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1123 ol_enable_ldapd="$ol_arg"
1126 ol_enable_ldapd="no"
1128 # end --enable-ldapd
1130 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1131 if test "${with_xxslapdoptions+set}" = set; then
1132 withval="$with_xxslapdoptions"
1136 # OpenLDAP --enable-slapd
1137 # Check whether --enable-slapd or --disable-slapd was given.
1138 if test "${enable_slapd+set}" = set; then
1139 enableval="$enable_slapd"
1142 for ol_val in auto yes no ; do
1143 if test "$enableval" = "$ol_val" ; then
1147 if test "$ol_arg" = "invalid" ; then
1148 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1150 ol_enable_slapd="$ol_arg"
1153 ol_enable_slapd="yes"
1155 # end --enable-slapd
1156 # OpenLDAP --enable-aclgroups
1157 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1158 if test "${enable_aclgroups+set}" = set; then
1159 enableval="$enable_aclgroups"
1162 for ol_val in auto yes no ; do
1163 if test "$enableval" = "$ol_val" ; then
1167 if test "$ol_arg" = "invalid" ; then
1168 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1170 ol_enable_aclgroups="$ol_arg"
1173 ol_enable_aclgroups="auto"
1175 # end --enable-aclgroups
1176 # OpenLDAP --enable-crypt
1177 # Check whether --enable-crypt or --disable-crypt was given.
1178 if test "${enable_crypt+set}" = set; then
1179 enableval="$enable_crypt"
1182 for ol_val in auto yes no ; do
1183 if test "$enableval" = "$ol_val" ; then
1187 if test "$ol_arg" = "invalid" ; then
1188 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1190 ol_enable_crypt="$ol_arg"
1193 ol_enable_crypt="auto"
1195 # end --enable-crypt
1196 # OpenLDAP --enable-md5
1197 # Check whether --enable-md5 or --disable-md5 was given.
1198 if test "${enable_md5+set}" = set; then
1199 enableval="$enable_md5"
1202 for ol_val in auto yes no ; do
1203 if test "$enableval" = "$ol_val" ; then
1207 if test "$ol_arg" = "invalid" ; then
1208 { echo "configure: error: bad value $enableval for --enable-md5" 1>&2; exit 1; }
1210 ol_enable_md5="$ol_arg"
1213 ol_enable_md5="auto"
1216 # OpenLDAP --enable-sha1
1217 # Check whether --enable-sha1 or --disable-sha1 was given.
1218 if test "${enable_sha1+set}" = set; then
1219 enableval="$enable_sha1"
1222 for ol_val in auto yes no ; do
1223 if test "$enableval" = "$ol_val" ; then
1227 if test "$ol_arg" = "invalid" ; then
1228 { echo "configure: error: bad value $enableval for --enable-sha1" 1>&2; exit 1; }
1230 ol_enable_sha1="$ol_arg"
1233 ol_enable_sha1="auto"
1236 # OpenLDAP --enable-wrappers
1237 # Check whether --enable-wrappers or --disable-wrappers was given.
1238 if test "${enable_wrappers+set}" = set; then
1239 enableval="$enable_wrappers"
1242 for ol_val in auto yes no ; do
1243 if test "$enableval" = "$ol_val" ; then
1247 if test "$ol_arg" = "invalid" ; then
1248 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1250 ol_enable_wrappers="$ol_arg"
1253 ol_enable_wrappers="no"
1255 # end --enable-wrappers
1256 # OpenLDAP --enable-phonetic
1257 # Check whether --enable-phonetic or --disable-phonetic was given.
1258 if test "${enable_phonetic+set}" = set; then
1259 enableval="$enable_phonetic"
1262 for ol_val in auto yes no ; do
1263 if test "$enableval" = "$ol_val" ; then
1267 if test "$ol_arg" = "invalid" ; then
1268 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1270 ol_enable_phonetic="$ol_arg"
1273 ol_enable_phonetic="no"
1275 # end --enable-phonetic
1276 # OpenLDAP --enable-rlookups
1277 # Check whether --enable-rlookups or --disable-rlookups was given.
1278 if test "${enable_rlookups+set}" = set; then
1279 enableval="$enable_rlookups"
1282 for ol_val in auto yes no ; do
1283 if test "$enableval" = "$ol_val" ; then
1287 if test "$ol_arg" = "invalid" ; then
1288 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1290 ol_enable_rlookups="$ol_arg"
1293 ol_enable_rlookups="auto"
1295 # end --enable-rlookups
1297 # OpenLDAP --enable-ldbm
1298 # Check whether --enable-ldbm or --disable-ldbm was given.
1299 if test "${enable_ldbm+set}" = set; then
1300 enableval="$enable_ldbm"
1303 for ol_val in auto yes no ; do
1304 if test "$enableval" = "$ol_val" ; then
1308 if test "$ol_arg" = "invalid" ; then
1309 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1311 ol_enable_ldbm="$ol_arg"
1314 ol_enable_ldbm="yes"
1317 # OpenLDAP --with-ldbm_api
1318 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1319 if test "${with_ldbm_api+set}" = set; then
1320 withval="$with_ldbm_api"
1323 for ol_val in auto db2 db gdbm ndbm manual ; do
1324 if test "$withval" = "$ol_val" ; then
1328 if test "$ol_arg" = "invalid" ; then
1329 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1331 ol_with_ldbm_api="$ol_arg"
1334 ol_with_ldbm_api="auto"
1336 # end --with-ldbm_api
1338 # OpenLDAP --with-ldbm_type
1339 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1340 if test "${with_ldbm_type+set}" = set; then
1341 withval="$with_ldbm_type"
1344 for ol_val in auto btree hash ; do
1345 if test "$withval" = "$ol_val" ; then
1349 if test "$ol_arg" = "invalid" ; then
1350 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1352 ol_with_ldbm_type="$ol_arg"
1355 ol_with_ldbm_type="auto"
1357 # end --with-ldbm_type
1360 # OpenLDAP --enable-passwd
1361 # Check whether --enable-passwd or --disable-passwd was given.
1362 if test "${enable_passwd+set}" = set; then
1363 enableval="$enable_passwd"
1366 for ol_val in auto yes no ; do
1367 if test "$enableval" = "$ol_val" ; then
1371 if test "$ol_arg" = "invalid" ; then
1372 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1374 ol_enable_passwd="$ol_arg"
1377 ol_enable_passwd="no"
1379 # end --enable-passwd
1380 # OpenLDAP --enable-shell
1381 # Check whether --enable-shell or --disable-shell was given.
1382 if test "${enable_shell+set}" = set; then
1383 enableval="$enable_shell"
1386 for ol_val in auto yes no ; do
1387 if test "$enableval" = "$ol_val" ; then
1391 if test "$ol_arg" = "invalid" ; then
1392 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1394 ol_enable_shell="$ol_arg"
1397 ol_enable_shell="no"
1399 # end --enable-shell
1401 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1402 if test "${with_xxslurpdoptions+set}" = set; then
1403 withval="$with_xxslurpdoptions"
1407 # OpenLDAP --enable-slurpd
1408 # Check whether --enable-slurpd or --disable-slurpd was given.
1409 if test "${enable_slurpd+set}" = set; then
1410 enableval="$enable_slurpd"
1413 for ol_val in auto yes no ; do
1414 if test "$enableval" = "$ol_val" ; then
1418 if test "$ol_arg" = "invalid" ; then
1419 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1421 ol_enable_slurpd="$ol_arg"
1424 ol_enable_slurpd="auto"
1426 # end --enable-slurpd
1428 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1429 if test "${with_xxliboptions+set}" = set; then
1430 withval="$with_xxliboptions"
1434 # Check whether --enable-static or --disable-static was given.
1435 if test "${enable_static+set}" = set; then
1436 enableval="$enable_static"
1437 p=${PACKAGE-default}
1438 case "$enableval" in
1439 yes) enable_static=yes ;;
1440 no) enable_static=no ;;
1443 # Look at the argument we got. We use all the common list separators.
1444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1445 for pkg in $enableval; do
1446 if test "X$pkg" = "X$p"; then
1457 # Check whether --enable-shared or --disable-shared was given.
1458 if test "${enable_shared+set}" = set; then
1459 enableval="$enable_shared"
1460 p=${PACKAGE-default}
1461 case "$enableval" in
1462 yes) enable_shared=yes ;;
1463 no) enable_shared=no ;;
1466 # Look at the argument we got. We use all the common list separators.
1467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1468 for pkg in $enableval; do
1469 if test "X$pkg" = "X$p"; then
1482 if test $ol_enable_referrals = no ; then
1483 if test $ol_enable_dns = yes ; then
1484 echo "configure: warning: dns disabled, ignoring --enable-dns argument" 1>&2
1489 if test $ol_enable_slapd = no ; then
1490 if test $ol_enable_ldbm = yes ; then
1491 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1493 if test $ol_enable_passwd = yes ; then
1494 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1496 if test $ol_enable_shell = yes ; then
1497 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1499 if test $ol_enable_aclgroups = yes ; then
1500 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1502 if test $ol_enable_crypt = yes ; then
1503 echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2
1505 if test $ol_enable_md5 = yes ; then
1506 echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2
1508 if test $ol_enable_sha1 = yes ; then
1509 echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2
1511 if test $ol_enable_wrappers = yes ; then
1512 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1514 if test $ol_enable_phonetic = yes ; then
1515 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1517 if test $ol_enable_rlookups = yes ; then
1518 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1520 if test $ol_with_ldbm_api != auto ; then
1521 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1523 if test $ol_with_ldbm_type != auto ; then
1524 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1526 if test $ol_enable_slurpd = yes ; then
1527 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1530 # force settings to no
1534 ol_enable_aclgroups=no
1538 ol_enable_wrappers=no
1539 ol_enable_phonetic=no
1540 ol_enable_rlookups=no
1542 ol_with_ldbm_type=no
1545 elif test $ol_enable_ldbm = no ; then
1547 if test $ol_with_ldbm_api != auto ; then
1548 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1551 if test $ol_with_ldbm_type != auto ; then
1552 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1555 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1556 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1560 ol_with_ldbm_type=no
1564 if test $ol_with_ldbm_api = gdbm -a \
1565 $ol_with_ldbm_type = btree ; then
1566 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1568 if test $ol_with_ldbm_api = ndbm -a \
1569 $ol_with_ldbm_type = btree ; then
1570 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1574 if test $ol_enable_slurpd = yes ; then
1575 if test $ol_with_threads = no ; then
1576 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1580 echo "$ac_t""done" 1>&6
1583 # Make sure we can run config.sub.
1584 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1585 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1588 echo $ac_n "checking host system type""... $ac_c" 1>&6
1589 echo "configure:1590: checking host system type" >&5
1592 case "$host_alias" in
1596 if host_alias=`$ac_config_guess`; then :
1597 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1599 *) host_alias=$nonopt ;;
1603 host=`$ac_config_sub $host_alias`
1604 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1605 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1606 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1607 echo "$ac_t""$host" 1>&6
1633 # Find a good install program. We prefer a C program (faster),
1634 # so one script is as good as another. But avoid the broken or
1635 # incompatible versions:
1636 # SysV /etc/install, /usr/sbin/install
1637 # SunOS /usr/etc/install
1638 # IRIX /sbin/install
1640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1642 # ./install, which can be erroneously created by make from ./install.sh.
1643 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1644 echo "configure:1645: checking for a BSD compatible install" >&5
1645 if test -z "$INSTALL"; then
1646 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1650 for ac_dir in $PATH; do
1651 # Account for people who put trailing slashes in PATH elements.
1653 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1655 # OSF1 and SCO ODT 3.0 have their own names for install.
1656 for ac_prog in ginstall installbsd scoinst install; do
1657 if test -f $ac_dir/$ac_prog; then
1658 if test $ac_prog = install &&
1659 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1660 # AIX install. It has an incompatible calling convention.
1661 # OSF/1 installbsd also uses dspmsg, but is usable.
1664 ac_cv_path_install="$ac_dir/$ac_prog -c"
1675 if test "${ac_cv_path_install+set}" = set; then
1676 INSTALL="$ac_cv_path_install"
1678 # As a last resort, use the slow shell script. We don't cache a
1679 # path for INSTALL within a source directory, because that will
1680 # break other packages using the cache if that directory is
1681 # removed, or if the path is relative.
1682 INSTALL="$ac_install_sh"
1685 echo "$ac_t""$INSTALL" 1>&6
1687 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1688 # It thinks the first close brace ends the variable substitution.
1689 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1691 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1693 # Extract the first word of "ranlib", so it can be a program name with args.
1694 set dummy ranlib; ac_word=$2
1695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1696 echo "configure:1697: checking for $ac_word" >&5
1697 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1700 if test -n "$RANLIB"; then
1701 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1704 for ac_dir in $PATH; do
1705 test -z "$ac_dir" && ac_dir=.
1706 if test -f $ac_dir/$ac_word; then
1707 ac_cv_prog_RANLIB="ranlib"
1712 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1715 RANLIB="$ac_cv_prog_RANLIB"
1716 if test -n "$RANLIB"; then
1717 echo "$ac_t""$RANLIB" 1>&6
1719 echo "$ac_t""no" 1>&6
1722 # Extract the first word of "gcc", so it can be a program name with args.
1723 set dummy gcc; ac_word=$2
1724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1725 echo "configure:1726: checking for $ac_word" >&5
1726 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 if test -n "$CC"; then
1730 ac_cv_prog_CC="$CC" # Let the user override the test.
1732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1733 for ac_dir in $PATH; do
1734 test -z "$ac_dir" && ac_dir=.
1735 if test -f $ac_dir/$ac_word; then
1744 if test -n "$CC"; then
1745 echo "$ac_t""$CC" 1>&6
1747 echo "$ac_t""no" 1>&6
1750 if test -z "$CC"; then
1751 # Extract the first word of "cc", so it can be a program name with args.
1752 set dummy cc; ac_word=$2
1753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1754 echo "configure:1755: checking for $ac_word" >&5
1755 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1756 echo $ac_n "(cached) $ac_c" 1>&6
1758 if test -n "$CC"; then
1759 ac_cv_prog_CC="$CC" # Let the user override the test.
1761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1763 for ac_dir in $PATH; do
1764 test -z "$ac_dir" && ac_dir=.
1765 if test -f $ac_dir/$ac_word; then
1766 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1767 ac_prog_rejected=yes
1775 if test $ac_prog_rejected = yes; then
1776 # We found a bogon in the path, so make sure we never use it.
1777 set dummy $ac_cv_prog_CC
1779 if test $# -gt 0; then
1780 # We chose a different compiler from the bogus one.
1781 # However, it has the same basename, so the bogon will be chosen
1782 # first if we set CC to just the basename; use the full file name.
1784 set dummy "$ac_dir/$ac_word" "$@"
1792 if test -n "$CC"; then
1793 echo "$ac_t""$CC" 1>&6
1795 echo "$ac_t""no" 1>&6
1798 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1801 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1802 echo "configure:1803: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1806 ac_cpp='$CPP $CPPFLAGS'
1807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1808 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1809 cross_compiling=$ac_cv_prog_cc_cross
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1816 if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1817 ac_cv_prog_cc_works=yes
1818 # If we can't run a trivial program, we are probably using a cross compiler.
1819 if (./conftest; exit) 2>/dev/null; then
1820 ac_cv_prog_cc_cross=no
1822 ac_cv_prog_cc_cross=yes
1825 echo "configure: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1827 ac_cv_prog_cc_works=no
1831 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1832 if test $ac_cv_prog_cc_works = no; then
1833 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1835 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1836 echo "configure:1837: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1837 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1838 cross_compiling=$ac_cv_prog_cc_cross
1840 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1841 echo "configure:1842: checking whether we are using GNU C" >&5
1842 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 cat > conftest.c <<EOF
1850 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1857 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1859 if test $ac_cv_prog_gcc = yes; then
1861 ac_test_CFLAGS="${CFLAGS+set}"
1862 ac_save_CFLAGS="$CFLAGS"
1864 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1865 echo "configure:1866: checking whether ${CC-cc} accepts -g" >&5
1866 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 echo 'void f(){}' > conftest.c
1870 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1879 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1880 if test "$ac_test_CFLAGS" = set; then
1881 CFLAGS="$ac_save_CFLAGS"
1882 elif test $ac_cv_prog_cc_g = yes; then
1889 test "${CFLAGS+set}" = set || CFLAGS="-g"
1892 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1893 if test "${with_gnu_ld+set}" = set; then
1894 withval="$with_gnu_ld"
1895 test "$withval" = no || with_gnu_ld=yes
1902 if test "$ac_cv_prog_gcc" = yes; then
1903 # Check if gcc -print-prog-name=ld gives a path.
1904 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1905 echo "configure:1906: checking for ld used by GCC" >&5
1906 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1908 # Accept absolute paths.
1910 test -z "$LD" && LD="$ac_prog"
1913 # If it fails, then pretend we aren't using GCC.
1917 # If it is relative, then search for the first ld in PATH.
1921 elif test "$with_gnu_ld" = yes; then
1922 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1923 echo "configure:1924: checking for GNU ld" >&5
1925 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1926 echo "configure:1927: checking for non-GNU ld" >&5
1928 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 if test -z "$LD"; then
1932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1933 for ac_dir in $PATH; do
1934 test -z "$ac_dir" && ac_dir=.
1935 if test -f "$ac_dir/$ac_prog"; then
1936 ac_cv_path_LD="$ac_dir/$ac_prog"
1937 # Check to see if the program is GNU ld. I'd rather use --version,
1938 # but apparently some GNU ld's only accept -v.
1939 # Break only if it was the GNU/non-GNU ld that we prefer.
1940 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1941 test "$with_gnu_ld" != no && break
1943 test "$with_gnu_ld" != yes && break
1949 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1954 if test -n "$LD"; then
1955 echo "$ac_t""$LD" 1>&6
1957 echo "$ac_t""no" 1>&6
1959 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1961 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1962 echo "configure:1963: checking if the linker ($LD) is GNU ld" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1967 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1968 ac_cv_prog_gnu_ld=yes
1970 ac_cv_prog_gnu_ld=no
1974 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1977 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1978 echo "configure:1979: checking for BSD-compatible nm" >&5
1979 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1984 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1988 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1989 test -z "$ac_dir" && ac_dir=.
1990 if test -f $ac_dir/nm; then
1991 # Check to see if the nm accepts a BSD-compat flag.
1992 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1993 # nm: unknown option "B" ignored
1994 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1995 ac_cv_path_NM="$ac_dir/nm -B"
1996 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1997 ac_cv_path_NM="$ac_dir/nm -p"
1999 ac_cv_path_NM="$ac_dir/nm"
2005 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2011 echo "$ac_t""$NM" 1>&6
2014 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether ln -s works" >&5
2016 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2020 if ln -s X conftestdata 2>/dev/null
2023 ac_cv_prog_LN_S="ln -s"
2028 LN_S="$ac_cv_prog_LN_S"
2029 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2030 echo "$ac_t""yes" 1>&6
2032 echo "$ac_t""no" 1>&6
2035 # Always use our own libtool.
2036 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2038 # Check for any special flags to pass to ltconfig.
2040 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2041 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2042 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2043 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2044 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2046 # Some flags need to be propagated to the compiler or linker for good
2050 # Find out which ABI we are using.
2051 echo '#line 2052 "configure"' > conftest.$ac_ext
2052 if { (eval echo configure:2053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2053 case "`/usr/bin/file conftest.o`" in
2069 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2070 CFLAGS="$CFLAGS -belf"
2074 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2075 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2076 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2077 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2078 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2079 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2082 # Extract the first word of "sendmail", so it can be a program name with args.
2083 set dummy sendmail; ac_word=$2
2084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2085 echo "configure:2086: checking for $ac_word" >&5
2086 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2091 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2095 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
2096 test -z "$ac_dir" && ac_dir=.
2097 if test -f $ac_dir/$ac_word; then
2098 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2103 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2107 SENDMAIL="$ac_cv_path_SENDMAIL"
2108 if test -n "$SENDMAIL"; then
2109 echo "$ac_t""$SENDMAIL" 1>&6
2111 echo "$ac_t""no" 1>&6
2114 # Extract the first word of "vi", so it can be a program name with args.
2115 set dummy vi; ac_word=$2
2116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2117 echo "configure:2118: checking for $ac_word" >&5
2118 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2123 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2127 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2128 test -z "$ac_dir" && ac_dir=.
2129 if test -f $ac_dir/$ac_word; then
2130 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2135 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2139 EDITOR="$ac_cv_path_EDITOR"
2140 if test -n "$EDITOR"; then
2141 echo "$ac_t""$EDITOR" 1>&6
2143 echo "$ac_t""no" 1>&6
2146 # Extract the first word of "finger", so it can be a program name with args.
2147 set dummy finger; ac_word=$2
2148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2149 echo "configure:2150: checking for $ac_word" >&5
2150 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2155 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2159 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2160 test -z "$ac_dir" && ac_dir=.
2161 if test -f $ac_dir/$ac_word; then
2162 ac_cv_path_FINGER="$ac_dir/$ac_word"
2167 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2171 FINGER="$ac_cv_path_FINGER"
2172 if test -n "$FINGER"; then
2173 echo "$ac_t""$FINGER" 1>&6
2175 echo "$ac_t""no" 1>&6
2180 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2181 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2183 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2184 echo "configure: warning: programs compiled here do run here..." 1>&2
2185 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2187 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2188 echo "configure: warning: programs compiled here do not run here..." 1>&2
2189 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2192 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2193 echo "configure:2194: checking how to run the C preprocessor" >&5
2194 # On Suns, sometimes $CPP names a directory.
2195 if test -n "$CPP" && test -d "$CPP"; then
2198 if test -z "$CPP"; then
2199 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 # This must be in double quotes, not single quotes, because CPP may get
2203 # substituted into the Makefile and "${CC-cc}" will confuse make.
2205 # On the NeXT, cc -E runs the code through the compiler's parser,
2206 # not just through cpp.
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2214 { (eval echo configure:2215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2215 ac_err=`grep -v '^ *+' conftest.out`
2216 if test -z "$ac_err"; then
2220 echo "configure: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2223 CPP="${CC-cc} -E -traditional-cpp"
2224 cat > conftest.$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2231 { (eval echo configure:2232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2232 ac_err=`grep -v '^ *+' conftest.out`
2233 if test -z "$ac_err"; then
2237 echo "configure: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2245 ac_cv_prog_CPP="$CPP"
2247 CPP="$ac_cv_prog_CPP"
2249 ac_cv_prog_CPP="$CPP"
2251 echo "$ac_t""$CPP" 1>&6
2254 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2255 echo "configure:2256: checking for AIX" >&5
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2265 egrep "yes" >/dev/null 2>&1; then
2267 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2268 #define _ALL_SOURCE 1
2273 echo "$ac_t""no" 1>&6
2278 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2279 echo "configure:2280: checking for POSIXized ISC" >&5
2280 if test -d /etc/conf/kconfig.d &&
2281 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2283 echo "$ac_t""yes" 1>&6
2284 ISC=yes # If later tests want to check for ISC.
2285 cat >> confdefs.h <<\EOF
2286 #define _POSIX_SOURCE 1
2289 if test "$GCC" = yes; then
2295 echo "$ac_t""no" 1>&6
2299 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2300 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2301 echo "configure:2302: checking for minix/config.h" >&5
2302 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #include <minix/config.h>
2310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2311 { (eval echo configure:2312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2312 ac_err=`grep -v '^ *+' conftest.out`
2313 if test -z "$ac_err"; then
2315 eval "ac_cv_header_$ac_safe=yes"
2318 echo "configure: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2321 eval "ac_cv_header_$ac_safe=no"
2325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2326 echo "$ac_t""yes" 1>&6
2329 echo "$ac_t""no" 1>&6
2333 if test "$MINIX" = yes; then
2334 cat >> confdefs.h <<\EOF
2335 #define _POSIX_SOURCE 1
2338 cat >> confdefs.h <<\EOF
2339 #define _POSIX_1_SOURCE 2
2342 cat >> confdefs.h <<\EOF
2352 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2353 echo "configure:2354: checking for ${CC-cc} option to accept ANSI C" >&5
2354 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 am_cv_prog_cc_stdc=no
2359 # Don't try gcc -ansi; that turns off useful extensions and
2360 # breaks some systems' header files.
2361 # AIX -qlanglvl=ansi
2362 # Ultrix and OSF/1 -std1
2363 # HP-UX -Aa -D_HPUX_SOURCE
2364 # SVR4 -Xc -D__EXTENSIONS__
2365 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2367 CC="$ac_save_CC $ac_arg"
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2373 #include <sys/types.h>
2374 #include <sys/stat.h>
2375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2376 struct buf { int x; };
2377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2378 static char *e (p, i)
2384 static char *f (char * (*g) (char **, int), char **p, ...)
2389 s = g (p, va_arg (v,int));
2393 int test (int i, double x);
2394 struct s1 {int (*f) (int a);};
2395 struct s2 {int (*f) (double a);};
2396 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2402 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2406 if { (eval echo configure:2407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2408 am_cv_prog_cc_stdc="$ac_arg"; break
2410 echo "configure: failed program was:" >&5
2411 cat conftest.$ac_ext >&5
2419 if test -z "$am_cv_prog_cc_stdc"; then
2420 echo "$ac_t""none needed" 1>&6
2422 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2424 case "x$am_cv_prog_cc_stdc" in
2426 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2429 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2430 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2436 echo $ac_n "checking for socket""... $ac_c" 1>&6
2437 echo "configure:2438: checking for socket" >&5
2438 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 cat > conftest.$ac_ext <<EOF
2442 #line 2443 "configure"
2443 #include "confdefs.h"
2444 /* System header to define __stub macros and hopefully few prototypes,
2445 which can conflict with char socket(); below. */
2447 /* Override any gcc2 internal prototype to avoid an error. */
2448 /* We use char because int might match the return type of a gcc2
2449 builtin and then its argument prototype would still apply. */
2454 /* The GNU C library defines this for functions which it implements
2455 to always fail with ENOSYS. Some functions are actually named
2456 something starting with __ and the normal name is an alias. */
2457 #if defined (__stub_socket) || defined (__stub___socket)
2465 if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2467 eval "ac_cv_func_socket=yes"
2469 echo "configure: failed program was:" >&5
2470 cat conftest.$ac_ext >&5
2472 eval "ac_cv_func_socket=no"
2477 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2478 echo "$ac_t""yes" 1>&6
2481 echo "$ac_t""no" 1>&6
2483 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2484 echo "configure:2485: checking for main in -lsocket" >&5
2485 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2489 ac_save_LIBS="$LIBS"
2490 LIBS="-lsocket $LIBS"
2491 cat > conftest.$ac_ext <<EOF
2492 #line 2493 "configure"
2493 #include "confdefs.h"
2499 if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2501 eval "ac_cv_lib_$ac_lib_var=yes"
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2506 eval "ac_cv_lib_$ac_lib_var=no"
2509 LIBS="$ac_save_LIBS"
2512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2513 echo "$ac_t""yes" 1>&6
2514 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2516 cat >> confdefs.h <<EOF
2517 #define $ac_tr_lib 1
2520 LIBS="-lsocket $LIBS"
2523 echo "$ac_t""no" 1>&6
2526 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2527 echo "configure:2528: checking for main in -lnet" >&5
2528 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 ac_save_LIBS="$LIBS"
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2542 if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2544 eval "ac_cv_lib_$ac_lib_var=yes"
2546 echo "configure: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2549 eval "ac_cv_lib_$ac_lib_var=no"
2552 LIBS="$ac_save_LIBS"
2555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2556 echo "$ac_t""yes" 1>&6
2557 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2558 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2559 cat >> confdefs.h <<EOF
2560 #define $ac_tr_lib 1
2566 echo "$ac_t""no" 1>&6
2569 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2570 echo "configure:2571: checking for main in -lnsl_s" >&5
2571 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2575 ac_save_LIBS="$LIBS"
2576 LIBS="-lnsl_s $LIBS"
2577 cat > conftest.$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2585 if { (eval echo configure:2586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2587 eval "ac_cv_lib_$ac_lib_var=yes"
2589 echo "configure: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2592 eval "ac_cv_lib_$ac_lib_var=no"
2595 LIBS="$ac_save_LIBS"
2598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2599 echo "$ac_t""yes" 1>&6
2600 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2601 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2602 cat >> confdefs.h <<EOF
2603 #define $ac_tr_lib 1
2606 LIBS="-lnsl_s $LIBS"
2609 echo "$ac_t""no" 1>&6
2612 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2613 echo "configure:2614: checking for main in -lnsl" >&5
2614 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2618 ac_save_LIBS="$LIBS"
2620 cat > conftest.$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2628 if { (eval echo configure:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2630 eval "ac_cv_lib_$ac_lib_var=yes"
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2635 eval "ac_cv_lib_$ac_lib_var=no"
2638 LIBS="$ac_save_LIBS"
2641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2642 echo "$ac_t""yes" 1>&6
2643 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2644 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2645 cat >> confdefs.h <<EOF
2646 #define $ac_tr_lib 1
2652 echo "$ac_t""no" 1>&6
2655 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2656 echo "configure:2657: checking for socket in -linet" >&5
2657 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 ac_save_LIBS="$LIBS"
2663 cat > conftest.$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2666 /* Override any gcc2 internal prototype to avoid an error. */
2667 /* We use char because int might match the return type of a gcc2
2668 builtin and then its argument prototype would still apply. */
2675 if { (eval echo configure:2676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2677 eval "ac_cv_lib_$ac_lib_var=yes"
2679 echo "configure: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2682 eval "ac_cv_lib_$ac_lib_var=no"
2685 LIBS="$ac_save_LIBS"
2688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2689 echo "$ac_t""yes" 1>&6
2690 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2691 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2692 cat >> confdefs.h <<EOF
2693 #define $ac_tr_lib 1
2699 echo "$ac_t""no" 1>&6
2702 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2703 echo "configure:2704: checking for main in -lgen" >&5
2704 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 ac_save_LIBS="$LIBS"
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2718 if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2720 eval "ac_cv_lib_$ac_lib_var=yes"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2725 eval "ac_cv_lib_$ac_lib_var=no"
2728 LIBS="$ac_save_LIBS"
2731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2732 echo "$ac_t""yes" 1>&6
2733 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2734 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2735 cat >> confdefs.h <<EOF
2736 #define $ac_tr_lib 1
2742 echo "$ac_t""no" 1>&6
2749 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
2750 echo "configure:2751: checking for res_search in -lresolv" >&5
2751 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
2752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2755 ac_save_LIBS="$LIBS"
2756 LIBS="-lresolv $LIBS"
2757 cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2760 /* Override any gcc2 internal prototype to avoid an error. */
2761 /* We use char because int might match the return type of a gcc2
2762 builtin and then its argument prototype would still apply. */
2769 if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2771 eval "ac_cv_lib_$ac_lib_var=yes"
2773 echo "configure: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2776 eval "ac_cv_lib_$ac_lib_var=no"
2779 LIBS="$ac_save_LIBS"
2782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2783 echo "$ac_t""yes" 1>&6
2784 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2785 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2786 cat >> confdefs.h <<EOF
2787 #define $ac_tr_lib 1
2790 LIBS="-lresolv $LIBS"
2793 echo "$ac_t""no" 1>&6
2797 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2798 echo "configure:2799: checking for sigset in -lV3" >&5
2799 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 ac_save_LIBS="$LIBS"
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 /* Override any gcc2 internal prototype to avoid an error. */
2809 /* We use char because int might match the return type of a gcc2
2810 builtin and then its argument prototype would still apply. */
2817 if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2819 eval "ac_cv_lib_$ac_lib_var=yes"
2821 echo "configure: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2824 eval "ac_cv_lib_$ac_lib_var=no"
2827 LIBS="$ac_save_LIBS"
2830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2831 echo "$ac_t""yes" 1>&6
2832 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2833 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2834 cat >> confdefs.h <<EOF
2835 #define $ac_tr_lib 1
2841 echo "$ac_t""no" 1>&6
2847 if test $ol_enable_ldapd != no ; then
2848 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
2849 echo "configure:2850: checking for main in -lxtpp" >&5
2850 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
2851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2854 ac_save_LIBS="$LIBS"
2855 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
2856 cat > conftest.$ac_ext <<EOF
2857 #line 2858 "configure"
2858 #include "confdefs.h"
2864 if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2866 eval "ac_cv_lib_$ac_lib_var=yes"
2868 echo "configure: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2871 eval "ac_cv_lib_$ac_lib_var=no"
2874 LIBS="$ac_save_LIBS"
2877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2878 echo "$ac_t""yes" 1>&6
2881 cat >> confdefs.h <<\EOF
2885 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
2888 echo "$ac_t""no" 1>&6
2892 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
2893 echo "configure:2894: checking for main in -ldsap" >&5
2894 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
2895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 ac_save_LIBS="$LIBS"
2899 LIBS="-ldsap -lisode $LIBS"
2900 cat > conftest.$ac_ext <<EOF
2901 #line 2902 "configure"
2902 #include "confdefs.h"
2908 if { (eval echo configure:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2910 eval "ac_cv_lib_$ac_lib_var=yes"
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2915 eval "ac_cv_lib_$ac_lib_var=no"
2918 LIBS="$ac_save_LIBS"
2921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2922 echo "$ac_t""yes" 1>&6
2925 cat >> confdefs.h <<\EOF
2929 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
2932 echo "$ac_t""no" 1>&6
2936 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
2937 echo "configure:2938: checking for main in -lisode" >&5
2938 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
2939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2942 ac_save_LIBS="$LIBS"
2943 LIBS="-lisode $LIBS"
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2952 if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2954 eval "ac_cv_lib_$ac_lib_var=yes"
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 eval "ac_cv_lib_$ac_lib_var=no"
2962 LIBS="$ac_save_LIBS"
2965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2969 cat >> confdefs.h <<\EOF
2970 #define HAVE_ISODE 1
2973 LDAPD_LIBS="$LDAPD_LIBS -lisode"
2976 echo "$ac_t""no" 1>&6
2982 if test $ol_link_isode != no; then
2983 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
2984 echo "configure:2985: checking for main in -lpp" >&5
2985 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
2986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 ac_save_LIBS="$LIBS"
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3001 eval "ac_cv_lib_$ac_lib_var=yes"
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 eval "ac_cv_lib_$ac_lib_var=no"
3009 LIBS="$ac_save_LIBS"
3012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3015 cat >> confdefs.h <<\EOF
3019 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3022 echo "$ac_t""no" 1>&6
3027 # Extract the first word of "pepsy", so it can be a program name with args.
3028 set dummy pepsy; ac_word=$2
3029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_word" >&5
3031 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3036 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3040 for ac_dir in $PATH; do
3041 test -z "$ac_dir" && ac_dir=.
3042 if test -f $ac_dir/$ac_word; then
3043 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3051 PEPSY="$ac_cv_path_PEPSY"
3052 if test -n "$PEPSY"; then
3053 echo "$ac_t""$PEPSY" 1>&6
3055 echo "$ac_t""no" 1>&6
3060 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3061 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3065 echo "configure:3066: checking for $ac_hdr" >&5
3066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3069 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3075 { (eval echo configure:3076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3076 ac_err=`grep -v '^ *+' conftest.out`
3077 if test -z "$ac_err"; then
3079 eval "ac_cv_header_$ac_safe=yes"
3082 echo "configure: failed program was:" >&5
3083 cat conftest.$ac_ext >&5
3085 eval "ac_cv_header_$ac_safe=no"
3089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3090 echo "$ac_t""yes" 1>&6
3091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3092 cat >> confdefs.h <<EOF
3093 #define $ac_tr_hdr 1
3097 echo "$ac_t""no" 1>&6
3102 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3103 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3104 echo "configure:3105: checking for main in -lkrb4" >&5
3105 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 ac_save_LIBS="$LIBS"
3110 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3119 if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3121 eval "ac_cv_lib_$ac_lib_var=yes"
3123 echo "configure: failed program was:" >&5
3124 cat conftest.$ac_ext >&5
3126 eval "ac_cv_lib_$ac_lib_var=no"
3129 LIBS="$ac_save_LIBS"
3132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3133 echo "$ac_t""yes" 1>&6
3136 echo "$ac_t""no" 1>&6
3141 if test $have_k5 = yes ; then
3142 ol_with_kerberos=found
3143 ol_link_kerberos=yes
3145 cat >> confdefs.h <<\EOF
3146 #define HAVE_KERBEROS 1
3150 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3154 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3155 for ac_hdr in krb.h des.h
3157 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3158 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3159 echo "configure:3160: checking for $ac_hdr" >&5
3160 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3161 echo $ac_n "(cached) $ac_c" 1>&6
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3169 { (eval echo configure:3170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3170 ac_err=`grep -v '^ *+' conftest.out`
3171 if test -z "$ac_err"; then
3173 eval "ac_cv_header_$ac_safe=yes"
3176 echo "configure: failed program was:" >&5
3177 cat conftest.$ac_ext >&5
3179 eval "ac_cv_header_$ac_safe=no"
3183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3184 echo "$ac_t""yes" 1>&6
3185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3186 cat >> confdefs.h <<EOF
3187 #define $ac_tr_hdr 1
3191 echo "$ac_t""no" 1>&6
3196 if test $ac_cv_header_krb_h = yes ; then
3197 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3198 echo "configure:3199: checking for main in -lkrb" >&5
3199 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 ac_save_LIBS="$LIBS"
3204 LIBS="-lkrb -ldes $LIBS"
3205 cat > conftest.$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3213 if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3215 eval "ac_cv_lib_$ac_lib_var=yes"
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3220 eval "ac_cv_lib_$ac_lib_var=no"
3223 LIBS="$ac_save_LIBS"
3226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3227 echo "$ac_t""yes" 1>&6
3230 echo "$ac_t""no" 1>&6
3235 if test $have_k4 = yes ; then
3236 ol_with_kerberos=found
3237 ol_link_kerberos=yes
3239 cat >> confdefs.h <<\EOF
3240 #define HAVE_KERBEROS 1
3243 KRB_LIBS="-lkrb -ldes"
3245 for ac_func in des_string_to_key
3247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3248 echo "configure:3249: checking for $ac_func" >&5
3249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 /* System header to define __stub macros and hopefully few prototypes,
3256 which can conflict with char $ac_func(); below. */
3258 /* Override any gcc2 internal prototype to avoid an error. */
3259 /* We use char because int might match the return type of a gcc2
3260 builtin and then its argument prototype would still apply. */
3265 /* The GNU C library defines this for functions which it implements
3266 to always fail with ENOSYS. Some functions are actually named
3267 something starting with __ and the normal name is an alias. */
3268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3276 if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3278 eval "ac_cv_func_$ac_func=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3283 eval "ac_cv_func_$ac_func=no"
3288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3289 echo "$ac_t""yes" 1>&6
3290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3291 cat >> confdefs.h <<EOF
3292 #define $ac_tr_func 1
3296 echo "$ac_t""no" 1>&6
3305 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
3306 for ac_hdr in pthread.h sched.h
3308 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3309 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3310 echo "configure:3311: checking for $ac_hdr" >&5
3311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3320 { (eval echo configure:3321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3321 ac_err=`grep -v '^ *+' conftest.out`
3322 if test -z "$ac_err"; then
3324 eval "ac_cv_header_$ac_safe=yes"
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3330 eval "ac_cv_header_$ac_safe=no"
3334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3335 echo "$ac_t""yes" 1>&6
3336 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3337 cat >> confdefs.h <<EOF
3338 #define $ac_tr_hdr 1
3342 echo "$ac_t""no" 1>&6
3347 if test $ac_cv_header_pthread_h = yes ; then
3348 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3349 echo "configure:3350: checking POSIX thread version" >&5
3350 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3358 # include <pthread.h>
3359 /* this check could be improved */
3360 # ifdef PTHREAD_ONCE_INIT
3365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3366 egrep "final" >/dev/null 2>&1; then
3368 ol_pthread_final=yes
3376 cat > conftest.$ac_ext <<EOF
3377 #line 3378 "configure"
3378 #include "confdefs.h"
3380 # include <pthread.h>
3381 /* this check could be improved */
3382 # ifdef pthread_once_init
3387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3388 egrep "draft4" >/dev/null 2>&1; then
3390 ol_pthread_draft4=yes
3393 ol_pthread_draft4=no
3398 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3399 ol_cv_pthread_version=final
3400 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3401 ol_cv_pthread_version=draft4
3403 ol_cv_pthread_version=unknown
3408 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3411 if test $ol_cv_pthread_version = final ; then
3412 cat >> confdefs.h <<\EOF
3413 #define HAVE_PTHREADS_FINAL 1
3416 elif test $ol_cv_pthread_version = draft4 ; then
3417 cat >> confdefs.h <<\EOF
3418 #define HAVE_PTHREADS_D4 1
3422 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3425 # consider threads found
3426 ol_with_threads=found
3429 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3430 echo "configure:3431: checking for LinuxThreads" >&5
3431 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3432 echo $ac_n "(cached) $ac_c" 1>&6
3435 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3436 if test "$res" -gt 0 ; then
3437 ol_cv_linux_threads=yes
3439 ol_cv_linux_threads=no
3444 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3447 if test $ol_cv_linux_threads = yes ; then
3448 cat >> confdefs.h <<\EOF
3449 #define HAVE_LINUX_THREADS 1
3455 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3456 echo "configure:3457: checking for pthread_create" >&5
3457 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3460 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3463 /* System header to define __stub macros and hopefully few prototypes,
3464 which can conflict with char pthread_create(); below. */
3466 /* Override any gcc2 internal prototype to avoid an error. */
3467 /* We use char because int might match the return type of a gcc2
3468 builtin and then its argument prototype would still apply. */
3469 char pthread_create();
3473 /* The GNU C library defines this for functions which it implements
3474 to always fail with ENOSYS. Some functions are actually named
3475 something starting with __ and the normal name is an alias. */
3476 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3484 if { (eval echo configure:3485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3486 eval "ac_cv_func_pthread_create=yes"
3488 echo "configure: failed program was:" >&5
3489 cat conftest.$ac_ext >&5
3491 eval "ac_cv_func_pthread_create=no"
3496 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3497 echo "$ac_t""yes" 1>&6
3500 echo "$ac_t""no" 1>&6
3504 if test $ol_link_threads = no ; then
3505 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
3506 echo "configure:3507: checking for pthread_create with -pthread" >&5
3507 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3512 LIBS="-pthread $LIBS"
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3523 if { (eval echo configure:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3525 ol_cv_pthread_flag=yes
3527 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3530 ol_cv_pthread_flag=no
3537 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
3539 if test $ol_cv_pthread_flag = yes ; then
3540 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
3541 ol_link_threads=posix
3545 if test $ol_link_threads = no ; then
3546 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
3547 echo "configure:3548: checking for pthread_create with -thread" >&5
3548 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3553 LIBS="-thread $LIBS"
3554 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3564 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3566 ol_cv_thread_flag=yes
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3571 ol_cv_thread_flag=no
3578 echo "$ac_t""$ol_cv_thread_flag" 1>&6
3580 if test $ol_cv_thread_flag = yes ; then
3581 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
3582 ol_link_threads=posix
3586 if test $ol_link_threads = no ; then
3588 echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
3589 echo "configure:3590: checking for pthread_join in -lpthread" >&5
3590 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
3591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3594 ac_save_LIBS="$LIBS"
3595 LIBS="-lpthread -lexc $LIBS"
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 /* Override any gcc2 internal prototype to avoid an error. */
3600 /* We use char because int might match the return type of a gcc2
3601 builtin and then its argument prototype would still apply. */
3602 char pthread_join();
3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3610 eval "ac_cv_lib_$ac_lib_var=yes"
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3615 eval "ac_cv_lib_$ac_lib_var=no"
3618 LIBS="$ac_save_LIBS"
3621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3622 echo "$ac_t""yes" 1>&6
3624 ol_link_threads=posix
3625 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
3626 if test $ol_with_yielding_select = auto ; then
3627 ol_with_yielding_select=yes
3631 echo "$ac_t""no" 1>&6
3637 if test $ol_link_threads = no ; then
3639 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
3640 echo "configure:3641: checking for pthread_join in -lpthreads" >&5
3641 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
3642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 ac_save_LIBS="$LIBS"
3646 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 /* Override any gcc2 internal prototype to avoid an error. */
3651 /* We use char because int might match the return type of a gcc2
3652 builtin and then its argument prototype would still apply. */
3653 char pthread_join();
3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3661 eval "ac_cv_lib_$ac_lib_var=yes"
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3666 eval "ac_cv_lib_$ac_lib_var=no"
3669 LIBS="$ac_save_LIBS"
3672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3673 echo "$ac_t""yes" 1>&6
3675 ol_link_threads=posix
3676 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
3677 if test $ol_with_yielding_select = auto ; then
3678 ol_with_yielding_select=yes
3682 echo "$ac_t""no" 1>&6
3688 if test $ol_link_threads = no ; then
3690 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3691 echo "configure:3692: checking for pthread_create in -lpthread" >&5
3692 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 ac_save_LIBS="$LIBS"
3697 LIBS="-lpthread $LIBS"
3698 cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3701 /* Override any gcc2 internal prototype to avoid an error. */
3702 /* We use char because int might match the return type of a gcc2
3703 builtin and then its argument prototype would still apply. */
3704 char pthread_create();
3710 if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3712 eval "ac_cv_lib_$ac_lib_var=yes"
3714 echo "configure: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3717 eval "ac_cv_lib_$ac_lib_var=no"
3720 LIBS="$ac_save_LIBS"
3723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3724 echo "$ac_t""yes" 1>&6
3726 ol_link_threads=posix
3727 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
3729 echo "$ac_t""no" 1>&6
3735 if test $ol_link_threads = no ; then
3737 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3738 echo "configure:3739: checking for pthread_create in -lc_r" >&5
3739 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3741 echo $ac_n "(cached) $ac_c" 1>&6
3743 ac_save_LIBS="$LIBS"
3745 cat > conftest.$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3748 /* Override any gcc2 internal prototype to avoid an error. */
3749 /* We use char because int might match the return type of a gcc2
3750 builtin and then its argument prototype would still apply. */
3751 char pthread_create();
3757 if { (eval echo configure:3758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3759 eval "ac_cv_lib_$ac_lib_var=yes"
3761 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3764 eval "ac_cv_lib_$ac_lib_var=no"
3767 LIBS="$ac_save_LIBS"
3770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3771 echo "$ac_t""yes" 1>&6
3773 ol_link_threads=posix
3774 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
3776 echo "$ac_t""no" 1>&6
3782 if test $ol_link_threads != no ; then
3783 cat >> confdefs.h <<\EOF
3784 #define HAVE_PTHREADS 1
3788 save_CPPFLAGS="$CPPFLAGS"
3790 LIBS="$LTHREAD_LIBS $LIBS"
3792 for ac_func in sched_yield pthread_yield
3794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3795 echo "configure:3796: checking for $ac_func" >&5
3796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3797 echo $ac_n "(cached) $ac_c" 1>&6
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3802 /* System header to define __stub macros and hopefully few prototypes,
3803 which can conflict with char $ac_func(); below. */
3805 /* Override any gcc2 internal prototype to avoid an error. */
3806 /* We use char because int might match the return type of a gcc2
3807 builtin and then its argument prototype would still apply. */
3812 /* The GNU C library defines this for functions which it implements
3813 to always fail with ENOSYS. Some functions are actually named
3814 something starting with __ and the normal name is an alias. */
3815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3823 if { (eval echo configure:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3825 eval "ac_cv_func_$ac_func=yes"
3827 echo "configure: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3830 eval "ac_cv_func_$ac_func=no"
3835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3836 echo "$ac_t""yes" 1>&6
3837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3838 cat >> confdefs.h <<EOF
3839 #define $ac_tr_func 1
3843 echo "$ac_t""no" 1>&6
3848 if test $ac_cv_func_sched_yield = no -a \
3849 $ac_cv_func_pthread_yield = no ; then
3850 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3851 echo "configure:3852: checking for sched_yield in -lrt" >&5
3852 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3856 ac_save_LIBS="$LIBS"
3858 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 /* Override any gcc2 internal prototype to avoid an error. */
3862 /* We use char because int might match the return type of a gcc2
3863 builtin and then its argument prototype would still apply. */
3870 if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3872 eval "ac_cv_lib_$ac_lib_var=yes"
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3877 eval "ac_cv_lib_$ac_lib_var=no"
3880 LIBS="$ac_save_LIBS"
3883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3884 echo "$ac_t""yes" 1>&6
3885 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
3886 cat >> confdefs.h <<\EOF
3887 #define HAVE_SCHED_YIELD 1
3890 ac_cv_func_sched_yield=yes
3892 echo "$ac_t""no" 1>&6
3893 ac_cv_func_sched_yield=no
3897 if test $ac_cv_func_sched_yield = no -a \
3898 $ac_cv_func_pthread_yield = no ; then
3899 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3900 echo "configure:3901: checking for sched_yield in -lposix4" >&5
3901 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3905 ac_save_LIBS="$LIBS"
3906 LIBS="-lposix4 $LIBS"
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3910 /* Override any gcc2 internal prototype to avoid an error. */
3911 /* We use char because int might match the return type of a gcc2
3912 builtin and then its argument prototype would still apply. */
3919 if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3921 eval "ac_cv_lib_$ac_lib_var=yes"
3923 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5
3926 eval "ac_cv_lib_$ac_lib_var=no"
3929 LIBS="$ac_save_LIBS"
3932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3933 echo "$ac_t""yes" 1>&6
3934 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
3935 cat >> confdefs.h <<\EOF
3936 #define HAVE_SCHED_YIELD 1
3939 ac_cv_func_sched_yield=yes
3941 echo "$ac_t""no" 1>&6
3942 ac_cv_func_sched_yield=no
3946 if test $ac_cv_func_sched_yield = no -a \
3947 $ac_cv_func_pthread_yield = no ; then
3948 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
3949 { echo "configure: error: POSIX Threads are not usable" 1>&2; exit 1; }
3952 for ac_func in pthread_kill
3954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3955 echo "configure:3956: checking for $ac_func" >&5
3956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 /* System header to define __stub macros and hopefully few prototypes,
3963 which can conflict with char $ac_func(); below. */
3965 /* Override any gcc2 internal prototype to avoid an error. */
3966 /* We use char because int might match the return type of a gcc2
3967 builtin and then its argument prototype would still apply. */
3972 /* The GNU C library defines this for functions which it implements
3973 to always fail with ENOSYS. Some functions are actually named
3974 something starting with __ and the normal name is an alias. */
3975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3983 if { (eval echo configure:3984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3985 eval "ac_cv_func_$ac_func=yes"
3987 echo "configure: failed program was:" >&5
3988 cat conftest.$ac_ext >&5
3990 eval "ac_cv_func_$ac_func=no"
3995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3996 echo "$ac_t""yes" 1>&6
3997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3998 cat >> confdefs.h <<EOF
3999 #define $ac_tr_func 1
4003 echo "$ac_t""no" 1>&6
4008 pthread_attr_create pthread_attr_init \
4009 pthread_attr_destroy pthread_attr_delete \
4010 pthread_attr_setdetachstate pthread_attr_setdetach_np \
4013 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4014 echo "configure:4015: checking for $ac_func" >&5
4015 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4016 echo $ac_n "(cached) $ac_c" 1>&6
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4021 /* System header to define __stub macros and hopefully few prototypes,
4022 which can conflict with char $ac_func(); below. */
4024 /* Override any gcc2 internal prototype to avoid an error. */
4025 /* We use char because int might match the return type of a gcc2
4026 builtin and then its argument prototype would still apply. */
4031 /* The GNU C library defines this for functions which it implements
4032 to always fail with ENOSYS. Some functions are actually named
4033 something starting with __ and the normal name is an alias. */
4034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4042 if { (eval echo configure:4043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4044 eval "ac_cv_func_$ac_func=yes"
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4049 eval "ac_cv_func_$ac_func=no"
4054 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4055 echo "$ac_t""yes" 1>&6
4056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4057 cat >> confdefs.h <<EOF
4058 #define $ac_tr_func 1
4062 echo "$ac_t""no" 1>&6
4068 pthread_setconcurrency \
4069 thr_setconcurrency \
4072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4073 echo "configure:4074: checking for $ac_func" >&5
4074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4077 cat > conftest.$ac_ext <<EOF
4078 #line 4079 "configure"
4079 #include "confdefs.h"
4080 /* System header to define __stub macros and hopefully few prototypes,
4081 which can conflict with char $ac_func(); below. */
4083 /* Override any gcc2 internal prototype to avoid an error. */
4084 /* We use char because int might match the return type of a gcc2
4085 builtin and then its argument prototype would still apply. */
4090 /* The GNU C library defines this for functions which it implements
4091 to always fail with ENOSYS. Some functions are actually named
4092 something starting with __ and the normal name is an alias. */
4093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4101 if { (eval echo configure:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4103 eval "ac_cv_func_$ac_func=yes"
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4108 eval "ac_cv_func_$ac_func=no"
4113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4114 echo "$ac_t""yes" 1>&6
4115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4116 cat >> confdefs.h <<EOF
4117 #define $ac_tr_func 1
4121 echo "$ac_t""no" 1>&6
4126 if test $ol_with_yielding_select = auto ; then
4127 echo $ac_n "checking if select yields""... $ac_c" 1>&6
4128 echo "configure:4129: checking if select yields" >&5
4129 if test "$cross_compiling" = yes; then
4131 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
4133 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4137 #include <sys/types.h>
4138 #include <sys/time.h>
4140 #include <pthread.h>
4159 FD_SET(fildes[0], &rfds);
4161 /* we're not interested in any fds */
4162 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
4169 exit(1); /* if we exit here, the select blocked the whole process */
4172 int main(argc, argv)
4178 /* create a pipe to select */
4179 if(pipe(&fildes[0])) {
4184 #ifdef HAVE_PTHREAD_SETCONCURRENCY
4185 (void) pthread_setconcurrency(2);
4187 #ifdef HAVE_THR_SETCONCURRENCY
4188 /* Set Solaris LWP concurrency to 2 */
4189 thr_setconcurrency(2);
4193 pthread_create(&t, NULL, (void *) task, NULL);
4195 #if HAVE_SCHED_YIELD
4196 sched_yield(); /* make sure task runs first */
4198 #ifdef HAVE_PTHREAD_YIELD
4199 pthread_yield(); /* make sure task runs first */
4206 if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4208 ol_pthread_select_yields=yes
4210 echo "configure: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4213 ol_pthread_select_yields=no
4218 echo "$ac_t""$ol_pthread_select_yields" 1>&6
4220 if test $ol_pthread_select_yields = yes ; then
4221 ol_with_yielding_select=yes
4226 CPPFLAGS="$save_CPPFLAGS"
4229 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
4233 if test $ol_with_threads = posix ; then
4234 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
4238 if test $ol_with_threads = auto -o $ol_with_threads = mach ; then
4239 for ac_hdr in mach/cthreads.h
4241 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4243 echo "configure:4244: checking for $ac_hdr" >&5
4244 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4245 echo $ac_n "(cached) $ac_c" 1>&6
4247 cat > conftest.$ac_ext <<EOF
4248 #line 4249 "configure"
4249 #include "confdefs.h"
4252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4253 { (eval echo configure:4254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4254 ac_err=`grep -v '^ *+' conftest.out`
4255 if test -z "$ac_err"; then
4257 eval "ac_cv_header_$ac_safe=yes"
4260 echo "configure: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4263 eval "ac_cv_header_$ac_safe=no"
4267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4268 echo "$ac_t""yes" 1>&6
4269 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4270 cat >> confdefs.h <<EOF
4271 #define $ac_tr_hdr 1
4275 echo "$ac_t""no" 1>&6
4279 if test $ac_cv_header_mach_cthreads_h = yes ; then
4280 ol_with_threads=found
4282 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
4283 echo "configure:4284: checking for cthread_fork" >&5
4284 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 /* System header to define __stub macros and hopefully few prototypes,
4291 which can conflict with char cthread_fork(); below. */
4293 /* Override any gcc2 internal prototype to avoid an error. */
4294 /* We use char because int might match the return type of a gcc2
4295 builtin and then its argument prototype would still apply. */
4296 char cthread_fork();
4300 /* The GNU C library defines this for functions which it implements
4301 to always fail with ENOSYS. Some functions are actually named
4302 something starting with __ and the normal name is an alias. */
4303 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
4311 if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4313 eval "ac_cv_func_cthread_fork=yes"
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4318 eval "ac_cv_func_cthread_fork=no"
4323 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
4324 echo "$ac_t""yes" 1>&6
4327 echo "$ac_t""no" 1>&6
4331 if test $ol_link_threads = no ; then
4332 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
4333 echo "configure:4334: checking for cthread_fork with -all_load" >&5
4334 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4339 LIBS="-all_load $LIBS"
4340 cat > conftest.$ac_ext <<EOF
4341 #line 4342 "configure"
4342 #include "confdefs.h"
4343 #include <mach/cthreads.h>
4346 cthread_fork((void *)0, (void *)0);
4350 if { (eval echo configure:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4352 ol_cv_cthread_all_load=yes
4354 echo "configure: failed program was:" >&5
4355 cat conftest.$ac_ext >&5
4357 ol_cv_cthread_all_load=no
4364 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
4366 if test $ol_cv_cthread_all_load = yes ; then
4367 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
4368 ol_link_threads=mach
4372 if test $ol_link_threads != no ; then
4373 : check for cthread specific functionality here
4374 cat >> confdefs.h <<\EOF
4375 #define HAVE_MACH_CTHREADS 1
4379 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
4383 if test $ol_with_threads = mach ; then
4384 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
4388 if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
4389 for ac_hdr in thread.h synch.h
4391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4393 echo "configure:4394: checking for $ac_hdr" >&5
4394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4397 cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4403 { (eval echo configure:4404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4404 ac_err=`grep -v '^ *+' conftest.out`
4405 if test -z "$ac_err"; then
4407 eval "ac_cv_header_$ac_safe=yes"
4410 echo "configure: failed program was:" >&5
4411 cat conftest.$ac_ext >&5
4413 eval "ac_cv_header_$ac_safe=no"
4417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4418 echo "$ac_t""yes" 1>&6
4419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4420 cat >> confdefs.h <<EOF
4421 #define $ac_tr_hdr 1
4425 echo "$ac_t""no" 1>&6
4429 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
4430 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
4431 echo "configure:4432: checking for thr_create in -lthread" >&5
4432 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
4433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6
4436 ac_save_LIBS="$LIBS"
4437 LIBS="-lthread $LIBS"
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4441 /* Override any gcc2 internal prototype to avoid an error. */
4442 /* We use char because int might match the return type of a gcc2
4443 builtin and then its argument prototype would still apply. */
4450 if { (eval echo configure:4451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4452 eval "ac_cv_lib_$ac_lib_var=yes"
4454 echo "configure: failed program was:" >&5
4455 cat conftest.$ac_ext >&5
4457 eval "ac_cv_lib_$ac_lib_var=no"
4460 LIBS="$ac_save_LIBS"
4463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4464 echo "$ac_t""yes" 1>&6
4467 echo "$ac_t""no" 1>&6
4472 if test $have_thr = yes ; then
4473 cat >> confdefs.h <<\EOF
4477 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
4480 if test $ol_with_yielding_select = auto ; then
4481 ol_with_yielding_select=yes
4486 for ac_hdr in lwp/lwp.h
4488 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4490 echo "configure:4491: checking for $ac_hdr" >&5
4491 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 cat > conftest.$ac_ext <<EOF
4495 #line 4496 "configure"
4496 #include "confdefs.h"
4499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4500 { (eval echo configure:4501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4501 ac_err=`grep -v '^ *+' conftest.out`
4502 if test -z "$ac_err"; then
4504 eval "ac_cv_header_$ac_safe=yes"
4507 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4510 eval "ac_cv_header_$ac_safe=no"
4514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4515 echo "$ac_t""yes" 1>&6
4516 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4517 cat >> confdefs.h <<EOF
4518 #define $ac_tr_hdr 1
4522 echo "$ac_t""no" 1>&6
4526 if test $ac_cv_header_lwp_lwp_h = yes ; then
4527 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
4528 echo "configure:4529: checking for lwp_create in -llwp" >&5
4529 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
4530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4533 ac_save_LIBS="$LIBS"
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 /* Override any gcc2 internal prototype to avoid an error. */
4539 /* We use char because int might match the return type of a gcc2
4540 builtin and then its argument prototype would still apply. */
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4549 eval "ac_cv_lib_$ac_lib_var=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 eval "ac_cv_lib_$ac_lib_var=no"
4557 LIBS="$ac_save_LIBS"
4560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4564 echo "$ac_t""no" 1>&6
4569 if test $have_lwp = yes ; then
4570 cat >> confdefs.h <<\EOF
4574 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
4577 if test $ol_with_yielding_select = auto ; then
4578 ol_with_yielding_select=no
4584 if test $ol_with_yielding_select = yes ; then
4585 cat >> confdefs.h <<\EOF
4586 #define HAVE_YIELDING_SELECT 1
4591 if test $ol_with_threads = manual ; then
4594 echo "configure: warning: thread defines and link options must be set manually" 1>&2
4596 for ac_hdr in pthread.h sched.h
4598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4600 echo "configure:4601: checking for $ac_hdr" >&5
4601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4610 { (eval echo configure:4611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4611 ac_err=`grep -v '^ *+' conftest.out`
4612 if test -z "$ac_err"; then
4614 eval "ac_cv_header_$ac_safe=yes"
4617 echo "configure: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4620 eval "ac_cv_header_$ac_safe=no"
4624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4625 echo "$ac_t""yes" 1>&6
4626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4627 cat >> confdefs.h <<EOF
4628 #define $ac_tr_hdr 1
4632 echo "$ac_t""no" 1>&6
4636 for ac_func in sched_yield pthread_yield
4638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4639 echo "configure:4640: checking for $ac_func" >&5
4640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 /* System header to define __stub macros and hopefully few prototypes,
4647 which can conflict with char $ac_func(); below. */
4649 /* Override any gcc2 internal prototype to avoid an error. */
4650 /* We use char because int might match the return type of a gcc2
4651 builtin and then its argument prototype would still apply. */
4656 /* The GNU C library defines this for functions which it implements
4657 to always fail with ENOSYS. Some functions are actually named
4658 something starting with __ and the normal name is an alias. */
4659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4667 if { (eval echo configure:4668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4669 eval "ac_cv_func_$ac_func=yes"
4671 echo "configure: failed program was:" >&5
4672 cat conftest.$ac_ext >&5
4674 eval "ac_cv_func_$ac_func=no"
4679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4680 echo "$ac_t""yes" 1>&6
4681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4682 cat >> confdefs.h <<EOF
4683 #define $ac_tr_func 1
4687 echo "$ac_t""no" 1>&6
4692 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4693 echo "configure:4694: checking for LinuxThreads" >&5
4694 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4698 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4699 if test "$res" -gt 0 ; then
4700 ol_cv_linux_threads=yes
4702 ol_cv_linux_threads=no
4707 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4710 for ac_hdr in mach/cthreads.h
4712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4714 echo "configure:4715: checking for $ac_hdr" >&5
4715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4724 { (eval echo configure:4725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4725 ac_err=`grep -v '^ *+' conftest.out`
4726 if test -z "$ac_err"; then
4728 eval "ac_cv_header_$ac_safe=yes"
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4734 eval "ac_cv_header_$ac_safe=no"
4738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4741 cat >> confdefs.h <<EOF
4742 #define $ac_tr_hdr 1
4746 echo "$ac_t""no" 1>&6
4750 for ac_hdr in lwp/lwp.h
4752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4754 echo "configure:4755: checking for $ac_hdr" >&5
4755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4756 echo $ac_n "(cached) $ac_c" 1>&6
4758 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4764 { (eval echo configure:4765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4765 ac_err=`grep -v '^ *+' conftest.out`
4766 if test -z "$ac_err"; then
4768 eval "ac_cv_header_$ac_safe=yes"
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4774 eval "ac_cv_header_$ac_safe=no"
4778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4779 echo "$ac_t""yes" 1>&6
4780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4781 cat >> confdefs.h <<EOF
4782 #define $ac_tr_hdr 1
4786 echo "$ac_t""no" 1>&6
4790 for ac_hdr in thread.h synch.h
4792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4794 echo "configure:4795: checking for $ac_hdr" >&5
4795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4798 cat > conftest.$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4804 { (eval echo configure:4805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4805 ac_err=`grep -v '^ *+' conftest.out`
4806 if test -z "$ac_err"; then
4808 eval "ac_cv_header_$ac_safe=yes"
4811 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4814 eval "ac_cv_header_$ac_safe=no"
4818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4819 echo "$ac_t""yes" 1>&6
4820 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4821 cat >> confdefs.h <<EOF
4822 #define $ac_tr_hdr 1
4826 echo "$ac_t""no" 1>&6
4832 if test $ol_with_threads != no ; then
4833 cat >> confdefs.h <<\EOF
4834 #define _REENTRANT 1
4837 cat >> confdefs.h <<\EOF
4838 #define _THREAD_SAFE 1
4841 cat >> confdefs.h <<\EOF
4842 #define _THREADSAFE 1
4846 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
4847 echo "configure:4848: checking for thread specific errno" >&5
4848 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4852 cat > conftest.$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4866 ol_cv_errno_thread_specific=yes
4868 echo "configure: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4871 ol_cv_errno_thread_specific=no
4877 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
4879 if test $ol_cv_errno_thread_specific != yes ; then
4880 LIBS="$LTHREAD_LIBS $LIBS"
4886 if test $ol_link_threads = no ; then
4887 if test $ol_with_threads = yes ; then
4888 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
4891 if test $ol_with_threads = auto ; then
4892 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
4896 cat >> confdefs.h <<\EOF
4897 #define NO_THREADS 1
4904 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
4905 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
4906 echo "configure:4907: checking for DB2 library" >&5
4907 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4911 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
4912 echo "configure:4913: checking for db_open in -ldb" >&5
4913 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
4914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4915 echo $ac_n "(cached) $ac_c" 1>&6
4917 ac_save_LIBS="$LIBS"
4919 cat > conftest.$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4922 /* Override any gcc2 internal prototype to avoid an error. */
4923 /* We use char because int might match the return type of a gcc2
4924 builtin and then its argument prototype would still apply. */
4931 if { (eval echo configure:4932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4933 eval "ac_cv_lib_$ac_lib_var=yes"
4935 echo "configure: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4938 eval "ac_cv_lib_$ac_lib_var=no"
4941 LIBS="$ac_save_LIBS"
4944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4945 echo "$ac_t""yes" 1>&6
4948 echo "$ac_t""no" 1>&6
4956 echo "$ac_t""$ol_cv_lib_db2" 1>&6
4960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4962 echo "configure:4963: checking for $ac_hdr" >&5
4963 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4964 echo $ac_n "(cached) $ac_c" 1>&6
4966 cat > conftest.$ac_ext <<EOF
4967 #line 4968 "configure"
4968 #include "confdefs.h"
4971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4972 { (eval echo configure:4973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4973 ac_err=`grep -v '^ *+' conftest.out`
4974 if test -z "$ac_err"; then
4976 eval "ac_cv_header_$ac_safe=yes"
4979 echo "configure: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4982 eval "ac_cv_header_$ac_safe=no"
4986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4987 echo "$ac_t""yes" 1>&6
4988 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4989 cat >> confdefs.h <<EOF
4990 #define $ac_tr_hdr 1
4994 echo "$ac_t""no" 1>&6
4998 if test $ac_cv_header_db_h = yes ; then
4999 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
5000 echo "configure:5001: checking if db.h is DB2" >&5
5001 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5005 cat > conftest.$ac_ext <<EOF
5006 #line 5007 "configure"
5007 #include "confdefs.h"
5010 /* this check could be improved */
5011 # ifdef DB_VERSION_MAJOR
5012 # if DB_VERSION_MAJOR == 2
5018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019 egrep "__db_version_2" >/dev/null 2>&1; then
5021 ol_cv_header_db2=yes
5030 echo "$ac_t""$ol_cv_header_db2" 1>&6
5037 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
5038 echo "configure:5039: checking for Berkeley DB2" >&5
5039 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5043 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
5044 ol_cv_berkeley_db2=no
5046 ol_cv_berkeley_db2=yes
5051 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
5052 if test $ol_cv_berkeley_db2 = yes ; then
5053 cat >> confdefs.h <<\EOF
5054 #define HAVE_BERKELEY_DB2 1
5060 if test $ol_cv_berkeley_db2 = yes ; then
5062 ol_with_ldbm_api=db2
5064 if test $ol_with_ldbm_type = hash ; then
5065 cat >> confdefs.h <<\EOF
5066 #define LDBM_USE_DBHASH 1
5070 cat >> confdefs.h <<\EOF
5071 #define LDBM_USE_DBBTREE 1
5076 if test $ol_cv_lib_db2 != yes ; then
5077 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
5082 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
5083 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
5084 echo "configure:5085: checking for Berkeley DB library" >&5
5085 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5089 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
5090 echo "configure:5091: checking for dbopen" >&5
5091 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5094 cat > conftest.$ac_ext <<EOF
5095 #line 5096 "configure"
5096 #include "confdefs.h"
5097 /* System header to define __stub macros and hopefully few prototypes,
5098 which can conflict with char dbopen(); below. */
5100 /* Override any gcc2 internal prototype to avoid an error. */
5101 /* We use char because int might match the return type of a gcc2
5102 builtin and then its argument prototype would still apply. */
5107 /* The GNU C library defines this for functions which it implements
5108 to always fail with ENOSYS. Some functions are actually named
5109 something starting with __ and the normal name is an alias. */
5110 #if defined (__stub_dbopen) || defined (__stub___dbopen)
5118 if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5120 eval "ac_cv_func_dbopen=yes"
5122 echo "configure: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5125 eval "ac_cv_func_dbopen=no"
5130 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
5131 echo "$ac_t""yes" 1>&6
5134 echo "$ac_t""no" 1>&6
5136 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
5137 echo "configure:5138: checking for dbopen in -ldb" >&5
5138 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
5139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5140 echo $ac_n "(cached) $ac_c" 1>&6
5142 ac_save_LIBS="$LIBS"
5144 cat > conftest.$ac_ext <<EOF
5145 #line 5146 "configure"
5146 #include "confdefs.h"
5147 /* Override any gcc2 internal prototype to avoid an error. */
5148 /* We use char because int might match the return type of a gcc2
5149 builtin and then its argument prototype would still apply. */
5156 if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5158 eval "ac_cv_lib_$ac_lib_var=yes"
5160 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5163 eval "ac_cv_lib_$ac_lib_var=no"
5166 LIBS="$ac_save_LIBS"
5169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5170 echo "$ac_t""yes" 1>&6
5173 echo "$ac_t""no" 1>&6
5184 echo "$ac_t""$ol_cv_lib_db" 1>&6
5187 for ac_hdr in db_185.h
5189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5191 echo "configure:5192: checking for $ac_hdr" >&5
5192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5195 cat > conftest.$ac_ext <<EOF
5196 #line 5197 "configure"
5197 #include "confdefs.h"
5200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5201 { (eval echo configure:5202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5202 ac_err=`grep -v '^ *+' conftest.out`
5203 if test -z "$ac_err"; then
5205 eval "ac_cv_header_$ac_safe=yes"
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5211 eval "ac_cv_header_$ac_safe=no"
5215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5216 echo "$ac_t""yes" 1>&6
5217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5218 cat >> confdefs.h <<EOF
5219 #define $ac_tr_hdr 1
5223 echo "$ac_t""no" 1>&6
5227 if test $ol_cv_header_db2 = yes ; then
5229 ol_cv_header_db=$ac_cv_header_db_185_h
5231 ol_cv_header_db=$ac_cv_header_db_h
5236 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
5237 echo "configure:5238: checking for Berkeley DB" >&5
5238 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
5239 echo $ac_n "(cached) $ac_c" 1>&6
5242 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
5243 ol_cv_berkeley_db=no
5245 ol_cv_berkeley_db=yes
5250 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
5251 if test $ol_cv_berkeley_db = yes ; then
5252 cat >> confdefs.h <<\EOF
5253 #define HAVE_BERKELEY_DB 1
5259 if test $ol_cv_berkeley_db = yes ; then
5263 if test $ol_with_ldbm_type = hash ; then
5264 cat >> confdefs.h <<\EOF
5265 #define LDBM_USE_DBHASH 1
5269 cat >> confdefs.h <<\EOF
5270 #define LDBM_USE_DBBTREE 1
5275 if test $ol_cv_lib_db != yes ; then
5276 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
5281 if test $ol_with_ldbm_api = manual ; then
5284 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
5286 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
5288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5290 echo "configure:5291: checking for $ac_hdr" >&5
5291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5294 cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5300 { (eval echo configure:5301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5301 ac_err=`grep -v '^ *+' conftest.out`
5302 if test -z "$ac_err"; then
5304 eval "ac_cv_header_$ac_safe=yes"
5307 echo "configure: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5310 eval "ac_cv_header_$ac_safe=no"
5314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5315 echo "$ac_t""yes" 1>&6
5316 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5317 cat >> confdefs.h <<EOF
5318 #define $ac_tr_hdr 1
5322 echo "$ac_t""no" 1>&6
5328 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
5329 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
5330 ol_with_ldbm_api=none
5333 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
5334 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
5335 echo "configure:5336: checking for GDBM library" >&5
5336 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5340 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
5341 echo "configure:5342: checking for gdbm_open" >&5
5342 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5345 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5348 /* System header to define __stub macros and hopefully few prototypes,
5349 which can conflict with char gdbm_open(); below. */
5351 /* Override any gcc2 internal prototype to avoid an error. */
5352 /* We use char because int might match the return type of a gcc2
5353 builtin and then its argument prototype would still apply. */
5358 /* The GNU C library defines this for functions which it implements
5359 to always fail with ENOSYS. Some functions are actually named
5360 something starting with __ and the normal name is an alias. */
5361 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
5369 if { (eval echo configure:5370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5371 eval "ac_cv_func_gdbm_open=yes"
5373 echo "configure: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5376 eval "ac_cv_func_gdbm_open=no"
5381 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
5382 echo "$ac_t""yes" 1>&6
5385 echo "$ac_t""no" 1>&6
5387 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
5388 echo "configure:5389: checking for gdbm_open in -lgdbm" >&5
5389 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
5390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5393 ac_save_LIBS="$LIBS"
5395 cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5398 /* Override any gcc2 internal prototype to avoid an error. */
5399 /* We use char because int might match the return type of a gcc2
5400 builtin and then its argument prototype would still apply. */
5407 if { (eval echo configure:5408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5409 eval "ac_cv_lib_$ac_lib_var=yes"
5411 echo "configure: failed program was:" >&5
5412 cat conftest.$ac_ext >&5
5414 eval "ac_cv_lib_$ac_lib_var=no"
5417 LIBS="$ac_save_LIBS"
5420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5421 echo "$ac_t""yes" 1>&6
5422 ol_cv_lib_gdbm=-lgdbm
5424 echo "$ac_t""no" 1>&6
5435 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
5438 for ac_hdr in gdbm.h
5440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5442 echo "configure:5443: checking for $ac_hdr" >&5
5443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5444 echo $ac_n "(cached) $ac_c" 1>&6
5446 cat > conftest.$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5452 { (eval echo configure:5453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5453 ac_err=`grep -v '^ *+' conftest.out`
5454 if test -z "$ac_err"; then
5456 eval "ac_cv_header_$ac_safe=yes"
5459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5462 eval "ac_cv_header_$ac_safe=no"
5466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5467 echo "$ac_t""yes" 1>&6
5468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5469 cat >> confdefs.h <<EOF
5470 #define $ac_tr_hdr 1
5474 echo "$ac_t""no" 1>&6
5478 echo $ac_n "checking for db""... $ac_c" 1>&6
5479 echo "configure:5480: checking for db" >&5
5480 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5484 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
5492 echo "$ac_t""$ol_cv_gdbm" 1>&6
5493 if test $ol_cv_gdbm = yes ; then
5494 cat >> confdefs.h <<\EOF
5501 if test $ol_cv_gdbm = yes ; then
5503 ol_with_ldbm_api=gdbm
5505 if test $ol_cv_lib_gdbm != yes ; then
5506 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
5511 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
5512 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
5513 echo "configure:5514: checking for NDBM library" >&5
5514 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5518 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
5519 echo "configure:5520: checking for dbm_open" >&5
5520 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5523 cat > conftest.$ac_ext <<EOF
5524 #line 5525 "configure"
5525 #include "confdefs.h"
5526 /* System header to define __stub macros and hopefully few prototypes,
5527 which can conflict with char dbm_open(); below. */
5529 /* Override any gcc2 internal prototype to avoid an error. */
5530 /* We use char because int might match the return type of a gcc2
5531 builtin and then its argument prototype would still apply. */
5536 /* The GNU C library defines this for functions which it implements
5537 to always fail with ENOSYS. Some functions are actually named
5538 something starting with __ and the normal name is an alias. */
5539 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
5547 if { (eval echo configure:5548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5549 eval "ac_cv_func_dbm_open=yes"
5551 echo "configure: failed program was:" >&5
5552 cat conftest.$ac_ext >&5
5554 eval "ac_cv_func_dbm_open=no"
5559 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
5560 echo "$ac_t""yes" 1>&6
5563 echo "$ac_t""no" 1>&6
5565 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
5566 echo "configure:5567: checking for dbm_open in -lndbm" >&5
5567 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
5568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5571 ac_save_LIBS="$LIBS"
5573 cat > conftest.$ac_ext <<EOF
5574 #line 5575 "configure"
5575 #include "confdefs.h"
5576 /* Override any gcc2 internal prototype to avoid an error. */
5577 /* We use char because int might match the return type of a gcc2
5578 builtin and then its argument prototype would still apply. */
5585 if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5587 eval "ac_cv_lib_$ac_lib_var=yes"
5589 echo "configure: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5592 eval "ac_cv_lib_$ac_lib_var=no"
5595 LIBS="$ac_save_LIBS"
5598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5599 echo "$ac_t""yes" 1>&6
5600 ol_cv_lib_ndbm=-lndbm
5602 echo "$ac_t""no" 1>&6
5604 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
5605 echo "configure:5606: checking for dbm_open in -ldbm" >&5
5606 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
5607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5608 echo $ac_n "(cached) $ac_c" 1>&6
5610 ac_save_LIBS="$LIBS"
5612 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 /* Override any gcc2 internal prototype to avoid an error. */
5616 /* We use char because int might match the return type of a gcc2
5617 builtin and then its argument prototype would still apply. */
5624 if { (eval echo configure:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5626 eval "ac_cv_lib_$ac_lib_var=yes"
5628 echo "configure: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5631 eval "ac_cv_lib_$ac_lib_var=no"
5634 LIBS="$ac_save_LIBS"
5637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5638 echo "$ac_t""yes" 1>&6
5639 ol_cv_lib_ndbm=-ldbm
5641 echo "$ac_t""no" 1>&6
5654 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
5657 for ac_hdr in ndbm.h
5659 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5661 echo "configure:5662: checking for $ac_hdr" >&5
5662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5663 echo $ac_n "(cached) $ac_c" 1>&6
5665 cat > conftest.$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5671 { (eval echo configure:5672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5672 ac_err=`grep -v '^ *+' conftest.out`
5673 if test -z "$ac_err"; then
5675 eval "ac_cv_header_$ac_safe=yes"
5678 echo "configure: failed program was:" >&5
5679 cat conftest.$ac_ext >&5
5681 eval "ac_cv_header_$ac_safe=no"
5685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5686 echo "$ac_t""yes" 1>&6
5687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5688 cat >> confdefs.h <<EOF
5689 #define $ac_tr_hdr 1
5693 echo "$ac_t""no" 1>&6
5697 echo $ac_n "checking for db""... $ac_c" 1>&6
5698 echo "configure:5699: checking for db" >&5
5699 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
5700 echo $ac_n "(cached) $ac_c" 1>&6
5703 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
5711 echo "$ac_t""$ol_cv_ndbm" 1>&6
5712 if test $ol_cv_ndbm = yes ; then
5713 cat >> confdefs.h <<\EOF
5720 if test $ol_cv_ndbm = yes ; then
5721 if test $ol_with_ldbm_api = auto ; then
5722 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
5726 ol_with_ldbm_api=ndbm
5728 if test $ol_cv_lib_ndbm != yes ; then
5729 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
5734 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
5735 echo "configure: warning: could not find suitable LDBM backend" 1>&2
5736 if test $ol_enable_ldbm = yes ; then
5737 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
5740 echo "configure: warning: disabling LDBM" 1>&2
5744 if test $ol_enable_wrappers = yes ; then
5745 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
5746 echo "configure:5747: checking for hosts_access in -lwrap" >&5
5747 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
5748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5751 ac_save_LIBS="$LIBS"
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5756 /* Override any gcc2 internal prototype to avoid an error. */
5757 /* We use char because int might match the return type of a gcc2
5758 builtin and then its argument prototype would still apply. */
5759 char hosts_access();
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5767 eval "ac_cv_lib_$ac_lib_var=yes"
5769 echo "configure: failed program was:" >&5
5770 cat conftest.$ac_ext >&5
5772 eval "ac_cv_lib_$ac_lib_var=no"
5775 LIBS="$ac_save_LIBS"
5778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5779 echo "$ac_t""yes" 1>&6
5782 echo "$ac_t""no" 1>&6
5787 if test $have_wrappers = yes ; then
5788 cat >> confdefs.h <<\EOF
5792 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
5794 echo "configure: warning: could not find -lwrap" 1>&2
5795 if test $ol_enable_wrappers = yes ; then
5796 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
5799 echo "configure: warning: disabling wrappers support" 1>&2
5800 ol_enable_wrappers=no
5805 # ud needs termcap (should insert check here)
5807 for ac_hdr in termcap.h ncurses.h
5809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5811 echo "configure:5812: checking for $ac_hdr" >&5
5812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5815 cat > conftest.$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5821 { (eval echo configure:5822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5822 ac_err=`grep -v '^ *+' conftest.out`
5823 if test -z "$ac_err"; then
5825 eval "ac_cv_header_$ac_safe=yes"
5828 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5831 eval "ac_cv_header_$ac_safe=no"
5835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5836 echo "$ac_t""yes" 1>&6
5837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5838 cat >> confdefs.h <<EOF
5839 #define $ac_tr_hdr 1
5843 echo "$ac_t""no" 1>&6
5848 if test $ol_link_termcap = no ; then
5849 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
5850 echo "configure:5851: checking for tputs in -ltermcap" >&5
5851 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
5852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5853 echo $ac_n "(cached) $ac_c" 1>&6
5855 ac_save_LIBS="$LIBS"
5856 LIBS="-ltermcap $LIBS"
5857 cat > conftest.$ac_ext <<EOF
5858 #line 5859 "configure"
5859 #include "confdefs.h"
5860 /* Override any gcc2 internal prototype to avoid an error. */
5861 /* We use char because int might match the return type of a gcc2
5862 builtin and then its argument prototype would still apply. */
5869 if { (eval echo configure:5870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5871 eval "ac_cv_lib_$ac_lib_var=yes"
5873 echo "configure: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5876 eval "ac_cv_lib_$ac_lib_var=no"
5879 LIBS="$ac_save_LIBS"
5882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5883 echo "$ac_t""yes" 1>&6
5886 echo "$ac_t""no" 1>&6
5890 if test $have_termcap = yes ; then
5891 cat >> confdefs.h <<\EOF
5892 #define HAVE_TERMCAP 1
5896 TERMCAP_LIBS=-ltermcap
5900 if test $ol_link_termcap = no ; then
5901 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
5902 echo "configure:5903: checking for initscr in -lncurses" >&5
5903 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
5904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5905 echo $ac_n "(cached) $ac_c" 1>&6
5907 ac_save_LIBS="$LIBS"
5908 LIBS="-lncurses $LIBS"
5909 cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure"
5911 #include "confdefs.h"
5912 /* Override any gcc2 internal prototype to avoid an error. */
5913 /* We use char because int might match the return type of a gcc2
5914 builtin and then its argument prototype would still apply. */
5921 if { (eval echo configure:5922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5923 eval "ac_cv_lib_$ac_lib_var=yes"
5925 echo "configure: failed program was:" >&5
5926 cat conftest.$ac_ext >&5
5928 eval "ac_cv_lib_$ac_lib_var=no"
5931 LIBS="$ac_save_LIBS"
5934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5935 echo "$ac_t""yes" 1>&6
5938 echo "$ac_t""no" 1>&6
5942 if test $have_ncurses = yes ; then
5943 cat >> confdefs.h <<\EOF
5944 #define HAVE_NCURSES 1
5948 TERMCAP_LIBS=-lncurses
5952 if test $ol_link_termcap = no ; then
5953 cat >> confdefs.h <<\EOF
5954 #define NO_TERMCAP 1
5960 # FreeBSD (and others) have crypt(3) in -lcrypt
5961 if test $ol_enable_crypt != no ; then
5962 echo $ac_n "checking for crypt""... $ac_c" 1>&6
5963 echo "configure:5964: checking for crypt" >&5
5964 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
5965 echo $ac_n "(cached) $ac_c" 1>&6
5967 cat > conftest.$ac_ext <<EOF
5968 #line 5969 "configure"
5969 #include "confdefs.h"
5970 /* System header to define __stub macros and hopefully few prototypes,
5971 which can conflict with char crypt(); below. */
5973 /* Override any gcc2 internal prototype to avoid an error. */
5974 /* We use char because int might match the return type of a gcc2
5975 builtin and then its argument prototype would still apply. */
5980 /* The GNU C library defines this for functions which it implements
5981 to always fail with ENOSYS. Some functions are actually named
5982 something starting with __ and the normal name is an alias. */
5983 #if defined (__stub_crypt) || defined (__stub___crypt)
5991 if { (eval echo configure:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5993 eval "ac_cv_func_crypt=yes"
5995 echo "configure: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5998 eval "ac_cv_func_crypt=no"
6003 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
6004 echo "$ac_t""yes" 1>&6
6007 echo "$ac_t""no" 1>&6
6009 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6010 echo "configure:6011: checking for crypt in -lcrypt" >&5
6011 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6013 echo $ac_n "(cached) $ac_c" 1>&6
6015 ac_save_LIBS="$LIBS"
6016 LIBS="-lcrypt $LIBS"
6017 cat > conftest.$ac_ext <<EOF
6018 #line 6019 "configure"
6019 #include "confdefs.h"
6020 /* Override any gcc2 internal prototype to avoid an error. */
6021 /* We use char because int might match the return type of a gcc2
6022 builtin and then its argument prototype would still apply. */
6029 if { (eval echo configure:6030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6031 eval "ac_cv_lib_$ac_lib_var=yes"
6033 echo "configure: failed program was:" >&5
6034 cat conftest.$ac_ext >&5
6036 eval "ac_cv_lib_$ac_lib_var=no"
6039 LIBS="$ac_save_LIBS"
6042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6043 echo "$ac_t""yes" 1>&6
6044 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
6047 echo "$ac_t""no" 1>&6
6054 if test $have_crypt = yes ; then
6055 cat >> confdefs.h <<\EOF
6056 #define HAVE_CRYPT 1
6060 echo "configure: warning: could not find crypt" 1>&2
6061 if test $ol_enable_crypt = yes ; then
6062 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
6065 echo "configure: warning: disabling crypt support" 1>&2
6070 # FreeBSD (and others) have setproctitle(3) in -lutil
6071 if test $ol_enable_proctitle != no ; then
6072 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
6073 echo "configure:6074: checking for setproctitle" >&5
6074 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
6075 echo $ac_n "(cached) $ac_c" 1>&6
6077 cat > conftest.$ac_ext <<EOF
6078 #line 6079 "configure"
6079 #include "confdefs.h"
6080 /* System header to define __stub macros and hopefully few prototypes,
6081 which can conflict with char setproctitle(); below. */
6083 /* Override any gcc2 internal prototype to avoid an error. */
6084 /* We use char because int might match the return type of a gcc2
6085 builtin and then its argument prototype would still apply. */
6086 char setproctitle();
6090 /* The GNU C library defines this for functions which it implements
6091 to always fail with ENOSYS. Some functions are actually named
6092 something starting with __ and the normal name is an alias. */
6093 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
6101 if { (eval echo configure:6102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6103 eval "ac_cv_func_setproctitle=yes"
6105 echo "configure: failed program was:" >&5
6106 cat conftest.$ac_ext >&5
6108 eval "ac_cv_func_setproctitle=no"
6113 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
6114 echo "$ac_t""yes" 1>&6
6115 have_setproctitle=yes
6117 echo "$ac_t""no" 1>&6
6119 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
6120 echo "configure:6121: checking for setproctitle in -lutil" >&5
6121 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
6122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6123 echo $ac_n "(cached) $ac_c" 1>&6
6125 ac_save_LIBS="$LIBS"
6127 cat > conftest.$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6130 /* Override any gcc2 internal prototype to avoid an error. */
6131 /* We use char because int might match the return type of a gcc2
6132 builtin and then its argument prototype would still apply. */
6133 char setproctitle();
6139 if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6141 eval "ac_cv_lib_$ac_lib_var=yes"
6143 echo "configure: failed program was:" >&5
6144 cat conftest.$ac_ext >&5
6146 eval "ac_cv_lib_$ac_lib_var=no"
6149 LIBS="$ac_save_LIBS"
6152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6153 echo "$ac_t""yes" 1>&6
6154 have_setproctitle=yes
6155 LUTIL_LIBS="$LUTIL_LIBS -lutil"
6157 echo "$ac_t""no" 1>&6
6158 have_setproctitle=no
6159 LIBOBJS="$LIBOBJS setproctitle.o"
6165 if test $have_setproctitle = yes ; then
6166 cat >> confdefs.h <<\EOF
6167 #define HAVE_SETPROCTITLE 1
6173 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6174 echo "configure:6175: checking for ANSI C header files" >&5
6175 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6176 echo $ac_n "(cached) $ac_c" 1>&6
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6187 { (eval echo configure:6188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6188 ac_err=`grep -v '^ *+' conftest.out`
6189 if test -z "$ac_err"; then
6191 ac_cv_header_stdc=yes
6194 echo "configure: failed program was:" >&5
6195 cat conftest.$ac_ext >&5
6197 ac_cv_header_stdc=no
6201 if test $ac_cv_header_stdc = yes; then
6202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6209 egrep "memchr" >/dev/null 2>&1; then
6213 ac_cv_header_stdc=no
6219 if test $ac_cv_header_stdc = yes; then
6220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6227 egrep "free" >/dev/null 2>&1; then
6231 ac_cv_header_stdc=no
6237 if test $ac_cv_header_stdc = yes; then
6238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6239 if test "$cross_compiling" = yes; then
6242 cat > conftest.$ac_ext <<EOF
6243 #line 6244 "configure"
6244 #include "confdefs.h"
6246 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6247 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6248 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6249 int main () { int i; for (i = 0; i < 256; i++)
6250 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6254 if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6258 echo "configure: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6261 ac_cv_header_stdc=no
6269 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6270 if test $ac_cv_header_stdc = yes; then
6271 cat >> confdefs.h <<\EOF
6272 #define STDC_HEADERS 1
6278 if test $ac_cv_header_stdc != yes; then
6279 echo "configure: warning: could not Standard C compliant headers" 1>&2
6283 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6285 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6286 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6287 echo "configure:6288: checking for $ac_hdr that defines DIR" >&5
6288 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6289 echo $ac_n "(cached) $ac_c" 1>&6
6291 cat > conftest.$ac_ext <<EOF
6292 #line 6293 "configure"
6293 #include "confdefs.h"
6294 #include <sys/types.h>
6300 if { (eval echo configure:6301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6302 eval "ac_cv_header_dirent_$ac_safe=yes"
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6307 eval "ac_cv_header_dirent_$ac_safe=no"
6311 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6312 echo "$ac_t""yes" 1>&6
6313 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6314 cat >> confdefs.h <<EOF
6315 #define $ac_tr_hdr 1
6317 ac_header_dirent=$ac_hdr; break
6319 echo "$ac_t""no" 1>&6
6322 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6323 if test $ac_header_dirent = dirent.h; then
6324 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6325 echo "configure:6326: checking for opendir in -ldir" >&5
6326 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6330 ac_save_LIBS="$LIBS"
6332 cat > conftest.$ac_ext <<EOF
6333 #line 6334 "configure"
6334 #include "confdefs.h"
6335 /* Override any gcc2 internal prototype to avoid an error. */
6336 /* We use char because int might match the return type of a gcc2
6337 builtin and then its argument prototype would still apply. */
6344 if { (eval echo configure:6345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6346 eval "ac_cv_lib_$ac_lib_var=yes"
6348 echo "configure: failed program was:" >&5
6349 cat conftest.$ac_ext >&5
6351 eval "ac_cv_lib_$ac_lib_var=no"
6354 LIBS="$ac_save_LIBS"
6357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6358 echo "$ac_t""yes" 1>&6
6361 echo "$ac_t""no" 1>&6
6365 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6366 echo "configure:6367: checking for opendir in -lx" >&5
6367 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6369 echo $ac_n "(cached) $ac_c" 1>&6
6371 ac_save_LIBS="$LIBS"
6373 cat > conftest.$ac_ext <<EOF
6374 #line 6375 "configure"
6375 #include "confdefs.h"
6376 /* Override any gcc2 internal prototype to avoid an error. */
6377 /* We use char because int might match the return type of a gcc2
6378 builtin and then its argument prototype would still apply. */
6385 if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6387 eval "ac_cv_lib_$ac_lib_var=yes"
6389 echo "configure: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6392 eval "ac_cv_lib_$ac_lib_var=no"
6395 LIBS="$ac_save_LIBS"
6398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6399 echo "$ac_t""yes" 1>&6
6402 echo "$ac_t""no" 1>&6
6407 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6408 echo "configure:6409: checking for sys/wait.h that is POSIX.1 compatible" >&5
6409 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6410 echo $ac_n "(cached) $ac_c" 1>&6
6412 cat > conftest.$ac_ext <<EOF
6413 #line 6414 "configure"
6414 #include "confdefs.h"
6415 #include <sys/types.h>
6416 #include <sys/wait.h>
6418 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6421 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6426 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6429 if { (eval echo configure:6430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6431 ac_cv_header_sys_wait_h=yes
6433 echo "configure: failed program was:" >&5
6434 cat conftest.$ac_ext >&5
6436 ac_cv_header_sys_wait_h=no
6441 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6442 if test $ac_cv_header_sys_wait_h = yes; then
6443 cat >> confdefs.h <<\EOF
6444 #define HAVE_SYS_WAIT_H 1
6449 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
6450 echo "configure:6451: checking POSIX termios" >&5
6451 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
6452 echo $ac_n "(cached) $ac_c" 1>&6
6454 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure"
6456 #include "confdefs.h"
6457 #include <sys/types.h>
6459 #include <termios.h>
6461 /* SunOS 4.0.3 has termios.h but not the library calls. */
6465 if { (eval echo configure:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6467 am_cv_sys_posix_termios=yes
6469 echo "configure: failed program was:" >&5
6470 cat conftest.$ac_ext >&5
6472 am_cv_sys_posix_termios=no
6477 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
6480 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
6481 echo "configure:6482: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
6482 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6485 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
6487 gwinsz_in_termios_h=no
6488 if test $am_cv_sys_posix_termios = yes; then
6489 cat > conftest.$ac_ext <<EOF
6490 #line 6491 "configure"
6491 #include "confdefs.h"
6492 #include <sys/types.h>
6493 # include <termios.h>
6499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6500 egrep "yes" >/dev/null 2>&1; then
6502 gwinsz_in_termios_h=yes
6508 if test $gwinsz_in_termios_h = no; then
6509 cat > conftest.$ac_ext <<EOF
6510 #line 6511 "configure"
6511 #include "confdefs.h"
6512 #include <sys/types.h>
6513 # include <sys/ioctl.h>
6519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6520 egrep "yes" >/dev/null 2>&1; then
6522 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
6530 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
6531 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
6532 cat >> confdefs.h <<\EOF
6533 #define GWINSZ_IN_SYS_IOCTL 1
6538 if test $am_cv_sys_posix_termios = yes ; then
6539 cat >> confdefs.h <<\EOF
6540 #define HAVE_POSIX_TERMIOS 1
6578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6580 echo "configure:6581: checking for $ac_hdr" >&5
6581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6590 { (eval echo configure:6591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6591 ac_err=`grep -v '^ *+' conftest.out`
6592 if test -z "$ac_err"; then
6594 eval "ac_cv_header_$ac_safe=yes"
6597 echo "configure: failed program was:" >&5
6598 cat conftest.$ac_ext >&5
6600 eval "ac_cv_header_$ac_safe=no"
6604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6605 echo "$ac_t""yes" 1>&6
6606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6607 cat >> confdefs.h <<EOF
6608 #define $ac_tr_hdr 1
6612 echo "$ac_t""no" 1>&6
6617 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6618 echo "configure:6619: checking for uid_t in sys/types.h" >&5
6619 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6620 echo $ac_n "(cached) $ac_c" 1>&6
6622 cat > conftest.$ac_ext <<EOF
6623 #line 6624 "configure"
6624 #include "confdefs.h"
6625 #include <sys/types.h>
6627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6628 egrep "uid_t" >/dev/null 2>&1; then
6630 ac_cv_type_uid_t=yes
6639 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6640 if test $ac_cv_type_uid_t = no; then
6641 cat >> confdefs.h <<\EOF
6645 cat >> confdefs.h <<\EOF
6651 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
6652 echo "configure:6653: checking type of array argument to getgroups" >&5
6653 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
6654 echo $ac_n "(cached) $ac_c" 1>&6
6656 if test "$cross_compiling" = yes; then
6657 ac_cv_type_getgroups=cross
6659 cat > conftest.$ac_ext <<EOF
6660 #line 6661 "configure"
6661 #include "confdefs.h"
6663 /* Thanks to Mike Rendell for this test. */
6664 #include <sys/types.h>
6667 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6672 union { gid_t gval; long lval; } val;
6675 for (i = 0; i < NGID; i++)
6676 gidset[i] = val.gval;
6677 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6679 /* Exit non-zero if getgroups seems to require an array of ints. This
6680 happens when gid_t is short but getgroups modifies an array of ints. */
6681 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6685 if { (eval echo configure:6686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6687 ac_cv_type_getgroups=gid_t
6689 echo "configure: failed program was:" >&5
6690 cat conftest.$ac_ext >&5
6692 ac_cv_type_getgroups=int
6697 if test $ac_cv_type_getgroups = cross; then
6698 cat > conftest.$ac_ext <<EOF
6699 #line 6700 "configure"
6700 #include "confdefs.h"
6703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6704 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6706 ac_cv_type_getgroups=gid_t
6709 ac_cv_type_getgroups=int
6716 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
6717 cat >> confdefs.h <<EOF
6718 #define GETGROUPS_T $ac_cv_type_getgroups
6721 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6722 echo "configure:6723: checking for mode_t" >&5
6723 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6724 echo $ac_n "(cached) $ac_c" 1>&6
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6729 #include <sys/types.h>
6735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6736 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6738 ac_cv_type_mode_t=yes
6741 ac_cv_type_mode_t=no
6746 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6747 if test $ac_cv_type_mode_t = no; then
6748 cat >> confdefs.h <<\EOF
6754 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6755 echo "configure:6756: checking for off_t" >&5
6756 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6759 cat > conftest.$ac_ext <<EOF
6760 #line 6761 "configure"
6761 #include "confdefs.h"
6762 #include <sys/types.h>
6768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6769 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6771 ac_cv_type_off_t=yes
6779 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6780 if test $ac_cv_type_off_t = no; then
6781 cat >> confdefs.h <<\EOF
6787 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6788 echo "configure:6789: checking for pid_t" >&5
6789 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6792 cat > conftest.$ac_ext <<EOF
6793 #line 6794 "configure"
6794 #include "confdefs.h"
6795 #include <sys/types.h>
6801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6802 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6804 ac_cv_type_pid_t=yes
6812 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6813 if test $ac_cv_type_pid_t = no; then
6814 cat >> confdefs.h <<\EOF
6820 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
6821 echo "configure:6822: checking for ptrdiff_t" >&5
6822 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
6823 echo $ac_n "(cached) $ac_c" 1>&6
6825 cat > conftest.$ac_ext <<EOF
6826 #line 6827 "configure"
6827 #include "confdefs.h"
6833 if { (eval echo configure:6834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6835 am_cv_type_ptrdiff_t=yes
6837 echo "configure: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6840 am_cv_type_ptrdiff_t=no
6845 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
6846 if test $am_cv_type_ptrdiff_t = yes; then
6847 cat >> confdefs.h <<\EOF
6848 #define HAVE_PTRDIFF_T 1
6853 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6854 echo "configure:6855: checking return type of signal handlers" >&5
6855 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6856 echo $ac_n "(cached) $ac_c" 1>&6
6858 cat > conftest.$ac_ext <<EOF
6859 #line 6860 "configure"
6860 #include "confdefs.h"
6861 #include <sys/types.h>
6867 extern "C" void (*signal (int, void (*)(int)))(int);
6869 void (*signal ()) ();
6876 if { (eval echo configure:6877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6878 ac_cv_type_signal=void
6880 echo "configure: failed program was:" >&5
6881 cat conftest.$ac_ext >&5
6883 ac_cv_type_signal=int
6888 echo "$ac_t""$ac_cv_type_signal" 1>&6
6889 cat >> confdefs.h <<EOF
6890 #define RETSIGTYPE $ac_cv_type_signal
6894 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6895 echo "configure:6896: checking for size_t" >&5
6896 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6897 echo $ac_n "(cached) $ac_c" 1>&6
6899 cat > conftest.$ac_ext <<EOF
6900 #line 6901 "configure"
6901 #include "confdefs.h"
6902 #include <sys/types.h>
6908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6909 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6911 ac_cv_type_size_t=yes
6914 ac_cv_type_size_t=no
6919 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6920 if test $ac_cv_type_size_t = no; then
6921 cat >> confdefs.h <<\EOF
6922 #define size_t unsigned
6927 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
6928 echo "configure:6929: checking for st_blksize in struct stat" >&5
6929 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
6930 echo $ac_n "(cached) $ac_c" 1>&6
6932 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure"
6934 #include "confdefs.h"
6935 #include <sys/types.h>
6936 #include <sys/stat.h>
6938 struct stat s; s.st_blksize;
6941 if { (eval echo configure:6942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6943 ac_cv_struct_st_blksize=yes
6945 echo "configure: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6948 ac_cv_struct_st_blksize=no
6953 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
6954 if test $ac_cv_struct_st_blksize = yes; then
6955 cat >> confdefs.h <<\EOF
6956 #define HAVE_ST_BLKSIZE 1
6961 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6962 echo "configure:6963: checking whether time.h and sys/time.h may both be included" >&5
6963 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
6964 echo $ac_n "(cached) $ac_c" 1>&6
6966 cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6969 #include <sys/types.h>
6970 #include <sys/time.h>
6976 if { (eval echo configure:6977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6978 ac_cv_header_time=yes
6980 echo "configure: failed program was:" >&5
6981 cat conftest.$ac_ext >&5
6983 ac_cv_header_time=no
6988 echo "$ac_t""$ac_cv_header_time" 1>&6
6989 if test $ac_cv_header_time = yes; then
6990 cat >> confdefs.h <<\EOF
6991 #define TIME_WITH_SYS_TIME 1
6996 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6997 echo "configure:6998: checking whether struct tm is in sys/time.h or time.h" >&5
6998 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6999 echo $ac_n "(cached) $ac_c" 1>&6
7001 cat > conftest.$ac_ext <<EOF
7002 #line 7003 "configure"
7003 #include "confdefs.h"
7004 #include <sys/types.h>
7007 struct tm *tp; tp->tm_sec;
7010 if { (eval echo configure:7011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7012 ac_cv_struct_tm=time.h
7014 echo "configure: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7017 ac_cv_struct_tm=sys/time.h
7022 echo "$ac_t""$ac_cv_struct_tm" 1>&6
7023 if test $ac_cv_struct_tm = sys/time.h; then
7024 cat >> confdefs.h <<\EOF
7025 #define TM_IN_SYS_TIME 1
7032 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
7033 echo "configure:7034: checking if toupper() requires islower()" >&5
7034 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
7035 echo $ac_n "(cached) $ac_c" 1>&6
7038 if test "$cross_compiling" = yes; then
7039 ol_cv_c_upper_lower=safe
7041 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7048 if ('C' == toupper('C'))
7054 if { (eval echo configure:7055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7056 ol_cv_c_upper_lower=no
7058 echo "configure: failed program was:" >&5
7059 cat conftest.$ac_ext >&5
7061 ol_cv_c_upper_lower=yes
7068 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
7069 if test $ol_cv_c_upper_lower != no ; then
7070 cat >> confdefs.h <<\EOF
7071 #define C_UPPER_LOWER 1
7076 echo $ac_n "checking for working const""... $ac_c" 1>&6
7077 echo "configure:7078: checking for working const" >&5
7078 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7079 echo $ac_n "(cached) $ac_c" 1>&6
7081 cat > conftest.$ac_ext <<EOF
7082 #line 7083 "configure"
7083 #include "confdefs.h"
7087 /* Ultrix mips cc rejects this. */
7088 typedef int charset[2]; const charset x;
7089 /* SunOS 4.1.1 cc rejects this. */
7090 char const *const *ccp;
7092 /* NEC SVR4.0.2 mips cc rejects this. */
7093 struct point {int x, y;};
7094 static struct point const zero = {0,0};
7095 /* AIX XL C 1.02.0.0 rejects this.
7096 It does not let you subtract one const X* pointer from another in an arm
7097 of an if-expression whose if-part is not a constant expression */
7098 const char *g = "string";
7099 ccp = &g + (g ? g-g : 0);
7100 /* HPUX 7.0 cc rejects these. */
7103 ccp = (char const *const *) p;
7104 { /* SCO 3.2v4 cc rejects this. */
7106 char const *s = 0 ? (char *) 0 : (char const *) 0;
7110 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7112 const int *foo = &x[0];
7115 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7116 typedef const int *iptr;
7120 { /* AIX XL C 1.02.0.0 rejects this saying
7121 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7122 struct s { int j; const int *ap[3]; };
7123 struct s *b; b->j = 5;
7125 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7131 if { (eval echo configure:7132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7135 echo "configure: failed program was:" >&5
7136 cat conftest.$ac_ext >&5
7143 echo "$ac_t""$ac_cv_c_const" 1>&6
7144 if test $ac_cv_c_const = no; then
7145 cat >> confdefs.h <<\EOF
7152 if test $cross_compiling = yes ; then
7153 cat >> confdefs.h <<\EOF
7154 #define CROSS_COMPILING 1
7158 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7159 echo "configure:7160: checking whether byte ordering is bigendian" >&5
7160 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7161 echo $ac_n "(cached) $ac_c" 1>&6
7163 ac_cv_c_bigendian=unknown
7164 # See if sys/param.h defines the BYTE_ORDER macro.
7165 cat > conftest.$ac_ext <<EOF
7166 #line 7167 "configure"
7167 #include "confdefs.h"
7168 #include <sys/types.h>
7169 #include <sys/param.h>
7172 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7177 if { (eval echo configure:7178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7179 # It does; now see whether it defined to BIG_ENDIAN or not.
7180 cat > conftest.$ac_ext <<EOF
7181 #line 7182 "configure"
7182 #include "confdefs.h"
7183 #include <sys/types.h>
7184 #include <sys/param.h>
7187 #if BYTE_ORDER != BIG_ENDIAN
7192 if { (eval echo configure:7193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7194 ac_cv_c_bigendian=yes
7196 echo "configure: failed program was:" >&5
7197 cat conftest.$ac_ext >&5
7199 ac_cv_c_bigendian=no
7203 echo "configure: failed program was:" >&5
7204 cat conftest.$ac_ext >&5
7207 if test $ac_cv_c_bigendian = unknown; then
7208 if test "$cross_compiling" = yes; then
7209 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7211 cat > conftest.$ac_ext <<EOF
7212 #line 7213 "configure"
7213 #include "confdefs.h"
7215 /* Are we little or big endian? From Harbison&Steele. */
7219 char c[sizeof (long)];
7222 exit (u.c[sizeof (long) - 1] == 1);
7225 if { (eval echo configure:7226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7227 ac_cv_c_bigendian=no
7229 echo "configure: failed program was:" >&5
7230 cat conftest.$ac_ext >&5
7232 ac_cv_c_bigendian=yes
7240 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7241 if test $ac_cv_c_bigendian = yes; then
7242 cat >> confdefs.h <<\EOF
7243 #define WORDS_BIGENDIAN 1
7248 echo $ac_n "checking size of short""... $ac_c" 1>&6
7249 echo "configure:7250: checking size of short" >&5
7250 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7251 echo $ac_n "(cached) $ac_c" 1>&6
7253 if test "$cross_compiling" = yes; then
7254 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7256 cat > conftest.$ac_ext <<EOF
7257 #line 7258 "configure"
7258 #include "confdefs.h"
7262 FILE *f=fopen("conftestval", "w");
7264 fprintf(f, "%d\n", sizeof(short));
7268 if { (eval echo configure:7269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7270 ac_cv_sizeof_short=`cat conftestval`
7272 echo "configure: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7275 ac_cv_sizeof_short=0
7281 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7282 cat >> confdefs.h <<EOF
7283 #define SIZEOF_SHORT $ac_cv_sizeof_short
7287 echo $ac_n "checking size of int""... $ac_c" 1>&6
7288 echo "configure:7289: checking size of int" >&5
7289 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7290 echo $ac_n "(cached) $ac_c" 1>&6
7292 if test "$cross_compiling" = yes; then
7293 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7295 cat > conftest.$ac_ext <<EOF
7296 #line 7297 "configure"
7297 #include "confdefs.h"
7301 FILE *f=fopen("conftestval", "w");
7303 fprintf(f, "%d\n", sizeof(int));
7307 if { (eval echo configure:7308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7309 ac_cv_sizeof_int=`cat conftestval`
7311 echo "configure: failed program was:" >&5
7312 cat conftest.$ac_ext >&5
7320 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7321 cat >> confdefs.h <<EOF
7322 #define SIZEOF_INT $ac_cv_sizeof_int
7326 echo $ac_n "checking size of long""... $ac_c" 1>&6
7327 echo "configure:7328: checking size of long" >&5
7328 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7329 echo $ac_n "(cached) $ac_c" 1>&6
7331 if test "$cross_compiling" = yes; then
7332 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7334 cat > conftest.$ac_ext <<EOF
7335 #line 7336 "configure"
7336 #include "confdefs.h"
7340 FILE *f=fopen("conftestval", "w");
7342 fprintf(f, "%d\n", sizeof(long));
7346 if { (eval echo configure:7347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7348 ac_cv_sizeof_long=`cat conftestval`
7350 echo "configure: failed program was:" >&5
7351 cat conftest.$ac_ext >&5
7359 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
7360 cat >> confdefs.h <<EOF
7361 #define SIZEOF_LONG $ac_cv_sizeof_long
7367 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
7368 echo "configure:7369: checking for 8-bit clean memcmp" >&5
7369 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7372 if test "$cross_compiling" = yes; then
7373 ac_cv_func_memcmp_clean=no
7375 cat > conftest.$ac_ext <<EOF
7376 #line 7377 "configure"
7377 #include "confdefs.h"
7381 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
7382 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
7386 if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7388 ac_cv_func_memcmp_clean=yes
7390 echo "configure: failed program was:" >&5
7391 cat conftest.$ac_ext >&5
7393 ac_cv_func_memcmp_clean=no
7400 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
7401 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
7403 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7404 echo "configure:7405: checking for strftime" >&5
7405 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
7406 echo $ac_n "(cached) $ac_c" 1>&6
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 /* System header to define __stub macros and hopefully few prototypes,
7412 which can conflict with char strftime(); below. */
7414 /* Override any gcc2 internal prototype to avoid an error. */
7415 /* We use char because int might match the return type of a gcc2
7416 builtin and then its argument prototype would still apply. */
7421 /* The GNU C library defines this for functions which it implements
7422 to always fail with ENOSYS. Some functions are actually named
7423 something starting with __ and the normal name is an alias. */
7424 #if defined (__stub_strftime) || defined (__stub___strftime)
7432 if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7434 eval "ac_cv_func_strftime=yes"
7436 echo "configure: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7439 eval "ac_cv_func_strftime=no"
7444 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
7445 echo "$ac_t""yes" 1>&6
7446 cat >> confdefs.h <<\EOF
7447 #define HAVE_STRFTIME 1
7451 echo "$ac_t""no" 1>&6
7452 # strftime is in -lintl on SCO UNIX.
7453 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
7454 echo "configure:7455: checking for strftime in -lintl" >&5
7455 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
7456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7457 echo $ac_n "(cached) $ac_c" 1>&6
7459 ac_save_LIBS="$LIBS"
7461 cat > conftest.$ac_ext <<EOF
7462 #line 7463 "configure"
7463 #include "confdefs.h"
7464 /* Override any gcc2 internal prototype to avoid an error. */
7465 /* We use char because int might match the return type of a gcc2
7466 builtin and then its argument prototype would still apply. */
7473 if { (eval echo configure:7474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7475 eval "ac_cv_lib_$ac_lib_var=yes"
7477 echo "configure: failed program was:" >&5
7478 cat conftest.$ac_ext >&5
7480 eval "ac_cv_lib_$ac_lib_var=no"
7483 LIBS="$ac_save_LIBS"
7486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7487 echo "$ac_t""yes" 1>&6
7488 cat >> confdefs.h <<\EOF
7489 #define HAVE_STRFTIME 1
7494 echo "$ac_t""no" 1>&6
7499 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7500 echo "configure:7501: checking for vprintf" >&5
7501 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
7502 echo $ac_n "(cached) $ac_c" 1>&6
7504 cat > conftest.$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7507 /* System header to define __stub macros and hopefully few prototypes,
7508 which can conflict with char vprintf(); below. */
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7517 /* The GNU C library defines this for functions which it implements
7518 to always fail with ENOSYS. Some functions are actually named
7519 something starting with __ and the normal name is an alias. */
7520 #if defined (__stub_vprintf) || defined (__stub___vprintf)
7528 if { (eval echo configure:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7530 eval "ac_cv_func_vprintf=yes"
7532 echo "configure: failed program was:" >&5
7533 cat conftest.$ac_ext >&5
7535 eval "ac_cv_func_vprintf=no"
7540 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
7541 echo "$ac_t""yes" 1>&6
7542 cat >> confdefs.h <<\EOF
7543 #define HAVE_VPRINTF 1
7547 echo "$ac_t""no" 1>&6
7550 if test "$ac_cv_func_vprintf" != yes; then
7551 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7552 echo "configure:7553: checking for _doprnt" >&5
7553 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
7554 echo $ac_n "(cached) $ac_c" 1>&6
7556 cat > conftest.$ac_ext <<EOF
7557 #line 7558 "configure"
7558 #include "confdefs.h"
7559 /* System header to define __stub macros and hopefully few prototypes,
7560 which can conflict with char _doprnt(); below. */
7562 /* Override any gcc2 internal prototype to avoid an error. */
7563 /* We use char because int might match the return type of a gcc2
7564 builtin and then its argument prototype would still apply. */
7569 /* The GNU C library defines this for functions which it implements
7570 to always fail with ENOSYS. Some functions are actually named
7571 something starting with __ and the normal name is an alias. */
7572 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7580 if { (eval echo configure:7581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7582 eval "ac_cv_func__doprnt=yes"
7584 echo "configure: failed program was:" >&5
7585 cat conftest.$ac_ext >&5
7587 eval "ac_cv_func__doprnt=no"
7592 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
7593 echo "$ac_t""yes" 1>&6
7594 cat >> confdefs.h <<\EOF
7595 #define HAVE_DOPRNT 1
7599 echo "$ac_t""no" 1>&6
7605 if test $ac_cv_func_vprintf = yes ; then
7606 for ac_func in vsnprintf
7608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7609 echo "configure:7610: checking for $ac_func" >&5
7610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7613 cat > conftest.$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 /* System header to define __stub macros and hopefully few prototypes,
7617 which can conflict with char $ac_func(); below. */
7619 /* Override any gcc2 internal prototype to avoid an error. */
7620 /* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7626 /* The GNU C library defines this for functions which it implements
7627 to always fail with ENOSYS. Some functions are actually named
7628 something starting with __ and the normal name is an alias. */
7629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7637 if { (eval echo configure:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7639 eval "ac_cv_func_$ac_func=yes"
7641 echo "configure: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7644 eval "ac_cv_func_$ac_func=no"
7649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7652 cat >> confdefs.h <<EOF
7653 #define $ac_tr_func 1
7657 echo "$ac_t""no" 1>&6
7663 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
7664 echo "configure:7665: checking for wait3 that fills in rusage" >&5
7665 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
7666 echo $ac_n "(cached) $ac_c" 1>&6
7668 if test "$cross_compiling" = yes; then
7669 ac_cv_func_wait3_rusage=no
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674 #include <sys/types.h>
7675 #include <sys/time.h>
7676 #include <sys/resource.h>
7678 /* HP-UX has wait3 but does not fill in rusage at all. */
7682 /* Use a field that we can force nonzero --
7683 voluntary context switches.
7684 For systems like NeXT and OSF/1 that don't set it,
7685 also use the system CPU time. And page faults (I/O) for Linux. */
7687 r.ru_stime.tv_sec = 0;
7688 r.ru_stime.tv_usec = 0;
7689 r.ru_majflt = r.ru_minflt = 0;
7691 case 0: /* Child. */
7692 sleep(1); /* Give up the CPU. */
7694 case -1: _exit(0); /* What can we do? */
7695 default: /* Parent. */
7697 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
7698 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
7699 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
7703 if { (eval echo configure:7704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7705 ac_cv_func_wait3_rusage=yes
7707 echo "configure: failed program was:" >&5
7708 cat conftest.$ac_ext >&5
7710 ac_cv_func_wait3_rusage=no
7717 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
7718 if test $ac_cv_func_wait3_rusage = yes; then
7719 cat >> confdefs.h <<\EOF
7720 #define HAVE_WAIT3 1
7757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7758 echo "configure:7759: checking for $ac_func" >&5
7759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7760 echo $ac_n "(cached) $ac_c" 1>&6
7762 cat > conftest.$ac_ext <<EOF
7763 #line 7764 "configure"
7764 #include "confdefs.h"
7765 /* System header to define __stub macros and hopefully few prototypes,
7766 which can conflict with char $ac_func(); below. */
7768 /* Override any gcc2 internal prototype to avoid an error. */
7769 /* We use char because int might match the return type of a gcc2
7770 builtin and then its argument prototype would still apply. */
7775 /* The GNU C library defines this for functions which it implements
7776 to always fail with ENOSYS. Some functions are actually named
7777 something starting with __ and the normal name is an alias. */
7778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7786 if { (eval echo configure:7787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7788 eval "ac_cv_func_$ac_func=yes"
7790 echo "configure: failed program was:" >&5
7791 cat conftest.$ac_ext >&5
7793 eval "ac_cv_func_$ac_func=no"
7798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7799 echo "$ac_t""yes" 1>&6
7800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7801 cat >> confdefs.h <<EOF
7802 #define $ac_tr_func 1
7806 echo "$ac_t""no" 1>&6
7811 for ac_func in getopt strdup tempnam
7813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7814 echo "configure:7815: checking for $ac_func" >&5
7815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7816 echo $ac_n "(cached) $ac_c" 1>&6
7818 cat > conftest.$ac_ext <<EOF
7819 #line 7820 "configure"
7820 #include "confdefs.h"
7821 /* System header to define __stub macros and hopefully few prototypes,
7822 which can conflict with char $ac_func(); below. */
7824 /* Override any gcc2 internal prototype to avoid an error. */
7825 /* We use char because int might match the return type of a gcc2
7826 builtin and then its argument prototype would still apply. */
7831 /* The GNU C library defines this for functions which it implements
7832 to always fail with ENOSYS. Some functions are actually named
7833 something starting with __ and the normal name is an alias. */
7834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7842 if { (eval echo configure:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7844 eval "ac_cv_func_$ac_func=yes"
7846 echo "configure: failed program was:" >&5
7847 cat conftest.$ac_ext >&5
7849 eval "ac_cv_func_$ac_func=no"
7854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7855 echo "$ac_t""yes" 1>&6
7856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7857 cat >> confdefs.h <<EOF
7858 #define $ac_tr_func 1
7862 echo "$ac_t""no" 1>&6
7863 LIBOBJS="$LIBOBJS ${ac_func}.o"
7869 # Check Configuration
7871 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
7872 echo "configure:7873: checking declaration of sys_errlist" >&5
7873 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
7874 echo $ac_n "(cached) $ac_c" 1>&6
7877 cat > conftest.$ac_ext <<EOF
7878 #line 7879 "configure"
7879 #include "confdefs.h"
7882 #include <sys/types.h>
7885 char *c = (char *) *sys_errlist
7888 if { (eval echo configure:7889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7890 ol_cv_dcl_sys_errlist=yes
7892 echo "configure: failed program was:" >&5
7893 cat conftest.$ac_ext >&5
7895 ol_cv_dcl_sys_errlist=no
7900 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
7902 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
7903 if test $ol_cv_dcl_sys_errlist = no ; then
7904 cat >> confdefs.h <<\EOF
7905 #define DECL_SYS_ERRLIST 1
7908 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
7909 echo "configure:7910: checking existence of sys_errlist" >&5
7910 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
7911 echo $ac_n "(cached) $ac_c" 1>&6
7914 cat > conftest.$ac_ext <<EOF
7915 #line 7916 "configure"
7916 #include "confdefs.h"
7919 char *c = (char *) *sys_errlist
7922 if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7924 ol_cv_have_sys_errlist=yes
7926 echo "configure: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7929 ol_cv_have_sys_errlist=no
7934 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
7939 if test $ol_enable_debug != no ; then
7940 cat >> confdefs.h <<\EOF
7941 #define LDAP_DEBUG 1
7945 if test $ol_enable_libui = yes ; then
7946 cat >> confdefs.h <<\EOF
7947 #define LDAP_LIBUI 1
7951 if test $ol_enable_cache = no ; then
7952 cat >> confdefs.h <<\EOF
7953 #define LDAP_NOCACHE 1
7957 if test $ol_enable_dns != no ; then
7958 cat >> confdefs.h <<\EOF
7963 if test $ol_enable_proctitle != no ; then
7964 cat >> confdefs.h <<\EOF
7965 #define LDAP_PROCTITLE 1
7969 if test $ol_enable_referrals != no ; then
7970 cat >> confdefs.h <<\EOF
7971 #define LDAP_REFERRALS 1
7975 if test $ol_enable_cldap != no ; then
7976 cat >> confdefs.h <<\EOF
7977 #define LDAP_CONNECTIONLESS 1
7982 if test $ol_enable_aclgroups != no ; then
7983 cat >> confdefs.h <<\EOF
7984 #define SLAPD_ACLGROUPS 1
7988 if test $ol_enable_crypt != no ; then
7989 cat >> confdefs.h <<\EOF
7990 #define SLAPD_CRYPT 1
7994 if test $ol_enable_md5 != no ; then
7995 cat >> confdefs.h <<\EOF
8000 if test $ol_enable_sha1 != no ; then
8001 cat >> confdefs.h <<\EOF
8002 #define SLAPD_SHA1 1
8006 if test $ol_enable_phonetic != no ; then
8007 cat >> confdefs.h <<\EOF
8008 #define SLAPD_PHONETIC 1
8012 if test $ol_enable_rlookups != no ; then
8013 cat >> confdefs.h <<\EOF
8014 #define SLAPD_RLOOKUPS 1
8019 if test $ol_link_ldbm != no ; then
8020 cat >> confdefs.h <<\EOF
8021 #define SLAPD_LDBM 1
8028 if test $ol_enable_passwd != no ; then
8029 cat >> confdefs.h <<\EOF
8030 #define SLAPD_PASSWD 1
8037 if test $ol_enable_shell != no ; then
8038 cat >> confdefs.h <<\EOF
8039 #define SLAPD_SHELL 1
8046 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
8047 $BUILD_SLAPD = yes ; then
8051 if test $ol_link_isode != no ; then
8077 cat > confcache <<\EOF
8078 # This file is a shell script that caches the results of configure
8079 # tests run on this system so they can be shared between configure
8080 # scripts and configure runs. It is not useful on other systems.
8081 # If it contains results you don't want to keep, you may remove or edit it.
8083 # By default, configure uses ./config.cache as the cache file,
8084 # creating it if it does not exist already. You can give configure
8085 # the --cache-file=FILE option to use a different cache file; that is
8086 # what configure does when it calls configure scripts in
8087 # subdirectories, so they share the cache.
8088 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8089 # config.status only pays attention to the cache file if you give it the
8090 # --recheck option to rerun configure.
8093 # The following way of writing the cache mishandles newlines in values,
8094 # but we know of no workaround that is simple, portable, and efficient.
8095 # So, don't put newlines in cache variables' values.
8096 # Ultrix sh set writes to stderr and can't be redirected directly,
8097 # and sets the high bit in the cache file unless we assign to the vars.
8099 case `(ac_space=' '; set) 2>&1` in
8101 # `set' does not quote correctly, so add quotes (double-quote substitution
8102 # turns \\\\ into \\, and sed turns \\ into \).
8104 -e "s/'/'\\\\''/g" \
8105 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8108 # `set' quotes correctly as required by POSIX, so do not add quotes.
8109 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8112 if cmp -s $cache_file confcache; then
8115 if test -w $cache_file; then
8116 echo "updating cache $cache_file"
8117 cat confcache > $cache_file
8119 echo "not updating unwritable cache $cache_file"
8124 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8126 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8127 # Let make expand exec_prefix.
8128 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8130 # Any assignment to VPATH causes Sun make to only execute
8131 # the first set of double-colon rules, so remove it if not needed.
8132 # If there is a colon in the path, we need to keep it.
8133 if test "x$srcdir" = x.; then
8134 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8137 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8139 DEFS=-DHAVE_CONFIG_H
8141 # Without the "./", some shells look in PATH for config.status.
8142 : ${CONFIG_STATUS=./config.status}
8144 echo creating $CONFIG_STATUS
8145 rm -f $CONFIG_STATUS
8146 cat > $CONFIG_STATUS <<EOF
8148 # Generated automatically by configure.
8149 # Run this file to recreate the current configuration.
8150 # This directory was configured as follows,
8151 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8153 # $0 $ac_configure_args
8155 # Compiler output produced by configure, useful for debugging
8156 # configure, is in ./config.log if it exists.
8158 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8161 case "\$ac_option" in
8162 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8163 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8164 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8165 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8166 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8168 -help | --help | --hel | --he | --h)
8169 echo "\$ac_cs_usage"; exit 0 ;;
8170 *) echo "\$ac_cs_usage"; exit 1 ;;
8174 ac_given_srcdir=$srcdir
8175 ac_given_INSTALL="$INSTALL"
8177 trap 'rm -fr `echo "\
8178 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8179 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8180 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8181 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8182 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8183 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8184 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8185 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8186 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8187 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8188 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8189 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8190 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8191 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8192 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8193 include/Makefile:build/top.mk:include/Makefile.in \
8194 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8195 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8196 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8197 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8198 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8199 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8200 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8201 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8202 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8203 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8204 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8205 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8206 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8207 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8208 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8209 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8210 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8211 tests/Makefile:build/top.mk:tests/Makefile.in \
8212 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8214 cat >> $CONFIG_STATUS <<EOF
8216 # Protect against being on the right side of a sed subst in config.status.
8217 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8218 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8221 s%@CFLAGS@%$CFLAGS%g
8222 s%@CPPFLAGS@%$CPPFLAGS%g
8223 s%@CXXFLAGS@%$CXXFLAGS%g
8225 s%@LDFLAGS@%$LDFLAGS%g
8227 s%@exec_prefix@%$exec_prefix%g
8228 s%@prefix@%$prefix%g
8229 s%@program_transform_name@%$program_transform_name%g
8230 s%@bindir@%$bindir%g
8231 s%@sbindir@%$sbindir%g
8232 s%@libexecdir@%$libexecdir%g
8233 s%@datadir@%$datadir%g
8234 s%@sysconfdir@%$sysconfdir%g
8235 s%@sharedstatedir@%$sharedstatedir%g
8236 s%@localstatedir@%$localstatedir%g
8237 s%@libdir@%$libdir%g
8238 s%@includedir@%$includedir%g
8239 s%@oldincludedir@%$oldincludedir%g
8240 s%@infodir@%$infodir%g
8241 s%@mandir@%$mandir%g
8242 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8243 s%@INSTALL_DATA@%$INSTALL_DATA%g
8244 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8245 s%@PACKAGE@%$PACKAGE%g
8246 s%@VERSION@%$VERSION%g
8247 s%@ACLOCAL@%$ACLOCAL%g
8248 s%@AUTOCONF@%$AUTOCONF%g
8249 s%@AUTOMAKE@%$AUTOMAKE%g
8250 s%@AUTOHEADER@%$AUTOHEADER%g
8251 s%@MAKEINFO@%$MAKEINFO%g
8252 s%@SET_MAKE@%$SET_MAKE%g
8253 s%@top_builddir@%$top_builddir%g
8254 s%@ldap_subdir@%$ldap_subdir%g
8256 s%@host_alias@%$host_alias%g
8257 s%@host_cpu@%$host_cpu%g
8258 s%@host_vendor@%$host_vendor%g
8259 s%@host_os@%$host_os%g
8260 s%@RANLIB@%$RANLIB%g
8265 s%@LIBTOOL@%$LIBTOOL%g
8266 s%@SENDMAIL@%$SENDMAIL%g
8267 s%@EDITOR@%$EDITOR%g
8268 s%@FINGER@%$FINGER%g
8271 s%@LIBOBJS@%$LIBOBJS%g
8272 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
8273 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
8274 s%@BUILD_LDBM@%$BUILD_LDBM%g
8275 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
8276 s%@BUILD_SHELL@%$BUILD_SHELL%g
8277 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
8278 s%@LDAP_LIBS@%$LDAP_LIBS%g
8279 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
8280 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
8281 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
8282 s%@LDBM_LIBS@%$LDBM_LIBS%g
8283 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
8284 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
8285 s%@KRB_LIBS@%$KRB_LIBS%g
8286 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
8291 cat >> $CONFIG_STATUS <<\EOF
8293 # Split the substitutions into bite-sized pieces for seds with
8294 # small command number limits, like on Digital OSF/1 and HP-UX.
8295 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8296 ac_file=1 # Number of current file.
8297 ac_beg=1 # First line for current file.
8298 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8301 while $ac_more_lines; do
8302 if test $ac_beg -gt 1; then
8303 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8305 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8307 if test ! -s conftest.s$ac_file; then
8309 rm -f conftest.s$ac_file
8311 if test -z "$ac_sed_cmds"; then
8312 ac_sed_cmds="sed -f conftest.s$ac_file"
8314 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8316 ac_file=`expr $ac_file + 1`
8318 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8321 if test -z "$ac_sed_cmds"; then
8326 cat >> $CONFIG_STATUS <<EOF
8328 CONFIG_FILES=\${CONFIG_FILES-"\
8329 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8330 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8331 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8332 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8333 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8334 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8335 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8336 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8337 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8338 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8339 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8340 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8341 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8342 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8343 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8344 include/Makefile:build/top.mk:include/Makefile.in \
8345 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8346 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8347 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8348 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8349 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8350 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8351 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8352 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8353 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8354 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8355 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8356 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8357 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8358 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8359 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8360 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8361 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8362 tests/Makefile:build/top.mk:tests/Makefile.in \
8365 cat >> $CONFIG_STATUS <<\EOF
8366 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8369 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8370 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8371 *) ac_file_in="${ac_file}.in" ;;
8374 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8376 # Remove last slash and all that follows it. Not all systems have dirname.
8377 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8378 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8379 # The file is in a subdirectory.
8380 test ! -d "$ac_dir" && mkdir "$ac_dir"
8381 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8382 # A "../" for each directory in $ac_dir_suffix.
8383 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8385 ac_dir_suffix= ac_dots=
8388 case "$ac_given_srcdir" in
8390 if test -z "$ac_dots"; then top_srcdir=.
8391 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8392 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8394 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8395 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8398 case "$ac_given_INSTALL" in
8399 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8400 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8403 echo creating "$ac_file"
8405 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8407 *Makefile*) ac_comsub="1i\\
8408 # $configure_input" ;;
8412 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8414 s%@configure_input@%$configure_input%g
8415 s%@srcdir@%$srcdir%g
8416 s%@top_srcdir@%$top_srcdir%g
8417 s%@INSTALL@%$INSTALL%g
8418 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8422 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8423 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8425 # ac_d sets the value in "#define NAME VALUE" lines.
8426 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8427 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8430 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8431 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8432 ac_uB='\([ ]\)%\1#\2define\3'
8435 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8436 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8437 ac_eB='$%\1#\2define\3'
8441 if test "${CONFIG_HEADERS+set}" != set; then
8443 cat >> $CONFIG_STATUS <<EOF
8444 CONFIG_HEADERS="include/portable.h"
8446 cat >> $CONFIG_STATUS <<\EOF
8448 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8451 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8452 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8453 *) ac_file_in="${ac_file}.in" ;;
8456 echo creating $ac_file
8458 rm -f conftest.frag conftest.in conftest.out
8459 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8460 cat $ac_file_inputs > conftest.in
8464 # Transform confdefs.h into a sed script conftest.vals that substitutes
8465 # the proper values into config.h.in to produce config.h. And first:
8466 # Protect against being on the right side of a sed subst in config.status.
8467 # Protect against being in an unquoted here document in config.status.
8469 cat > conftest.hdr <<\EOF
8472 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8476 sed -n -f conftest.hdr confdefs.h > conftest.vals
8479 # This sed command replaces #undef with comments. This is necessary, for
8480 # example, in the case of _POSIX_SOURCE, which is predefined and required
8481 # on some systems where configure will not decide to define it.
8482 cat >> conftest.vals <<\EOF
8483 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8486 # Break up conftest.vals because some shells have a limit on
8487 # the size of here documents, and old seds have small limits too.
8492 ac_lines=`grep -c . conftest.vals`
8493 # grep -c gives empty output for an empty file on some AIX systems.
8494 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8495 # Write a limited-size here document to conftest.frag.
8496 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8497 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8499 sed -f conftest.frag conftest.in > conftest.out
8501 mv conftest.out conftest.in
8503 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8505 mv conftest.tail conftest.vals
8509 cat >> $CONFIG_STATUS <<\EOF
8510 rm -f conftest.frag conftest.h
8511 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8512 cat conftest.in >> conftest.h
8514 if cmp -s $ac_file conftest.h 2>/dev/null; then
8515 echo "$ac_file is unchanged"
8518 # Remove last slash and all that follows it. Not all systems have dirname.
8519 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8520 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8521 # The file is in a subdirectory.
8522 test ! -d "$ac_dir" && mkdir "$ac_dir"
8525 mv conftest.h $ac_file
8530 cat >> $CONFIG_STATUS <<EOF
8533 cat >> $CONFIG_STATUS <<\EOF
8536 echo Please \"make depend\" to build dependencies
8540 chmod +x $CONFIG_STATUS
8541 rm -fr confdefs* $ac_clean_files
8542 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1