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 --enable-debug enable debugging (yes)"
18 --enable-proctitle enable proctitle support (yes)"
20 --enable-libui enable library user interface (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable dns support (no)"
26 --enable-referrals enable referrals (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --enable-x-compile enable cross compiling (no)"
32 --with-kerberos use Kerberos (auto)"
34 --with-threads use threads (auto)"
36 --with-yielding-select with implicitly yielding select (auto)"
40 --enable-ldapd enable building ldapd (no)"
44 --enable-slapd enable building slapd (yes)"
46 --enable-aclgroups enable ACL group support (auto)"
48 --enable-crypt enable crypt(3) passwords (auto)"
50 --enable-md5 enable MD5 passwords (auto)"
52 --enable-sha1 enable SHA1 passwords (auto)"
54 --enable-wrappers enable tcp wrapper support (no)"
56 --enable-phonetic enable phonetic/soundex (no)"
58 --enable-rlookups enable reverse lookups (auto)"
60 --enable-ldbm enable ldbm backend (yes)"
62 --with-ldbm-api use LDBM API (auto)"
64 --with-ldbm-type use LDBM type (auto)"
66 --enable-passwd enable passwd backend (no)"
68 --enable-shell enable shell backend (no)"
72 --enable-slurpd enable building slurpd (auto)"
74 Library Generation & Linking Options"
76 --enable-static build static libraries [default=yes]
77 --enable-static=PKGS only build shared libraries if the current package
78 appears as an element in the PKGS list"
80 --enable-shared build shared libraries [default=yes]
81 --enable-shared=PKGS only build shared libraries if the current package
82 appears as an element in the PKGS list"
84 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
86 # Initialize some variables set by options.
87 # The variables have the same names as the options, with
88 # dashes changed to underlines.
90 cache_file=./config.cache
99 program_transform_name=s,x,x,
107 bindir='${exec_prefix}/bin'
108 sbindir='${exec_prefix}/sbin'
109 libexecdir='${exec_prefix}/libexec'
110 datadir='${prefix}/share'
111 sysconfdir='${prefix}/etc'
112 sharedstatedir='${prefix}/com'
113 localstatedir='${prefix}/var'
114 libdir='${exec_prefix}/lib'
115 includedir='${prefix}/include'
116 oldincludedir='/usr/include'
117 infodir='${prefix}/info'
118 mandir='${prefix}/man'
120 # Initialize some other variables.
123 # Maximum number of lines to put in a shell here document.
130 # If the previous option needs an argument, assign it.
131 if test -n "$ac_prev"; then
132 eval "$ac_prev=\$ac_option"
138 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
142 # Accept the important Cygnus configure options, so we can diagnose typos.
146 -bindir | --bindir | --bindi | --bind | --bin | --bi)
148 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
149 bindir="$ac_optarg" ;;
151 -build | --build | --buil | --bui | --bu)
153 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
154 build="$ac_optarg" ;;
156 -cache-file | --cache-file | --cache-fil | --cache-fi \
157 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
158 ac_prev=cache_file ;;
159 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
160 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
161 cache_file="$ac_optarg" ;;
163 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
165 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
167 datadir="$ac_optarg" ;;
169 -disable-* | --disable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}=no" ;;
178 -enable-* | --enable-*)
179 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
189 eval "enable_${ac_feature}='$ac_optarg'" ;;
191 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
192 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
193 | --exec | --exe | --ex)
194 ac_prev=exec_prefix ;;
195 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
196 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
197 | --exec=* | --exe=* | --ex=*)
198 exec_prefix="$ac_optarg" ;;
200 -gas | --gas | --ga | --g)
201 # Obsolete; use --with-gas.
204 -help | --help | --hel | --he)
205 # Omit some internal or obsolete options to make the list less imposing.
206 # This message is too long to be a string in the A/UX 3.1 sh.
208 Usage: configure [options] [host]
209 Options: [defaults in brackets after descriptions]
211 --cache-file=FILE cache test results in FILE
212 --help print this message
213 --no-create do not create output files
214 --quiet, --silent do not print \`checking...' messages
215 --version print the version of autoconf that created configure
216 Directory and file names:
217 --prefix=PREFIX install architecture-independent files in PREFIX
219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
221 --bindir=DIR user executables in DIR [EPREFIX/bin]
222 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
223 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
224 --datadir=DIR read-only architecture-independent data in DIR
226 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
227 --sharedstatedir=DIR modifiable architecture-independent data in DIR
229 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
230 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
231 --includedir=DIR C header files in DIR [PREFIX/include]
232 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
233 --infodir=DIR info documentation in DIR [PREFIX/info]
234 --mandir=DIR man documentation in DIR [PREFIX/man]
235 --srcdir=DIR find the sources in DIR [configure dir or ..]
236 --program-prefix=PREFIX prepend PREFIX to installed program names
237 --program-suffix=SUFFIX append SUFFIX to installed program names
238 --program-transform-name=PROGRAM
239 run sed PROGRAM on installed program names
243 --build=BUILD configure for building on BUILD [BUILD=HOST]
244 --host=HOST configure for HOST [guessed]
245 --target=TARGET configure for TARGET [TARGET=HOST]
246 Features and packages:
247 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
248 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
249 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
250 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
251 --x-includes=DIR X include files are in DIR
252 --x-libraries=DIR X library files are in DIR
254 if test -n "$ac_help"; then
255 echo "--enable and --with options recognized:$ac_help"
259 -host | --host | --hos | --ho)
261 -host=* | --host=* | --hos=* | --ho=*)
264 -includedir | --includedir | --includedi | --included | --include \
265 | --includ | --inclu | --incl | --inc)
266 ac_prev=includedir ;;
267 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
268 | --includ=* | --inclu=* | --incl=* | --inc=*)
269 includedir="$ac_optarg" ;;
271 -infodir | --infodir | --infodi | --infod | --info | --inf)
273 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
274 infodir="$ac_optarg" ;;
276 -libdir | --libdir | --libdi | --libd)
278 -libdir=* | --libdir=* | --libdi=* | --libd=*)
279 libdir="$ac_optarg" ;;
281 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
282 | --libexe | --libex | --libe)
283 ac_prev=libexecdir ;;
284 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
285 | --libexe=* | --libex=* | --libe=*)
286 libexecdir="$ac_optarg" ;;
288 -localstatedir | --localstatedir | --localstatedi | --localstated \
289 | --localstate | --localstat | --localsta | --localst \
290 | --locals | --local | --loca | --loc | --lo)
291 ac_prev=localstatedir ;;
292 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
293 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
294 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
295 localstatedir="$ac_optarg" ;;
297 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
299 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
300 mandir="$ac_optarg" ;;
303 # Obsolete; use --without-fp.
306 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
311 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
314 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
315 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
316 | --oldin | --oldi | --old | --ol | --o)
317 ac_prev=oldincludedir ;;
318 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
319 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
320 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
321 oldincludedir="$ac_optarg" ;;
323 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
325 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
326 prefix="$ac_optarg" ;;
328 -program-prefix | --program-prefix | --program-prefi | --program-pref \
329 | --program-pre | --program-pr | --program-p)
330 ac_prev=program_prefix ;;
331 -program-prefix=* | --program-prefix=* | --program-prefi=* \
332 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
333 program_prefix="$ac_optarg" ;;
335 -program-suffix | --program-suffix | --program-suffi | --program-suff \
336 | --program-suf | --program-su | --program-s)
337 ac_prev=program_suffix ;;
338 -program-suffix=* | --program-suffix=* | --program-suffi=* \
339 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
340 program_suffix="$ac_optarg" ;;
342 -program-transform-name | --program-transform-name \
343 | --program-transform-nam | --program-transform-na \
344 | --program-transform-n | --program-transform- \
345 | --program-transform | --program-transfor \
346 | --program-transfo | --program-transf \
347 | --program-trans | --program-tran \
348 | --progr-tra | --program-tr | --program-t)
349 ac_prev=program_transform_name ;;
350 -program-transform-name=* | --program-transform-name=* \
351 | --program-transform-nam=* | --program-transform-na=* \
352 | --program-transform-n=* | --program-transform-=* \
353 | --program-transform=* | --program-transfor=* \
354 | --program-transfo=* | --program-transf=* \
355 | --program-trans=* | --program-tran=* \
356 | --progr-tra=* | --program-tr=* | --program-t=*)
357 program_transform_name="$ac_optarg" ;;
359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
360 | -silent | --silent | --silen | --sile | --sil)
363 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
365 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
367 sbindir="$ac_optarg" ;;
369 -sharedstatedir | --sharedstatedir | --sharedstatedi \
370 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
371 | --sharedst | --shareds | --shared | --share | --shar \
373 ac_prev=sharedstatedir ;;
374 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
375 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
376 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
378 sharedstatedir="$ac_optarg" ;;
380 -site | --site | --sit)
382 -site=* | --site=* | --sit=*)
385 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
387 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
388 srcdir="$ac_optarg" ;;
390 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
391 | --syscon | --sysco | --sysc | --sys | --sy)
392 ac_prev=sysconfdir ;;
393 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
394 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
395 sysconfdir="$ac_optarg" ;;
397 -target | --target | --targe | --targ | --tar | --ta | --t)
399 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
400 target="$ac_optarg" ;;
402 -v | -verbose | --verbose | --verbos | --verbo | --verb)
405 -version | --version | --versio | --versi | --vers)
406 echo "configure generated by autoconf version 2.12"
410 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}='$ac_optarg'" ;;
422 -without-* | --without-*)
423 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428 ac_package=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}=no" ;;
432 # Obsolete; use --with-x.
435 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
436 | --x-incl | --x-inc | --x-in | --x-i)
437 ac_prev=x_includes ;;
438 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
439 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
440 x_includes="$ac_optarg" ;;
442 -x-libraries | --x-libraries | --x-librarie | --x-librari \
443 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
444 ac_prev=x_libraries ;;
445 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
446 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
447 x_libraries="$ac_optarg" ;;
449 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
453 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
454 echo "configure: warning: $ac_option: invalid host type" 1>&2
456 if test "x$nonopt" != xNONE; then
457 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
465 if test -n "$ac_prev"; then
466 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
469 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
471 # File descriptor usage:
474 # 2 errors and warnings
475 # 3 some systems may open it to /dev/tty
476 # 4 used on the Kubota Titan
477 # 6 checking for... messages and results
478 # 5 compiler messages saved in config.log
479 if test "$silent" = yes; then
487 This file contains any messages produced by compilers while
488 running configure, to aid debugging if configure makes a mistake.
491 # Strip out --no-create and --no-recursion so they do not pile up.
492 # Also quote any args containing shell metacharacters.
497 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
498 | --no-cr | --no-c) ;;
499 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
500 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
502 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
503 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
508 # Only set these to C if already set. These must not be set unconditionally
509 # because not all systems understand e.g. LANG=C (notably SCO).
510 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
511 # Non-C LC_CTYPE values break the ctype check.
512 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
513 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
514 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
515 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
517 # confdefs.h avoids OS command line length limits that DEFS can exceed.
518 rm -rf conftest* confdefs.h
519 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
522 # A filename unique to this package, relative to the directory that
523 # configure is in, which we can look for to find out if srcdir is correct.
524 ac_unique_file=include/ldap.h
526 # Find the source files, if location was not specified.
527 if test -z "$srcdir"; then
528 ac_srcdir_defaulted=yes
529 # Try the directory containing this script, then its parent.
531 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
532 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
534 if test ! -r $srcdir/$ac_unique_file; then
538 ac_srcdir_defaulted=no
540 if test ! -r $srcdir/$ac_unique_file; then
541 if test "$ac_srcdir_defaulted" = yes; then
542 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
544 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
547 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
549 # Prefer explicitly selected file to automatically selected ones.
550 if test -z "$CONFIG_SITE"; then
551 if test "x$prefix" != xNONE; then
552 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
554 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
557 for ac_site_file in $CONFIG_SITE; do
558 if test -r "$ac_site_file"; then
559 echo "loading site script $ac_site_file"
564 if test -r "$cache_file"; then
565 echo "loading cache $cache_file"
568 echo "creating cache $cache_file"
573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
574 ac_cpp='$CPP $CPPFLAGS'
575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
576 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
577 cross_compiling=$ac_cv_prog_cc_cross
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
588 ac_n= ac_c='\c' ac_t=
592 for ac_dir in build $srcdir/build; do
593 if test -f $ac_dir/install-sh; then
595 ac_install_sh="$ac_aux_dir/install-sh -c"
597 elif test -f $ac_dir/install.sh; then
599 ac_install_sh="$ac_aux_dir/install.sh -c"
603 if test -z "$ac_aux_dir"; then
604 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
606 ac_config_guess=$ac_aux_dir/config.guess
607 ac_config_sub=$ac_aux_dir/config.sub
608 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
609 # Find a good install program. We prefer a C program (faster),
610 # so one script is as good as another. But avoid the broken or
611 # incompatible versions:
612 # SysV /etc/install, /usr/sbin/install
613 # SunOS /usr/etc/install
616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
618 # ./install, which can be erroneously created by make from ./install.sh.
619 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
620 echo "configure:621: checking for a BSD compatible install" >&5
621 if test -z "$INSTALL"; then
622 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
625 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
626 for ac_dir in $PATH; do
627 # Account for people who put trailing slashes in PATH elements.
629 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
631 # OSF1 and SCO ODT 3.0 have their own names for install.
632 for ac_prog in ginstall installbsd scoinst install; do
633 if test -f $ac_dir/$ac_prog; then
634 if test $ac_prog = install &&
635 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
636 # AIX install. It has an incompatible calling convention.
637 # OSF/1 installbsd also uses dspmsg, but is usable.
640 ac_cv_path_install="$ac_dir/$ac_prog -c"
651 if test "${ac_cv_path_install+set}" = set; then
652 INSTALL="$ac_cv_path_install"
654 # As a last resort, use the slow shell script. We don't cache a
655 # path for INSTALL within a source directory, because that will
656 # break other packages using the cache if that directory is
657 # removed, or if the path is relative.
658 INSTALL="$ac_install_sh"
661 echo "$ac_t""$INSTALL" 1>&6
663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
664 # It thinks the first close brace ends the variable substitution.
665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
670 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
672 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
673 echo "configure:674: checking whether build environment is sane" >&5
676 echo timestamp > conftestfile
677 # Do `set' in a subshell so we don't clobber the current shell's
678 # arguments. Must try -L first in case configure is actually a
679 # symlink; some systems play weird games with the mod time of symlinks
680 # (eg FreeBSD returns the mod time of the symlink's containing
683 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
684 if test "$*" = "X"; then
686 set X `ls -t $srcdir/configure conftestfile`
688 if test "$*" != "X $srcdir/configure conftestfile" \
689 && test "$*" != "X conftestfile $srcdir/configure"; then
691 # If neither matched, then we have a broken ls. This can happen
692 # if, for instance, CONFIG_SHELL is bash and it inherits a
693 # broken ls alias from the environment. This has actually
694 # happened. Such a system could not be considered "sane".
695 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
696 alias in your environment" 1>&2; exit 1; }
699 test "$2" = conftestfile
705 { echo "configure: error: newly created file is older than distributed files!
706 Check your system clock" 1>&2; exit 1; }
709 echo "$ac_t""yes" 1>&6
710 if test "$program_transform_name" = s,x,x,; then
711 program_transform_name=
713 # Double any \ or $. echo might interpret backslashes.
714 cat <<\EOF_SED > conftestsed
715 s,\\,\\\\,g; s,\$,$$,g
717 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
720 test "$program_prefix" != NONE &&
721 program_transform_name="s,^,${program_prefix},; $program_transform_name"
722 # Use a double $ so make ignores it.
723 test "$program_suffix" != NONE &&
724 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
726 # sed with no file args requires a program.
727 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
729 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
730 echo "configure:731: checking whether ${MAKE-make} sets \${MAKE}" >&5
731 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
732 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
735 cat > conftestmake <<\EOF
737 @echo 'ac_maketemp="${MAKE}"'
739 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
740 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
741 if test -n "$ac_maketemp"; then
742 eval ac_cv_prog_make_${ac_make}_set=yes
744 eval ac_cv_prog_make_${ac_make}_set=no
748 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
749 echo "$ac_t""yes" 1>&6
752 echo "$ac_t""no" 1>&6
753 SET_MAKE="MAKE=${MAKE-make}"
761 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
762 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
767 missing_dir=`cd $ac_aux_dir && pwd`
768 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
769 echo "configure:770: checking for working aclocal" >&5
770 # Run test in a subshell; some versions of sh will print an error if
771 # an executable is not found, even if stderr is redirected.
772 # Redirect stdin to placate older versions of autoconf. Sigh.
773 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
775 echo "$ac_t""found" 1>&6
777 ACLOCAL="$missing_dir/missing aclocal"
778 echo "$ac_t""missing" 1>&6
781 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
782 echo "configure:783: checking for working autoconf" >&5
783 # Run test in a subshell; some versions of sh will print an error if
784 # an executable is not found, even if stderr is redirected.
785 # Redirect stdin to placate older versions of autoconf. Sigh.
786 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
788 echo "$ac_t""found" 1>&6
790 AUTOCONF="$missing_dir/missing autoconf"
791 echo "$ac_t""missing" 1>&6
794 echo $ac_n "checking for working automake""... $ac_c" 1>&6
795 echo "configure:796: checking for working automake" >&5
796 # Run test in a subshell; some versions of sh will print an error if
797 # an executable is not found, even if stderr is redirected.
798 # Redirect stdin to placate older versions of autoconf. Sigh.
799 if (automake --version) < /dev/null > /dev/null 2>&1; then
801 echo "$ac_t""found" 1>&6
803 AUTOMAKE="$missing_dir/missing automake"
804 echo "$ac_t""missing" 1>&6
807 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
808 echo "configure:809: checking for working autoheader" >&5
809 # Run test in a subshell; some versions of sh will print an error if
810 # an executable is not found, even if stderr is redirected.
811 # Redirect stdin to placate older versions of autoconf. Sigh.
812 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
813 AUTOHEADER=autoheader
814 echo "$ac_t""found" 1>&6
816 AUTOHEADER="$missing_dir/missing autoheader"
817 echo "$ac_t""missing" 1>&6
820 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
821 echo "configure:822: checking for working makeinfo" >&5
822 # Run test in a subshell; some versions of sh will print an error if
823 # an executable is not found, even if stderr is redirected.
824 # Redirect stdin to placate older versions of autoconf. Sigh.
825 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
827 echo "$ac_t""found" 1>&6
829 MAKEINFO="$missing_dir/missing makeinfo"
830 echo "$ac_t""missing" 1>&6
836 for ac_dir in build $srcdir/build; do
837 if test -f $ac_dir/install-sh; then
839 ac_install_sh="$ac_aux_dir/install-sh -c"
841 elif test -f $ac_dir/install.sh; then
843 ac_install_sh="$ac_aux_dir/install.sh -c"
847 if test -z "$ac_aux_dir"; then
848 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
850 ac_config_guess=$ac_aux_dir/config.guess
851 ac_config_sub=$ac_aux_dir/config.sub
852 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
855 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
856 echo "configure:857: checking configure arguments" >&5
861 # OpenLDAP --enable-debug
862 # Check whether --enable-debug or --disable-debug was given.
863 if test "${enable_debug+set}" = set; then
864 enableval="$enable_debug"
867 for ol_val in auto yes no ; do
868 if test "$enableval" = "$ol_val" ; then
872 if test "$ol_arg" = "invalid" ; then
873 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
875 ol_enable_debug="$ol_arg"
878 ol_enable_debug="yes"
881 # OpenLDAP --enable-proctitle
882 # Check whether --enable-proctitle or --disable-proctitle was given.
883 if test "${enable_proctitle+set}" = set; then
884 enableval="$enable_proctitle"
887 for ol_val in auto yes no ; do
888 if test "$enableval" = "$ol_val" ; then
892 if test "$ol_arg" = "invalid" ; then
893 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
895 ol_enable_proctitle="$ol_arg"
898 ol_enable_proctitle="yes"
900 # end --enable-proctitle
901 # OpenLDAP --enable-libui
902 # Check whether --enable-libui or --disable-libui was given.
903 if test "${enable_libui+set}" = set; then
904 enableval="$enable_libui"
907 for ol_val in auto yes no ; do
908 if test "$enableval" = "$ol_val" ; then
912 if test "$ol_arg" = "invalid" ; then
913 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
915 ol_enable_libui="$ol_arg"
918 ol_enable_libui="yes"
921 # OpenLDAP --enable-cache
922 # Check whether --enable-cache or --disable-cache was given.
923 if test "${enable_cache+set}" = set; then
924 enableval="$enable_cache"
927 for ol_val in auto yes no ; do
928 if test "$enableval" = "$ol_val" ; then
932 if test "$ol_arg" = "invalid" ; then
933 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
935 ol_enable_cache="$ol_arg"
938 ol_enable_cache="yes"
941 # OpenLDAP --enable-dns
942 # Check whether --enable-dns or --disable-dns was given.
943 if test "${enable_dns+set}" = set; then
944 enableval="$enable_dns"
947 for ol_val in auto yes no ; do
948 if test "$enableval" = "$ol_val" ; then
952 if test "$ol_arg" = "invalid" ; then
953 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
955 ol_enable_dns="$ol_arg"
961 # OpenLDAP --enable-referrals
962 # Check whether --enable-referrals or --disable-referrals was given.
963 if test "${enable_referrals+set}" = set; then
964 enableval="$enable_referrals"
967 for ol_val in auto yes no ; do
968 if test "$enableval" = "$ol_val" ; then
972 if test "$ol_arg" = "invalid" ; then
973 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
975 ol_enable_referrals="$ol_arg"
978 ol_enable_referrals="yes"
980 # end --enable-referrals
981 # OpenLDAP --enable-cldap
982 # Check whether --enable-cldap or --disable-cldap was given.
983 if test "${enable_cldap+set}" = set; then
984 enableval="$enable_cldap"
987 for ol_val in auto yes no ; do
988 if test "$enableval" = "$ol_val" ; then
992 if test "$ol_arg" = "invalid" ; then
993 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
995 ol_enable_cldap="$ol_arg"
1000 # end --enable-cldap
1001 # OpenLDAP --enable-x_compile
1002 # Check whether --enable-x_compile or --disable-x_compile was given.
1003 if test "${enable_x_compile+set}" = set; then
1004 enableval="$enable_x_compile"
1007 for ol_val in yes no ; do
1008 if test "$enableval" = "$ol_val" ; then
1012 if test "$ol_arg" = "invalid" ; then
1013 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1015 ol_enable_x_compile="$ol_arg"
1018 ol_enable_x_compile="no"
1020 # end --enable-x_compile
1022 # OpenLDAP --with-kerberos
1023 # Check whether --with-kerberos or --without-kerberos was given.
1024 if test "${with_kerberos+set}" = set; then
1025 withval="$with_kerberos"
1028 for ol_val in auto k5 k4 afs yes no ; do
1029 if test "$withval" = "$ol_val" ; then
1033 if test "$ol_arg" = "invalid" ; then
1034 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1036 ol_with_kerberos="$ol_arg"
1039 ol_with_kerberos="auto"
1041 # end --with-kerberos
1043 # OpenLDAP --with-threads
1044 # Check whether --with-threads or --without-threads was given.
1045 if test "${with_threads+set}" = set; then
1046 withval="$with_threads"
1049 for ol_val in auto posix mach lwp yes no manual ; do
1050 if test "$withval" = "$ol_val" ; then
1054 if test "$ol_arg" = "invalid" ; then
1055 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1057 ol_with_threads="$ol_arg"
1060 ol_with_threads="auto"
1062 # end --with-threads
1064 # OpenLDAP --with-yielding_select
1065 # Check whether --with-yielding_select or --without-yielding_select was given.
1066 if test "${with_yielding_select+set}" = set; then
1067 withval="$with_yielding_select"
1070 for ol_val in auto yes no manual ; do
1071 if test "$withval" = "$ol_val" ; then
1075 if test "$ol_arg" = "invalid" ; then
1076 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1078 ol_with_yielding_select="$ol_arg"
1081 ol_with_yielding_select="auto"
1083 # end --with-yielding_select
1087 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1088 if test "${with_xxldapdoptions+set}" = set; then
1089 withval="$with_xxldapdoptions"
1093 # OpenLDAP --enable-ldapd
1094 # Check whether --enable-ldapd or --disable-ldapd was given.
1095 if test "${enable_ldapd+set}" = set; then
1096 enableval="$enable_ldapd"
1099 for ol_val in auto yes no ; do
1100 if test "$enableval" = "$ol_val" ; then
1104 if test "$ol_arg" = "invalid" ; then
1105 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1107 ol_enable_ldapd="$ol_arg"
1110 ol_enable_ldapd="no"
1112 # end --enable-ldapd
1114 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1115 if test "${with_xxslapdoptions+set}" = set; then
1116 withval="$with_xxslapdoptions"
1120 # OpenLDAP --enable-slapd
1121 # Check whether --enable-slapd or --disable-slapd was given.
1122 if test "${enable_slapd+set}" = set; then
1123 enableval="$enable_slapd"
1126 for ol_val in auto yes no ; do
1127 if test "$enableval" = "$ol_val" ; then
1131 if test "$ol_arg" = "invalid" ; then
1132 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1134 ol_enable_slapd="$ol_arg"
1137 ol_enable_slapd="yes"
1139 # end --enable-slapd
1140 # OpenLDAP --enable-aclgroups
1141 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1142 if test "${enable_aclgroups+set}" = set; then
1143 enableval="$enable_aclgroups"
1146 for ol_val in auto yes no ; do
1147 if test "$enableval" = "$ol_val" ; then
1151 if test "$ol_arg" = "invalid" ; then
1152 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1154 ol_enable_aclgroups="$ol_arg"
1157 ol_enable_aclgroups="auto"
1159 # end --enable-aclgroups
1160 # OpenLDAP --enable-crypt
1161 # Check whether --enable-crypt or --disable-crypt was given.
1162 if test "${enable_crypt+set}" = set; then
1163 enableval="$enable_crypt"
1166 for ol_val in auto yes no ; do
1167 if test "$enableval" = "$ol_val" ; then
1171 if test "$ol_arg" = "invalid" ; then
1172 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1174 ol_enable_crypt="$ol_arg"
1177 ol_enable_crypt="auto"
1179 # end --enable-crypt
1180 # OpenLDAP --enable-md5
1181 # Check whether --enable-md5 or --disable-md5 was given.
1182 if test "${enable_md5+set}" = set; then
1183 enableval="$enable_md5"
1186 for ol_val in auto yes no ; do
1187 if test "$enableval" = "$ol_val" ; then
1191 if test "$ol_arg" = "invalid" ; then
1192 { echo "configure: error: bad value $enableval for --enable-md5" 1>&2; exit 1; }
1194 ol_enable_md5="$ol_arg"
1197 ol_enable_md5="auto"
1200 # OpenLDAP --enable-sha1
1201 # Check whether --enable-sha1 or --disable-sha1 was given.
1202 if test "${enable_sha1+set}" = set; then
1203 enableval="$enable_sha1"
1206 for ol_val in auto yes no ; do
1207 if test "$enableval" = "$ol_val" ; then
1211 if test "$ol_arg" = "invalid" ; then
1212 { echo "configure: error: bad value $enableval for --enable-sha1" 1>&2; exit 1; }
1214 ol_enable_sha1="$ol_arg"
1217 ol_enable_sha1="auto"
1220 # OpenLDAP --enable-wrappers
1221 # Check whether --enable-wrappers or --disable-wrappers was given.
1222 if test "${enable_wrappers+set}" = set; then
1223 enableval="$enable_wrappers"
1226 for ol_val in auto yes no ; do
1227 if test "$enableval" = "$ol_val" ; then
1231 if test "$ol_arg" = "invalid" ; then
1232 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1234 ol_enable_wrappers="$ol_arg"
1237 ol_enable_wrappers="no"
1239 # end --enable-wrappers
1240 # OpenLDAP --enable-phonetic
1241 # Check whether --enable-phonetic or --disable-phonetic was given.
1242 if test "${enable_phonetic+set}" = set; then
1243 enableval="$enable_phonetic"
1246 for ol_val in auto yes no ; do
1247 if test "$enableval" = "$ol_val" ; then
1251 if test "$ol_arg" = "invalid" ; then
1252 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1254 ol_enable_phonetic="$ol_arg"
1257 ol_enable_phonetic="no"
1259 # end --enable-phonetic
1260 # OpenLDAP --enable-rlookups
1261 # Check whether --enable-rlookups or --disable-rlookups was given.
1262 if test "${enable_rlookups+set}" = set; then
1263 enableval="$enable_rlookups"
1266 for ol_val in auto yes no ; do
1267 if test "$enableval" = "$ol_val" ; then
1271 if test "$ol_arg" = "invalid" ; then
1272 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1274 ol_enable_rlookups="$ol_arg"
1277 ol_enable_rlookups="auto"
1279 # end --enable-rlookups
1281 # OpenLDAP --enable-ldbm
1282 # Check whether --enable-ldbm or --disable-ldbm was given.
1283 if test "${enable_ldbm+set}" = set; then
1284 enableval="$enable_ldbm"
1287 for ol_val in auto yes no ; do
1288 if test "$enableval" = "$ol_val" ; then
1292 if test "$ol_arg" = "invalid" ; then
1293 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1295 ol_enable_ldbm="$ol_arg"
1298 ol_enable_ldbm="yes"
1301 # OpenLDAP --with-ldbm_api
1302 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1303 if test "${with_ldbm_api+set}" = set; then
1304 withval="$with_ldbm_api"
1307 for ol_val in auto db2 db gdbm ndbm manual ; do
1308 if test "$withval" = "$ol_val" ; then
1312 if test "$ol_arg" = "invalid" ; then
1313 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1315 ol_with_ldbm_api="$ol_arg"
1318 ol_with_ldbm_api="auto"
1320 # end --with-ldbm_api
1322 # OpenLDAP --with-ldbm_type
1323 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1324 if test "${with_ldbm_type+set}" = set; then
1325 withval="$with_ldbm_type"
1328 for ol_val in auto btree hash ; do
1329 if test "$withval" = "$ol_val" ; then
1333 if test "$ol_arg" = "invalid" ; then
1334 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1336 ol_with_ldbm_type="$ol_arg"
1339 ol_with_ldbm_type="auto"
1341 # end --with-ldbm_type
1344 # OpenLDAP --enable-passwd
1345 # Check whether --enable-passwd or --disable-passwd was given.
1346 if test "${enable_passwd+set}" = set; then
1347 enableval="$enable_passwd"
1350 for ol_val in auto yes no ; do
1351 if test "$enableval" = "$ol_val" ; then
1355 if test "$ol_arg" = "invalid" ; then
1356 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1358 ol_enable_passwd="$ol_arg"
1361 ol_enable_passwd="no"
1363 # end --enable-passwd
1364 # OpenLDAP --enable-shell
1365 # Check whether --enable-shell or --disable-shell was given.
1366 if test "${enable_shell+set}" = set; then
1367 enableval="$enable_shell"
1370 for ol_val in auto yes no ; do
1371 if test "$enableval" = "$ol_val" ; then
1375 if test "$ol_arg" = "invalid" ; then
1376 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1378 ol_enable_shell="$ol_arg"
1381 ol_enable_shell="no"
1383 # end --enable-shell
1385 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1386 if test "${with_xxslurpdoptions+set}" = set; then
1387 withval="$with_xxslurpdoptions"
1391 # OpenLDAP --enable-slurpd
1392 # Check whether --enable-slurpd or --disable-slurpd was given.
1393 if test "${enable_slurpd+set}" = set; then
1394 enableval="$enable_slurpd"
1397 for ol_val in auto yes no ; do
1398 if test "$enableval" = "$ol_val" ; then
1402 if test "$ol_arg" = "invalid" ; then
1403 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1405 ol_enable_slurpd="$ol_arg"
1408 ol_enable_slurpd="auto"
1410 # end --enable-slurpd
1412 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1413 if test "${with_xxliboptions+set}" = set; then
1414 withval="$with_xxliboptions"
1418 # Check whether --enable-static or --disable-static was given.
1419 if test "${enable_static+set}" = set; then
1420 enableval="$enable_static"
1421 p=${PACKAGE-default}
1422 case "$enableval" in
1423 yes) enable_static=yes ;;
1424 no) enable_static=no ;;
1427 # Look at the argument we got. We use all the common list separators.
1428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1429 for pkg in $enableval; do
1430 if test "X$pkg" = "X$p"; then
1441 # Check whether --enable-shared or --disable-shared was given.
1442 if test "${enable_shared+set}" = set; then
1443 enableval="$enable_shared"
1444 p=${PACKAGE-default}
1445 case "$enableval" in
1446 yes) enable_shared=yes ;;
1447 no) enable_shared=no ;;
1450 # Look at the argument we got. We use all the common list separators.
1451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1452 for pkg in $enableval; do
1453 if test "X$pkg" = "X$p"; then
1466 if test $ol_enable_referrals = no ; then
1467 if test $ol_enable_dns = yes ; then
1468 echo "configure: warning: dns disabled, ignoring --enable-dns argument" 1>&2
1473 if test $ol_enable_slapd = no ; then
1474 if test $ol_enable_ldbm = yes ; then
1475 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1477 if test $ol_enable_passwd = yes ; then
1478 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1480 if test $ol_enable_shell = yes ; then
1481 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1483 if test $ol_enable_aclgroups = yes ; then
1484 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1486 if test $ol_enable_crypt = yes ; then
1487 echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2
1489 if test $ol_enable_md5 = yes ; then
1490 echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2
1492 if test $ol_enable_sha1 = yes ; then
1493 echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2
1495 if test $ol_enable_wrappers = yes ; then
1496 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1498 if test $ol_enable_phonetic = yes ; then
1499 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1501 if test $ol_enable_rlookups = yes ; then
1502 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1504 if test $ol_with_ldbm_api != auto ; then
1505 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1507 if test $ol_with_ldbm_type != auto ; then
1508 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1510 if test $ol_enable_slurpd = yes ; then
1511 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1514 # force settings to no
1518 ol_enable_aclgroups=no
1522 ol_enable_wrappers=no
1523 ol_enable_phonetic=no
1524 ol_enable_rlookups=no
1526 ol_with_ldbm_type=no
1529 elif test $ol_enable_ldbm = no ; then
1531 if test $ol_with_ldbm_api != auto ; then
1532 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1535 if test $ol_with_ldbm_type != auto ; then
1536 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1539 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1540 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1544 ol_with_ldbm_type=no
1548 if test $ol_with_ldbm_api = gdbm -a \
1549 $ol_with_ldbm_type = btree ; then
1550 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1552 if test $ol_with_ldbm_api = ndbm -a \
1553 $ol_with_ldbm_type = btree ; then
1554 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1558 if test $ol_enable_slurpd = yes ; then
1559 if test $ol_with_threads = no ; then
1560 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1564 echo "$ac_t""done" 1>&6
1567 # Make sure we can run config.sub.
1568 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1569 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1572 echo $ac_n "checking host system type""... $ac_c" 1>&6
1573 echo "configure:1574: checking host system type" >&5
1576 case "$host_alias" in
1580 if host_alias=`$ac_config_guess`; then :
1581 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1583 *) host_alias=$nonopt ;;
1587 host=`$ac_config_sub $host_alias`
1588 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591 echo "$ac_t""$host" 1>&6
1617 # Find a good install program. We prefer a C program (faster),
1618 # so one script is as good as another. But avoid the broken or
1619 # incompatible versions:
1620 # SysV /etc/install, /usr/sbin/install
1621 # SunOS /usr/etc/install
1622 # IRIX /sbin/install
1624 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1625 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1626 # ./install, which can be erroneously created by make from ./install.sh.
1627 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1628 echo "configure:1629: checking for a BSD compatible install" >&5
1629 if test -z "$INSTALL"; then
1630 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1631 echo $ac_n "(cached) $ac_c" 1>&6
1633 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1634 for ac_dir in $PATH; do
1635 # Account for people who put trailing slashes in PATH elements.
1637 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1639 # OSF1 and SCO ODT 3.0 have their own names for install.
1640 for ac_prog in ginstall installbsd scoinst install; do
1641 if test -f $ac_dir/$ac_prog; then
1642 if test $ac_prog = install &&
1643 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1644 # AIX install. It has an incompatible calling convention.
1645 # OSF/1 installbsd also uses dspmsg, but is usable.
1648 ac_cv_path_install="$ac_dir/$ac_prog -c"
1659 if test "${ac_cv_path_install+set}" = set; then
1660 INSTALL="$ac_cv_path_install"
1662 # As a last resort, use the slow shell script. We don't cache a
1663 # path for INSTALL within a source directory, because that will
1664 # break other packages using the cache if that directory is
1665 # removed, or if the path is relative.
1666 INSTALL="$ac_install_sh"
1669 echo "$ac_t""$INSTALL" 1>&6
1671 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1672 # It thinks the first close brace ends the variable substitution.
1673 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1675 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1677 # Extract the first word of "ranlib", so it can be a program name with args.
1678 set dummy ranlib; ac_word=$2
1679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1680 echo "configure:1681: checking for $ac_word" >&5
1681 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 if test -n "$RANLIB"; then
1685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1688 for ac_dir in $PATH; do
1689 test -z "$ac_dir" && ac_dir=.
1690 if test -f $ac_dir/$ac_word; then
1691 ac_cv_prog_RANLIB="ranlib"
1696 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1699 RANLIB="$ac_cv_prog_RANLIB"
1700 if test -n "$RANLIB"; then
1701 echo "$ac_t""$RANLIB" 1>&6
1703 echo "$ac_t""no" 1>&6
1706 # Extract the first word of "gcc", so it can be a program name with args.
1707 set dummy gcc; ac_word=$2
1708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1709 echo "configure:1710: checking for $ac_word" >&5
1710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1713 if test -n "$CC"; then
1714 ac_cv_prog_CC="$CC" # Let the user override the test.
1716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1717 for ac_dir in $PATH; do
1718 test -z "$ac_dir" && ac_dir=.
1719 if test -f $ac_dir/$ac_word; then
1728 if test -n "$CC"; then
1729 echo "$ac_t""$CC" 1>&6
1731 echo "$ac_t""no" 1>&6
1734 if test -z "$CC"; then
1735 # Extract the first word of "cc", so it can be a program name with args.
1736 set dummy cc; ac_word=$2
1737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1738 echo "configure:1739: checking for $ac_word" >&5
1739 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1742 if test -n "$CC"; then
1743 ac_cv_prog_CC="$CC" # Let the user override the test.
1745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1747 for ac_dir in $PATH; do
1748 test -z "$ac_dir" && ac_dir=.
1749 if test -f $ac_dir/$ac_word; then
1750 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1751 ac_prog_rejected=yes
1759 if test $ac_prog_rejected = yes; then
1760 # We found a bogon in the path, so make sure we never use it.
1761 set dummy $ac_cv_prog_CC
1763 if test $# -gt 0; then
1764 # We chose a different compiler from the bogus one.
1765 # However, it has the same basename, so the bogon will be chosen
1766 # first if we set CC to just the basename; use the full file name.
1768 set dummy "$ac_dir/$ac_word" "$@"
1776 if test -n "$CC"; then
1777 echo "$ac_t""$CC" 1>&6
1779 echo "$ac_t""no" 1>&6
1782 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1785 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1786 echo "configure:1787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1790 ac_cpp='$CPP $CPPFLAGS'
1791 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1792 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1793 cross_compiling=$ac_cv_prog_cc_cross
1795 cat > conftest.$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1800 if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1801 ac_cv_prog_cc_works=yes
1802 # If we can't run a trivial program, we are probably using a cross compiler.
1803 if (./conftest; exit) 2>/dev/null; then
1804 ac_cv_prog_cc_cross=no
1806 ac_cv_prog_cc_cross=yes
1809 echo "configure: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1811 ac_cv_prog_cc_works=no
1815 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1816 if test $ac_cv_prog_cc_works = no; then
1817 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1819 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1820 echo "configure:1821: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1821 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1822 cross_compiling=$ac_cv_prog_cc_cross
1824 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1825 echo "configure:1826: checking whether we are using GNU C" >&5
1826 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 cat > conftest.c <<EOF
1834 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1841 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1843 if test $ac_cv_prog_gcc = yes; then
1845 ac_test_CFLAGS="${CFLAGS+set}"
1846 ac_save_CFLAGS="$CFLAGS"
1848 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1849 echo "configure:1850: checking whether ${CC-cc} accepts -g" >&5
1850 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 echo 'void f(){}' > conftest.c
1854 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1863 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1864 if test "$ac_test_CFLAGS" = set; then
1865 CFLAGS="$ac_save_CFLAGS"
1866 elif test $ac_cv_prog_cc_g = yes; then
1873 test "${CFLAGS+set}" = set || CFLAGS="-g"
1876 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1877 if test "${with_gnu_ld+set}" = set; then
1878 withval="$with_gnu_ld"
1879 test "$withval" = no || with_gnu_ld=yes
1886 if test "$ac_cv_prog_gcc" = yes; then
1887 # Check if gcc -print-prog-name=ld gives a path.
1888 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1889 echo "configure:1890: checking for ld used by GCC" >&5
1890 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1892 # Accept absolute paths.
1894 test -z "$LD" && LD="$ac_prog"
1897 # If it fails, then pretend we aren't using GCC.
1901 # If it is relative, then search for the first ld in PATH.
1905 elif test "$with_gnu_ld" = yes; then
1906 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1907 echo "configure:1908: checking for GNU ld" >&5
1909 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1910 echo "configure:1911: checking for non-GNU ld" >&5
1912 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 if test -z "$LD"; then
1916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1917 for ac_dir in $PATH; do
1918 test -z "$ac_dir" && ac_dir=.
1919 if test -f "$ac_dir/$ac_prog"; then
1920 ac_cv_path_LD="$ac_dir/$ac_prog"
1921 # Check to see if the program is GNU ld. I'd rather use --version,
1922 # but apparently some GNU ld's only accept -v.
1923 # Break only if it was the GNU/non-GNU ld that we prefer.
1924 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1925 test "$with_gnu_ld" != no && break
1927 test "$with_gnu_ld" != yes && break
1933 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1938 if test -n "$LD"; then
1939 echo "$ac_t""$LD" 1>&6
1941 echo "$ac_t""no" 1>&6
1943 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1945 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1946 echo "configure:1947: checking if the linker ($LD) is GNU ld" >&5
1947 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1951 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1952 ac_cv_prog_gnu_ld=yes
1954 ac_cv_prog_gnu_ld=no
1958 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1961 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1962 echo "configure:1963: checking for BSD-compatible nm" >&5
1963 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1968 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1972 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1973 test -z "$ac_dir" && ac_dir=.
1974 if test -f $ac_dir/nm; then
1975 # Check to see if the nm accepts a BSD-compat flag.
1976 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1977 # nm: unknown option "B" ignored
1978 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1979 ac_cv_path_NM="$ac_dir/nm -B"
1980 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1981 ac_cv_path_NM="$ac_dir/nm -p"
1983 ac_cv_path_NM="$ac_dir/nm"
1989 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1995 echo "$ac_t""$NM" 1>&6
1998 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1999 echo "configure:2000: checking whether ln -s works" >&5
2000 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2004 if ln -s X conftestdata 2>/dev/null
2007 ac_cv_prog_LN_S="ln -s"
2012 LN_S="$ac_cv_prog_LN_S"
2013 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2014 echo "$ac_t""yes" 1>&6
2016 echo "$ac_t""no" 1>&6
2019 # Always use our own libtool.
2020 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2022 # Check for any special flags to pass to ltconfig.
2024 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2025 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2026 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2027 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2028 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2030 # Some flags need to be propagated to the compiler or linker for good
2034 # Find out which ABI we are using.
2035 echo '#line 2036 "configure"' > conftest.$ac_ext
2036 if { (eval echo configure:2037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2037 case "`/usr/bin/file conftest.o`" in
2053 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2054 CFLAGS="$CFLAGS -belf"
2058 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2059 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2060 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2061 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2062 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2063 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2066 # Extract the first word of "sendmail", so it can be a program name with args.
2067 set dummy sendmail; ac_word=$2
2068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_word" >&5
2070 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2075 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2079 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
2080 test -z "$ac_dir" && ac_dir=.
2081 if test -f $ac_dir/$ac_word; then
2082 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2087 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2091 SENDMAIL="$ac_cv_path_SENDMAIL"
2092 if test -n "$SENDMAIL"; then
2093 echo "$ac_t""$SENDMAIL" 1>&6
2095 echo "$ac_t""no" 1>&6
2098 # Extract the first word of "vi", so it can be a program name with args.
2099 set dummy vi; ac_word=$2
2100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2101 echo "configure:2102: checking for $ac_word" >&5
2102 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2107 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2111 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2112 test -z "$ac_dir" && ac_dir=.
2113 if test -f $ac_dir/$ac_word; then
2114 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2119 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2123 EDITOR="$ac_cv_path_EDITOR"
2124 if test -n "$EDITOR"; then
2125 echo "$ac_t""$EDITOR" 1>&6
2127 echo "$ac_t""no" 1>&6
2130 # Extract the first word of "finger", so it can be a program name with args.
2131 set dummy finger; ac_word=$2
2132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2133 echo "configure:2134: checking for $ac_word" >&5
2134 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2139 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2143 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2144 test -z "$ac_dir" && ac_dir=.
2145 if test -f $ac_dir/$ac_word; then
2146 ac_cv_path_FINGER="$ac_dir/$ac_word"
2151 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2155 FINGER="$ac_cv_path_FINGER"
2156 if test -n "$FINGER"; then
2157 echo "$ac_t""$FINGER" 1>&6
2159 echo "$ac_t""no" 1>&6
2164 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2165 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2167 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2168 echo "configure: warning: programs compiled here do run here..." 1>&2
2169 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2171 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2172 echo "configure: warning: programs compiled here do not run here..." 1>&2
2173 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2176 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2177 echo "configure:2178: checking how to run the C preprocessor" >&5
2178 # On Suns, sometimes $CPP names a directory.
2179 if test -n "$CPP" && test -d "$CPP"; then
2182 if test -z "$CPP"; then
2183 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 # This must be in double quotes, not single quotes, because CPP may get
2187 # substituted into the Makefile and "${CC-cc}" will confuse make.
2189 # On the NeXT, cc -E runs the code through the compiler's parser,
2190 # not just through cpp.
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2198 { (eval echo configure:2199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2199 ac_err=`grep -v '^ *+' conftest.out`
2200 if test -z "$ac_err"; then
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2207 CPP="${CC-cc} -E -traditional-cpp"
2208 cat > conftest.$ac_ext <<EOF
2209 #line 2210 "configure"
2210 #include "confdefs.h"
2214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2215 { (eval echo configure:2216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2216 ac_err=`grep -v '^ *+' conftest.out`
2217 if test -z "$ac_err"; then
2221 echo "configure: failed program was:" >&5
2222 cat conftest.$ac_ext >&5
2229 ac_cv_prog_CPP="$CPP"
2231 CPP="$ac_cv_prog_CPP"
2233 ac_cv_prog_CPP="$CPP"
2235 echo "$ac_t""$CPP" 1>&6
2238 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2239 echo "configure:2240: checking for AIX" >&5
2240 cat > conftest.$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2249 egrep "yes" >/dev/null 2>&1; then
2251 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2252 #define _ALL_SOURCE 1
2257 echo "$ac_t""no" 1>&6
2262 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2263 echo "configure:2264: checking for POSIXized ISC" >&5
2264 if test -d /etc/conf/kconfig.d &&
2265 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2267 echo "$ac_t""yes" 1>&6
2268 ISC=yes # If later tests want to check for ISC.
2269 cat >> confdefs.h <<\EOF
2270 #define _POSIX_SOURCE 1
2273 if test "$GCC" = yes; then
2279 echo "$ac_t""no" 1>&6
2283 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2284 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2285 echo "configure:2286: checking for minix/config.h" >&5
2286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2292 #include <minix/config.h>
2294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2295 { (eval echo configure:2296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2296 ac_err=`grep -v '^ *+' conftest.out`
2297 if test -z "$ac_err"; then
2299 eval "ac_cv_header_$ac_safe=yes"
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2305 eval "ac_cv_header_$ac_safe=no"
2309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2310 echo "$ac_t""yes" 1>&6
2313 echo "$ac_t""no" 1>&6
2317 if test "$MINIX" = yes; then
2318 cat >> confdefs.h <<\EOF
2319 #define _POSIX_SOURCE 1
2322 cat >> confdefs.h <<\EOF
2323 #define _POSIX_1_SOURCE 2
2326 cat >> confdefs.h <<\EOF
2336 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2337 echo "configure:2338: checking for ${CC-cc} option to accept ANSI C" >&5
2338 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 am_cv_prog_cc_stdc=no
2343 # Don't try gcc -ansi; that turns off useful extensions and
2344 # breaks some systems' header files.
2345 # AIX -qlanglvl=ansi
2346 # Ultrix and OSF/1 -std1
2347 # HP-UX -Aa -D_HPUX_SOURCE
2348 # SVR4 -Xc -D__EXTENSIONS__
2349 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2351 CC="$ac_save_CC $ac_arg"
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2357 #include <sys/types.h>
2358 #include <sys/stat.h>
2359 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2360 struct buf { int x; };
2361 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2362 static char *e (p, i)
2368 static char *f (char * (*g) (char **, int), char **p, ...)
2373 s = g (p, va_arg (v,int));
2377 int test (int i, double x);
2378 struct s1 {int (*f) (int a);};
2379 struct s2 {int (*f) (double a);};
2380 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2386 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2390 if { (eval echo configure:2391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2392 am_cv_prog_cc_stdc="$ac_arg"; break
2394 echo "configure: failed program was:" >&5
2395 cat conftest.$ac_ext >&5
2403 if test -z "$am_cv_prog_cc_stdc"; then
2404 echo "$ac_t""none needed" 1>&6
2406 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2408 case "x$am_cv_prog_cc_stdc" in
2410 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2413 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2414 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2420 echo $ac_n "checking for socket""... $ac_c" 1>&6
2421 echo "configure:2422: checking for socket" >&5
2422 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2425 cat > conftest.$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2428 /* System header to define __stub macros and hopefully few prototypes,
2429 which can conflict with char socket(); below. */
2431 /* Override any gcc2 internal prototype to avoid an error. */
2432 /* We use char because int might match the return type of a gcc2
2433 builtin and then its argument prototype would still apply. */
2438 /* The GNU C library defines this for functions which it implements
2439 to always fail with ENOSYS. Some functions are actually named
2440 something starting with __ and the normal name is an alias. */
2441 #if defined (__stub_socket) || defined (__stub___socket)
2449 if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2451 eval "ac_cv_func_socket=yes"
2453 echo "configure: failed program was:" >&5
2454 cat conftest.$ac_ext >&5
2456 eval "ac_cv_func_socket=no"
2461 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2462 echo "$ac_t""yes" 1>&6
2465 echo "$ac_t""no" 1>&6
2467 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2468 echo "configure:2469: checking for main in -lsocket" >&5
2469 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 ac_save_LIBS="$LIBS"
2474 LIBS="-lsocket $LIBS"
2475 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2483 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2485 eval "ac_cv_lib_$ac_lib_var=yes"
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2490 eval "ac_cv_lib_$ac_lib_var=no"
2493 LIBS="$ac_save_LIBS"
2496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2497 echo "$ac_t""yes" 1>&6
2498 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2499 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2500 cat >> confdefs.h <<EOF
2501 #define $ac_tr_lib 1
2504 LIBS="-lsocket $LIBS"
2507 echo "$ac_t""no" 1>&6
2510 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2511 echo "configure:2512: checking for main in -lnet" >&5
2512 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 ac_save_LIBS="$LIBS"
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2526 if { (eval echo configure:2527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2528 eval "ac_cv_lib_$ac_lib_var=yes"
2530 echo "configure: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2533 eval "ac_cv_lib_$ac_lib_var=no"
2536 LIBS="$ac_save_LIBS"
2539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2540 echo "$ac_t""yes" 1>&6
2541 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2542 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2543 cat >> confdefs.h <<EOF
2544 #define $ac_tr_lib 1
2550 echo "$ac_t""no" 1>&6
2553 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2554 echo "configure:2555: checking for main in -lnsl_s" >&5
2555 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2557 echo $ac_n "(cached) $ac_c" 1>&6
2559 ac_save_LIBS="$LIBS"
2560 LIBS="-lnsl_s $LIBS"
2561 cat > conftest.$ac_ext <<EOF
2562 #line 2563 "configure"
2563 #include "confdefs.h"
2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2571 eval "ac_cv_lib_$ac_lib_var=yes"
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2576 eval "ac_cv_lib_$ac_lib_var=no"
2579 LIBS="$ac_save_LIBS"
2582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2583 echo "$ac_t""yes" 1>&6
2584 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2585 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2586 cat >> confdefs.h <<EOF
2587 #define $ac_tr_lib 1
2590 LIBS="-lnsl_s $LIBS"
2593 echo "$ac_t""no" 1>&6
2596 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2597 echo "configure:2598: checking for main in -lnsl" >&5
2598 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 ac_save_LIBS="$LIBS"
2604 cat > conftest.$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2612 if { (eval echo configure:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2614 eval "ac_cv_lib_$ac_lib_var=yes"
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2619 eval "ac_cv_lib_$ac_lib_var=no"
2622 LIBS="$ac_save_LIBS"
2625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2626 echo "$ac_t""yes" 1>&6
2627 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2629 cat >> confdefs.h <<EOF
2630 #define $ac_tr_lib 1
2636 echo "$ac_t""no" 1>&6
2639 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2640 echo "configure:2641: checking for socket in -linet" >&5
2641 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 ac_save_LIBS="$LIBS"
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 /* Override any gcc2 internal prototype to avoid an error. */
2651 /* We use char because int might match the return type of a gcc2
2652 builtin and then its argument prototype would still apply. */
2659 if { (eval echo configure:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2661 eval "ac_cv_lib_$ac_lib_var=yes"
2663 echo "configure: failed program was:" >&5
2664 cat conftest.$ac_ext >&5
2666 eval "ac_cv_lib_$ac_lib_var=no"
2669 LIBS="$ac_save_LIBS"
2672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2673 echo "$ac_t""yes" 1>&6
2674 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2675 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2676 cat >> confdefs.h <<EOF
2677 #define $ac_tr_lib 1
2683 echo "$ac_t""no" 1>&6
2686 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2687 echo "configure:2688: checking for main in -lgen" >&5
2688 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2690 echo $ac_n "(cached) $ac_c" 1>&6
2692 ac_save_LIBS="$LIBS"
2694 cat > conftest.$ac_ext <<EOF
2695 #line 2696 "configure"
2696 #include "confdefs.h"
2702 if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2704 eval "ac_cv_lib_$ac_lib_var=yes"
2706 echo "configure: failed program was:" >&5
2707 cat conftest.$ac_ext >&5
2709 eval "ac_cv_lib_$ac_lib_var=no"
2712 LIBS="$ac_save_LIBS"
2715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2716 echo "$ac_t""yes" 1>&6
2717 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2718 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2719 cat >> confdefs.h <<EOF
2720 #define $ac_tr_lib 1
2726 echo "$ac_t""no" 1>&6
2733 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
2734 echo "configure:2735: checking for res_search in -lresolv" >&5
2735 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
2736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 ac_save_LIBS="$LIBS"
2740 LIBS="-lresolv $LIBS"
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2744 /* Override any gcc2 internal prototype to avoid an error. */
2745 /* We use char because int might match the return type of a gcc2
2746 builtin and then its argument prototype would still apply. */
2753 if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2755 eval "ac_cv_lib_$ac_lib_var=yes"
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2760 eval "ac_cv_lib_$ac_lib_var=no"
2763 LIBS="$ac_save_LIBS"
2766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2767 echo "$ac_t""yes" 1>&6
2768 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2769 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2770 cat >> confdefs.h <<EOF
2771 #define $ac_tr_lib 1
2774 LIBS="-lresolv $LIBS"
2777 echo "$ac_t""no" 1>&6
2781 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2782 echo "configure:2783: checking for sigset in -lV3" >&5
2783 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2787 ac_save_LIBS="$LIBS"
2789 cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2792 /* Override any gcc2 internal prototype to avoid an error. */
2793 /* We use char because int might match the return type of a gcc2
2794 builtin and then its argument prototype would still apply. */
2801 if { (eval echo configure:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2803 eval "ac_cv_lib_$ac_lib_var=yes"
2805 echo "configure: failed program was:" >&5
2806 cat conftest.$ac_ext >&5
2808 eval "ac_cv_lib_$ac_lib_var=no"
2811 LIBS="$ac_save_LIBS"
2814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2815 echo "$ac_t""yes" 1>&6
2816 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2817 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2818 cat >> confdefs.h <<EOF
2819 #define $ac_tr_lib 1
2825 echo "$ac_t""no" 1>&6
2831 if test $ol_enable_ldapd != no ; then
2832 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
2833 echo "configure:2834: checking for main in -lxtpp" >&5
2834 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
2835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 ac_save_LIBS="$LIBS"
2839 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
2840 cat > conftest.$ac_ext <<EOF
2841 #line 2842 "configure"
2842 #include "confdefs.h"
2848 if { (eval echo configure:2849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2850 eval "ac_cv_lib_$ac_lib_var=yes"
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2855 eval "ac_cv_lib_$ac_lib_var=no"
2858 LIBS="$ac_save_LIBS"
2861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2862 echo "$ac_t""yes" 1>&6
2865 cat >> confdefs.h <<\EOF
2869 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
2872 echo "$ac_t""no" 1>&6
2876 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
2877 echo "configure:2878: checking for main in -ldsap" >&5
2878 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
2879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 ac_save_LIBS="$LIBS"
2883 LIBS="-ldsap -lisode $LIBS"
2884 cat > conftest.$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2892 if { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2894 eval "ac_cv_lib_$ac_lib_var=yes"
2896 echo "configure: failed program was:" >&5
2897 cat conftest.$ac_ext >&5
2899 eval "ac_cv_lib_$ac_lib_var=no"
2902 LIBS="$ac_save_LIBS"
2905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2906 echo "$ac_t""yes" 1>&6
2909 cat >> confdefs.h <<\EOF
2913 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
2916 echo "$ac_t""no" 1>&6
2920 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
2921 echo "configure:2922: checking for main in -lisode" >&5
2922 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
2923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 ac_save_LIBS="$LIBS"
2927 LIBS="-lisode $LIBS"
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2936 if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2938 eval "ac_cv_lib_$ac_lib_var=yes"
2940 echo "configure: failed program was:" >&5
2941 cat conftest.$ac_ext >&5
2943 eval "ac_cv_lib_$ac_lib_var=no"
2946 LIBS="$ac_save_LIBS"
2949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2950 echo "$ac_t""yes" 1>&6
2953 cat >> confdefs.h <<\EOF
2954 #define HAVE_ISODE 1
2957 LDAPD_LIBS="$LDAPD_LIBS -lisode"
2960 echo "$ac_t""no" 1>&6
2966 if test $ol_link_isode != no; then
2967 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
2968 echo "configure:2969: checking for main in -lpp" >&5
2969 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
2970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 ac_save_LIBS="$LIBS"
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2983 if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2985 eval "ac_cv_lib_$ac_lib_var=yes"
2987 echo "configure: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2990 eval "ac_cv_lib_$ac_lib_var=no"
2993 LIBS="$ac_save_LIBS"
2996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2997 echo "$ac_t""yes" 1>&6
2999 cat >> confdefs.h <<\EOF
3003 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3006 echo "$ac_t""no" 1>&6
3011 # Extract the first word of "pepsy", so it can be a program name with args.
3012 set dummy pepsy; ac_word=$2
3013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3014 echo "configure:3015: checking for $ac_word" >&5
3015 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3020 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3024 for ac_dir in $PATH; do
3025 test -z "$ac_dir" && ac_dir=.
3026 if test -f $ac_dir/$ac_word; then
3027 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3035 PEPSY="$ac_cv_path_PEPSY"
3036 if test -n "$PEPSY"; then
3037 echo "$ac_t""$PEPSY" 1>&6
3039 echo "$ac_t""no" 1>&6
3044 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3045 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3049 echo "configure:3050: checking for $ac_hdr" >&5
3050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3053 cat > conftest.$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3059 { (eval echo configure:3060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3060 ac_err=`grep -v '^ *+' conftest.out`
3061 if test -z "$ac_err"; then
3063 eval "ac_cv_header_$ac_safe=yes"
3066 echo "configure: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3069 eval "ac_cv_header_$ac_safe=no"
3073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3074 echo "$ac_t""yes" 1>&6
3075 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3076 cat >> confdefs.h <<EOF
3077 #define $ac_tr_hdr 1
3081 echo "$ac_t""no" 1>&6
3086 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3087 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3088 echo "configure:3089: checking for main in -lkrb4" >&5
3089 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3090 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 ac_save_LIBS="$LIBS"
3094 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3095 cat > conftest.$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3103 if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3105 eval "ac_cv_lib_$ac_lib_var=yes"
3107 echo "configure: failed program was:" >&5
3108 cat conftest.$ac_ext >&5
3110 eval "ac_cv_lib_$ac_lib_var=no"
3113 LIBS="$ac_save_LIBS"
3116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3117 echo "$ac_t""yes" 1>&6
3120 echo "$ac_t""no" 1>&6
3125 if test $have_k5 = yes ; then
3126 ol_with_kerberos=found
3127 ol_link_kerberos=yes
3129 cat >> confdefs.h <<\EOF
3130 #define HAVE_KERBEROS 1
3134 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3138 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3139 for ac_hdr in krb.h des.h
3141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3143 echo "configure:3144: checking for $ac_hdr" >&5
3144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3147 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3153 { (eval echo configure:3154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3154 ac_err=`grep -v '^ *+' conftest.out`
3155 if test -z "$ac_err"; then
3157 eval "ac_cv_header_$ac_safe=yes"
3160 echo "configure: failed program was:" >&5
3161 cat conftest.$ac_ext >&5
3163 eval "ac_cv_header_$ac_safe=no"
3167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3168 echo "$ac_t""yes" 1>&6
3169 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3170 cat >> confdefs.h <<EOF
3171 #define $ac_tr_hdr 1
3175 echo "$ac_t""no" 1>&6
3180 if test $ac_cv_header_krb_h = yes ; then
3181 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3182 echo "configure:3183: checking for main in -lkrb" >&5
3183 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 ac_save_LIBS="$LIBS"
3188 LIBS="-lkrb -ldes $LIBS"
3189 cat > conftest.$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3197 if { (eval echo configure:3198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3199 eval "ac_cv_lib_$ac_lib_var=yes"
3201 echo "configure: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3204 eval "ac_cv_lib_$ac_lib_var=no"
3207 LIBS="$ac_save_LIBS"
3210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3211 echo "$ac_t""yes" 1>&6
3214 echo "$ac_t""no" 1>&6
3219 if test $have_k4 = yes ; then
3220 ol_with_kerberos=found
3221 ol_link_kerberos=yes
3223 cat >> confdefs.h <<\EOF
3224 #define HAVE_KERBEROS 1
3228 KRB_LIBS="-lkrb -ldes"
3234 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
3235 for ac_hdr in pthread.h sched.h
3237 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3238 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3239 echo "configure:3240: checking for $ac_hdr" >&5
3240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3249 { (eval echo configure:3250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3250 ac_err=`grep -v '^ *+' conftest.out`
3251 if test -z "$ac_err"; then
3253 eval "ac_cv_header_$ac_safe=yes"
3256 echo "configure: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3259 eval "ac_cv_header_$ac_safe=no"
3263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3264 echo "$ac_t""yes" 1>&6
3265 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3266 cat >> confdefs.h <<EOF
3267 #define $ac_tr_hdr 1
3271 echo "$ac_t""no" 1>&6
3276 if test $ac_cv_header_pthread_h = yes ; then
3277 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3278 echo "configure:3279: checking POSIX thread version" >&5
3279 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3287 # include <pthread.h>
3288 /* this check could be improved */
3289 # ifdef PTHREAD_ONCE_INIT
3294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295 egrep "final" >/dev/null 2>&1; then
3297 ol_pthread_final=yes
3305 cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3309 # include <pthread.h>
3310 /* this check could be improved */
3311 # ifdef pthread_once_init
3316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3317 egrep "draft4" >/dev/null 2>&1; then
3319 ol_pthread_draft4=yes
3322 ol_pthread_draft4=no
3327 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3328 ol_cv_pthread_version=final
3329 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3330 ol_cv_pthread_version=draft4
3332 ol_cv_pthread_version=unknown
3337 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3340 if test $ol_cv_pthread_version = final ; then
3341 cat >> confdefs.h <<\EOF
3342 #define HAVE_PTHREADS_FINAL 1
3345 elif test $ol_cv_pthread_version = draft4 ; then
3346 cat >> confdefs.h <<\EOF
3347 #define HAVE_PTHREADS_D4 1
3351 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3354 # consider threads found
3355 ol_with_threads=found
3358 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3359 echo "configure:3360: checking for LinuxThreads" >&5
3360 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3364 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3365 if test "$res" -gt 0 ; then
3366 ol_cv_linux_threads=yes
3368 ol_cv_linux_threads=no
3373 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3376 if test $ol_cv_linux_threads = yes ; then
3377 cat >> confdefs.h <<\EOF
3378 #define HAVE_LINUX_THREADS 1
3384 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3385 echo "configure:3386: checking for pthread_create" >&5
3386 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3387 echo $ac_n "(cached) $ac_c" 1>&6
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 /* System header to define __stub macros and hopefully few prototypes,
3393 which can conflict with char pthread_create(); below. */
3395 /* Override any gcc2 internal prototype to avoid an error. */
3396 /* We use char because int might match the return type of a gcc2
3397 builtin and then its argument prototype would still apply. */
3398 char pthread_create();
3402 /* The GNU C library defines this for functions which it implements
3403 to always fail with ENOSYS. Some functions are actually named
3404 something starting with __ and the normal name is an alias. */
3405 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3413 if { (eval echo configure:3414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3415 eval "ac_cv_func_pthread_create=yes"
3417 echo "configure: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3420 eval "ac_cv_func_pthread_create=no"
3425 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3429 echo "$ac_t""no" 1>&6
3433 if test $ol_link_threads = no ; then
3434 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
3435 echo "configure:3436: checking for pthread_create with -pthread" >&5
3436 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3441 LIBS="-pthread $LIBS"
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3452 if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3454 ol_cv_pthread_flag=yes
3456 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3459 ol_cv_pthread_flag=no
3466 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
3468 if test $ol_cv_pthread_flag = yes ; then
3469 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
3470 ol_link_threads=posix
3474 if test $ol_link_threads = no ; then
3475 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
3476 echo "configure:3477: checking for pthread_create with -thread" >&5
3477 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3482 LIBS="-thread $LIBS"
3483 cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3493 if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3495 ol_cv_thread_flag=yes
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3500 ol_cv_thread_flag=no
3507 echo "$ac_t""$ol_cv_thread_flag" 1>&6
3509 if test $ol_cv_thread_flag = yes ; then
3510 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
3511 ol_link_threads=posix
3515 if test $ol_link_threads = no ; then
3517 echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
3518 echo "configure:3519: checking for pthread_join in -lpthread" >&5
3519 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
3520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 ac_save_LIBS="$LIBS"
3524 LIBS="-lpthread -lexc $LIBS"
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 /* Override any gcc2 internal prototype to avoid an error. */
3529 /* We use char because int might match the return type of a gcc2
3530 builtin and then its argument prototype would still apply. */
3531 char pthread_join();
3537 if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3539 eval "ac_cv_lib_$ac_lib_var=yes"
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3544 eval "ac_cv_lib_$ac_lib_var=no"
3547 LIBS="$ac_save_LIBS"
3550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3551 echo "$ac_t""yes" 1>&6
3553 ol_link_threads=posix
3554 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
3555 if test $ol_with_yielding_select = auto ; then
3556 ol_with_yielding_select=yes
3560 echo "$ac_t""no" 1>&6
3566 if test $ol_link_threads = no ; then
3568 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
3569 echo "configure:3570: checking for pthread_join in -lpthreads" >&5
3570 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
3571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3574 ac_save_LIBS="$LIBS"
3575 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 /* Override any gcc2 internal prototype to avoid an error. */
3580 /* We use char because int might match the return type of a gcc2
3581 builtin and then its argument prototype would still apply. */
3582 char pthread_join();
3588 if { (eval echo configure:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3590 eval "ac_cv_lib_$ac_lib_var=yes"
3592 echo "configure: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3595 eval "ac_cv_lib_$ac_lib_var=no"
3598 LIBS="$ac_save_LIBS"
3601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3602 echo "$ac_t""yes" 1>&6
3604 ol_link_threads=posix
3605 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
3606 if test $ol_with_yielding_select = auto ; then
3607 ol_with_yielding_select=yes
3611 echo "$ac_t""no" 1>&6
3617 if test $ol_link_threads = no ; then
3619 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3620 echo "configure:3621: checking for pthread_create in -lpthread" >&5
3621 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3625 ac_save_LIBS="$LIBS"
3626 LIBS="-lpthread $LIBS"
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 /* Override any gcc2 internal prototype to avoid an error. */
3631 /* We use char because int might match the return type of a gcc2
3632 builtin and then its argument prototype would still apply. */
3633 char pthread_create();
3639 if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3641 eval "ac_cv_lib_$ac_lib_var=yes"
3643 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3646 eval "ac_cv_lib_$ac_lib_var=no"
3649 LIBS="$ac_save_LIBS"
3652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3653 echo "$ac_t""yes" 1>&6
3655 ol_link_threads=posix
3656 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
3658 echo "$ac_t""no" 1>&6
3664 if test $ol_link_threads = no ; then
3666 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3667 echo "configure:3668: checking for pthread_create in -lc_r" >&5
3668 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3672 ac_save_LIBS="$LIBS"
3674 cat > conftest.$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3677 /* Override any gcc2 internal prototype to avoid an error. */
3678 /* We use char because int might match the return type of a gcc2
3679 builtin and then its argument prototype would still apply. */
3680 char pthread_create();
3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3688 eval "ac_cv_lib_$ac_lib_var=yes"
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3693 eval "ac_cv_lib_$ac_lib_var=no"
3696 LIBS="$ac_save_LIBS"
3699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3700 echo "$ac_t""yes" 1>&6
3702 ol_link_threads=posix
3703 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
3705 echo "$ac_t""no" 1>&6
3711 if test $ol_link_threads != no ; then
3712 cat >> confdefs.h <<\EOF
3713 #define HAVE_PTHREADS 1
3717 save_CPPFLAGS="$CPPFLAGS"
3719 LIBS="$LTHREAD_LIBS $LIBS"
3721 for ac_func in sched_yield pthread_yield
3723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3724 echo "configure:3725: checking for $ac_func" >&5
3725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3731 /* System header to define __stub macros and hopefully few prototypes,
3732 which can conflict with char $ac_func(); below. */
3734 /* Override any gcc2 internal prototype to avoid an error. */
3735 /* We use char because int might match the return type of a gcc2
3736 builtin and then its argument prototype would still apply. */
3741 /* The GNU C library defines this for functions which it implements
3742 to always fail with ENOSYS. Some functions are actually named
3743 something starting with __ and the normal name is an alias. */
3744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3752 if { (eval echo configure:3753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3754 eval "ac_cv_func_$ac_func=yes"
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3759 eval "ac_cv_func_$ac_func=no"
3764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3765 echo "$ac_t""yes" 1>&6
3766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3767 cat >> confdefs.h <<EOF
3768 #define $ac_tr_func 1
3772 echo "$ac_t""no" 1>&6
3777 if test $ac_cv_func_sched_yield = no -a \
3778 $ac_cv_func_pthread_yield = no ; then
3779 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3780 echo "configure:3781: checking for sched_yield in -lrt" >&5
3781 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 ac_save_LIBS="$LIBS"
3787 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3790 /* Override any gcc2 internal prototype to avoid an error. */
3791 /* We use char because int might match the return type of a gcc2
3792 builtin and then its argument prototype would still apply. */
3799 if { (eval echo configure:3800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3801 eval "ac_cv_lib_$ac_lib_var=yes"
3803 echo "configure: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3806 eval "ac_cv_lib_$ac_lib_var=no"
3809 LIBS="$ac_save_LIBS"
3812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3813 echo "$ac_t""yes" 1>&6
3814 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
3815 cat >> confdefs.h <<\EOF
3816 #define HAVE_SCHED_YIELD 1
3819 ac_cv_func_sched_yield=yes
3821 echo "$ac_t""no" 1>&6
3822 ac_cv_func_sched_yield=no
3826 if test $ac_cv_func_sched_yield = no -a \
3827 $ac_cv_func_pthread_yield = no ; then
3828 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3829 echo "configure:3830: checking for sched_yield in -lposix4" >&5
3830 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3834 ac_save_LIBS="$LIBS"
3835 LIBS="-lposix4 $LIBS"
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3848 if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3850 eval "ac_cv_lib_$ac_lib_var=yes"
3852 echo "configure: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3855 eval "ac_cv_lib_$ac_lib_var=no"
3858 LIBS="$ac_save_LIBS"
3861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3862 echo "$ac_t""yes" 1>&6
3863 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
3864 cat >> confdefs.h <<\EOF
3865 #define HAVE_SCHED_YIELD 1
3868 ac_cv_func_sched_yield=yes
3870 echo "$ac_t""no" 1>&6
3871 ac_cv_func_sched_yield=no
3875 if test $ac_cv_func_sched_yield = no -a \
3876 $ac_cv_func_pthread_yield = no ; then
3877 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
3878 { echo "configure: error: POSIX Threads are not usable" 1>&2; exit 1; }
3881 for ac_func in pthread_kill
3883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3884 echo "configure:3885: checking for $ac_func" >&5
3885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3888 cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3891 /* System header to define __stub macros and hopefully few prototypes,
3892 which can conflict with char $ac_func(); below. */
3894 /* Override any gcc2 internal prototype to avoid an error. */
3895 /* We use char because int might match the return type of a gcc2
3896 builtin and then its argument prototype would still apply. */
3901 /* The GNU C library defines this for functions which it implements
3902 to always fail with ENOSYS. Some functions are actually named
3903 something starting with __ and the normal name is an alias. */
3904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3912 if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3914 eval "ac_cv_func_$ac_func=yes"
3916 echo "configure: failed program was:" >&5
3917 cat conftest.$ac_ext >&5
3919 eval "ac_cv_func_$ac_func=no"
3924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3925 echo "$ac_t""yes" 1>&6
3926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3927 cat >> confdefs.h <<EOF
3928 #define $ac_tr_func 1
3932 echo "$ac_t""no" 1>&6
3937 pthread_attr_create pthread_attr_init \
3938 pthread_attr_destroy pthread_attr_delete \
3939 pthread_attr_setdetachstate pthread_attr_setdetach_np \
3942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3943 echo "configure:3944: checking for $ac_func" >&5
3944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3950 /* System header to define __stub macros and hopefully few prototypes,
3951 which can conflict with char $ac_func(); below. */
3953 /* Override any gcc2 internal prototype to avoid an error. */
3954 /* We use char because int might match the return type of a gcc2
3955 builtin and then its argument prototype would still apply. */
3960 /* The GNU C library defines this for functions which it implements
3961 to always fail with ENOSYS. Some functions are actually named
3962 something starting with __ and the normal name is an alias. */
3963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3973 eval "ac_cv_func_$ac_func=yes"
3975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3978 eval "ac_cv_func_$ac_func=no"
3983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3984 echo "$ac_t""yes" 1>&6
3985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3986 cat >> confdefs.h <<EOF
3987 #define $ac_tr_func 1
3991 echo "$ac_t""no" 1>&6
3997 pthread_setconcurrency \
3998 thr_setconcurrency \
4001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4002 echo "configure:4003: checking for $ac_func" >&5
4003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4004 echo $ac_n "(cached) $ac_c" 1>&6
4006 cat > conftest.$ac_ext <<EOF
4007 #line 4008 "configure"
4008 #include "confdefs.h"
4009 /* System header to define __stub macros and hopefully few prototypes,
4010 which can conflict with char $ac_func(); below. */
4012 /* Override any gcc2 internal prototype to avoid an error. */
4013 /* We use char because int might match the return type of a gcc2
4014 builtin and then its argument prototype would still apply. */
4019 /* The GNU C library defines this for functions which it implements
4020 to always fail with ENOSYS. Some functions are actually named
4021 something starting with __ and the normal name is an alias. */
4022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4030 if { (eval echo configure:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4032 eval "ac_cv_func_$ac_func=yes"
4034 echo "configure: failed program was:" >&5
4035 cat conftest.$ac_ext >&5
4037 eval "ac_cv_func_$ac_func=no"
4042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4043 echo "$ac_t""yes" 1>&6
4044 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4045 cat >> confdefs.h <<EOF
4046 #define $ac_tr_func 1
4050 echo "$ac_t""no" 1>&6
4055 if test $ol_with_yielding_select = auto ; then
4056 echo $ac_n "checking if select yields""... $ac_c" 1>&6
4057 echo "configure:4058: checking if select yields" >&5
4058 if test "$cross_compiling" = yes; then
4060 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4066 #include <sys/types.h>
4067 #include <sys/time.h>
4069 #include <pthread.h>
4088 FD_SET(fildes[0], &rfds);
4090 /* we're not interested in any fds */
4091 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
4098 exit(1); /* if we exit here, the select blocked the whole process */
4101 int main(argc, argv)
4107 /* create a pipe to select */
4108 if(pipe(&fildes[0])) {
4113 #ifdef HAVE_PTHREAD_SETCONCURRENCY
4114 (void) pthread_setconcurrency(2);
4116 #ifdef HAVE_THR_SETCONCURRENCY
4117 /* Set Solaris LWP concurrency to 2 */
4118 thr_setconcurrency(2);
4122 pthread_create(&t, NULL, (void *) task, NULL);
4124 #if HAVE_SCHED_YIELD
4125 sched_yield(); /* make sure task runs first */
4127 #ifdef HAVE_PTHREAD_YIELD
4128 pthread_yield(); /* make sure task runs first */
4135 if { (eval echo configure:4136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4137 ol_pthread_select_yields=yes
4139 echo "configure: failed program was:" >&5
4140 cat conftest.$ac_ext >&5
4142 ol_pthread_select_yields=no
4147 echo "$ac_t""$ol_pthread_select_yields" 1>&6
4149 if test $ol_pthread_select_yields = yes ; then
4150 ol_with_yielding_select=yes
4155 CPPFLAGS="$save_CPPFLAGS"
4158 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
4162 if test $ol_with_threads = posix ; then
4163 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
4167 if test $ol_with_threads = auto -o $ol_with_threads = mach ; then
4168 for ac_hdr in mach/cthreads.h
4170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4172 echo "configure:4173: checking for $ac_hdr" >&5
4173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4174 echo $ac_n "(cached) $ac_c" 1>&6
4176 cat > conftest.$ac_ext <<EOF
4177 #line 4178 "configure"
4178 #include "confdefs.h"
4181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4182 { (eval echo configure:4183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4183 ac_err=`grep -v '^ *+' conftest.out`
4184 if test -z "$ac_err"; then
4186 eval "ac_cv_header_$ac_safe=yes"
4189 echo "configure: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4192 eval "ac_cv_header_$ac_safe=no"
4196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4197 echo "$ac_t""yes" 1>&6
4198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4199 cat >> confdefs.h <<EOF
4200 #define $ac_tr_hdr 1
4204 echo "$ac_t""no" 1>&6
4208 if test $ac_cv_header_mach_cthreads_h = yes ; then
4209 ol_with_threads=found
4211 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
4212 echo "configure:4213: checking for cthread_fork" >&5
4213 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* System header to define __stub macros and hopefully few prototypes,
4220 which can conflict with char cthread_fork(); below. */
4222 /* Override any gcc2 internal prototype to avoid an error. */
4223 /* We use char because int might match the return type of a gcc2
4224 builtin and then its argument prototype would still apply. */
4225 char cthread_fork();
4229 /* The GNU C library defines this for functions which it implements
4230 to always fail with ENOSYS. Some functions are actually named
4231 something starting with __ and the normal name is an alias. */
4232 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
4240 if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4242 eval "ac_cv_func_cthread_fork=yes"
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4247 eval "ac_cv_func_cthread_fork=no"
4252 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
4253 echo "$ac_t""yes" 1>&6
4256 echo "$ac_t""no" 1>&6
4260 if test $ol_link_threads = no ; then
4261 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
4262 echo "configure:4263: checking for cthread_fork with -all_load" >&5
4263 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4268 LIBS="-all_load $LIBS"
4269 cat > conftest.$ac_ext <<EOF
4270 #line 4271 "configure"
4271 #include "confdefs.h"
4272 #include <mach/cthreads.h>
4275 cthread_fork((void *)0, (void *)0);
4279 if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4281 ol_cv_cthread_all_load=yes
4283 echo "configure: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4286 ol_cv_cthread_all_load=no
4293 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
4295 if test $ol_cv_cthread_all_load = yes ; then
4296 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
4297 ol_link_threads=mach
4301 if test $ol_link_threads != no ; then
4302 : check for cthread specific functionality here
4303 cat >> confdefs.h <<\EOF
4304 #define HAVE_MACH_CTHREADS 1
4308 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
4312 if test $ol_with_threads = mach ; then
4313 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
4317 if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
4318 for ac_hdr in thread.h synch.h
4320 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4322 echo "configure:4323: checking for $ac_hdr" >&5
4323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4326 cat > conftest.$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4332 { (eval echo configure:4333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4333 ac_err=`grep -v '^ *+' conftest.out`
4334 if test -z "$ac_err"; then
4336 eval "ac_cv_header_$ac_safe=yes"
4339 echo "configure: failed program was:" >&5
4340 cat conftest.$ac_ext >&5
4342 eval "ac_cv_header_$ac_safe=no"
4346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4347 echo "$ac_t""yes" 1>&6
4348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4349 cat >> confdefs.h <<EOF
4350 #define $ac_tr_hdr 1
4354 echo "$ac_t""no" 1>&6
4358 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
4359 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
4360 echo "configure:4361: checking for thr_create in -lthread" >&5
4361 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
4362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4365 ac_save_LIBS="$LIBS"
4366 LIBS="-lthread $LIBS"
4367 cat > conftest.$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4370 /* Override any gcc2 internal prototype to avoid an error. */
4371 /* We use char because int might match the return type of a gcc2
4372 builtin and then its argument prototype would still apply. */
4379 if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4381 eval "ac_cv_lib_$ac_lib_var=yes"
4383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4386 eval "ac_cv_lib_$ac_lib_var=no"
4389 LIBS="$ac_save_LIBS"
4392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4393 echo "$ac_t""yes" 1>&6
4396 echo "$ac_t""no" 1>&6
4401 if test $have_thr = yes ; then
4402 cat >> confdefs.h <<\EOF
4406 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
4409 if test $ol_with_yielding_select = auto ; then
4410 ol_with_yielding_select=yes
4415 for ac_hdr in lwp/lwp.h
4417 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4419 echo "configure:4420: checking for $ac_hdr" >&5
4420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4421 echo $ac_n "(cached) $ac_c" 1>&6
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4429 { (eval echo configure:4430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4430 ac_err=`grep -v '^ *+' conftest.out`
4431 if test -z "$ac_err"; then
4433 eval "ac_cv_header_$ac_safe=yes"
4436 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4439 eval "ac_cv_header_$ac_safe=no"
4443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4444 echo "$ac_t""yes" 1>&6
4445 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4446 cat >> confdefs.h <<EOF
4447 #define $ac_tr_hdr 1
4451 echo "$ac_t""no" 1>&6
4455 if test $ac_cv_header_lwp_lwp_h = yes ; then
4456 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
4457 echo "configure:4458: checking for lwp_create in -llwp" >&5
4458 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
4459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 ac_save_LIBS="$LIBS"
4464 cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4467 /* Override any gcc2 internal prototype to avoid an error. */
4468 /* We use char because int might match the return type of a gcc2
4469 builtin and then its argument prototype would still apply. */
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4478 eval "ac_cv_lib_$ac_lib_var=yes"
4480 echo "configure: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4483 eval "ac_cv_lib_$ac_lib_var=no"
4486 LIBS="$ac_save_LIBS"
4489 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4490 echo "$ac_t""yes" 1>&6
4493 echo "$ac_t""no" 1>&6
4498 if test $have_lwp = yes ; then
4499 cat >> confdefs.h <<\EOF
4503 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
4506 if test $ol_with_yielding_select = auto ; then
4507 ol_with_yielding_select=no
4513 if test $ol_with_yielding_select = yes ; then
4514 cat >> confdefs.h <<\EOF
4515 #define HAVE_YIELDING_SELECT 1
4520 if test $ol_with_threads = manual ; then
4523 echo "configure: warning: thread defines and link options must be set manually" 1>&2
4525 for ac_hdr in pthread.h sched.h
4527 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4529 echo "configure:4530: checking for $ac_hdr" >&5
4530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4533 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure"
4535 #include "confdefs.h"
4538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4539 { (eval echo configure:4540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4540 ac_err=`grep -v '^ *+' conftest.out`
4541 if test -z "$ac_err"; then
4543 eval "ac_cv_header_$ac_safe=yes"
4546 echo "configure: failed program was:" >&5
4547 cat conftest.$ac_ext >&5
4549 eval "ac_cv_header_$ac_safe=no"
4553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4554 echo "$ac_t""yes" 1>&6
4555 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4556 cat >> confdefs.h <<EOF
4557 #define $ac_tr_hdr 1
4561 echo "$ac_t""no" 1>&6
4565 for ac_func in sched_yield pthread_yield
4567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4568 echo "configure:4569: checking for $ac_func" >&5
4569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func(); below. */
4578 /* Override any gcc2 internal prototype to avoid an error. */
4579 /* We use char because int might match the return type of a gcc2
4580 builtin and then its argument prototype would still apply. */
4585 /* The GNU C library defines this for functions which it implements
4586 to always fail with ENOSYS. Some functions are actually named
4587 something starting with __ and the normal name is an alias. */
4588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4596 if { (eval echo configure:4597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4598 eval "ac_cv_func_$ac_func=yes"
4600 echo "configure: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
4603 eval "ac_cv_func_$ac_func=no"
4608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4609 echo "$ac_t""yes" 1>&6
4610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4611 cat >> confdefs.h <<EOF
4612 #define $ac_tr_func 1
4616 echo "$ac_t""no" 1>&6
4621 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4622 echo "configure:4623: checking for LinuxThreads" >&5
4623 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4627 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4628 if test "$res" -gt 0 ; then
4629 ol_cv_linux_threads=yes
4631 ol_cv_linux_threads=no
4636 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4639 for ac_hdr in mach/cthreads.h
4641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4643 echo "configure:4644: checking for $ac_hdr" >&5
4644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 cat > conftest.$ac_ext <<EOF
4648 #line 4649 "configure"
4649 #include "confdefs.h"
4652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4653 { (eval echo configure:4654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4654 ac_err=`grep -v '^ *+' conftest.out`
4655 if test -z "$ac_err"; then
4657 eval "ac_cv_header_$ac_safe=yes"
4660 echo "configure: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
4663 eval "ac_cv_header_$ac_safe=no"
4667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4668 echo "$ac_t""yes" 1>&6
4669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4670 cat >> confdefs.h <<EOF
4671 #define $ac_tr_hdr 1
4675 echo "$ac_t""no" 1>&6
4679 for ac_hdr in lwp/lwp.h
4681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4683 echo "configure:4684: checking for $ac_hdr" >&5
4684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4687 cat > conftest.$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4693 { (eval echo configure:4694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4694 ac_err=`grep -v '^ *+' conftest.out`
4695 if test -z "$ac_err"; then
4697 eval "ac_cv_header_$ac_safe=yes"
4700 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4703 eval "ac_cv_header_$ac_safe=no"
4707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4708 echo "$ac_t""yes" 1>&6
4709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4710 cat >> confdefs.h <<EOF
4711 #define $ac_tr_hdr 1
4715 echo "$ac_t""no" 1>&6
4719 for ac_hdr in thread.h synch.h
4721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4723 echo "configure:4724: checking for $ac_hdr" >&5
4724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4733 { (eval echo configure:4734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4734 ac_err=`grep -v '^ *+' conftest.out`
4735 if test -z "$ac_err"; then
4737 eval "ac_cv_header_$ac_safe=yes"
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4743 eval "ac_cv_header_$ac_safe=no"
4747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4750 cat >> confdefs.h <<EOF
4751 #define $ac_tr_hdr 1
4755 echo "$ac_t""no" 1>&6
4761 if test $ol_with_threads != no ; then
4762 cat >> confdefs.h <<\EOF
4763 #define _REENTRANT 1
4766 cat >> confdefs.h <<\EOF
4767 #define _THREAD_SAFE 1
4770 cat >> confdefs.h <<\EOF
4771 #define _THREADSAFE 1
4775 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
4776 echo "configure:4777: checking for thread specific errno" >&5
4777 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4781 cat > conftest.$ac_ext <<EOF
4782 #line 4783 "configure"
4783 #include "confdefs.h"
4793 if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4795 ol_cv_errno_thread_specific=yes
4797 echo "configure: failed program was:" >&5
4798 cat conftest.$ac_ext >&5
4800 ol_cv_errno_thread_specific=no
4806 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
4808 if test $ol_cv_errno_thread_specific != yes ; then
4809 LIBS="$LTHREAD_LIBS $LIBS"
4815 if test $ol_link_threads = no ; then
4816 if test $ol_with_threads = yes ; then
4817 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
4820 if test $ol_with_threads = auto ; then
4821 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
4825 cat >> confdefs.h <<\EOF
4826 #define NO_THREADS 1
4833 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
4834 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
4835 echo "configure:4836: checking for DB2 library" >&5
4836 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4840 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
4841 echo "configure:4842: checking for db_open in -ldb" >&5
4842 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
4843 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4844 echo $ac_n "(cached) $ac_c" 1>&6
4846 ac_save_LIBS="$LIBS"
4848 cat > conftest.$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4851 /* Override any gcc2 internal prototype to avoid an error. */
4852 /* We use char because int might match the return type of a gcc2
4853 builtin and then its argument prototype would still apply. */
4860 if { (eval echo configure:4861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4862 eval "ac_cv_lib_$ac_lib_var=yes"
4864 echo "configure: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4867 eval "ac_cv_lib_$ac_lib_var=no"
4870 LIBS="$ac_save_LIBS"
4873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4874 echo "$ac_t""yes" 1>&6
4877 echo "$ac_t""no" 1>&6
4885 echo "$ac_t""$ol_cv_lib_db2" 1>&6
4889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4891 echo "configure:4892: checking for $ac_hdr" >&5
4892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4893 echo $ac_n "(cached) $ac_c" 1>&6
4895 cat > conftest.$ac_ext <<EOF
4896 #line 4897 "configure"
4897 #include "confdefs.h"
4900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4901 { (eval echo configure:4902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4902 ac_err=`grep -v '^ *+' conftest.out`
4903 if test -z "$ac_err"; then
4905 eval "ac_cv_header_$ac_safe=yes"
4908 echo "configure: failed program was:" >&5
4909 cat conftest.$ac_ext >&5
4911 eval "ac_cv_header_$ac_safe=no"
4915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4916 echo "$ac_t""yes" 1>&6
4917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4918 cat >> confdefs.h <<EOF
4919 #define $ac_tr_hdr 1
4923 echo "$ac_t""no" 1>&6
4927 if test $ac_cv_header_db_h = yes ; then
4928 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
4929 echo "configure:4930: checking if db.h is DB2" >&5
4930 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
4931 echo $ac_n "(cached) $ac_c" 1>&6
4934 cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4939 /* this check could be improved */
4940 # ifdef DB_VERSION_MAJOR
4941 # if DB_VERSION_MAJOR == 2
4947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4948 egrep "__db_version_2" >/dev/null 2>&1; then
4950 ol_cv_header_db2=yes
4959 echo "$ac_t""$ol_cv_header_db2" 1>&6
4966 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
4967 echo "configure:4968: checking for Berkeley DB2" >&5
4968 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6
4972 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
4973 ol_cv_berkeley_db2=no
4975 ol_cv_berkeley_db2=yes
4980 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
4981 if test $ol_cv_berkeley_db2 = yes ; then
4982 cat >> confdefs.h <<\EOF
4983 #define HAVE_BERKELEY_DB2 1
4989 if test $ol_cv_berkeley_db2 = yes ; then
4991 ol_with_ldbm_api=db2
4993 if test $ol_with_ldbm_type = hash ; then
4994 cat >> confdefs.h <<\EOF
4995 #define LDBM_USE_DBHASH 1
4999 cat >> confdefs.h <<\EOF
5000 #define LDBM_USE_DBBTREE 1
5005 if test $ol_cv_lib_db2 != yes ; then
5006 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
5011 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
5012 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
5013 echo "configure:5014: checking for Berkeley DB library" >&5
5014 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5018 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
5019 echo "configure:5020: checking for dbopen" >&5
5020 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
5021 echo $ac_n "(cached) $ac_c" 1>&6
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5026 /* System header to define __stub macros and hopefully few prototypes,
5027 which can conflict with char dbopen(); below. */
5029 /* Override any gcc2 internal prototype to avoid an error. */
5030 /* We use char because int might match the return type of a gcc2
5031 builtin and then its argument prototype would still apply. */
5036 /* The GNU C library defines this for functions which it implements
5037 to always fail with ENOSYS. Some functions are actually named
5038 something starting with __ and the normal name is an alias. */
5039 #if defined (__stub_dbopen) || defined (__stub___dbopen)
5047 if { (eval echo configure:5048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5049 eval "ac_cv_func_dbopen=yes"
5051 echo "configure: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5054 eval "ac_cv_func_dbopen=no"
5059 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
5060 echo "$ac_t""yes" 1>&6
5063 echo "$ac_t""no" 1>&6
5065 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
5066 echo "configure:5067: checking for dbopen in -ldb" >&5
5067 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
5068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5071 ac_save_LIBS="$LIBS"
5073 cat > conftest.$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5076 /* Override any gcc2 internal prototype to avoid an error. */
5077 /* We use char because int might match the return type of a gcc2
5078 builtin and then its argument prototype would still apply. */
5085 if { (eval echo configure:5086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5087 eval "ac_cv_lib_$ac_lib_var=yes"
5089 echo "configure: failed program was:" >&5
5090 cat conftest.$ac_ext >&5
5092 eval "ac_cv_lib_$ac_lib_var=no"
5095 LIBS="$ac_save_LIBS"
5098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5099 echo "$ac_t""yes" 1>&6
5102 echo "$ac_t""no" 1>&6
5113 echo "$ac_t""$ol_cv_lib_db" 1>&6
5116 for ac_hdr in db_185.h
5118 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5119 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5120 echo "configure:5121: checking for $ac_hdr" >&5
5121 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5130 { (eval echo configure:5131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5131 ac_err=`grep -v '^ *+' conftest.out`
5132 if test -z "$ac_err"; then
5134 eval "ac_cv_header_$ac_safe=yes"
5137 echo "configure: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5140 eval "ac_cv_header_$ac_safe=no"
5144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5145 echo "$ac_t""yes" 1>&6
5146 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5147 cat >> confdefs.h <<EOF
5148 #define $ac_tr_hdr 1
5152 echo "$ac_t""no" 1>&6
5156 if test $ol_cv_header_db2 = yes ; then
5158 ol_cv_header_db=$ac_cv_header_db_185_h
5160 ol_cv_header_db=$ac_cv_header_db_h
5165 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
5166 echo "configure:5167: checking for Berkeley DB" >&5
5167 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
5168 echo $ac_n "(cached) $ac_c" 1>&6
5171 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
5172 ol_cv_berkeley_db=no
5174 ol_cv_berkeley_db=yes
5179 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
5180 if test $ol_cv_berkeley_db = yes ; then
5181 cat >> confdefs.h <<\EOF
5182 #define HAVE_BERKELEY_DB 1
5188 if test $ol_cv_berkeley_db = yes ; then
5192 if test $ol_with_ldbm_type = hash ; then
5193 cat >> confdefs.h <<\EOF
5194 #define LDBM_USE_DBHASH 1
5198 cat >> confdefs.h <<\EOF
5199 #define LDBM_USE_DBBTREE 1
5204 if test $ol_cv_lib_db != yes ; then
5205 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
5210 if test $ol_with_ldbm_api = manual ; then
5213 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
5215 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
5217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5219 echo "configure:5220: checking for $ac_hdr" >&5
5220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5223 cat > conftest.$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5229 { (eval echo configure:5230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5230 ac_err=`grep -v '^ *+' conftest.out`
5231 if test -z "$ac_err"; then
5233 eval "ac_cv_header_$ac_safe=yes"
5236 echo "configure: failed program was:" >&5
5237 cat conftest.$ac_ext >&5
5239 eval "ac_cv_header_$ac_safe=no"
5243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5244 echo "$ac_t""yes" 1>&6
5245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5246 cat >> confdefs.h <<EOF
5247 #define $ac_tr_hdr 1
5251 echo "$ac_t""no" 1>&6
5257 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
5258 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
5259 ol_with_ldbm_api=none
5262 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
5263 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
5264 echo "configure:5265: checking for GDBM library" >&5
5265 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
5266 echo $ac_n "(cached) $ac_c" 1>&6
5269 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
5270 echo "configure:5271: checking for gdbm_open" >&5
5271 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
5272 echo $ac_n "(cached) $ac_c" 1>&6
5274 cat > conftest.$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5277 /* System header to define __stub macros and hopefully few prototypes,
5278 which can conflict with char gdbm_open(); below. */
5280 /* Override any gcc2 internal prototype to avoid an error. */
5281 /* We use char because int might match the return type of a gcc2
5282 builtin and then its argument prototype would still apply. */
5287 /* The GNU C library defines this for functions which it implements
5288 to always fail with ENOSYS. Some functions are actually named
5289 something starting with __ and the normal name is an alias. */
5290 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
5298 if { (eval echo configure:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5300 eval "ac_cv_func_gdbm_open=yes"
5302 echo "configure: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5305 eval "ac_cv_func_gdbm_open=no"
5310 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
5311 echo "$ac_t""yes" 1>&6
5314 echo "$ac_t""no" 1>&6
5316 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
5317 echo "configure:5318: checking for gdbm_open in -lgdbm" >&5
5318 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
5319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 ac_save_LIBS="$LIBS"
5324 cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5327 /* Override any gcc2 internal prototype to avoid an error. */
5328 /* We use char because int might match the return type of a gcc2
5329 builtin and then its argument prototype would still apply. */
5336 if { (eval echo configure:5337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5338 eval "ac_cv_lib_$ac_lib_var=yes"
5340 echo "configure: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5343 eval "ac_cv_lib_$ac_lib_var=no"
5346 LIBS="$ac_save_LIBS"
5349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5350 echo "$ac_t""yes" 1>&6
5351 ol_cv_lib_gdbm=-lgdbm
5353 echo "$ac_t""no" 1>&6
5364 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
5367 for ac_hdr in gdbm.h
5369 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5370 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5371 echo "configure:5372: checking for $ac_hdr" >&5
5372 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5373 echo $ac_n "(cached) $ac_c" 1>&6
5375 cat > conftest.$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5381 { (eval echo configure:5382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5382 ac_err=`grep -v '^ *+' conftest.out`
5383 if test -z "$ac_err"; then
5385 eval "ac_cv_header_$ac_safe=yes"
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5391 eval "ac_cv_header_$ac_safe=no"
5395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5396 echo "$ac_t""yes" 1>&6
5397 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5398 cat >> confdefs.h <<EOF
5399 #define $ac_tr_hdr 1
5403 echo "$ac_t""no" 1>&6
5407 echo $ac_n "checking for db""... $ac_c" 1>&6
5408 echo "configure:5409: checking for db" >&5
5409 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
5410 echo $ac_n "(cached) $ac_c" 1>&6
5413 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
5421 echo "$ac_t""$ol_cv_gdbm" 1>&6
5422 if test $ol_cv_gdbm = yes ; then
5423 cat >> confdefs.h <<\EOF
5430 if test $ol_cv_gdbm = yes ; then
5432 ol_with_ldbm_api=gdbm
5434 if test $ol_cv_lib_gdbm != yes ; then
5435 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
5440 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
5441 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
5442 echo "configure:5443: checking for NDBM library" >&5
5443 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
5444 echo $ac_n "(cached) $ac_c" 1>&6
5447 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
5448 echo "configure:5449: checking for dbm_open" >&5
5449 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5452 cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 /* System header to define __stub macros and hopefully few prototypes,
5456 which can conflict with char dbm_open(); below. */
5458 /* Override any gcc2 internal prototype to avoid an error. */
5459 /* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5465 /* The GNU C library defines this for functions which it implements
5466 to always fail with ENOSYS. Some functions are actually named
5467 something starting with __ and the normal name is an alias. */
5468 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
5476 if { (eval echo configure:5477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5478 eval "ac_cv_func_dbm_open=yes"
5480 echo "configure: failed program was:" >&5
5481 cat conftest.$ac_ext >&5
5483 eval "ac_cv_func_dbm_open=no"
5488 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
5489 echo "$ac_t""yes" 1>&6
5492 echo "$ac_t""no" 1>&6
5494 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
5495 echo "configure:5496: checking for dbm_open in -lndbm" >&5
5496 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
5497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5498 echo $ac_n "(cached) $ac_c" 1>&6
5500 ac_save_LIBS="$LIBS"
5502 cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 /* Override any gcc2 internal prototype to avoid an error. */
5506 /* We use char because int might match the return type of a gcc2
5507 builtin and then its argument prototype would still apply. */
5514 if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5516 eval "ac_cv_lib_$ac_lib_var=yes"
5518 echo "configure: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5521 eval "ac_cv_lib_$ac_lib_var=no"
5524 LIBS="$ac_save_LIBS"
5527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5528 echo "$ac_t""yes" 1>&6
5529 ol_cv_lib_ndbm=-lndbm
5531 echo "$ac_t""no" 1>&6
5533 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
5534 echo "configure:5535: checking for dbm_open in -ldbm" >&5
5535 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
5536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 ac_save_LIBS="$LIBS"
5541 cat > conftest.$ac_ext <<EOF
5542 #line 5543 "configure"
5543 #include "confdefs.h"
5544 /* Override any gcc2 internal prototype to avoid an error. */
5545 /* We use char because int might match the return type of a gcc2
5546 builtin and then its argument prototype would still apply. */
5553 if { (eval echo configure:5554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5555 eval "ac_cv_lib_$ac_lib_var=yes"
5557 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5560 eval "ac_cv_lib_$ac_lib_var=no"
5563 LIBS="$ac_save_LIBS"
5566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5567 echo "$ac_t""yes" 1>&6
5568 ol_cv_lib_ndbm=-ldbm
5570 echo "$ac_t""no" 1>&6
5583 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
5586 for ac_hdr in ndbm.h
5588 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5590 echo "configure:5591: checking for $ac_hdr" >&5
5591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5600 { (eval echo configure:5601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5601 ac_err=`grep -v '^ *+' conftest.out`
5602 if test -z "$ac_err"; then
5604 eval "ac_cv_header_$ac_safe=yes"
5607 echo "configure: failed program was:" >&5
5608 cat conftest.$ac_ext >&5
5610 eval "ac_cv_header_$ac_safe=no"
5614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5615 echo "$ac_t""yes" 1>&6
5616 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5617 cat >> confdefs.h <<EOF
5618 #define $ac_tr_hdr 1
5622 echo "$ac_t""no" 1>&6
5626 echo $ac_n "checking for db""... $ac_c" 1>&6
5627 echo "configure:5628: checking for db" >&5
5628 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
5629 echo $ac_n "(cached) $ac_c" 1>&6
5632 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
5640 echo "$ac_t""$ol_cv_ndbm" 1>&6
5641 if test $ol_cv_ndbm = yes ; then
5642 cat >> confdefs.h <<\EOF
5649 if test $ol_cv_ndbm = yes ; then
5650 if test $ol_with_ldbm_api = auto ; then
5651 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
5655 ol_with_ldbm_api=ndbm
5657 if test $ol_cv_lib_ndbm != yes ; then
5658 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
5663 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
5664 echo "configure: warning: could not find suitable LDBM backend" 1>&2
5665 if test $ol_enable_ldbm = yes ; then
5666 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
5669 echo "configure: warning: disabling LDBM" 1>&2
5673 if test $ol_enable_wrappers = yes ; then
5674 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
5675 echo "configure:5676: checking for hosts_access in -lwrap" >&5
5676 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
5677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5678 echo $ac_n "(cached) $ac_c" 1>&6
5680 ac_save_LIBS="$LIBS"
5682 cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5685 /* Override any gcc2 internal prototype to avoid an error. */
5686 /* We use char because int might match the return type of a gcc2
5687 builtin and then its argument prototype would still apply. */
5688 char hosts_access();
5694 if { (eval echo configure:5695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5696 eval "ac_cv_lib_$ac_lib_var=yes"
5698 echo "configure: failed program was:" >&5
5699 cat conftest.$ac_ext >&5
5701 eval "ac_cv_lib_$ac_lib_var=no"
5704 LIBS="$ac_save_LIBS"
5707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5708 echo "$ac_t""yes" 1>&6
5711 echo "$ac_t""no" 1>&6
5716 if test $have_wrappers = yes ; then
5717 cat >> confdefs.h <<\EOF
5721 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
5723 echo "configure: warning: could not find -lwrap" 1>&2
5724 if test $ol_enable_wrappers = yes ; then
5725 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
5728 echo "configure: warning: disabling wrappers support" 1>&2
5729 ol_enable_wrappers=no
5734 # ud needs termcap (should insert check here)
5736 for ac_hdr in termcap.h ncurses.h
5738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5740 echo "configure:5741: checking for $ac_hdr" >&5
5741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5742 echo $ac_n "(cached) $ac_c" 1>&6
5744 cat > conftest.$ac_ext <<EOF
5745 #line 5746 "configure"
5746 #include "confdefs.h"
5749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5750 { (eval echo configure:5751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5751 ac_err=`grep -v '^ *+' conftest.out`
5752 if test -z "$ac_err"; then
5754 eval "ac_cv_header_$ac_safe=yes"
5757 echo "configure: failed program was:" >&5
5758 cat conftest.$ac_ext >&5
5760 eval "ac_cv_header_$ac_safe=no"
5764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5765 echo "$ac_t""yes" 1>&6
5766 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5767 cat >> confdefs.h <<EOF
5768 #define $ac_tr_hdr 1
5772 echo "$ac_t""no" 1>&6
5777 if test $ol_link_termcap = no ; then
5778 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
5779 echo "configure:5780: checking for tputs in -ltermcap" >&5
5780 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
5781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5784 ac_save_LIBS="$LIBS"
5785 LIBS="-ltermcap $LIBS"
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5789 /* Override any gcc2 internal prototype to avoid an error. */
5790 /* We use char because int might match the return type of a gcc2
5791 builtin and then its argument prototype would still apply. */
5798 if { (eval echo configure:5799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5800 eval "ac_cv_lib_$ac_lib_var=yes"
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5805 eval "ac_cv_lib_$ac_lib_var=no"
5808 LIBS="$ac_save_LIBS"
5811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5812 echo "$ac_t""yes" 1>&6
5815 echo "$ac_t""no" 1>&6
5819 if test $have_termcap = yes ; then
5820 cat >> confdefs.h <<\EOF
5821 #define HAVE_TERMCAP 1
5825 TERMCAP_LIBS=-ltermcap
5829 if test $ol_link_termcap = no ; then
5830 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
5831 echo "configure:5832: checking for initscr in -lncurses" >&5
5832 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
5833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5836 ac_save_LIBS="$LIBS"
5837 LIBS="-lncurses $LIBS"
5838 cat > conftest.$ac_ext <<EOF
5839 #line 5840 "configure"
5840 #include "confdefs.h"
5841 /* Override any gcc2 internal prototype to avoid an error. */
5842 /* We use char because int might match the return type of a gcc2
5843 builtin and then its argument prototype would still apply. */
5850 if { (eval echo configure:5851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5852 eval "ac_cv_lib_$ac_lib_var=yes"
5854 echo "configure: failed program was:" >&5
5855 cat conftest.$ac_ext >&5
5857 eval "ac_cv_lib_$ac_lib_var=no"
5860 LIBS="$ac_save_LIBS"
5863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5864 echo "$ac_t""yes" 1>&6
5867 echo "$ac_t""no" 1>&6
5871 if test $have_ncurses = yes ; then
5872 cat >> confdefs.h <<\EOF
5873 #define HAVE_NCURSES 1
5877 TERMCAP_LIBS=-lncurses
5881 if test $ol_link_termcap = no ; then
5882 cat >> confdefs.h <<\EOF
5883 #define NO_TERMCAP 1
5889 # FreeBSD (and others) have crypt(3) in -lcrypt
5890 if test $ol_enable_crypt != no ; then
5891 echo $ac_n "checking for crypt""... $ac_c" 1>&6
5892 echo "configure:5893: checking for crypt" >&5
5893 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 /* System header to define __stub macros and hopefully few prototypes,
5900 which can conflict with char crypt(); below. */
5902 /* Override any gcc2 internal prototype to avoid an error. */
5903 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */
5909 /* The GNU C library defines this for functions which it implements
5910 to always fail with ENOSYS. Some functions are actually named
5911 something starting with __ and the normal name is an alias. */
5912 #if defined (__stub_crypt) || defined (__stub___crypt)
5920 if { (eval echo configure:5921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5922 eval "ac_cv_func_crypt=yes"
5924 echo "configure: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5927 eval "ac_cv_func_crypt=no"
5932 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
5933 echo "$ac_t""yes" 1>&6
5936 echo "$ac_t""no" 1>&6
5938 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
5939 echo "configure:5940: checking for crypt in -lcrypt" >&5
5940 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
5941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5942 echo $ac_n "(cached) $ac_c" 1>&6
5944 ac_save_LIBS="$LIBS"
5945 LIBS="-lcrypt $LIBS"
5946 cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5949 /* Override any gcc2 internal prototype to avoid an error. */
5950 /* We use char because int might match the return type of a gcc2
5951 builtin and then its argument prototype would still apply. */
5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5960 eval "ac_cv_lib_$ac_lib_var=yes"
5962 echo "configure: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5965 eval "ac_cv_lib_$ac_lib_var=no"
5968 LIBS="$ac_save_LIBS"
5971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5972 echo "$ac_t""yes" 1>&6
5973 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
5976 echo "$ac_t""no" 1>&6
5983 if test $have_crypt = yes ; then
5984 cat >> confdefs.h <<\EOF
5985 #define HAVE_CRYPT 1
5989 echo "configure: warning: could not find crypt" 1>&2
5990 if test $ol_enable_crypt = yes ; then
5991 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
5994 echo "configure: warning: disabling crypt support" 1>&2
5999 # FreeBSD (and others) have setproctitle(3) in -lutil
6000 if test $ol_enable_proctitle != no ; then
6001 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
6002 echo "configure:6003: checking for setproctitle" >&5
6003 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
6004 echo $ac_n "(cached) $ac_c" 1>&6
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6009 /* System header to define __stub macros and hopefully few prototypes,
6010 which can conflict with char setproctitle(); below. */
6012 /* Override any gcc2 internal prototype to avoid an error. */
6013 /* We use char because int might match the return type of a gcc2
6014 builtin and then its argument prototype would still apply. */
6015 char setproctitle();
6019 /* The GNU C library defines this for functions which it implements
6020 to always fail with ENOSYS. Some functions are actually named
6021 something starting with __ and the normal name is an alias. */
6022 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
6030 if { (eval echo configure:6031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6032 eval "ac_cv_func_setproctitle=yes"
6034 echo "configure: failed program was:" >&5
6035 cat conftest.$ac_ext >&5
6037 eval "ac_cv_func_setproctitle=no"
6042 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
6043 echo "$ac_t""yes" 1>&6
6044 have_setproctitle=yes
6046 echo "$ac_t""no" 1>&6
6048 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
6049 echo "configure:6050: checking for setproctitle in -lutil" >&5
6050 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
6051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6052 echo $ac_n "(cached) $ac_c" 1>&6
6054 ac_save_LIBS="$LIBS"
6056 cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6059 /* Override any gcc2 internal prototype to avoid an error. */
6060 /* We use char because int might match the return type of a gcc2
6061 builtin and then its argument prototype would still apply. */
6062 char setproctitle();
6068 if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6070 eval "ac_cv_lib_$ac_lib_var=yes"
6072 echo "configure: failed program was:" >&5
6073 cat conftest.$ac_ext >&5
6075 eval "ac_cv_lib_$ac_lib_var=no"
6078 LIBS="$ac_save_LIBS"
6081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6082 echo "$ac_t""yes" 1>&6
6083 have_setproctitle=yes
6084 LUTIL_LIBS="$LUTIL_LIBS -lutil"
6086 echo "$ac_t""no" 1>&6
6087 have_setproctitle=no
6088 LIBOBJS="$LIBOBJS setproctitle.o"
6094 if test $have_setproctitle = yes ; then
6095 cat >> confdefs.h <<\EOF
6096 #define HAVE_SETPROCTITLE 1
6102 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6103 echo "configure:6104: checking for ANSI C header files" >&5
6104 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6105 echo $ac_n "(cached) $ac_c" 1>&6
6107 cat > conftest.$ac_ext <<EOF
6108 #line 6109 "configure"
6109 #include "confdefs.h"
6115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6116 { (eval echo configure:6117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6117 ac_err=`grep -v '^ *+' conftest.out`
6118 if test -z "$ac_err"; then
6120 ac_cv_header_stdc=yes
6123 echo "configure: failed program was:" >&5
6124 cat conftest.$ac_ext >&5
6126 ac_cv_header_stdc=no
6130 if test $ac_cv_header_stdc = yes; then
6131 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6132 cat > conftest.$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6138 egrep "memchr" >/dev/null 2>&1; then
6142 ac_cv_header_stdc=no
6148 if test $ac_cv_header_stdc = yes; then
6149 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6150 cat > conftest.$ac_ext <<EOF
6151 #line 6152 "configure"
6152 #include "confdefs.h"
6155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6156 egrep "free" >/dev/null 2>&1; then
6160 ac_cv_header_stdc=no
6166 if test $ac_cv_header_stdc = yes; then
6167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6168 if test "$cross_compiling" = yes; then
6171 cat > conftest.$ac_ext <<EOF
6172 #line 6173 "configure"
6173 #include "confdefs.h"
6175 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6176 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6177 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6178 int main () { int i; for (i = 0; i < 256; i++)
6179 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6183 if { (eval echo configure:6184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6187 echo "configure: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6190 ac_cv_header_stdc=no
6198 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6199 if test $ac_cv_header_stdc = yes; then
6200 cat >> confdefs.h <<\EOF
6201 #define STDC_HEADERS 1
6207 if test $ac_cv_header_stdc != yes; then
6208 echo "configure: warning: could not Standard C compliant headers" 1>&2
6212 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6214 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6215 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6216 echo "configure:6217: checking for $ac_hdr that defines DIR" >&5
6217 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 #include <sys/types.h>
6229 if { (eval echo configure:6230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6231 eval "ac_cv_header_dirent_$ac_safe=yes"
6233 echo "configure: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6236 eval "ac_cv_header_dirent_$ac_safe=no"
6240 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6241 echo "$ac_t""yes" 1>&6
6242 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6243 cat >> confdefs.h <<EOF
6244 #define $ac_tr_hdr 1
6246 ac_header_dirent=$ac_hdr; break
6248 echo "$ac_t""no" 1>&6
6251 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6252 if test $ac_header_dirent = dirent.h; then
6253 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6254 echo "configure:6255: checking for opendir in -ldir" >&5
6255 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6257 echo $ac_n "(cached) $ac_c" 1>&6
6259 ac_save_LIBS="$LIBS"
6261 cat > conftest.$ac_ext <<EOF
6262 #line 6263 "configure"
6263 #include "confdefs.h"
6264 /* Override any gcc2 internal prototype to avoid an error. */
6265 /* We use char because int might match the return type of a gcc2
6266 builtin and then its argument prototype would still apply. */
6273 if { (eval echo configure:6274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6275 eval "ac_cv_lib_$ac_lib_var=yes"
6277 echo "configure: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6280 eval "ac_cv_lib_$ac_lib_var=no"
6283 LIBS="$ac_save_LIBS"
6286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6287 echo "$ac_t""yes" 1>&6
6290 echo "$ac_t""no" 1>&6
6294 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6295 echo "configure:6296: checking for opendir in -lx" >&5
6296 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6298 echo $ac_n "(cached) $ac_c" 1>&6
6300 ac_save_LIBS="$LIBS"
6302 cat > conftest.$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 /* Override any gcc2 internal prototype to avoid an error. */
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6314 if { (eval echo configure:6315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6316 eval "ac_cv_lib_$ac_lib_var=yes"
6318 echo "configure: failed program was:" >&5
6319 cat conftest.$ac_ext >&5
6321 eval "ac_cv_lib_$ac_lib_var=no"
6324 LIBS="$ac_save_LIBS"
6327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6328 echo "$ac_t""yes" 1>&6
6331 echo "$ac_t""no" 1>&6
6336 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6337 echo "configure:6338: checking for sys/wait.h that is POSIX.1 compatible" >&5
6338 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6339 echo $ac_n "(cached) $ac_c" 1>&6
6341 cat > conftest.$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6344 #include <sys/types.h>
6345 #include <sys/wait.h>
6347 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6350 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6355 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6358 if { (eval echo configure:6359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6360 ac_cv_header_sys_wait_h=yes
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6365 ac_cv_header_sys_wait_h=no
6370 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6371 if test $ac_cv_header_sys_wait_h = yes; then
6372 cat >> confdefs.h <<\EOF
6373 #define HAVE_SYS_WAIT_H 1
6378 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
6379 echo "configure:6380: checking POSIX termios" >&5
6380 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
6381 echo $ac_n "(cached) $ac_c" 1>&6
6383 cat > conftest.$ac_ext <<EOF
6384 #line 6385 "configure"
6385 #include "confdefs.h"
6386 #include <sys/types.h>
6388 #include <termios.h>
6390 /* SunOS 4.0.3 has termios.h but not the library calls. */
6394 if { (eval echo configure:6395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6396 am_cv_sys_posix_termios=yes
6398 echo "configure: failed program was:" >&5
6399 cat conftest.$ac_ext >&5
6401 am_cv_sys_posix_termios=no
6406 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
6409 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
6410 echo "configure:6411: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
6411 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
6412 echo $ac_n "(cached) $ac_c" 1>&6
6414 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
6416 gwinsz_in_termios_h=no
6417 if test $am_cv_sys_posix_termios = yes; then
6418 cat > conftest.$ac_ext <<EOF
6419 #line 6420 "configure"
6420 #include "confdefs.h"
6421 #include <sys/types.h>
6422 # include <termios.h>
6428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6429 egrep "yes" >/dev/null 2>&1; then
6431 gwinsz_in_termios_h=yes
6437 if test $gwinsz_in_termios_h = no; then
6438 cat > conftest.$ac_ext <<EOF
6439 #line 6440 "configure"
6440 #include "confdefs.h"
6441 #include <sys/types.h>
6442 # include <sys/ioctl.h>
6448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6449 egrep "yes" >/dev/null 2>&1; then
6451 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
6459 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
6460 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
6461 cat >> confdefs.h <<\EOF
6462 #define GWINSZ_IN_SYS_IOCTL 1
6467 if test $am_cv_sys_posix_termios = yes ; then
6468 cat >> confdefs.h <<\EOF
6469 #define HAVE_POSIX_TERMIOS 1
6507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6509 echo "configure:6510: checking for $ac_hdr" >&5
6510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6511 echo $ac_n "(cached) $ac_c" 1>&6
6513 cat > conftest.$ac_ext <<EOF
6514 #line 6515 "configure"
6515 #include "confdefs.h"
6518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6519 { (eval echo configure:6520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6520 ac_err=`grep -v '^ *+' conftest.out`
6521 if test -z "$ac_err"; then
6523 eval "ac_cv_header_$ac_safe=yes"
6526 echo "configure: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6529 eval "ac_cv_header_$ac_safe=no"
6533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6534 echo "$ac_t""yes" 1>&6
6535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6536 cat >> confdefs.h <<EOF
6537 #define $ac_tr_hdr 1
6541 echo "$ac_t""no" 1>&6
6546 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6547 echo "configure:6548: checking for uid_t in sys/types.h" >&5
6548 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6551 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6554 #include <sys/types.h>
6556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6557 egrep "uid_t" >/dev/null 2>&1; then
6559 ac_cv_type_uid_t=yes
6568 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6569 if test $ac_cv_type_uid_t = no; then
6570 cat >> confdefs.h <<\EOF
6574 cat >> confdefs.h <<\EOF
6580 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
6581 echo "configure:6582: checking type of array argument to getgroups" >&5
6582 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
6583 echo $ac_n "(cached) $ac_c" 1>&6
6585 if test "$cross_compiling" = yes; then
6586 ac_cv_type_getgroups=cross
6588 cat > conftest.$ac_ext <<EOF
6589 #line 6590 "configure"
6590 #include "confdefs.h"
6592 /* Thanks to Mike Rendell for this test. */
6593 #include <sys/types.h>
6596 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6601 union { gid_t gval; long lval; } val;
6604 for (i = 0; i < NGID; i++)
6605 gidset[i] = val.gval;
6606 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6608 /* Exit non-zero if getgroups seems to require an array of ints. This
6609 happens when gid_t is short but getgroups modifies an array of ints. */
6610 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6614 if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6616 ac_cv_type_getgroups=gid_t
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6621 ac_cv_type_getgroups=int
6626 if test $ac_cv_type_getgroups = cross; then
6627 cat > conftest.$ac_ext <<EOF
6628 #line 6629 "configure"
6629 #include "confdefs.h"
6632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6633 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6635 ac_cv_type_getgroups=gid_t
6638 ac_cv_type_getgroups=int
6645 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
6646 cat >> confdefs.h <<EOF
6647 #define GETGROUPS_T $ac_cv_type_getgroups
6650 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6651 echo "configure:6652: checking for mode_t" >&5
6652 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 #include <sys/types.h>
6664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6665 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6667 ac_cv_type_mode_t=yes
6670 ac_cv_type_mode_t=no
6675 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6676 if test $ac_cv_type_mode_t = no; then
6677 cat >> confdefs.h <<\EOF
6683 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6684 echo "configure:6685: checking for off_t" >&5
6685 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6686 echo $ac_n "(cached) $ac_c" 1>&6
6688 cat > conftest.$ac_ext <<EOF
6689 #line 6690 "configure"
6690 #include "confdefs.h"
6691 #include <sys/types.h>
6697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6698 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6700 ac_cv_type_off_t=yes
6708 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6709 if test $ac_cv_type_off_t = no; then
6710 cat >> confdefs.h <<\EOF
6716 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6717 echo "configure:6718: checking for pid_t" >&5
6718 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6719 echo $ac_n "(cached) $ac_c" 1>&6
6721 cat > conftest.$ac_ext <<EOF
6722 #line 6723 "configure"
6723 #include "confdefs.h"
6724 #include <sys/types.h>
6730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6731 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6733 ac_cv_type_pid_t=yes
6741 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6742 if test $ac_cv_type_pid_t = no; then
6743 cat >> confdefs.h <<\EOF
6749 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
6750 echo "configure:6751: checking for ptrdiff_t" >&5
6751 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
6752 echo $ac_n "(cached) $ac_c" 1>&6
6754 cat > conftest.$ac_ext <<EOF
6755 #line 6756 "configure"
6756 #include "confdefs.h"
6762 if { (eval echo configure:6763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6764 am_cv_type_ptrdiff_t=yes
6766 echo "configure: failed program was:" >&5
6767 cat conftest.$ac_ext >&5
6769 am_cv_type_ptrdiff_t=no
6774 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
6775 if test $am_cv_type_ptrdiff_t = yes; then
6776 cat >> confdefs.h <<\EOF
6777 #define HAVE_PTRDIFF_T 1
6782 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6783 echo "configure:6784: checking return type of signal handlers" >&5
6784 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6785 echo $ac_n "(cached) $ac_c" 1>&6
6787 cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6790 #include <sys/types.h>
6796 extern "C" void (*signal (int, void (*)(int)))(int);
6798 void (*signal ()) ();
6805 if { (eval echo configure:6806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6807 ac_cv_type_signal=void
6809 echo "configure: failed program was:" >&5
6810 cat conftest.$ac_ext >&5
6812 ac_cv_type_signal=int
6817 echo "$ac_t""$ac_cv_type_signal" 1>&6
6818 cat >> confdefs.h <<EOF
6819 #define RETSIGTYPE $ac_cv_type_signal
6823 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6824 echo "configure:6825: checking for size_t" >&5
6825 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831 #include <sys/types.h>
6837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6838 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6840 ac_cv_type_size_t=yes
6843 ac_cv_type_size_t=no
6848 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6849 if test $ac_cv_type_size_t = no; then
6850 cat >> confdefs.h <<\EOF
6851 #define size_t unsigned
6856 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
6857 echo "configure:6858: checking for st_blksize in struct stat" >&5
6858 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6861 cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6864 #include <sys/types.h>
6865 #include <sys/stat.h>
6867 struct stat s; s.st_blksize;
6870 if { (eval echo configure:6871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6872 ac_cv_struct_st_blksize=yes
6874 echo "configure: failed program was:" >&5
6875 cat conftest.$ac_ext >&5
6877 ac_cv_struct_st_blksize=no
6882 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
6883 if test $ac_cv_struct_st_blksize = yes; then
6884 cat >> confdefs.h <<\EOF
6885 #define HAVE_ST_BLKSIZE 1
6890 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6891 echo "configure:6892: checking whether time.h and sys/time.h may both be included" >&5
6892 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
6893 echo $ac_n "(cached) $ac_c" 1>&6
6895 cat > conftest.$ac_ext <<EOF
6896 #line 6897 "configure"
6897 #include "confdefs.h"
6898 #include <sys/types.h>
6899 #include <sys/time.h>
6905 if { (eval echo configure:6906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6907 ac_cv_header_time=yes
6909 echo "configure: failed program was:" >&5
6910 cat conftest.$ac_ext >&5
6912 ac_cv_header_time=no
6917 echo "$ac_t""$ac_cv_header_time" 1>&6
6918 if test $ac_cv_header_time = yes; then
6919 cat >> confdefs.h <<\EOF
6920 #define TIME_WITH_SYS_TIME 1
6925 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6926 echo "configure:6927: checking whether struct tm is in sys/time.h or time.h" >&5
6927 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6928 echo $ac_n "(cached) $ac_c" 1>&6
6930 cat > conftest.$ac_ext <<EOF
6931 #line 6932 "configure"
6932 #include "confdefs.h"
6933 #include <sys/types.h>
6936 struct tm *tp; tp->tm_sec;
6939 if { (eval echo configure:6940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6941 ac_cv_struct_tm=time.h
6943 echo "configure: failed program was:" >&5
6944 cat conftest.$ac_ext >&5
6946 ac_cv_struct_tm=sys/time.h
6951 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6952 if test $ac_cv_struct_tm = sys/time.h; then
6953 cat >> confdefs.h <<\EOF
6954 #define TM_IN_SYS_TIME 1
6961 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
6962 echo "configure:6963: checking if toupper() requires islower()" >&5
6963 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
6964 echo $ac_n "(cached) $ac_c" 1>&6
6967 if test "$cross_compiling" = yes; then
6968 ol_cv_c_upper_lower=safe
6970 cat > conftest.$ac_ext <<EOF
6971 #line 6972 "configure"
6972 #include "confdefs.h"
6977 if ('C' == toupper('C'))
6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6985 ol_cv_c_upper_lower=no
6987 echo "configure: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6990 ol_cv_c_upper_lower=yes
6997 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
6998 if test $ol_cv_c_upper_lower != no ; then
6999 cat >> confdefs.h <<\EOF
7000 #define C_UPPER_LOWER 1
7005 echo $ac_n "checking for working const""... $ac_c" 1>&6
7006 echo "configure:7007: checking for working const" >&5
7007 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7008 echo $ac_n "(cached) $ac_c" 1>&6
7010 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure"
7012 #include "confdefs.h"
7016 /* Ultrix mips cc rejects this. */
7017 typedef int charset[2]; const charset x;
7018 /* SunOS 4.1.1 cc rejects this. */
7019 char const *const *ccp;
7021 /* NEC SVR4.0.2 mips cc rejects this. */
7022 struct point {int x, y;};
7023 static struct point const zero = {0,0};
7024 /* AIX XL C 1.02.0.0 rejects this.
7025 It does not let you subtract one const X* pointer from another in an arm
7026 of an if-expression whose if-part is not a constant expression */
7027 const char *g = "string";
7028 ccp = &g + (g ? g-g : 0);
7029 /* HPUX 7.0 cc rejects these. */
7032 ccp = (char const *const *) p;
7033 { /* SCO 3.2v4 cc rejects this. */
7035 char const *s = 0 ? (char *) 0 : (char const *) 0;
7039 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7041 const int *foo = &x[0];
7044 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7045 typedef const int *iptr;
7049 { /* AIX XL C 1.02.0.0 rejects this saying
7050 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7051 struct s { int j; const int *ap[3]; };
7052 struct s *b; b->j = 5;
7054 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7060 if { (eval echo configure:7061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7064 echo "configure: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7072 echo "$ac_t""$ac_cv_c_const" 1>&6
7073 if test $ac_cv_c_const = no; then
7074 cat >> confdefs.h <<\EOF
7081 if test $cross_compiling = yes ; then
7082 cat >> confdefs.h <<\EOF
7083 #define CROSS_COMPILING 1
7087 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7088 echo "configure:7089: checking whether byte ordering is bigendian" >&5
7089 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7090 echo $ac_n "(cached) $ac_c" 1>&6
7092 ac_cv_c_bigendian=unknown
7093 # See if sys/param.h defines the BYTE_ORDER macro.
7094 cat > conftest.$ac_ext <<EOF
7095 #line 7096 "configure"
7096 #include "confdefs.h"
7097 #include <sys/types.h>
7098 #include <sys/param.h>
7101 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7106 if { (eval echo configure:7107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7108 # It does; now see whether it defined to BIG_ENDIAN or not.
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7112 #include <sys/types.h>
7113 #include <sys/param.h>
7116 #if BYTE_ORDER != BIG_ENDIAN
7121 if { (eval echo configure:7122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7123 ac_cv_c_bigendian=yes
7125 echo "configure: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7128 ac_cv_c_bigendian=no
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7136 if test $ac_cv_c_bigendian = unknown; then
7137 if test "$cross_compiling" = yes; then
7138 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7140 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure"
7142 #include "confdefs.h"
7144 /* Are we little or big endian? From Harbison&Steele. */
7148 char c[sizeof (long)];
7151 exit (u.c[sizeof (long) - 1] == 1);
7154 if { (eval echo configure:7155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7156 ac_cv_c_bigendian=no
7158 echo "configure: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7161 ac_cv_c_bigendian=yes
7169 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7170 if test $ac_cv_c_bigendian = yes; then
7171 cat >> confdefs.h <<\EOF
7172 #define WORDS_BIGENDIAN 1
7177 echo $ac_n "checking size of short""... $ac_c" 1>&6
7178 echo "configure:7179: checking size of short" >&5
7179 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7180 echo $ac_n "(cached) $ac_c" 1>&6
7182 if test "$cross_compiling" = yes; then
7183 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7185 cat > conftest.$ac_ext <<EOF
7186 #line 7187 "configure"
7187 #include "confdefs.h"
7191 FILE *f=fopen("conftestval", "w");
7193 fprintf(f, "%d\n", sizeof(short));
7197 if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7199 ac_cv_sizeof_short=`cat conftestval`
7201 echo "configure: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7204 ac_cv_sizeof_short=0
7210 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7211 cat >> confdefs.h <<EOF
7212 #define SIZEOF_SHORT $ac_cv_sizeof_short
7216 echo $ac_n "checking size of int""... $ac_c" 1>&6
7217 echo "configure:7218: checking size of int" >&5
7218 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7219 echo $ac_n "(cached) $ac_c" 1>&6
7221 if test "$cross_compiling" = yes; then
7222 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7224 cat > conftest.$ac_ext <<EOF
7225 #line 7226 "configure"
7226 #include "confdefs.h"
7230 FILE *f=fopen("conftestval", "w");
7232 fprintf(f, "%d\n", sizeof(int));
7236 if { (eval echo configure:7237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7238 ac_cv_sizeof_int=`cat conftestval`
7240 echo "configure: failed program was:" >&5
7241 cat conftest.$ac_ext >&5
7249 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7250 cat >> confdefs.h <<EOF
7251 #define SIZEOF_INT $ac_cv_sizeof_int
7255 echo $ac_n "checking size of long""... $ac_c" 1>&6
7256 echo "configure:7257: checking size of long" >&5
7257 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7258 echo $ac_n "(cached) $ac_c" 1>&6
7260 if test "$cross_compiling" = yes; then
7261 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7263 cat > conftest.$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7269 FILE *f=fopen("conftestval", "w");
7271 fprintf(f, "%d\n", sizeof(long));
7275 if { (eval echo configure:7276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7277 ac_cv_sizeof_long=`cat conftestval`
7279 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7288 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
7289 cat >> confdefs.h <<EOF
7290 #define SIZEOF_LONG $ac_cv_sizeof_long
7296 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
7297 echo "configure:7298: checking for 8-bit clean memcmp" >&5
7298 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
7299 echo $ac_n "(cached) $ac_c" 1>&6
7301 if test "$cross_compiling" = yes; then
7302 ac_cv_func_memcmp_clean=no
7304 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7310 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
7311 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
7315 if { (eval echo configure:7316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7317 ac_cv_func_memcmp_clean=yes
7319 echo "configure: failed program was:" >&5
7320 cat conftest.$ac_ext >&5
7322 ac_cv_func_memcmp_clean=no
7329 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
7330 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
7332 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7333 echo "configure:7334: checking for strftime" >&5
7334 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
7335 echo $ac_n "(cached) $ac_c" 1>&6
7337 cat > conftest.$ac_ext <<EOF
7338 #line 7339 "configure"
7339 #include "confdefs.h"
7340 /* System header to define __stub macros and hopefully few prototypes,
7341 which can conflict with char strftime(); below. */
7343 /* Override any gcc2 internal prototype to avoid an error. */
7344 /* We use char because int might match the return type of a gcc2
7345 builtin and then its argument prototype would still apply. */
7350 /* The GNU C library defines this for functions which it implements
7351 to always fail with ENOSYS. Some functions are actually named
7352 something starting with __ and the normal name is an alias. */
7353 #if defined (__stub_strftime) || defined (__stub___strftime)
7361 if { (eval echo configure:7362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7363 eval "ac_cv_func_strftime=yes"
7365 echo "configure: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7368 eval "ac_cv_func_strftime=no"
7373 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
7374 echo "$ac_t""yes" 1>&6
7375 cat >> confdefs.h <<\EOF
7376 #define HAVE_STRFTIME 1
7380 echo "$ac_t""no" 1>&6
7381 # strftime is in -lintl on SCO UNIX.
7382 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
7383 echo "configure:7384: checking for strftime in -lintl" >&5
7384 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
7385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7386 echo $ac_n "(cached) $ac_c" 1>&6
7388 ac_save_LIBS="$LIBS"
7390 cat > conftest.$ac_ext <<EOF
7391 #line 7392 "configure"
7392 #include "confdefs.h"
7393 /* Override any gcc2 internal prototype to avoid an error. */
7394 /* We use char because int might match the return type of a gcc2
7395 builtin and then its argument prototype would still apply. */
7402 if { (eval echo configure:7403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7404 eval "ac_cv_lib_$ac_lib_var=yes"
7406 echo "configure: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7409 eval "ac_cv_lib_$ac_lib_var=no"
7412 LIBS="$ac_save_LIBS"
7415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7416 echo "$ac_t""yes" 1>&6
7417 cat >> confdefs.h <<\EOF
7418 #define HAVE_STRFTIME 1
7423 echo "$ac_t""no" 1>&6
7428 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7429 echo "configure:7430: checking for vprintf" >&5
7430 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
7431 echo $ac_n "(cached) $ac_c" 1>&6
7433 cat > conftest.$ac_ext <<EOF
7434 #line 7435 "configure"
7435 #include "confdefs.h"
7436 /* System header to define __stub macros and hopefully few prototypes,
7437 which can conflict with char vprintf(); below. */
7439 /* Override any gcc2 internal prototype to avoid an error. */
7440 /* We use char because int might match the return type of a gcc2
7441 builtin and then its argument prototype would still apply. */
7446 /* The GNU C library defines this for functions which it implements
7447 to always fail with ENOSYS. Some functions are actually named
7448 something starting with __ and the normal name is an alias. */
7449 #if defined (__stub_vprintf) || defined (__stub___vprintf)
7457 if { (eval echo configure:7458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7459 eval "ac_cv_func_vprintf=yes"
7461 echo "configure: failed program was:" >&5
7462 cat conftest.$ac_ext >&5
7464 eval "ac_cv_func_vprintf=no"
7469 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
7470 echo "$ac_t""yes" 1>&6
7471 cat >> confdefs.h <<\EOF
7472 #define HAVE_VPRINTF 1
7476 echo "$ac_t""no" 1>&6
7479 if test "$ac_cv_func_vprintf" != yes; then
7480 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7481 echo "configure:7482: checking for _doprnt" >&5
7482 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
7483 echo $ac_n "(cached) $ac_c" 1>&6
7485 cat > conftest.$ac_ext <<EOF
7486 #line 7487 "configure"
7487 #include "confdefs.h"
7488 /* System header to define __stub macros and hopefully few prototypes,
7489 which can conflict with char _doprnt(); below. */
7491 /* Override any gcc2 internal prototype to avoid an error. */
7492 /* We use char because int might match the return type of a gcc2
7493 builtin and then its argument prototype would still apply. */
7498 /* The GNU C library defines this for functions which it implements
7499 to always fail with ENOSYS. Some functions are actually named
7500 something starting with __ and the normal name is an alias. */
7501 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7509 if { (eval echo configure:7510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7511 eval "ac_cv_func__doprnt=yes"
7513 echo "configure: failed program was:" >&5
7514 cat conftest.$ac_ext >&5
7516 eval "ac_cv_func__doprnt=no"
7521 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
7522 echo "$ac_t""yes" 1>&6
7523 cat >> confdefs.h <<\EOF
7524 #define HAVE_DOPRNT 1
7528 echo "$ac_t""no" 1>&6
7534 if test $ac_cv_func_vprintf = yes ; then
7535 for ac_func in vsnprintf
7537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7538 echo "configure:7539: checking for $ac_func" >&5
7539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7540 echo $ac_n "(cached) $ac_c" 1>&6
7542 cat > conftest.$ac_ext <<EOF
7543 #line 7544 "configure"
7544 #include "confdefs.h"
7545 /* System header to define __stub macros and hopefully few prototypes,
7546 which can conflict with char $ac_func(); below. */
7548 /* Override any gcc2 internal prototype to avoid an error. */
7549 /* We use char because int might match the return type of a gcc2
7550 builtin and then its argument prototype would still apply. */
7555 /* The GNU C library defines this for functions which it implements
7556 to always fail with ENOSYS. Some functions are actually named
7557 something starting with __ and the normal name is an alias. */
7558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7566 if { (eval echo configure:7567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7568 eval "ac_cv_func_$ac_func=yes"
7570 echo "configure: failed program was:" >&5
7571 cat conftest.$ac_ext >&5
7573 eval "ac_cv_func_$ac_func=no"
7578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7579 echo "$ac_t""yes" 1>&6
7580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7581 cat >> confdefs.h <<EOF
7582 #define $ac_tr_func 1
7586 echo "$ac_t""no" 1>&6
7592 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
7593 echo "configure:7594: checking for wait3 that fills in rusage" >&5
7594 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
7595 echo $ac_n "(cached) $ac_c" 1>&6
7597 if test "$cross_compiling" = yes; then
7598 ac_cv_func_wait3_rusage=no
7600 cat > conftest.$ac_ext <<EOF
7601 #line 7602 "configure"
7602 #include "confdefs.h"
7603 #include <sys/types.h>
7604 #include <sys/time.h>
7605 #include <sys/resource.h>
7607 /* HP-UX has wait3 but does not fill in rusage at all. */
7611 /* Use a field that we can force nonzero --
7612 voluntary context switches.
7613 For systems like NeXT and OSF/1 that don't set it,
7614 also use the system CPU time. And page faults (I/O) for Linux. */
7616 r.ru_stime.tv_sec = 0;
7617 r.ru_stime.tv_usec = 0;
7618 r.ru_majflt = r.ru_minflt = 0;
7620 case 0: /* Child. */
7621 sleep(1); /* Give up the CPU. */
7623 case -1: _exit(0); /* What can we do? */
7624 default: /* Parent. */
7626 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
7627 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
7628 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
7632 if { (eval echo configure:7633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7634 ac_cv_func_wait3_rusage=yes
7636 echo "configure: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7639 ac_cv_func_wait3_rusage=no
7646 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
7647 if test $ac_cv_func_wait3_rusage = yes; then
7648 cat >> confdefs.h <<\EOF
7649 #define HAVE_WAIT3 1
7686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7687 echo "configure:7688: checking for $ac_func" >&5
7688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 /* System header to define __stub macros and hopefully few prototypes,
7695 which can conflict with char $ac_func(); below. */
7697 /* Override any gcc2 internal prototype to avoid an error. */
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7704 /* The GNU C library defines this for functions which it implements
7705 to always fail with ENOSYS. Some functions are actually named
7706 something starting with __ and the normal name is an alias. */
7707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7715 if { (eval echo configure:7716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7717 eval "ac_cv_func_$ac_func=yes"
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7722 eval "ac_cv_func_$ac_func=no"
7727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7728 echo "$ac_t""yes" 1>&6
7729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7730 cat >> confdefs.h <<EOF
7731 #define $ac_tr_func 1
7735 echo "$ac_t""no" 1>&6
7740 for ac_func in getopt strdup tempnam
7742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7743 echo "configure:7744: checking for $ac_func" >&5
7744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7747 cat > conftest.$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7750 /* System header to define __stub macros and hopefully few prototypes,
7751 which can conflict with char $ac_func(); below. */
7753 /* Override any gcc2 internal prototype to avoid an error. */
7754 /* We use char because int might match the return type of a gcc2
7755 builtin and then its argument prototype would still apply. */
7760 /* The GNU C library defines this for functions which it implements
7761 to always fail with ENOSYS. Some functions are actually named
7762 something starting with __ and the normal name is an alias. */
7763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7771 if { (eval echo configure:7772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7773 eval "ac_cv_func_$ac_func=yes"
7775 echo "configure: failed program was:" >&5
7776 cat conftest.$ac_ext >&5
7778 eval "ac_cv_func_$ac_func=no"
7783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7784 echo "$ac_t""yes" 1>&6
7785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7786 cat >> confdefs.h <<EOF
7787 #define $ac_tr_func 1
7791 echo "$ac_t""no" 1>&6
7792 LIBOBJS="$LIBOBJS ${ac_func}.o"
7798 # Check Configuration
7800 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
7801 echo "configure:7802: checking declaration of sys_errlist" >&5
7802 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
7803 echo $ac_n "(cached) $ac_c" 1>&6
7806 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7811 #include <sys/types.h>
7814 char *c = (char *) *sys_errlist
7817 if { (eval echo configure:7818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7819 ol_cv_dcl_sys_errlist=yes
7821 echo "configure: failed program was:" >&5
7822 cat conftest.$ac_ext >&5
7824 ol_cv_dcl_sys_errlist=no
7829 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
7831 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
7832 if test $ol_cv_dcl_sys_errlist = no ; then
7833 cat >> confdefs.h <<\EOF
7834 #define DECL_SYS_ERRLIST 1
7837 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
7838 echo "configure:7839: checking existence of sys_errlist" >&5
7839 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
7840 echo $ac_n "(cached) $ac_c" 1>&6
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7848 char *c = (char *) *sys_errlist
7851 if { (eval echo configure:7852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7853 ol_cv_have_sys_errlist=yes
7855 echo "configure: failed program was:" >&5
7856 cat conftest.$ac_ext >&5
7858 ol_cv_have_sys_errlist=no
7863 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
7868 if test $ol_enable_debug != no ; then
7869 cat >> confdefs.h <<\EOF
7870 #define LDAP_DEBUG 1
7874 if test $ol_enable_libui = yes ; then
7875 cat >> confdefs.h <<\EOF
7876 #define LDAP_LIBUI 1
7880 if test $ol_enable_cache = no ; then
7881 cat >> confdefs.h <<\EOF
7882 #define LDAP_NOCACHE 1
7886 if test $ol_enable_dns != no ; then
7887 cat >> confdefs.h <<\EOF
7892 if test $ol_enable_proctitle != no ; then
7893 cat >> confdefs.h <<\EOF
7894 #define LDAP_PROCTITLE 1
7898 if test $ol_enable_referrals != no ; then
7899 cat >> confdefs.h <<\EOF
7900 #define LDAP_REFERRALS 1
7904 if test $ol_enable_cldap != no ; then
7905 cat >> confdefs.h <<\EOF
7906 #define LDAP_CONNECTIONLESS 1
7911 if test $ol_enable_aclgroups != no ; then
7912 cat >> confdefs.h <<\EOF
7913 #define SLAPD_ACLGROUPS 1
7917 if test $ol_enable_crypt != no ; then
7918 cat >> confdefs.h <<\EOF
7919 #define SLAPD_CRYPT 1
7923 if test $ol_enable_md5 != no ; then
7924 cat >> confdefs.h <<\EOF
7929 if test $ol_enable_sha1 != no ; then
7930 cat >> confdefs.h <<\EOF
7931 #define SLAPD_SHA1 1
7935 if test $ol_enable_phonetic != no ; then
7936 cat >> confdefs.h <<\EOF
7937 #define SLAPD_PHONETIC 1
7941 if test $ol_enable_rlookups != no ; then
7942 cat >> confdefs.h <<\EOF
7943 #define SLAPD_RLOOKUPS 1
7948 if test $ol_link_ldbm != no ; then
7949 cat >> confdefs.h <<\EOF
7950 #define SLAPD_LDBM 1
7957 if test $ol_enable_passwd != no ; then
7958 cat >> confdefs.h <<\EOF
7959 #define SLAPD_PASSWD 1
7966 if test $ol_enable_shell != no ; then
7967 cat >> confdefs.h <<\EOF
7968 #define SLAPD_SHELL 1
7975 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
7976 $BUILD_SLAPD = yes ; then
7980 if test $ol_link_isode != no ; then
8006 cat > confcache <<\EOF
8007 # This file is a shell script that caches the results of configure
8008 # tests run on this system so they can be shared between configure
8009 # scripts and configure runs. It is not useful on other systems.
8010 # If it contains results you don't want to keep, you may remove or edit it.
8012 # By default, configure uses ./config.cache as the cache file,
8013 # creating it if it does not exist already. You can give configure
8014 # the --cache-file=FILE option to use a different cache file; that is
8015 # what configure does when it calls configure scripts in
8016 # subdirectories, so they share the cache.
8017 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8018 # config.status only pays attention to the cache file if you give it the
8019 # --recheck option to rerun configure.
8022 # The following way of writing the cache mishandles newlines in values,
8023 # but we know of no workaround that is simple, portable, and efficient.
8024 # So, don't put newlines in cache variables' values.
8025 # Ultrix sh set writes to stderr and can't be redirected directly,
8026 # and sets the high bit in the cache file unless we assign to the vars.
8028 case `(ac_space=' '; set) 2>&1` in
8030 # `set' does not quote correctly, so add quotes (double-quote substitution
8031 # turns \\\\ into \\, and sed turns \\ into \).
8033 -e "s/'/'\\\\''/g" \
8034 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8037 # `set' quotes correctly as required by POSIX, so do not add quotes.
8038 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8041 if cmp -s $cache_file confcache; then
8044 if test -w $cache_file; then
8045 echo "updating cache $cache_file"
8046 cat confcache > $cache_file
8048 echo "not updating unwritable cache $cache_file"
8053 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8055 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8056 # Let make expand exec_prefix.
8057 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8059 # Any assignment to VPATH causes Sun make to only execute
8060 # the first set of double-colon rules, so remove it if not needed.
8061 # If there is a colon in the path, we need to keep it.
8062 if test "x$srcdir" = x.; then
8063 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8066 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8068 DEFS=-DHAVE_CONFIG_H
8070 # Without the "./", some shells look in PATH for config.status.
8071 : ${CONFIG_STATUS=./config.status}
8073 echo creating $CONFIG_STATUS
8074 rm -f $CONFIG_STATUS
8075 cat > $CONFIG_STATUS <<EOF
8077 # Generated automatically by configure.
8078 # Run this file to recreate the current configuration.
8079 # This directory was configured as follows,
8080 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8082 # $0 $ac_configure_args
8084 # Compiler output produced by configure, useful for debugging
8085 # configure, is in ./config.log if it exists.
8087 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8090 case "\$ac_option" in
8091 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8092 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8093 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8094 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8095 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8097 -help | --help | --hel | --he | --h)
8098 echo "\$ac_cs_usage"; exit 0 ;;
8099 *) echo "\$ac_cs_usage"; exit 1 ;;
8103 ac_given_srcdir=$srcdir
8104 ac_given_INSTALL="$INSTALL"
8106 trap 'rm -fr `echo "\
8107 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8108 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8109 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8110 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8111 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8112 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8113 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8114 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8115 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8116 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8117 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8118 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8119 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8120 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8121 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8122 include/Makefile:build/top.mk:include/Makefile.in \
8123 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8124 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8125 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8126 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8127 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8128 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8129 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8130 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8131 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8132 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8133 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8134 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8135 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8136 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8137 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8138 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8139 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8140 tests/Makefile:build/top.mk:tests/Makefile.in \
8141 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8143 cat >> $CONFIG_STATUS <<EOF
8145 # Protect against being on the right side of a sed subst in config.status.
8146 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8147 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8150 s%@CFLAGS@%$CFLAGS%g
8151 s%@CPPFLAGS@%$CPPFLAGS%g
8152 s%@CXXFLAGS@%$CXXFLAGS%g
8154 s%@LDFLAGS@%$LDFLAGS%g
8156 s%@exec_prefix@%$exec_prefix%g
8157 s%@prefix@%$prefix%g
8158 s%@program_transform_name@%$program_transform_name%g
8159 s%@bindir@%$bindir%g
8160 s%@sbindir@%$sbindir%g
8161 s%@libexecdir@%$libexecdir%g
8162 s%@datadir@%$datadir%g
8163 s%@sysconfdir@%$sysconfdir%g
8164 s%@sharedstatedir@%$sharedstatedir%g
8165 s%@localstatedir@%$localstatedir%g
8166 s%@libdir@%$libdir%g
8167 s%@includedir@%$includedir%g
8168 s%@oldincludedir@%$oldincludedir%g
8169 s%@infodir@%$infodir%g
8170 s%@mandir@%$mandir%g
8171 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8172 s%@INSTALL_DATA@%$INSTALL_DATA%g
8173 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8174 s%@PACKAGE@%$PACKAGE%g
8175 s%@VERSION@%$VERSION%g
8176 s%@ACLOCAL@%$ACLOCAL%g
8177 s%@AUTOCONF@%$AUTOCONF%g
8178 s%@AUTOMAKE@%$AUTOMAKE%g
8179 s%@AUTOHEADER@%$AUTOHEADER%g
8180 s%@MAKEINFO@%$MAKEINFO%g
8181 s%@SET_MAKE@%$SET_MAKE%g
8182 s%@top_builddir@%$top_builddir%g
8184 s%@host_alias@%$host_alias%g
8185 s%@host_cpu@%$host_cpu%g
8186 s%@host_vendor@%$host_vendor%g
8187 s%@host_os@%$host_os%g
8188 s%@RANLIB@%$RANLIB%g
8193 s%@LIBTOOL@%$LIBTOOL%g
8194 s%@SENDMAIL@%$SENDMAIL%g
8195 s%@EDITOR@%$EDITOR%g
8196 s%@FINGER@%$FINGER%g
8199 s%@LIBOBJS@%$LIBOBJS%g
8200 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
8201 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
8202 s%@BUILD_LDBM@%$BUILD_LDBM%g
8203 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
8204 s%@BUILD_SHELL@%$BUILD_SHELL%g
8205 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
8206 s%@LDAP_LIBS@%$LDAP_LIBS%g
8207 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
8208 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
8209 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
8210 s%@LDBM_LIBS@%$LDBM_LIBS%g
8211 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
8212 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
8213 s%@KRB_LIBS@%$KRB_LIBS%g
8214 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
8219 cat >> $CONFIG_STATUS <<\EOF
8221 # Split the substitutions into bite-sized pieces for seds with
8222 # small command number limits, like on Digital OSF/1 and HP-UX.
8223 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8224 ac_file=1 # Number of current file.
8225 ac_beg=1 # First line for current file.
8226 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8229 while $ac_more_lines; do
8230 if test $ac_beg -gt 1; then
8231 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8233 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8235 if test ! -s conftest.s$ac_file; then
8237 rm -f conftest.s$ac_file
8239 if test -z "$ac_sed_cmds"; then
8240 ac_sed_cmds="sed -f conftest.s$ac_file"
8242 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8244 ac_file=`expr $ac_file + 1`
8246 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8249 if test -z "$ac_sed_cmds"; then
8254 cat >> $CONFIG_STATUS <<EOF
8256 CONFIG_FILES=\${CONFIG_FILES-"\
8257 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8258 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8259 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8260 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8261 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8262 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8263 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8264 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8265 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8266 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8267 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8268 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8269 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8270 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8271 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8272 include/Makefile:build/top.mk:include/Makefile.in \
8273 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8274 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8275 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8276 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8277 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8278 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8279 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8280 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8281 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8282 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8283 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8284 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8285 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8286 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8287 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8288 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8289 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8290 tests/Makefile:build/top.mk:tests/Makefile.in \
8293 cat >> $CONFIG_STATUS <<\EOF
8294 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8295 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8297 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8298 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8299 *) ac_file_in="${ac_file}.in" ;;
8302 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8304 # Remove last slash and all that follows it. Not all systems have dirname.
8305 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8306 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8307 # The file is in a subdirectory.
8308 test ! -d "$ac_dir" && mkdir "$ac_dir"
8309 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8310 # A "../" for each directory in $ac_dir_suffix.
8311 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8313 ac_dir_suffix= ac_dots=
8316 case "$ac_given_srcdir" in
8318 if test -z "$ac_dots"; then top_srcdir=.
8319 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8320 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8322 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8323 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8326 case "$ac_given_INSTALL" in
8327 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8328 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8331 echo creating "$ac_file"
8333 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8335 *Makefile*) ac_comsub="1i\\
8336 # $configure_input" ;;
8340 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8342 s%@configure_input@%$configure_input%g
8343 s%@srcdir@%$srcdir%g
8344 s%@top_srcdir@%$top_srcdir%g
8345 s%@INSTALL@%$INSTALL%g
8346 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8350 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8351 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8353 # ac_d sets the value in "#define NAME VALUE" lines.
8354 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8355 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8358 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8359 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8360 ac_uB='\([ ]\)%\1#\2define\3'
8363 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8364 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8365 ac_eB='$%\1#\2define\3'
8369 if test "${CONFIG_HEADERS+set}" != set; then
8371 cat >> $CONFIG_STATUS <<EOF
8372 CONFIG_HEADERS="include/portable.h"
8374 cat >> $CONFIG_STATUS <<\EOF
8376 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8377 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8379 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8380 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8381 *) ac_file_in="${ac_file}.in" ;;
8384 echo creating $ac_file
8386 rm -f conftest.frag conftest.in conftest.out
8387 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8388 cat $ac_file_inputs > conftest.in
8392 # Transform confdefs.h into a sed script conftest.vals that substitutes
8393 # the proper values into config.h.in to produce config.h. And first:
8394 # Protect against being on the right side of a sed subst in config.status.
8395 # Protect against being in an unquoted here document in config.status.
8397 cat > conftest.hdr <<\EOF
8400 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8404 sed -n -f conftest.hdr confdefs.h > conftest.vals
8407 # This sed command replaces #undef with comments. This is necessary, for
8408 # example, in the case of _POSIX_SOURCE, which is predefined and required
8409 # on some systems where configure will not decide to define it.
8410 cat >> conftest.vals <<\EOF
8411 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8414 # Break up conftest.vals because some shells have a limit on
8415 # the size of here documents, and old seds have small limits too.
8420 ac_lines=`grep -c . conftest.vals`
8421 # grep -c gives empty output for an empty file on some AIX systems.
8422 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8423 # Write a limited-size here document to conftest.frag.
8424 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8425 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8427 sed -f conftest.frag conftest.in > conftest.out
8429 mv conftest.out conftest.in
8431 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8433 mv conftest.tail conftest.vals
8437 cat >> $CONFIG_STATUS <<\EOF
8438 rm -f conftest.frag conftest.h
8439 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8440 cat conftest.in >> conftest.h
8442 if cmp -s $ac_file conftest.h 2>/dev/null; then
8443 echo "$ac_file is unchanged"
8446 # Remove last slash and all that follows it. Not all systems have dirname.
8447 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8448 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8449 # The file is in a subdirectory.
8450 test ! -d "$ac_dir" && mkdir "$ac_dir"
8453 mv conftest.h $ac_file
8458 cat >> $CONFIG_STATUS <<EOF
8461 cat >> $CONFIG_STATUS <<\EOF
8464 echo Please \"make depend\" to build dependencies
8468 chmod +x $CONFIG_STATUS
8469 rm -fr confdefs* $ac_clean_files
8470 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1