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
3227 KRB_LIBS="-lkrb -ldes"
3229 for ac_func in des_string_to_key
3231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_func" >&5
3233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 /* System header to define __stub macros and hopefully few prototypes,
3240 which can conflict with char $ac_func(); below. */
3242 /* Override any gcc2 internal prototype to avoid an error. */
3243 /* We use char because int might match the return type of a gcc2
3244 builtin and then its argument prototype would still apply. */
3249 /* The GNU C library defines this for functions which it implements
3250 to always fail with ENOSYS. Some functions are actually named
3251 something starting with __ and the normal name is an alias. */
3252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3260 if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3262 eval "ac_cv_func_$ac_func=yes"
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3267 eval "ac_cv_func_$ac_func=no"
3272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3273 echo "$ac_t""yes" 1>&6
3274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3275 cat >> confdefs.h <<EOF
3276 #define $ac_tr_func 1
3280 echo "$ac_t""no" 1>&6
3289 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
3290 for ac_hdr in pthread.h sched.h
3292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3294 echo "configure:3295: checking for $ac_hdr" >&5
3295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3304 { (eval echo configure:3305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3305 ac_err=`grep -v '^ *+' conftest.out`
3306 if test -z "$ac_err"; then
3308 eval "ac_cv_header_$ac_safe=yes"
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3314 eval "ac_cv_header_$ac_safe=no"
3318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3319 echo "$ac_t""yes" 1>&6
3320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3321 cat >> confdefs.h <<EOF
3322 #define $ac_tr_hdr 1
3326 echo "$ac_t""no" 1>&6
3331 if test $ac_cv_header_pthread_h = yes ; then
3332 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3333 echo "configure:3334: checking POSIX thread version" >&5
3334 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3342 # include <pthread.h>
3343 /* this check could be improved */
3344 # ifdef PTHREAD_ONCE_INIT
3349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3350 egrep "final" >/dev/null 2>&1; then
3352 ol_pthread_final=yes
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3364 # include <pthread.h>
3365 /* this check could be improved */
3366 # ifdef pthread_once_init
3371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3372 egrep "draft4" >/dev/null 2>&1; then
3374 ol_pthread_draft4=yes
3377 ol_pthread_draft4=no
3382 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3383 ol_cv_pthread_version=final
3384 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3385 ol_cv_pthread_version=draft4
3387 ol_cv_pthread_version=unknown
3392 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3395 if test $ol_cv_pthread_version = final ; then
3396 cat >> confdefs.h <<\EOF
3397 #define HAVE_PTHREADS_FINAL 1
3400 elif test $ol_cv_pthread_version = draft4 ; then
3401 cat >> confdefs.h <<\EOF
3402 #define HAVE_PTHREADS_D4 1
3406 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3409 # consider threads found
3410 ol_with_threads=found
3413 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3414 echo "configure:3415: checking for LinuxThreads" >&5
3415 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3419 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3420 if test "$res" -gt 0 ; then
3421 ol_cv_linux_threads=yes
3423 ol_cv_linux_threads=no
3428 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3431 if test $ol_cv_linux_threads = yes ; then
3432 cat >> confdefs.h <<\EOF
3433 #define HAVE_LINUX_THREADS 1
3439 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3440 echo "configure:3441: checking for pthread_create" >&5
3441 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 /* System header to define __stub macros and hopefully few prototypes,
3448 which can conflict with char pthread_create(); below. */
3450 /* Override any gcc2 internal prototype to avoid an error. */
3451 /* We use char because int might match the return type of a gcc2
3452 builtin and then its argument prototype would still apply. */
3453 char pthread_create();
3457 /* The GNU C library defines this for functions which it implements
3458 to always fail with ENOSYS. Some functions are actually named
3459 something starting with __ and the normal name is an alias. */
3460 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3468 if { (eval echo configure:3469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3470 eval "ac_cv_func_pthread_create=yes"
3472 echo "configure: failed program was:" >&5
3473 cat conftest.$ac_ext >&5
3475 eval "ac_cv_func_pthread_create=no"
3480 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3481 echo "$ac_t""yes" 1>&6
3484 echo "$ac_t""no" 1>&6
3488 if test $ol_link_threads = no ; then
3489 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
3490 echo "configure:3491: checking for pthread_create with -pthread" >&5
3491 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3496 LIBS="-pthread $LIBS"
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3507 if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3509 ol_cv_pthread_flag=yes
3511 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5
3514 ol_cv_pthread_flag=no
3521 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
3523 if test $ol_cv_pthread_flag = yes ; then
3524 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
3525 ol_link_threads=posix
3529 if test $ol_link_threads = no ; then
3530 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
3531 echo "configure:3532: checking for pthread_create with -thread" >&5
3532 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3537 LIBS="-thread $LIBS"
3538 cat > conftest.$ac_ext <<EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3548 if { (eval echo configure:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3550 ol_cv_thread_flag=yes
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3555 ol_cv_thread_flag=no
3562 echo "$ac_t""$ol_cv_thread_flag" 1>&6
3564 if test $ol_cv_thread_flag = yes ; then
3565 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
3566 ol_link_threads=posix
3570 if test $ol_link_threads = no ; then
3572 echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
3573 echo "configure:3574: checking for pthread_join in -lpthread" >&5
3574 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
3575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3576 echo $ac_n "(cached) $ac_c" 1>&6
3578 ac_save_LIBS="$LIBS"
3579 LIBS="-lpthread -lexc $LIBS"
3580 cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 /* Override any gcc2 internal prototype to avoid an error. */
3584 /* We use char because int might match the return type of a gcc2
3585 builtin and then its argument prototype would still apply. */
3586 char pthread_join();
3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3594 eval "ac_cv_lib_$ac_lib_var=yes"
3596 echo "configure: failed program was:" >&5
3597 cat conftest.$ac_ext >&5
3599 eval "ac_cv_lib_$ac_lib_var=no"
3602 LIBS="$ac_save_LIBS"
3605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3606 echo "$ac_t""yes" 1>&6
3608 ol_link_threads=posix
3609 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
3610 if test $ol_with_yielding_select = auto ; then
3611 ol_with_yielding_select=yes
3615 echo "$ac_t""no" 1>&6
3621 if test $ol_link_threads = no ; then
3623 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
3624 echo "configure:3625: checking for pthread_join in -lpthreads" >&5
3625 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
3626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 ac_save_LIBS="$LIBS"
3630 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 /* Override any gcc2 internal prototype to avoid an error. */
3635 /* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3637 char pthread_join();
3643 if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3645 eval "ac_cv_lib_$ac_lib_var=yes"
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3650 eval "ac_cv_lib_$ac_lib_var=no"
3653 LIBS="$ac_save_LIBS"
3656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3659 ol_link_threads=posix
3660 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
3661 if test $ol_with_yielding_select = auto ; then
3662 ol_with_yielding_select=yes
3666 echo "$ac_t""no" 1>&6
3672 if test $ol_link_threads = no ; then
3674 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3675 echo "configure:3676: checking for pthread_create in -lpthread" >&5
3676 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 ac_save_LIBS="$LIBS"
3681 LIBS="-lpthread $LIBS"
3682 cat > conftest.$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3685 /* Override any gcc2 internal prototype to avoid an error. */
3686 /* We use char because int might match the return type of a gcc2
3687 builtin and then its argument prototype would still apply. */
3688 char pthread_create();
3694 if { (eval echo configure:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3696 eval "ac_cv_lib_$ac_lib_var=yes"
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3701 eval "ac_cv_lib_$ac_lib_var=no"
3704 LIBS="$ac_save_LIBS"
3707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3708 echo "$ac_t""yes" 1>&6
3710 ol_link_threads=posix
3711 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
3713 echo "$ac_t""no" 1>&6
3719 if test $ol_link_threads = no ; then
3721 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3722 echo "configure:3723: checking for pthread_create in -lc_r" >&5
3723 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3727 ac_save_LIBS="$LIBS"
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 /* Override any gcc2 internal prototype to avoid an error. */
3733 /* We use char because int might match the return type of a gcc2
3734 builtin and then its argument prototype would still apply. */
3735 char pthread_create();
3741 if { (eval echo configure:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3743 eval "ac_cv_lib_$ac_lib_var=yes"
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3748 eval "ac_cv_lib_$ac_lib_var=no"
3751 LIBS="$ac_save_LIBS"
3754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3755 echo "$ac_t""yes" 1>&6
3757 ol_link_threads=posix
3758 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
3760 echo "$ac_t""no" 1>&6
3766 if test $ol_link_threads != no ; then
3767 cat >> confdefs.h <<\EOF
3768 #define HAVE_PTHREADS 1
3772 save_CPPFLAGS="$CPPFLAGS"
3774 LIBS="$LTHREAD_LIBS $LIBS"
3776 for ac_func in sched_yield pthread_yield
3778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3779 echo "configure:3780: checking for $ac_func" >&5
3780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3783 cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3786 /* System header to define __stub macros and hopefully few prototypes,
3787 which can conflict with char $ac_func(); below. */
3789 /* Override any gcc2 internal prototype to avoid an error. */
3790 /* We use char because int might match the return type of a gcc2
3791 builtin and then its argument prototype would still apply. */
3796 /* The GNU C library defines this for functions which it implements
3797 to always fail with ENOSYS. Some functions are actually named
3798 something starting with __ and the normal name is an alias. */
3799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3809 eval "ac_cv_func_$ac_func=yes"
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3814 eval "ac_cv_func_$ac_func=no"
3819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3820 echo "$ac_t""yes" 1>&6
3821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3822 cat >> confdefs.h <<EOF
3823 #define $ac_tr_func 1
3827 echo "$ac_t""no" 1>&6
3832 if test $ac_cv_func_sched_yield = no -a \
3833 $ac_cv_func_pthread_yield = no ; then
3834 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3835 echo "configure:3836: checking for sched_yield in -lrt" >&5
3836 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3840 ac_save_LIBS="$LIBS"
3842 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3845 /* Override any gcc2 internal prototype to avoid an error. */
3846 /* We use char because int might match the return type of a gcc2
3847 builtin and then its argument prototype would still apply. */
3854 if { (eval echo configure:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3856 eval "ac_cv_lib_$ac_lib_var=yes"
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3861 eval "ac_cv_lib_$ac_lib_var=no"
3864 LIBS="$ac_save_LIBS"
3867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3868 echo "$ac_t""yes" 1>&6
3869 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
3870 cat >> confdefs.h <<\EOF
3871 #define HAVE_SCHED_YIELD 1
3874 ac_cv_func_sched_yield=yes
3876 echo "$ac_t""no" 1>&6
3877 ac_cv_func_sched_yield=no
3881 if test $ac_cv_func_sched_yield = no -a \
3882 $ac_cv_func_pthread_yield = no ; then
3883 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3884 echo "configure:3885: checking for sched_yield in -lposix4" >&5
3885 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 ac_save_LIBS="$LIBS"
3890 LIBS="-lposix4 $LIBS"
3891 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
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. */
3903 if { (eval echo configure:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3905 eval "ac_cv_lib_$ac_lib_var=yes"
3907 echo "configure: failed program was:" >&5
3908 cat conftest.$ac_ext >&5
3910 eval "ac_cv_lib_$ac_lib_var=no"
3913 LIBS="$ac_save_LIBS"
3916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3917 echo "$ac_t""yes" 1>&6
3918 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
3919 cat >> confdefs.h <<\EOF
3920 #define HAVE_SCHED_YIELD 1
3923 ac_cv_func_sched_yield=yes
3925 echo "$ac_t""no" 1>&6
3926 ac_cv_func_sched_yield=no
3930 if test $ac_cv_func_sched_yield = no -a \
3931 $ac_cv_func_pthread_yield = no ; then
3932 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
3933 { echo "configure: error: POSIX Threads are not usable" 1>&2; exit 1; }
3936 for ac_func in pthread_kill
3938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3939 echo "configure:3940: checking for $ac_func" >&5
3940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3943 cat > conftest.$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3946 /* System header to define __stub macros and hopefully few prototypes,
3947 which can conflict with char $ac_func(); below. */
3949 /* Override any gcc2 internal prototype to avoid an error. */
3950 /* We use char because int might match the return type of a gcc2
3951 builtin and then its argument prototype would still apply. */
3956 /* The GNU C library defines this for functions which it implements
3957 to always fail with ENOSYS. Some functions are actually named
3958 something starting with __ and the normal name is an alias. */
3959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3969 eval "ac_cv_func_$ac_func=yes"
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3974 eval "ac_cv_func_$ac_func=no"
3979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3980 echo "$ac_t""yes" 1>&6
3981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3982 cat >> confdefs.h <<EOF
3983 #define $ac_tr_func 1
3987 echo "$ac_t""no" 1>&6
3992 pthread_attr_create pthread_attr_init \
3993 pthread_attr_destroy pthread_attr_delete \
3994 pthread_attr_setdetachstate pthread_attr_setdetach_np \
3997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3998 echo "configure:3999: checking for $ac_func" >&5
3999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4002 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4005 /* System header to define __stub macros and hopefully few prototypes,
4006 which can conflict with char $ac_func(); below. */
4008 /* Override any gcc2 internal prototype to avoid an error. */
4009 /* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4015 /* The GNU C library defines this for functions which it implements
4016 to always fail with ENOSYS. Some functions are actually named
4017 something starting with __ and the normal name is an alias. */
4018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4026 if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4028 eval "ac_cv_func_$ac_func=yes"
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4033 eval "ac_cv_func_$ac_func=no"
4038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4039 echo "$ac_t""yes" 1>&6
4040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4041 cat >> confdefs.h <<EOF
4042 #define $ac_tr_func 1
4046 echo "$ac_t""no" 1>&6
4052 pthread_setconcurrency \
4053 thr_setconcurrency \
4056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4057 echo "configure:4058: checking for $ac_func" >&5
4058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4064 /* System header to define __stub macros and hopefully few prototypes,
4065 which can conflict with char $ac_func(); below. */
4067 /* Override any gcc2 internal prototype to avoid an error. */
4068 /* We use char because int might match the return type of a gcc2
4069 builtin and then its argument prototype would still apply. */
4074 /* The GNU C library defines this for functions which it implements
4075 to always fail with ENOSYS. Some functions are actually named
4076 something starting with __ and the normal name is an alias. */
4077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4085 if { (eval echo configure:4086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4087 eval "ac_cv_func_$ac_func=yes"
4089 echo "configure: failed program was:" >&5
4090 cat conftest.$ac_ext >&5
4092 eval "ac_cv_func_$ac_func=no"
4097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4098 echo "$ac_t""yes" 1>&6
4099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4100 cat >> confdefs.h <<EOF
4101 #define $ac_tr_func 1
4105 echo "$ac_t""no" 1>&6
4110 if test $ol_with_yielding_select = auto ; then
4111 echo $ac_n "checking if select yields""... $ac_c" 1>&6
4112 echo "configure:4113: checking if select yields" >&5
4113 if test "$cross_compiling" = yes; then
4115 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4121 #include <sys/types.h>
4122 #include <sys/time.h>
4124 #include <pthread.h>
4143 FD_SET(fildes[0], &rfds);
4145 /* we're not interested in any fds */
4146 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
4153 exit(1); /* if we exit here, the select blocked the whole process */
4156 int main(argc, argv)
4162 /* create a pipe to select */
4163 if(pipe(&fildes[0])) {
4168 #ifdef HAVE_PTHREAD_SETCONCURRENCY
4169 (void) pthread_setconcurrency(2);
4171 #ifdef HAVE_THR_SETCONCURRENCY
4172 /* Set Solaris LWP concurrency to 2 */
4173 thr_setconcurrency(2);
4177 pthread_create(&t, NULL, (void *) task, NULL);
4179 #if HAVE_SCHED_YIELD
4180 sched_yield(); /* make sure task runs first */
4182 #ifdef HAVE_PTHREAD_YIELD
4183 pthread_yield(); /* make sure task runs first */
4190 if { (eval echo configure:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4192 ol_pthread_select_yields=yes
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4197 ol_pthread_select_yields=no
4202 echo "$ac_t""$ol_pthread_select_yields" 1>&6
4204 if test $ol_pthread_select_yields = yes ; then
4205 ol_with_yielding_select=yes
4210 CPPFLAGS="$save_CPPFLAGS"
4213 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
4217 if test $ol_with_threads = posix ; then
4218 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
4222 if test $ol_with_threads = auto -o $ol_with_threads = mach ; then
4223 for ac_hdr in mach/cthreads.h
4225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4227 echo "configure:4228: checking for $ac_hdr" >&5
4228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 cat > conftest.$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4237 { (eval echo configure:4238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4238 ac_err=`grep -v '^ *+' conftest.out`
4239 if test -z "$ac_err"; then
4241 eval "ac_cv_header_$ac_safe=yes"
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4247 eval "ac_cv_header_$ac_safe=no"
4251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4252 echo "$ac_t""yes" 1>&6
4253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4254 cat >> confdefs.h <<EOF
4255 #define $ac_tr_hdr 1
4259 echo "$ac_t""no" 1>&6
4263 if test $ac_cv_header_mach_cthreads_h = yes ; then
4264 ol_with_threads=found
4266 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
4267 echo "configure:4268: checking for cthread_fork" >&5
4268 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
4269 echo $ac_n "(cached) $ac_c" 1>&6
4271 cat > conftest.$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4274 /* System header to define __stub macros and hopefully few prototypes,
4275 which can conflict with char cthread_fork(); below. */
4277 /* Override any gcc2 internal prototype to avoid an error. */
4278 /* We use char because int might match the return type of a gcc2
4279 builtin and then its argument prototype would still apply. */
4280 char cthread_fork();
4284 /* The GNU C library defines this for functions which it implements
4285 to always fail with ENOSYS. Some functions are actually named
4286 something starting with __ and the normal name is an alias. */
4287 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
4295 if { (eval echo configure:4296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4297 eval "ac_cv_func_cthread_fork=yes"
4299 echo "configure: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4302 eval "ac_cv_func_cthread_fork=no"
4307 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
4308 echo "$ac_t""yes" 1>&6
4311 echo "$ac_t""no" 1>&6
4315 if test $ol_link_threads = no ; then
4316 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
4317 echo "configure:4318: checking for cthread_fork with -all_load" >&5
4318 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4323 LIBS="-all_load $LIBS"
4324 cat > conftest.$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4327 #include <mach/cthreads.h>
4330 cthread_fork((void *)0, (void *)0);
4334 if { (eval echo configure:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4336 ol_cv_cthread_all_load=yes
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4341 ol_cv_cthread_all_load=no
4348 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
4350 if test $ol_cv_cthread_all_load = yes ; then
4351 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
4352 ol_link_threads=mach
4356 if test $ol_link_threads != no ; then
4357 : check for cthread specific functionality here
4358 cat >> confdefs.h <<\EOF
4359 #define HAVE_MACH_CTHREADS 1
4363 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
4367 if test $ol_with_threads = mach ; then
4368 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
4372 if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
4373 for ac_hdr in thread.h synch.h
4375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4377 echo "configure:4378: checking for $ac_hdr" >&5
4378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4387 { (eval echo configure:4388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4388 ac_err=`grep -v '^ *+' conftest.out`
4389 if test -z "$ac_err"; then
4391 eval "ac_cv_header_$ac_safe=yes"
4394 echo "configure: failed program was:" >&5
4395 cat conftest.$ac_ext >&5
4397 eval "ac_cv_header_$ac_safe=no"
4401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4402 echo "$ac_t""yes" 1>&6
4403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4404 cat >> confdefs.h <<EOF
4405 #define $ac_tr_hdr 1
4409 echo "$ac_t""no" 1>&6
4413 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
4414 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
4415 echo "configure:4416: checking for thr_create in -lthread" >&5
4416 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
4417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4420 ac_save_LIBS="$LIBS"
4421 LIBS="-lthread $LIBS"
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 /* Override any gcc2 internal prototype to avoid an error. */
4426 /* We use char because int might match the return type of a gcc2
4427 builtin and then its argument prototype would still apply. */
4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4436 eval "ac_cv_lib_$ac_lib_var=yes"
4438 echo "configure: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4441 eval "ac_cv_lib_$ac_lib_var=no"
4444 LIBS="$ac_save_LIBS"
4447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4451 echo "$ac_t""no" 1>&6
4456 if test $have_thr = yes ; then
4457 cat >> confdefs.h <<\EOF
4461 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
4464 if test $ol_with_yielding_select = auto ; then
4465 ol_with_yielding_select=yes
4470 for ac_hdr in lwp/lwp.h
4472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4474 echo "configure:4475: checking for $ac_hdr" >&5
4475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4484 { (eval echo configure:4485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4485 ac_err=`grep -v '^ *+' conftest.out`
4486 if test -z "$ac_err"; then
4488 eval "ac_cv_header_$ac_safe=yes"
4491 echo "configure: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4494 eval "ac_cv_header_$ac_safe=no"
4498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4499 echo "$ac_t""yes" 1>&6
4500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4501 cat >> confdefs.h <<EOF
4502 #define $ac_tr_hdr 1
4506 echo "$ac_t""no" 1>&6
4510 if test $ac_cv_header_lwp_lwp_h = yes ; then
4511 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
4512 echo "configure:4513: checking for lwp_create in -llwp" >&5
4513 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
4514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4515 echo $ac_n "(cached) $ac_c" 1>&6
4517 ac_save_LIBS="$LIBS"
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4522 /* Override any gcc2 internal prototype to avoid an error. */
4523 /* We use char because int might match the return type of a gcc2
4524 builtin and then its argument prototype would still apply. */
4531 if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4533 eval "ac_cv_lib_$ac_lib_var=yes"
4535 echo "configure: failed program was:" >&5
4536 cat conftest.$ac_ext >&5
4538 eval "ac_cv_lib_$ac_lib_var=no"
4541 LIBS="$ac_save_LIBS"
4544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4545 echo "$ac_t""yes" 1>&6
4548 echo "$ac_t""no" 1>&6
4553 if test $have_lwp = yes ; then
4554 cat >> confdefs.h <<\EOF
4558 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
4561 if test $ol_with_yielding_select = auto ; then
4562 ol_with_yielding_select=no
4568 if test $ol_with_yielding_select = yes ; then
4569 cat >> confdefs.h <<\EOF
4570 #define HAVE_YIELDING_SELECT 1
4575 if test $ol_with_threads = manual ; then
4578 echo "configure: warning: thread defines and link options must be set manually" 1>&2
4580 for ac_hdr in pthread.h sched.h
4582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4584 echo "configure:4585: checking for $ac_hdr" >&5
4585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4586 echo $ac_n "(cached) $ac_c" 1>&6
4588 cat > conftest.$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4594 { (eval echo configure:4595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4595 ac_err=`grep -v '^ *+' conftest.out`
4596 if test -z "$ac_err"; then
4598 eval "ac_cv_header_$ac_safe=yes"
4601 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4604 eval "ac_cv_header_$ac_safe=no"
4608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4609 echo "$ac_t""yes" 1>&6
4610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4611 cat >> confdefs.h <<EOF
4612 #define $ac_tr_hdr 1
4616 echo "$ac_t""no" 1>&6
4620 for ac_func in sched_yield pthread_yield
4622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4623 echo "configure:4624: checking for $ac_func" >&5
4624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 /* System header to define __stub macros and hopefully few prototypes,
4631 which can conflict with char $ac_func(); below. */
4633 /* Override any gcc2 internal prototype to avoid an error. */
4634 /* We use char because int might match the return type of a gcc2
4635 builtin and then its argument prototype would still apply. */
4640 /* The GNU C library defines this for functions which it implements
4641 to always fail with ENOSYS. Some functions are actually named
4642 something starting with __ and the normal name is an alias. */
4643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4651 if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4653 eval "ac_cv_func_$ac_func=yes"
4655 echo "configure: failed program was:" >&5
4656 cat conftest.$ac_ext >&5
4658 eval "ac_cv_func_$ac_func=no"
4663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4664 echo "$ac_t""yes" 1>&6
4665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4666 cat >> confdefs.h <<EOF
4667 #define $ac_tr_func 1
4671 echo "$ac_t""no" 1>&6
4676 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4677 echo "configure:4678: checking for LinuxThreads" >&5
4678 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4679 echo $ac_n "(cached) $ac_c" 1>&6
4682 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4683 if test "$res" -gt 0 ; then
4684 ol_cv_linux_threads=yes
4686 ol_cv_linux_threads=no
4691 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4694 for ac_hdr in mach/cthreads.h
4696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4698 echo "configure:4699: checking for $ac_hdr" >&5
4699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4708 { (eval echo configure:4709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4709 ac_err=`grep -v '^ *+' conftest.out`
4710 if test -z "$ac_err"; then
4712 eval "ac_cv_header_$ac_safe=yes"
4715 echo "configure: failed program was:" >&5
4716 cat conftest.$ac_ext >&5
4718 eval "ac_cv_header_$ac_safe=no"
4722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4723 echo "$ac_t""yes" 1>&6
4724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4725 cat >> confdefs.h <<EOF
4726 #define $ac_tr_hdr 1
4730 echo "$ac_t""no" 1>&6
4734 for ac_hdr in lwp/lwp.h
4736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4738 echo "configure:4739: checking for $ac_hdr" >&5
4739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4740 echo $ac_n "(cached) $ac_c" 1>&6
4742 cat > conftest.$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4748 { (eval echo configure:4749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4749 ac_err=`grep -v '^ *+' conftest.out`
4750 if test -z "$ac_err"; then
4752 eval "ac_cv_header_$ac_safe=yes"
4755 echo "configure: failed program was:" >&5
4756 cat conftest.$ac_ext >&5
4758 eval "ac_cv_header_$ac_safe=no"
4762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4763 echo "$ac_t""yes" 1>&6
4764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4765 cat >> confdefs.h <<EOF
4766 #define $ac_tr_hdr 1
4770 echo "$ac_t""no" 1>&6
4774 for ac_hdr in thread.h synch.h
4776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4778 echo "configure:4779: checking for $ac_hdr" >&5
4779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4782 cat > conftest.$ac_ext <<EOF
4783 #line 4784 "configure"
4784 #include "confdefs.h"
4787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4788 { (eval echo configure:4789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4789 ac_err=`grep -v '^ *+' conftest.out`
4790 if test -z "$ac_err"; then
4792 eval "ac_cv_header_$ac_safe=yes"
4795 echo "configure: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4798 eval "ac_cv_header_$ac_safe=no"
4802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4805 cat >> confdefs.h <<EOF
4806 #define $ac_tr_hdr 1
4810 echo "$ac_t""no" 1>&6
4816 if test $ol_with_threads != no ; then
4817 cat >> confdefs.h <<\EOF
4818 #define _REENTRANT 1
4821 cat >> confdefs.h <<\EOF
4822 #define _THREAD_SAFE 1
4825 cat >> confdefs.h <<\EOF
4826 #define _THREADSAFE 1
4830 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
4831 echo "configure:4832: checking for thread specific errno" >&5
4832 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4836 cat > conftest.$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4848 if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4850 ol_cv_errno_thread_specific=yes
4852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4855 ol_cv_errno_thread_specific=no
4861 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
4863 if test $ol_cv_errno_thread_specific != yes ; then
4864 LIBS="$LTHREAD_LIBS $LIBS"
4870 if test $ol_link_threads = no ; then
4871 if test $ol_with_threads = yes ; then
4872 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
4875 if test $ol_with_threads = auto ; then
4876 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
4880 cat >> confdefs.h <<\EOF
4881 #define NO_THREADS 1
4888 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
4889 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
4890 echo "configure:4891: checking for DB2 library" >&5
4891 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4895 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
4896 echo "configure:4897: checking for db_open in -ldb" >&5
4897 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
4898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4901 ac_save_LIBS="$LIBS"
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4906 /* Override any gcc2 internal prototype to avoid an error. */
4907 /* We use char because int might match the return type of a gcc2
4908 builtin and then its argument prototype would still apply. */
4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4917 eval "ac_cv_lib_$ac_lib_var=yes"
4919 echo "configure: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4922 eval "ac_cv_lib_$ac_lib_var=no"
4925 LIBS="$ac_save_LIBS"
4928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4929 echo "$ac_t""yes" 1>&6
4932 echo "$ac_t""no" 1>&6
4940 echo "$ac_t""$ol_cv_lib_db2" 1>&6
4944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4946 echo "configure:4947: checking for $ac_hdr" >&5
4947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4956 { (eval echo configure:4957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4957 ac_err=`grep -v '^ *+' conftest.out`
4958 if test -z "$ac_err"; then
4960 eval "ac_cv_header_$ac_safe=yes"
4963 echo "configure: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4966 eval "ac_cv_header_$ac_safe=no"
4970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4971 echo "$ac_t""yes" 1>&6
4972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4973 cat >> confdefs.h <<EOF
4974 #define $ac_tr_hdr 1
4978 echo "$ac_t""no" 1>&6
4982 if test $ac_cv_header_db_h = yes ; then
4983 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
4984 echo "configure:4985: checking if db.h is DB2" >&5
4985 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4994 /* this check could be improved */
4995 # ifdef DB_VERSION_MAJOR
4996 # if DB_VERSION_MAJOR == 2
5002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5003 egrep "__db_version_2" >/dev/null 2>&1; then
5005 ol_cv_header_db2=yes
5014 echo "$ac_t""$ol_cv_header_db2" 1>&6
5021 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
5022 echo "configure:5023: checking for Berkeley DB2" >&5
5023 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
5024 echo $ac_n "(cached) $ac_c" 1>&6
5027 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
5028 ol_cv_berkeley_db2=no
5030 ol_cv_berkeley_db2=yes
5035 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
5036 if test $ol_cv_berkeley_db2 = yes ; then
5037 cat >> confdefs.h <<\EOF
5038 #define HAVE_BERKELEY_DB2 1
5044 if test $ol_cv_berkeley_db2 = yes ; then
5046 ol_with_ldbm_api=db2
5048 if test $ol_with_ldbm_type = hash ; then
5049 cat >> confdefs.h <<\EOF
5050 #define LDBM_USE_DBHASH 1
5054 cat >> confdefs.h <<\EOF
5055 #define LDBM_USE_DBBTREE 1
5060 if test $ol_cv_lib_db2 != yes ; then
5061 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
5066 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
5067 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
5068 echo "configure:5069: checking for Berkeley DB library" >&5
5069 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5073 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
5074 echo "configure:5075: checking for dbopen" >&5
5075 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
5076 echo $ac_n "(cached) $ac_c" 1>&6
5078 cat > conftest.$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5081 /* System header to define __stub macros and hopefully few prototypes,
5082 which can conflict with char dbopen(); below. */
5084 /* Override any gcc2 internal prototype to avoid an error. */
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5091 /* The GNU C library defines this for functions which it implements
5092 to always fail with ENOSYS. Some functions are actually named
5093 something starting with __ and the normal name is an alias. */
5094 #if defined (__stub_dbopen) || defined (__stub___dbopen)
5102 if { (eval echo configure:5103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5104 eval "ac_cv_func_dbopen=yes"
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5109 eval "ac_cv_func_dbopen=no"
5114 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
5115 echo "$ac_t""yes" 1>&6
5118 echo "$ac_t""no" 1>&6
5120 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
5121 echo "configure:5122: checking for dbopen in -ldb" >&5
5122 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
5123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5124 echo $ac_n "(cached) $ac_c" 1>&6
5126 ac_save_LIBS="$LIBS"
5128 cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure"
5130 #include "confdefs.h"
5131 /* Override any gcc2 internal prototype to avoid an error. */
5132 /* We use char because int might match the return type of a gcc2
5133 builtin and then its argument prototype would still apply. */
5140 if { (eval echo configure:5141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5142 eval "ac_cv_lib_$ac_lib_var=yes"
5144 echo "configure: failed program was:" >&5
5145 cat conftest.$ac_ext >&5
5147 eval "ac_cv_lib_$ac_lib_var=no"
5150 LIBS="$ac_save_LIBS"
5153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5154 echo "$ac_t""yes" 1>&6
5157 echo "$ac_t""no" 1>&6
5168 echo "$ac_t""$ol_cv_lib_db" 1>&6
5171 for ac_hdr in db_185.h
5173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5175 echo "configure:5176: checking for $ac_hdr" >&5
5176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5177 echo $ac_n "(cached) $ac_c" 1>&6
5179 cat > conftest.$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5185 { (eval echo configure:5186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5186 ac_err=`grep -v '^ *+' conftest.out`
5187 if test -z "$ac_err"; then
5189 eval "ac_cv_header_$ac_safe=yes"
5192 echo "configure: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5195 eval "ac_cv_header_$ac_safe=no"
5199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5200 echo "$ac_t""yes" 1>&6
5201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5202 cat >> confdefs.h <<EOF
5203 #define $ac_tr_hdr 1
5207 echo "$ac_t""no" 1>&6
5211 if test $ol_cv_header_db2 = yes ; then
5213 ol_cv_header_db=$ac_cv_header_db_185_h
5215 ol_cv_header_db=$ac_cv_header_db_h
5220 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
5221 echo "configure:5222: checking for Berkeley DB" >&5
5222 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5226 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
5227 ol_cv_berkeley_db=no
5229 ol_cv_berkeley_db=yes
5234 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
5235 if test $ol_cv_berkeley_db = yes ; then
5236 cat >> confdefs.h <<\EOF
5237 #define HAVE_BERKELEY_DB 1
5243 if test $ol_cv_berkeley_db = yes ; then
5247 if test $ol_with_ldbm_type = hash ; then
5248 cat >> confdefs.h <<\EOF
5249 #define LDBM_USE_DBHASH 1
5253 cat >> confdefs.h <<\EOF
5254 #define LDBM_USE_DBBTREE 1
5259 if test $ol_cv_lib_db != yes ; then
5260 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
5265 if test $ol_with_ldbm_api = manual ; then
5268 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
5270 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
5272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5274 echo "configure:5275: checking for $ac_hdr" >&5
5275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5278 cat > conftest.$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5284 { (eval echo configure:5285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5285 ac_err=`grep -v '^ *+' conftest.out`
5286 if test -z "$ac_err"; then
5288 eval "ac_cv_header_$ac_safe=yes"
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5294 eval "ac_cv_header_$ac_safe=no"
5298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5299 echo "$ac_t""yes" 1>&6
5300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5301 cat >> confdefs.h <<EOF
5302 #define $ac_tr_hdr 1
5306 echo "$ac_t""no" 1>&6
5312 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
5313 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
5314 ol_with_ldbm_api=none
5317 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
5318 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
5319 echo "configure:5320: checking for GDBM library" >&5
5320 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5324 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
5325 echo "configure:5326: checking for gdbm_open" >&5
5326 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
5327 echo $ac_n "(cached) $ac_c" 1>&6
5329 cat > conftest.$ac_ext <<EOF
5330 #line 5331 "configure"
5331 #include "confdefs.h"
5332 /* System header to define __stub macros and hopefully few prototypes,
5333 which can conflict with char gdbm_open(); below. */
5335 /* Override any gcc2 internal prototype to avoid an error. */
5336 /* We use char because int might match the return type of a gcc2
5337 builtin and then its argument prototype would still apply. */
5342 /* The GNU C library defines this for functions which it implements
5343 to always fail with ENOSYS. Some functions are actually named
5344 something starting with __ and the normal name is an alias. */
5345 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
5353 if { (eval echo configure:5354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5355 eval "ac_cv_func_gdbm_open=yes"
5357 echo "configure: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5360 eval "ac_cv_func_gdbm_open=no"
5365 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
5366 echo "$ac_t""yes" 1>&6
5369 echo "$ac_t""no" 1>&6
5371 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
5372 echo "configure:5373: checking for gdbm_open in -lgdbm" >&5
5373 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
5374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5375 echo $ac_n "(cached) $ac_c" 1>&6
5377 ac_save_LIBS="$LIBS"
5379 cat > conftest.$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5382 /* Override any gcc2 internal prototype to avoid an error. */
5383 /* We use char because int might match the return type of a gcc2
5384 builtin and then its argument prototype would still apply. */
5391 if { (eval echo configure:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5393 eval "ac_cv_lib_$ac_lib_var=yes"
5395 echo "configure: failed program was:" >&5
5396 cat conftest.$ac_ext >&5
5398 eval "ac_cv_lib_$ac_lib_var=no"
5401 LIBS="$ac_save_LIBS"
5404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5405 echo "$ac_t""yes" 1>&6
5406 ol_cv_lib_gdbm=-lgdbm
5408 echo "$ac_t""no" 1>&6
5419 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
5422 for ac_hdr in gdbm.h
5424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5426 echo "configure:5427: checking for $ac_hdr" >&5
5427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5428 echo $ac_n "(cached) $ac_c" 1>&6
5430 cat > conftest.$ac_ext <<EOF
5431 #line 5432 "configure"
5432 #include "confdefs.h"
5435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5436 { (eval echo configure:5437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5437 ac_err=`grep -v '^ *+' conftest.out`
5438 if test -z "$ac_err"; then
5440 eval "ac_cv_header_$ac_safe=yes"
5443 echo "configure: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5446 eval "ac_cv_header_$ac_safe=no"
5450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5451 echo "$ac_t""yes" 1>&6
5452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5453 cat >> confdefs.h <<EOF
5454 #define $ac_tr_hdr 1
5458 echo "$ac_t""no" 1>&6
5462 echo $ac_n "checking for db""... $ac_c" 1>&6
5463 echo "configure:5464: checking for db" >&5
5464 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
5465 echo $ac_n "(cached) $ac_c" 1>&6
5468 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
5476 echo "$ac_t""$ol_cv_gdbm" 1>&6
5477 if test $ol_cv_gdbm = yes ; then
5478 cat >> confdefs.h <<\EOF
5485 if test $ol_cv_gdbm = yes ; then
5487 ol_with_ldbm_api=gdbm
5489 if test $ol_cv_lib_gdbm != yes ; then
5490 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
5495 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
5496 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
5497 echo "configure:5498: checking for NDBM library" >&5
5498 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5502 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
5503 echo "configure:5504: checking for dbm_open" >&5
5504 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5507 cat > conftest.$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 /* System header to define __stub macros and hopefully few prototypes,
5511 which can conflict with char dbm_open(); below. */
5513 /* Override any gcc2 internal prototype to avoid an error. */
5514 /* We use char because int might match the return type of a gcc2
5515 builtin and then its argument prototype would still apply. */
5520 /* The GNU C library defines this for functions which it implements
5521 to always fail with ENOSYS. Some functions are actually named
5522 something starting with __ and the normal name is an alias. */
5523 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5533 eval "ac_cv_func_dbm_open=yes"
5535 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5538 eval "ac_cv_func_dbm_open=no"
5543 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
5544 echo "$ac_t""yes" 1>&6
5547 echo "$ac_t""no" 1>&6
5549 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
5550 echo "configure:5551: checking for dbm_open in -lndbm" >&5
5551 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
5552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5553 echo $ac_n "(cached) $ac_c" 1>&6
5555 ac_save_LIBS="$LIBS"
5557 cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 /* Override any gcc2 internal prototype to avoid an error. */
5561 /* We use char because int might match the return type of a gcc2
5562 builtin and then its argument prototype would still apply. */
5569 if { (eval echo configure:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5571 eval "ac_cv_lib_$ac_lib_var=yes"
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5576 eval "ac_cv_lib_$ac_lib_var=no"
5579 LIBS="$ac_save_LIBS"
5582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5583 echo "$ac_t""yes" 1>&6
5584 ol_cv_lib_ndbm=-lndbm
5586 echo "$ac_t""no" 1>&6
5588 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
5589 echo "configure:5590: checking for dbm_open in -ldbm" >&5
5590 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
5591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5594 ac_save_LIBS="$LIBS"
5596 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5599 /* Override any gcc2 internal prototype to avoid an error. */
5600 /* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */
5608 if { (eval echo configure:5609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5610 eval "ac_cv_lib_$ac_lib_var=yes"
5612 echo "configure: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5615 eval "ac_cv_lib_$ac_lib_var=no"
5618 LIBS="$ac_save_LIBS"
5621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5622 echo "$ac_t""yes" 1>&6
5623 ol_cv_lib_ndbm=-ldbm
5625 echo "$ac_t""no" 1>&6
5638 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
5641 for ac_hdr in ndbm.h
5643 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5645 echo "configure:5646: checking for $ac_hdr" >&5
5646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5649 cat > conftest.$ac_ext <<EOF
5650 #line 5651 "configure"
5651 #include "confdefs.h"
5654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5655 { (eval echo configure:5656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5656 ac_err=`grep -v '^ *+' conftest.out`
5657 if test -z "$ac_err"; then
5659 eval "ac_cv_header_$ac_safe=yes"
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5665 eval "ac_cv_header_$ac_safe=no"
5669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5670 echo "$ac_t""yes" 1>&6
5671 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5672 cat >> confdefs.h <<EOF
5673 #define $ac_tr_hdr 1
5677 echo "$ac_t""no" 1>&6
5681 echo $ac_n "checking for db""... $ac_c" 1>&6
5682 echo "configure:5683: checking for db" >&5
5683 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
5684 echo $ac_n "(cached) $ac_c" 1>&6
5687 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
5695 echo "$ac_t""$ol_cv_ndbm" 1>&6
5696 if test $ol_cv_ndbm = yes ; then
5697 cat >> confdefs.h <<\EOF
5704 if test $ol_cv_ndbm = yes ; then
5705 if test $ol_with_ldbm_api = auto ; then
5706 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
5710 ol_with_ldbm_api=ndbm
5712 if test $ol_cv_lib_ndbm != yes ; then
5713 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
5718 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
5719 echo "configure: warning: could not find suitable LDBM backend" 1>&2
5720 if test $ol_enable_ldbm = yes ; then
5721 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
5724 echo "configure: warning: disabling LDBM" 1>&2
5728 if test $ol_enable_wrappers = yes ; then
5729 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
5730 echo "configure:5731: checking for hosts_access in -lwrap" >&5
5731 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
5732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5733 echo $ac_n "(cached) $ac_c" 1>&6
5735 ac_save_LIBS="$LIBS"
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5740 /* Override any gcc2 internal prototype to avoid an error. */
5741 /* We use char because int might match the return type of a gcc2
5742 builtin and then its argument prototype would still apply. */
5743 char hosts_access();
5749 if { (eval echo configure:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5751 eval "ac_cv_lib_$ac_lib_var=yes"
5753 echo "configure: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5756 eval "ac_cv_lib_$ac_lib_var=no"
5759 LIBS="$ac_save_LIBS"
5762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5763 echo "$ac_t""yes" 1>&6
5766 echo "$ac_t""no" 1>&6
5771 if test $have_wrappers = yes ; then
5772 cat >> confdefs.h <<\EOF
5776 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
5778 echo "configure: warning: could not find -lwrap" 1>&2
5779 if test $ol_enable_wrappers = yes ; then
5780 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
5783 echo "configure: warning: disabling wrappers support" 1>&2
5784 ol_enable_wrappers=no
5789 # ud needs termcap (should insert check here)
5791 for ac_hdr in termcap.h ncurses.h
5793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5795 echo "configure:5796: checking for $ac_hdr" >&5
5796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5797 echo $ac_n "(cached) $ac_c" 1>&6
5799 cat > conftest.$ac_ext <<EOF
5800 #line 5801 "configure"
5801 #include "confdefs.h"
5804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5805 { (eval echo configure:5806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5806 ac_err=`grep -v '^ *+' conftest.out`
5807 if test -z "$ac_err"; then
5809 eval "ac_cv_header_$ac_safe=yes"
5812 echo "configure: failed program was:" >&5
5813 cat conftest.$ac_ext >&5
5815 eval "ac_cv_header_$ac_safe=no"
5819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5820 echo "$ac_t""yes" 1>&6
5821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5822 cat >> confdefs.h <<EOF
5823 #define $ac_tr_hdr 1
5827 echo "$ac_t""no" 1>&6
5832 if test $ol_link_termcap = no ; then
5833 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
5834 echo "configure:5835: checking for tputs in -ltermcap" >&5
5835 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
5836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5839 ac_save_LIBS="$LIBS"
5840 LIBS="-ltermcap $LIBS"
5841 cat > conftest.$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5844 /* Override any gcc2 internal prototype to avoid an error. */
5845 /* We use char because int might match the return type of a gcc2
5846 builtin and then its argument prototype would still apply. */
5853 if { (eval echo configure:5854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5855 eval "ac_cv_lib_$ac_lib_var=yes"
5857 echo "configure: failed program was:" >&5
5858 cat conftest.$ac_ext >&5
5860 eval "ac_cv_lib_$ac_lib_var=no"
5863 LIBS="$ac_save_LIBS"
5866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5867 echo "$ac_t""yes" 1>&6
5870 echo "$ac_t""no" 1>&6
5874 if test $have_termcap = yes ; then
5875 cat >> confdefs.h <<\EOF
5876 #define HAVE_TERMCAP 1
5880 TERMCAP_LIBS=-ltermcap
5884 if test $ol_link_termcap = no ; then
5885 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
5886 echo "configure:5887: checking for initscr in -lncurses" >&5
5887 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
5888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5889 echo $ac_n "(cached) $ac_c" 1>&6
5891 ac_save_LIBS="$LIBS"
5892 LIBS="-lncurses $LIBS"
5893 cat > conftest.$ac_ext <<EOF
5894 #line 5895 "configure"
5895 #include "confdefs.h"
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5905 if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5907 eval "ac_cv_lib_$ac_lib_var=yes"
5909 echo "configure: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5912 eval "ac_cv_lib_$ac_lib_var=no"
5915 LIBS="$ac_save_LIBS"
5918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5919 echo "$ac_t""yes" 1>&6
5922 echo "$ac_t""no" 1>&6
5926 if test $have_ncurses = yes ; then
5927 cat >> confdefs.h <<\EOF
5928 #define HAVE_NCURSES 1
5932 TERMCAP_LIBS=-lncurses
5936 if test $ol_link_termcap = no ; then
5937 cat >> confdefs.h <<\EOF
5938 #define NO_TERMCAP 1
5944 # FreeBSD (and others) have crypt(3) in -lcrypt
5945 if test $ol_enable_crypt != no ; then
5946 echo $ac_n "checking for crypt""... $ac_c" 1>&6
5947 echo "configure:5948: checking for crypt" >&5
5948 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5951 cat > conftest.$ac_ext <<EOF
5952 #line 5953 "configure"
5953 #include "confdefs.h"
5954 /* System header to define __stub macros and hopefully few prototypes,
5955 which can conflict with char crypt(); below. */
5957 /* Override any gcc2 internal prototype to avoid an error. */
5958 /* We use char because int might match the return type of a gcc2
5959 builtin and then its argument prototype would still apply. */
5964 /* The GNU C library defines this for functions which it implements
5965 to always fail with ENOSYS. Some functions are actually named
5966 something starting with __ and the normal name is an alias. */
5967 #if defined (__stub_crypt) || defined (__stub___crypt)
5975 if { (eval echo configure:5976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5977 eval "ac_cv_func_crypt=yes"
5979 echo "configure: failed program was:" >&5
5980 cat conftest.$ac_ext >&5
5982 eval "ac_cv_func_crypt=no"
5987 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
5988 echo "$ac_t""yes" 1>&6
5991 echo "$ac_t""no" 1>&6
5993 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
5994 echo "configure:5995: checking for crypt in -lcrypt" >&5
5995 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
5996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5997 echo $ac_n "(cached) $ac_c" 1>&6
5999 ac_save_LIBS="$LIBS"
6000 LIBS="-lcrypt $LIBS"
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6004 /* Override any gcc2 internal prototype to avoid an error. */
6005 /* We use char because int might match the return type of a gcc2
6006 builtin and then its argument prototype would still apply. */
6013 if { (eval echo configure:6014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6015 eval "ac_cv_lib_$ac_lib_var=yes"
6017 echo "configure: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6020 eval "ac_cv_lib_$ac_lib_var=no"
6023 LIBS="$ac_save_LIBS"
6026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6027 echo "$ac_t""yes" 1>&6
6028 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
6031 echo "$ac_t""no" 1>&6
6038 if test $have_crypt = yes ; then
6039 cat >> confdefs.h <<\EOF
6040 #define HAVE_CRYPT 1
6044 echo "configure: warning: could not find crypt" 1>&2
6045 if test $ol_enable_crypt = yes ; then
6046 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
6049 echo "configure: warning: disabling crypt support" 1>&2
6054 # FreeBSD (and others) have setproctitle(3) in -lutil
6055 if test $ol_enable_proctitle != no ; then
6056 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
6057 echo "configure:6058: checking for setproctitle" >&5
6058 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6
6061 cat > conftest.$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6064 /* System header to define __stub macros and hopefully few prototypes,
6065 which can conflict with char setproctitle(); below. */
6067 /* Override any gcc2 internal prototype to avoid an error. */
6068 /* We use char because int might match the return type of a gcc2
6069 builtin and then its argument prototype would still apply. */
6070 char setproctitle();
6074 /* The GNU C library defines this for functions which it implements
6075 to always fail with ENOSYS. Some functions are actually named
6076 something starting with __ and the normal name is an alias. */
6077 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
6085 if { (eval echo configure:6086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6087 eval "ac_cv_func_setproctitle=yes"
6089 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6092 eval "ac_cv_func_setproctitle=no"
6097 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
6098 echo "$ac_t""yes" 1>&6
6099 have_setproctitle=yes
6101 echo "$ac_t""no" 1>&6
6103 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
6104 echo "configure:6105: checking for setproctitle in -lutil" >&5
6105 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
6106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6109 ac_save_LIBS="$LIBS"
6111 cat > conftest.$ac_ext <<EOF
6112 #line 6113 "configure"
6113 #include "confdefs.h"
6114 /* Override any gcc2 internal prototype to avoid an error. */
6115 /* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6117 char setproctitle();
6123 if { (eval echo configure:6124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6125 eval "ac_cv_lib_$ac_lib_var=yes"
6127 echo "configure: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6130 eval "ac_cv_lib_$ac_lib_var=no"
6133 LIBS="$ac_save_LIBS"
6136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6137 echo "$ac_t""yes" 1>&6
6138 have_setproctitle=yes
6139 LUTIL_LIBS="$LUTIL_LIBS -lutil"
6141 echo "$ac_t""no" 1>&6
6142 have_setproctitle=no
6143 LIBOBJS="$LIBOBJS setproctitle.o"
6149 if test $have_setproctitle = yes ; then
6150 cat >> confdefs.h <<\EOF
6151 #define HAVE_SETPROCTITLE 1
6157 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6158 echo "configure:6159: checking for ANSI C header files" >&5
6159 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6160 echo $ac_n "(cached) $ac_c" 1>&6
6162 cat > conftest.$ac_ext <<EOF
6163 #line 6164 "configure"
6164 #include "confdefs.h"
6170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6171 { (eval echo configure:6172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6172 ac_err=`grep -v '^ *+' conftest.out`
6173 if test -z "$ac_err"; then
6175 ac_cv_header_stdc=yes
6178 echo "configure: failed program was:" >&5
6179 cat conftest.$ac_ext >&5
6181 ac_cv_header_stdc=no
6185 if test $ac_cv_header_stdc = yes; then
6186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6187 cat > conftest.$ac_ext <<EOF
6188 #line 6189 "configure"
6189 #include "confdefs.h"
6192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6193 egrep "memchr" >/dev/null 2>&1; then
6197 ac_cv_header_stdc=no
6203 if test $ac_cv_header_stdc = yes; then
6204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6205 cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure"
6207 #include "confdefs.h"
6210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6211 egrep "free" >/dev/null 2>&1; then
6215 ac_cv_header_stdc=no
6221 if test $ac_cv_header_stdc = yes; then
6222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6223 if test "$cross_compiling" = yes; then
6226 cat > conftest.$ac_ext <<EOF
6227 #line 6228 "configure"
6228 #include "confdefs.h"
6230 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6231 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6232 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6233 int main () { int i; for (i = 0; i < 256; i++)
6234 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6242 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6245 ac_cv_header_stdc=no
6253 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6254 if test $ac_cv_header_stdc = yes; then
6255 cat >> confdefs.h <<\EOF
6256 #define STDC_HEADERS 1
6262 if test $ac_cv_header_stdc != yes; then
6263 echo "configure: warning: could not Standard C compliant headers" 1>&2
6267 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6270 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6271 echo "configure:6272: checking for $ac_hdr that defines DIR" >&5
6272 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6275 cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6278 #include <sys/types.h>
6284 if { (eval echo configure:6285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6286 eval "ac_cv_header_dirent_$ac_safe=yes"
6288 echo "configure: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6291 eval "ac_cv_header_dirent_$ac_safe=no"
6295 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6296 echo "$ac_t""yes" 1>&6
6297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6298 cat >> confdefs.h <<EOF
6299 #define $ac_tr_hdr 1
6301 ac_header_dirent=$ac_hdr; break
6303 echo "$ac_t""no" 1>&6
6306 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6307 if test $ac_header_dirent = dirent.h; then
6308 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6309 echo "configure:6310: checking for opendir in -ldir" >&5
6310 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6314 ac_save_LIBS="$LIBS"
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 /* Override any gcc2 internal prototype to avoid an error. */
6320 /* We use char because int might match the return type of a gcc2
6321 builtin and then its argument prototype would still apply. */
6328 if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6330 eval "ac_cv_lib_$ac_lib_var=yes"
6332 echo "configure: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6335 eval "ac_cv_lib_$ac_lib_var=no"
6338 LIBS="$ac_save_LIBS"
6341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6342 echo "$ac_t""yes" 1>&6
6345 echo "$ac_t""no" 1>&6
6349 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6350 echo "configure:6351: checking for opendir in -lx" >&5
6351 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6353 echo $ac_n "(cached) $ac_c" 1>&6
6355 ac_save_LIBS="$LIBS"
6357 cat > conftest.$ac_ext <<EOF
6358 #line 6359 "configure"
6359 #include "confdefs.h"
6360 /* Override any gcc2 internal prototype to avoid an error. */
6361 /* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6369 if { (eval echo configure:6370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6371 eval "ac_cv_lib_$ac_lib_var=yes"
6373 echo "configure: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6376 eval "ac_cv_lib_$ac_lib_var=no"
6379 LIBS="$ac_save_LIBS"
6382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6383 echo "$ac_t""yes" 1>&6
6386 echo "$ac_t""no" 1>&6
6391 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6392 echo "configure:6393: checking for sys/wait.h that is POSIX.1 compatible" >&5
6393 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6394 echo $ac_n "(cached) $ac_c" 1>&6
6396 cat > conftest.$ac_ext <<EOF
6397 #line 6398 "configure"
6398 #include "confdefs.h"
6399 #include <sys/types.h>
6400 #include <sys/wait.h>
6402 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6405 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6410 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6413 if { (eval echo configure:6414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6415 ac_cv_header_sys_wait_h=yes
6417 echo "configure: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6420 ac_cv_header_sys_wait_h=no
6425 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6426 if test $ac_cv_header_sys_wait_h = yes; then
6427 cat >> confdefs.h <<\EOF
6428 #define HAVE_SYS_WAIT_H 1
6433 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
6434 echo "configure:6435: checking POSIX termios" >&5
6435 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
6436 echo $ac_n "(cached) $ac_c" 1>&6
6438 cat > conftest.$ac_ext <<EOF
6439 #line 6440 "configure"
6440 #include "confdefs.h"
6441 #include <sys/types.h>
6443 #include <termios.h>
6445 /* SunOS 4.0.3 has termios.h but not the library calls. */
6449 if { (eval echo configure:6450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6451 am_cv_sys_posix_termios=yes
6453 echo "configure: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6456 am_cv_sys_posix_termios=no
6461 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
6464 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
6465 echo "configure:6466: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
6466 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
6467 echo $ac_n "(cached) $ac_c" 1>&6
6469 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
6471 gwinsz_in_termios_h=no
6472 if test $am_cv_sys_posix_termios = yes; then
6473 cat > conftest.$ac_ext <<EOF
6474 #line 6475 "configure"
6475 #include "confdefs.h"
6476 #include <sys/types.h>
6477 # include <termios.h>
6483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 egrep "yes" >/dev/null 2>&1; then
6486 gwinsz_in_termios_h=yes
6492 if test $gwinsz_in_termios_h = no; then
6493 cat > conftest.$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6496 #include <sys/types.h>
6497 # include <sys/ioctl.h>
6503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6504 egrep "yes" >/dev/null 2>&1; then
6506 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
6514 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
6515 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
6516 cat >> confdefs.h <<\EOF
6517 #define GWINSZ_IN_SYS_IOCTL 1
6522 if test $am_cv_sys_posix_termios = yes ; then
6523 cat >> confdefs.h <<\EOF
6524 #define HAVE_POSIX_TERMIOS 1
6562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6564 echo "configure:6565: checking for $ac_hdr" >&5
6565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6566 echo $ac_n "(cached) $ac_c" 1>&6
6568 cat > conftest.$ac_ext <<EOF
6569 #line 6570 "configure"
6570 #include "confdefs.h"
6573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6574 { (eval echo configure:6575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6575 ac_err=`grep -v '^ *+' conftest.out`
6576 if test -z "$ac_err"; then
6578 eval "ac_cv_header_$ac_safe=yes"
6581 echo "configure: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6584 eval "ac_cv_header_$ac_safe=no"
6588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6589 echo "$ac_t""yes" 1>&6
6590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6591 cat >> confdefs.h <<EOF
6592 #define $ac_tr_hdr 1
6596 echo "$ac_t""no" 1>&6
6601 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6602 echo "configure:6603: checking for uid_t in sys/types.h" >&5
6603 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6606 cat > conftest.$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6609 #include <sys/types.h>
6611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6612 egrep "uid_t" >/dev/null 2>&1; then
6614 ac_cv_type_uid_t=yes
6623 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6624 if test $ac_cv_type_uid_t = no; then
6625 cat >> confdefs.h <<\EOF
6629 cat >> confdefs.h <<\EOF
6635 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
6636 echo "configure:6637: checking type of array argument to getgroups" >&5
6637 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
6638 echo $ac_n "(cached) $ac_c" 1>&6
6640 if test "$cross_compiling" = yes; then
6641 ac_cv_type_getgroups=cross
6643 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6647 /* Thanks to Mike Rendell for this test. */
6648 #include <sys/types.h>
6651 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6656 union { gid_t gval; long lval; } val;
6659 for (i = 0; i < NGID; i++)
6660 gidset[i] = val.gval;
6661 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6663 /* Exit non-zero if getgroups seems to require an array of ints. This
6664 happens when gid_t is short but getgroups modifies an array of ints. */
6665 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6669 if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6671 ac_cv_type_getgroups=gid_t
6673 echo "configure: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6676 ac_cv_type_getgroups=int
6681 if test $ac_cv_type_getgroups = cross; then
6682 cat > conftest.$ac_ext <<EOF
6683 #line 6684 "configure"
6684 #include "confdefs.h"
6687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6688 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6690 ac_cv_type_getgroups=gid_t
6693 ac_cv_type_getgroups=int
6700 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
6701 cat >> confdefs.h <<EOF
6702 #define GETGROUPS_T $ac_cv_type_getgroups
6705 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6706 echo "configure:6707: checking for mode_t" >&5
6707 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6708 echo $ac_n "(cached) $ac_c" 1>&6
6710 cat > conftest.$ac_ext <<EOF
6711 #line 6712 "configure"
6712 #include "confdefs.h"
6713 #include <sys/types.h>
6719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6720 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6722 ac_cv_type_mode_t=yes
6725 ac_cv_type_mode_t=no
6730 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6731 if test $ac_cv_type_mode_t = no; then
6732 cat >> confdefs.h <<\EOF
6738 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6739 echo "configure:6740: checking for off_t" >&5
6740 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6746 #include <sys/types.h>
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6755 ac_cv_type_off_t=yes
6763 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6764 if test $ac_cv_type_off_t = no; then
6765 cat >> confdefs.h <<\EOF
6771 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6772 echo "configure:6773: checking for pid_t" >&5
6773 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6774 echo $ac_n "(cached) $ac_c" 1>&6
6776 cat > conftest.$ac_ext <<EOF
6777 #line 6778 "configure"
6778 #include "confdefs.h"
6779 #include <sys/types.h>
6785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6786 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6788 ac_cv_type_pid_t=yes
6796 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6797 if test $ac_cv_type_pid_t = no; then
6798 cat >> confdefs.h <<\EOF
6804 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
6805 echo "configure:6806: checking for ptrdiff_t" >&5
6806 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6817 if { (eval echo configure:6818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6819 am_cv_type_ptrdiff_t=yes
6821 echo "configure: failed program was:" >&5
6822 cat conftest.$ac_ext >&5
6824 am_cv_type_ptrdiff_t=no
6829 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
6830 if test $am_cv_type_ptrdiff_t = yes; then
6831 cat >> confdefs.h <<\EOF
6832 #define HAVE_PTRDIFF_T 1
6837 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6838 echo "configure:6839: checking return type of signal handlers" >&5
6839 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6840 echo $ac_n "(cached) $ac_c" 1>&6
6842 cat > conftest.$ac_ext <<EOF
6843 #line 6844 "configure"
6844 #include "confdefs.h"
6845 #include <sys/types.h>
6851 extern "C" void (*signal (int, void (*)(int)))(int);
6853 void (*signal ()) ();
6860 if { (eval echo configure:6861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6862 ac_cv_type_signal=void
6864 echo "configure: failed program was:" >&5
6865 cat conftest.$ac_ext >&5
6867 ac_cv_type_signal=int
6872 echo "$ac_t""$ac_cv_type_signal" 1>&6
6873 cat >> confdefs.h <<EOF
6874 #define RETSIGTYPE $ac_cv_type_signal
6878 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6879 echo "configure:6880: checking for size_t" >&5
6880 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6881 echo $ac_n "(cached) $ac_c" 1>&6
6883 cat > conftest.$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6886 #include <sys/types.h>
6892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6893 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6895 ac_cv_type_size_t=yes
6898 ac_cv_type_size_t=no
6903 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6904 if test $ac_cv_type_size_t = no; then
6905 cat >> confdefs.h <<\EOF
6906 #define size_t unsigned
6911 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
6912 echo "configure:6913: checking for st_blksize in struct stat" >&5
6913 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
6914 echo $ac_n "(cached) $ac_c" 1>&6
6916 cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6919 #include <sys/types.h>
6920 #include <sys/stat.h>
6922 struct stat s; s.st_blksize;
6925 if { (eval echo configure:6926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6927 ac_cv_struct_st_blksize=yes
6929 echo "configure: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6932 ac_cv_struct_st_blksize=no
6937 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
6938 if test $ac_cv_struct_st_blksize = yes; then
6939 cat >> confdefs.h <<\EOF
6940 #define HAVE_ST_BLKSIZE 1
6945 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6946 echo "configure:6947: checking whether time.h and sys/time.h may both be included" >&5
6947 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
6948 echo $ac_n "(cached) $ac_c" 1>&6
6950 cat > conftest.$ac_ext <<EOF
6951 #line 6952 "configure"
6952 #include "confdefs.h"
6953 #include <sys/types.h>
6954 #include <sys/time.h>
6960 if { (eval echo configure:6961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6962 ac_cv_header_time=yes
6964 echo "configure: failed program was:" >&5
6965 cat conftest.$ac_ext >&5
6967 ac_cv_header_time=no
6972 echo "$ac_t""$ac_cv_header_time" 1>&6
6973 if test $ac_cv_header_time = yes; then
6974 cat >> confdefs.h <<\EOF
6975 #define TIME_WITH_SYS_TIME 1
6980 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6981 echo "configure:6982: checking whether struct tm is in sys/time.h or time.h" >&5
6982 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6983 echo $ac_n "(cached) $ac_c" 1>&6
6985 cat > conftest.$ac_ext <<EOF
6986 #line 6987 "configure"
6987 #include "confdefs.h"
6988 #include <sys/types.h>
6991 struct tm *tp; tp->tm_sec;
6994 if { (eval echo configure:6995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6996 ac_cv_struct_tm=time.h
6998 echo "configure: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7001 ac_cv_struct_tm=sys/time.h
7006 echo "$ac_t""$ac_cv_struct_tm" 1>&6
7007 if test $ac_cv_struct_tm = sys/time.h; then
7008 cat >> confdefs.h <<\EOF
7009 #define TM_IN_SYS_TIME 1
7016 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
7017 echo "configure:7018: checking if toupper() requires islower()" >&5
7018 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
7019 echo $ac_n "(cached) $ac_c" 1>&6
7022 if test "$cross_compiling" = yes; then
7023 ol_cv_c_upper_lower=safe
7025 cat > conftest.$ac_ext <<EOF
7026 #line 7027 "configure"
7027 #include "confdefs.h"
7032 if ('C' == toupper('C'))
7038 if { (eval echo configure:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7040 ol_cv_c_upper_lower=no
7042 echo "configure: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7045 ol_cv_c_upper_lower=yes
7052 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
7053 if test $ol_cv_c_upper_lower != no ; then
7054 cat >> confdefs.h <<\EOF
7055 #define C_UPPER_LOWER 1
7060 echo $ac_n "checking for working const""... $ac_c" 1>&6
7061 echo "configure:7062: checking for working const" >&5
7062 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7063 echo $ac_n "(cached) $ac_c" 1>&6
7065 cat > conftest.$ac_ext <<EOF
7066 #line 7067 "configure"
7067 #include "confdefs.h"
7071 /* Ultrix mips cc rejects this. */
7072 typedef int charset[2]; const charset x;
7073 /* SunOS 4.1.1 cc rejects this. */
7074 char const *const *ccp;
7076 /* NEC SVR4.0.2 mips cc rejects this. */
7077 struct point {int x, y;};
7078 static struct point const zero = {0,0};
7079 /* AIX XL C 1.02.0.0 rejects this.
7080 It does not let you subtract one const X* pointer from another in an arm
7081 of an if-expression whose if-part is not a constant expression */
7082 const char *g = "string";
7083 ccp = &g + (g ? g-g : 0);
7084 /* HPUX 7.0 cc rejects these. */
7087 ccp = (char const *const *) p;
7088 { /* SCO 3.2v4 cc rejects this. */
7090 char const *s = 0 ? (char *) 0 : (char const *) 0;
7094 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7096 const int *foo = &x[0];
7099 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7100 typedef const int *iptr;
7104 { /* AIX XL C 1.02.0.0 rejects this saying
7105 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7106 struct s { int j; const int *ap[3]; };
7107 struct s *b; b->j = 5;
7109 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7115 if { (eval echo configure:7116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7119 echo "configure: failed program was:" >&5
7120 cat conftest.$ac_ext >&5
7127 echo "$ac_t""$ac_cv_c_const" 1>&6
7128 if test $ac_cv_c_const = no; then
7129 cat >> confdefs.h <<\EOF
7136 if test $cross_compiling = yes ; then
7137 cat >> confdefs.h <<\EOF
7138 #define CROSS_COMPILING 1
7142 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7143 echo "configure:7144: checking whether byte ordering is bigendian" >&5
7144 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7147 ac_cv_c_bigendian=unknown
7148 # See if sys/param.h defines the BYTE_ORDER macro.
7149 cat > conftest.$ac_ext <<EOF
7150 #line 7151 "configure"
7151 #include "confdefs.h"
7152 #include <sys/types.h>
7153 #include <sys/param.h>
7156 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7161 if { (eval echo configure:7162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7163 # It does; now see whether it defined to BIG_ENDIAN or not.
7164 cat > conftest.$ac_ext <<EOF
7165 #line 7166 "configure"
7166 #include "confdefs.h"
7167 #include <sys/types.h>
7168 #include <sys/param.h>
7171 #if BYTE_ORDER != BIG_ENDIAN
7176 if { (eval echo configure:7177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7178 ac_cv_c_bigendian=yes
7180 echo "configure: failed program was:" >&5
7181 cat conftest.$ac_ext >&5
7183 ac_cv_c_bigendian=no
7187 echo "configure: failed program was:" >&5
7188 cat conftest.$ac_ext >&5
7191 if test $ac_cv_c_bigendian = unknown; then
7192 if test "$cross_compiling" = yes; then
7193 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7195 cat > conftest.$ac_ext <<EOF
7196 #line 7197 "configure"
7197 #include "confdefs.h"
7199 /* Are we little or big endian? From Harbison&Steele. */
7203 char c[sizeof (long)];
7206 exit (u.c[sizeof (long) - 1] == 1);
7209 if { (eval echo configure:7210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7211 ac_cv_c_bigendian=no
7213 echo "configure: failed program was:" >&5
7214 cat conftest.$ac_ext >&5
7216 ac_cv_c_bigendian=yes
7224 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7225 if test $ac_cv_c_bigendian = yes; then
7226 cat >> confdefs.h <<\EOF
7227 #define WORDS_BIGENDIAN 1
7232 echo $ac_n "checking size of short""... $ac_c" 1>&6
7233 echo "configure:7234: checking size of short" >&5
7234 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7235 echo $ac_n "(cached) $ac_c" 1>&6
7237 if test "$cross_compiling" = yes; then
7238 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7240 cat > conftest.$ac_ext <<EOF
7241 #line 7242 "configure"
7242 #include "confdefs.h"
7246 FILE *f=fopen("conftestval", "w");
7248 fprintf(f, "%d\n", sizeof(short));
7252 if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7254 ac_cv_sizeof_short=`cat conftestval`
7256 echo "configure: failed program was:" >&5
7257 cat conftest.$ac_ext >&5
7259 ac_cv_sizeof_short=0
7265 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7266 cat >> confdefs.h <<EOF
7267 #define SIZEOF_SHORT $ac_cv_sizeof_short
7271 echo $ac_n "checking size of int""... $ac_c" 1>&6
7272 echo "configure:7273: checking size of int" >&5
7273 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7276 if test "$cross_compiling" = yes; then
7277 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7279 cat > conftest.$ac_ext <<EOF
7280 #line 7281 "configure"
7281 #include "confdefs.h"
7285 FILE *f=fopen("conftestval", "w");
7287 fprintf(f, "%d\n", sizeof(int));
7291 if { (eval echo configure:7292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7293 ac_cv_sizeof_int=`cat conftestval`
7295 echo "configure: failed program was:" >&5
7296 cat conftest.$ac_ext >&5
7304 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7305 cat >> confdefs.h <<EOF
7306 #define SIZEOF_INT $ac_cv_sizeof_int
7310 echo $ac_n "checking size of long""... $ac_c" 1>&6
7311 echo "configure:7312: checking size of long" >&5
7312 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7313 echo $ac_n "(cached) $ac_c" 1>&6
7315 if test "$cross_compiling" = yes; then
7316 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7318 cat > conftest.$ac_ext <<EOF
7319 #line 7320 "configure"
7320 #include "confdefs.h"
7324 FILE *f=fopen("conftestval", "w");
7326 fprintf(f, "%d\n", sizeof(long));
7330 if { (eval echo configure:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7332 ac_cv_sizeof_long=`cat conftestval`
7334 echo "configure: failed program was:" >&5
7335 cat conftest.$ac_ext >&5
7343 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
7344 cat >> confdefs.h <<EOF
7345 #define SIZEOF_LONG $ac_cv_sizeof_long
7351 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
7352 echo "configure:7353: checking for 8-bit clean memcmp" >&5
7353 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6
7356 if test "$cross_compiling" = yes; then
7357 ac_cv_func_memcmp_clean=no
7359 cat > conftest.$ac_ext <<EOF
7360 #line 7361 "configure"
7361 #include "confdefs.h"
7365 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
7366 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
7370 if { (eval echo configure:7371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7372 ac_cv_func_memcmp_clean=yes
7374 echo "configure: failed program was:" >&5
7375 cat conftest.$ac_ext >&5
7377 ac_cv_func_memcmp_clean=no
7384 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
7385 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
7387 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7388 echo "configure:7389: checking for strftime" >&5
7389 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
7390 echo $ac_n "(cached) $ac_c" 1>&6
7392 cat > conftest.$ac_ext <<EOF
7393 #line 7394 "configure"
7394 #include "confdefs.h"
7395 /* System header to define __stub macros and hopefully few prototypes,
7396 which can conflict with char strftime(); below. */
7398 /* Override any gcc2 internal prototype to avoid an error. */
7399 /* We use char because int might match the return type of a gcc2
7400 builtin and then its argument prototype would still apply. */
7405 /* The GNU C library defines this for functions which it implements
7406 to always fail with ENOSYS. Some functions are actually named
7407 something starting with __ and the normal name is an alias. */
7408 #if defined (__stub_strftime) || defined (__stub___strftime)
7416 if { (eval echo configure:7417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7418 eval "ac_cv_func_strftime=yes"
7420 echo "configure: failed program was:" >&5
7421 cat conftest.$ac_ext >&5
7423 eval "ac_cv_func_strftime=no"
7428 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
7429 echo "$ac_t""yes" 1>&6
7430 cat >> confdefs.h <<\EOF
7431 #define HAVE_STRFTIME 1
7435 echo "$ac_t""no" 1>&6
7436 # strftime is in -lintl on SCO UNIX.
7437 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
7438 echo "configure:7439: checking for strftime in -lintl" >&5
7439 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
7440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7441 echo $ac_n "(cached) $ac_c" 1>&6
7443 ac_save_LIBS="$LIBS"
7445 cat > conftest.$ac_ext <<EOF
7446 #line 7447 "configure"
7447 #include "confdefs.h"
7448 /* Override any gcc2 internal prototype to avoid an error. */
7449 /* We use char because int might match the return type of a gcc2
7450 builtin and then its argument prototype would still apply. */
7457 if { (eval echo configure:7458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7459 eval "ac_cv_lib_$ac_lib_var=yes"
7461 echo "configure: failed program was:" >&5
7462 cat conftest.$ac_ext >&5
7464 eval "ac_cv_lib_$ac_lib_var=no"
7467 LIBS="$ac_save_LIBS"
7470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7471 echo "$ac_t""yes" 1>&6
7472 cat >> confdefs.h <<\EOF
7473 #define HAVE_STRFTIME 1
7478 echo "$ac_t""no" 1>&6
7483 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7484 echo "configure:7485: checking for vprintf" >&5
7485 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
7486 echo $ac_n "(cached) $ac_c" 1>&6
7488 cat > conftest.$ac_ext <<EOF
7489 #line 7490 "configure"
7490 #include "confdefs.h"
7491 /* System header to define __stub macros and hopefully few prototypes,
7492 which can conflict with char vprintf(); below. */
7494 /* Override any gcc2 internal prototype to avoid an error. */
7495 /* We use char because int might match the return type of a gcc2
7496 builtin and then its argument prototype would still apply. */
7501 /* The GNU C library defines this for functions which it implements
7502 to always fail with ENOSYS. Some functions are actually named
7503 something starting with __ and the normal name is an alias. */
7504 #if defined (__stub_vprintf) || defined (__stub___vprintf)
7512 if { (eval echo configure:7513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7514 eval "ac_cv_func_vprintf=yes"
7516 echo "configure: failed program was:" >&5
7517 cat conftest.$ac_ext >&5
7519 eval "ac_cv_func_vprintf=no"
7524 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
7525 echo "$ac_t""yes" 1>&6
7526 cat >> confdefs.h <<\EOF
7527 #define HAVE_VPRINTF 1
7531 echo "$ac_t""no" 1>&6
7534 if test "$ac_cv_func_vprintf" != yes; then
7535 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7536 echo "configure:7537: checking for _doprnt" >&5
7537 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
7538 echo $ac_n "(cached) $ac_c" 1>&6
7540 cat > conftest.$ac_ext <<EOF
7541 #line 7542 "configure"
7542 #include "confdefs.h"
7543 /* System header to define __stub macros and hopefully few prototypes,
7544 which can conflict with char _doprnt(); below. */
7546 /* Override any gcc2 internal prototype to avoid an error. */
7547 /* We use char because int might match the return type of a gcc2
7548 builtin and then its argument prototype would still apply. */
7553 /* The GNU C library defines this for functions which it implements
7554 to always fail with ENOSYS. Some functions are actually named
7555 something starting with __ and the normal name is an alias. */
7556 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7564 if { (eval echo configure:7565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7566 eval "ac_cv_func__doprnt=yes"
7568 echo "configure: failed program was:" >&5
7569 cat conftest.$ac_ext >&5
7571 eval "ac_cv_func__doprnt=no"
7576 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
7577 echo "$ac_t""yes" 1>&6
7578 cat >> confdefs.h <<\EOF
7579 #define HAVE_DOPRNT 1
7583 echo "$ac_t""no" 1>&6
7589 if test $ac_cv_func_vprintf = yes ; then
7590 for ac_func in vsnprintf
7592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7593 echo "configure:7594: checking for $ac_func" >&5
7594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7595 echo $ac_n "(cached) $ac_c" 1>&6
7597 cat > conftest.$ac_ext <<EOF
7598 #line 7599 "configure"
7599 #include "confdefs.h"
7600 /* System header to define __stub macros and hopefully few prototypes,
7601 which can conflict with char $ac_func(); below. */
7603 /* Override any gcc2 internal prototype to avoid an error. */
7604 /* We use char because int might match the return type of a gcc2
7605 builtin and then its argument prototype would still apply. */
7610 /* The GNU C library defines this for functions which it implements
7611 to always fail with ENOSYS. Some functions are actually named
7612 something starting with __ and the normal name is an alias. */
7613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7621 if { (eval echo configure:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7623 eval "ac_cv_func_$ac_func=yes"
7625 echo "configure: failed program was:" >&5
7626 cat conftest.$ac_ext >&5
7628 eval "ac_cv_func_$ac_func=no"
7633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7634 echo "$ac_t""yes" 1>&6
7635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7636 cat >> confdefs.h <<EOF
7637 #define $ac_tr_func 1
7641 echo "$ac_t""no" 1>&6
7647 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
7648 echo "configure:7649: checking for wait3 that fills in rusage" >&5
7649 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
7650 echo $ac_n "(cached) $ac_c" 1>&6
7652 if test "$cross_compiling" = yes; then
7653 ac_cv_func_wait3_rusage=no
7655 cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7658 #include <sys/types.h>
7659 #include <sys/time.h>
7660 #include <sys/resource.h>
7662 /* HP-UX has wait3 but does not fill in rusage at all. */
7666 /* Use a field that we can force nonzero --
7667 voluntary context switches.
7668 For systems like NeXT and OSF/1 that don't set it,
7669 also use the system CPU time. And page faults (I/O) for Linux. */
7671 r.ru_stime.tv_sec = 0;
7672 r.ru_stime.tv_usec = 0;
7673 r.ru_majflt = r.ru_minflt = 0;
7675 case 0: /* Child. */
7676 sleep(1); /* Give up the CPU. */
7678 case -1: _exit(0); /* What can we do? */
7679 default: /* Parent. */
7681 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
7682 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
7683 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
7687 if { (eval echo configure:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7689 ac_cv_func_wait3_rusage=yes
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7694 ac_cv_func_wait3_rusage=no
7701 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
7702 if test $ac_cv_func_wait3_rusage = yes; then
7703 cat >> confdefs.h <<\EOF
7704 #define HAVE_WAIT3 1
7741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7742 echo "configure:7743: checking for $ac_func" >&5
7743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7744 echo $ac_n "(cached) $ac_c" 1>&6
7746 cat > conftest.$ac_ext <<EOF
7747 #line 7748 "configure"
7748 #include "confdefs.h"
7749 /* System header to define __stub macros and hopefully few prototypes,
7750 which can conflict with char $ac_func(); below. */
7752 /* Override any gcc2 internal prototype to avoid an error. */
7753 /* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7759 /* The GNU C library defines this for functions which it implements
7760 to always fail with ENOSYS. Some functions are actually named
7761 something starting with __ and the normal name is an alias. */
7762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7770 if { (eval echo configure:7771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7772 eval "ac_cv_func_$ac_func=yes"
7774 echo "configure: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7777 eval "ac_cv_func_$ac_func=no"
7782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7783 echo "$ac_t""yes" 1>&6
7784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7785 cat >> confdefs.h <<EOF
7786 #define $ac_tr_func 1
7790 echo "$ac_t""no" 1>&6
7795 for ac_func in getopt strdup tempnam
7797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7798 echo "configure:7799: checking for $ac_func" >&5
7799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7800 echo $ac_n "(cached) $ac_c" 1>&6
7802 cat > conftest.$ac_ext <<EOF
7803 #line 7804 "configure"
7804 #include "confdefs.h"
7805 /* System header to define __stub macros and hopefully few prototypes,
7806 which can conflict with char $ac_func(); below. */
7808 /* Override any gcc2 internal prototype to avoid an error. */
7809 /* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7815 /* The GNU C library defines this for functions which it implements
7816 to always fail with ENOSYS. Some functions are actually named
7817 something starting with __ and the normal name is an alias. */
7818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7826 if { (eval echo configure:7827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7828 eval "ac_cv_func_$ac_func=yes"
7830 echo "configure: failed program was:" >&5
7831 cat conftest.$ac_ext >&5
7833 eval "ac_cv_func_$ac_func=no"
7838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7839 echo "$ac_t""yes" 1>&6
7840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7841 cat >> confdefs.h <<EOF
7842 #define $ac_tr_func 1
7846 echo "$ac_t""no" 1>&6
7847 LIBOBJS="$LIBOBJS ${ac_func}.o"
7853 # Check Configuration
7855 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
7856 echo "configure:7857: checking declaration of sys_errlist" >&5
7857 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
7858 echo $ac_n "(cached) $ac_c" 1>&6
7861 cat > conftest.$ac_ext <<EOF
7862 #line 7863 "configure"
7863 #include "confdefs.h"
7866 #include <sys/types.h>
7869 char *c = (char *) *sys_errlist
7872 if { (eval echo configure:7873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7874 ol_cv_dcl_sys_errlist=yes
7876 echo "configure: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7879 ol_cv_dcl_sys_errlist=no
7884 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
7886 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
7887 if test $ol_cv_dcl_sys_errlist = no ; then
7888 cat >> confdefs.h <<\EOF
7889 #define DECL_SYS_ERRLIST 1
7892 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
7893 echo "configure:7894: checking existence of sys_errlist" >&5
7894 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7898 cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure"
7900 #include "confdefs.h"
7903 char *c = (char *) *sys_errlist
7906 if { (eval echo configure:7907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7908 ol_cv_have_sys_errlist=yes
7910 echo "configure: failed program was:" >&5
7911 cat conftest.$ac_ext >&5
7913 ol_cv_have_sys_errlist=no
7918 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
7923 if test $ol_enable_debug != no ; then
7924 cat >> confdefs.h <<\EOF
7925 #define LDAP_DEBUG 1
7929 if test $ol_enable_libui = yes ; then
7930 cat >> confdefs.h <<\EOF
7931 #define LDAP_LIBUI 1
7935 if test $ol_enable_cache = no ; then
7936 cat >> confdefs.h <<\EOF
7937 #define LDAP_NOCACHE 1
7941 if test $ol_enable_dns != no ; then
7942 cat >> confdefs.h <<\EOF
7947 if test $ol_enable_proctitle != no ; then
7948 cat >> confdefs.h <<\EOF
7949 #define LDAP_PROCTITLE 1
7953 if test $ol_enable_referrals != no ; then
7954 cat >> confdefs.h <<\EOF
7955 #define LDAP_REFERRALS 1
7959 if test $ol_enable_cldap != no ; then
7960 cat >> confdefs.h <<\EOF
7961 #define LDAP_CONNECTIONLESS 1
7966 if test $ol_enable_aclgroups != no ; then
7967 cat >> confdefs.h <<\EOF
7968 #define SLAPD_ACLGROUPS 1
7972 if test $ol_enable_crypt != no ; then
7973 cat >> confdefs.h <<\EOF
7974 #define SLAPD_CRYPT 1
7978 if test $ol_enable_md5 != no ; then
7979 cat >> confdefs.h <<\EOF
7984 if test $ol_enable_sha1 != no ; then
7985 cat >> confdefs.h <<\EOF
7986 #define SLAPD_SHA1 1
7990 if test $ol_enable_phonetic != no ; then
7991 cat >> confdefs.h <<\EOF
7992 #define SLAPD_PHONETIC 1
7996 if test $ol_enable_rlookups != no ; then
7997 cat >> confdefs.h <<\EOF
7998 #define SLAPD_RLOOKUPS 1
8003 if test $ol_link_ldbm != no ; then
8004 cat >> confdefs.h <<\EOF
8005 #define SLAPD_LDBM 1
8012 if test $ol_enable_passwd != no ; then
8013 cat >> confdefs.h <<\EOF
8014 #define SLAPD_PASSWD 1
8021 if test $ol_enable_shell != no ; then
8022 cat >> confdefs.h <<\EOF
8023 #define SLAPD_SHELL 1
8030 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
8031 $BUILD_SLAPD = yes ; then
8035 if test $ol_link_isode != no ; then
8061 cat > confcache <<\EOF
8062 # This file is a shell script that caches the results of configure
8063 # tests run on this system so they can be shared between configure
8064 # scripts and configure runs. It is not useful on other systems.
8065 # If it contains results you don't want to keep, you may remove or edit it.
8067 # By default, configure uses ./config.cache as the cache file,
8068 # creating it if it does not exist already. You can give configure
8069 # the --cache-file=FILE option to use a different cache file; that is
8070 # what configure does when it calls configure scripts in
8071 # subdirectories, so they share the cache.
8072 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8073 # config.status only pays attention to the cache file if you give it the
8074 # --recheck option to rerun configure.
8077 # The following way of writing the cache mishandles newlines in values,
8078 # but we know of no workaround that is simple, portable, and efficient.
8079 # So, don't put newlines in cache variables' values.
8080 # Ultrix sh set writes to stderr and can't be redirected directly,
8081 # and sets the high bit in the cache file unless we assign to the vars.
8083 case `(ac_space=' '; set) 2>&1` in
8085 # `set' does not quote correctly, so add quotes (double-quote substitution
8086 # turns \\\\ into \\, and sed turns \\ into \).
8088 -e "s/'/'\\\\''/g" \
8089 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8092 # `set' quotes correctly as required by POSIX, so do not add quotes.
8093 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8096 if cmp -s $cache_file confcache; then
8099 if test -w $cache_file; then
8100 echo "updating cache $cache_file"
8101 cat confcache > $cache_file
8103 echo "not updating unwritable cache $cache_file"
8108 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8110 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8111 # Let make expand exec_prefix.
8112 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8114 # Any assignment to VPATH causes Sun make to only execute
8115 # the first set of double-colon rules, so remove it if not needed.
8116 # If there is a colon in the path, we need to keep it.
8117 if test "x$srcdir" = x.; then
8118 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8121 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8123 DEFS=-DHAVE_CONFIG_H
8125 # Without the "./", some shells look in PATH for config.status.
8126 : ${CONFIG_STATUS=./config.status}
8128 echo creating $CONFIG_STATUS
8129 rm -f $CONFIG_STATUS
8130 cat > $CONFIG_STATUS <<EOF
8132 # Generated automatically by configure.
8133 # Run this file to recreate the current configuration.
8134 # This directory was configured as follows,
8135 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8137 # $0 $ac_configure_args
8139 # Compiler output produced by configure, useful for debugging
8140 # configure, is in ./config.log if it exists.
8142 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8145 case "\$ac_option" in
8146 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8147 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8148 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8149 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8150 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8152 -help | --help | --hel | --he | --h)
8153 echo "\$ac_cs_usage"; exit 0 ;;
8154 *) echo "\$ac_cs_usage"; exit 1 ;;
8158 ac_given_srcdir=$srcdir
8159 ac_given_INSTALL="$INSTALL"
8161 trap 'rm -fr `echo "\
8162 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8163 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8164 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8165 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8166 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8167 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8168 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8169 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8170 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8171 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8172 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8173 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8174 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8175 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8176 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8177 include/Makefile:build/top.mk:include/Makefile.in \
8178 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8179 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8180 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8181 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8182 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8183 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8184 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8185 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8186 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8187 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8188 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8189 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8190 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8191 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8192 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8193 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8194 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8195 tests/Makefile:build/top.mk:tests/Makefile.in \
8196 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8198 cat >> $CONFIG_STATUS <<EOF
8200 # Protect against being on the right side of a sed subst in config.status.
8201 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8202 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8205 s%@CFLAGS@%$CFLAGS%g
8206 s%@CPPFLAGS@%$CPPFLAGS%g
8207 s%@CXXFLAGS@%$CXXFLAGS%g
8209 s%@LDFLAGS@%$LDFLAGS%g
8211 s%@exec_prefix@%$exec_prefix%g
8212 s%@prefix@%$prefix%g
8213 s%@program_transform_name@%$program_transform_name%g
8214 s%@bindir@%$bindir%g
8215 s%@sbindir@%$sbindir%g
8216 s%@libexecdir@%$libexecdir%g
8217 s%@datadir@%$datadir%g
8218 s%@sysconfdir@%$sysconfdir%g
8219 s%@sharedstatedir@%$sharedstatedir%g
8220 s%@localstatedir@%$localstatedir%g
8221 s%@libdir@%$libdir%g
8222 s%@includedir@%$includedir%g
8223 s%@oldincludedir@%$oldincludedir%g
8224 s%@infodir@%$infodir%g
8225 s%@mandir@%$mandir%g
8226 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8227 s%@INSTALL_DATA@%$INSTALL_DATA%g
8228 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8229 s%@PACKAGE@%$PACKAGE%g
8230 s%@VERSION@%$VERSION%g
8231 s%@ACLOCAL@%$ACLOCAL%g
8232 s%@AUTOCONF@%$AUTOCONF%g
8233 s%@AUTOMAKE@%$AUTOMAKE%g
8234 s%@AUTOHEADER@%$AUTOHEADER%g
8235 s%@MAKEINFO@%$MAKEINFO%g
8236 s%@SET_MAKE@%$SET_MAKE%g
8237 s%@top_builddir@%$top_builddir%g
8239 s%@host_alias@%$host_alias%g
8240 s%@host_cpu@%$host_cpu%g
8241 s%@host_vendor@%$host_vendor%g
8242 s%@host_os@%$host_os%g
8243 s%@RANLIB@%$RANLIB%g
8248 s%@LIBTOOL@%$LIBTOOL%g
8249 s%@SENDMAIL@%$SENDMAIL%g
8250 s%@EDITOR@%$EDITOR%g
8251 s%@FINGER@%$FINGER%g
8254 s%@LIBOBJS@%$LIBOBJS%g
8255 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
8256 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
8257 s%@BUILD_LDBM@%$BUILD_LDBM%g
8258 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
8259 s%@BUILD_SHELL@%$BUILD_SHELL%g
8260 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
8261 s%@LDAP_LIBS@%$LDAP_LIBS%g
8262 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
8263 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
8264 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
8265 s%@LDBM_LIBS@%$LDBM_LIBS%g
8266 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
8267 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
8268 s%@KRB_LIBS@%$KRB_LIBS%g
8269 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
8274 cat >> $CONFIG_STATUS <<\EOF
8276 # Split the substitutions into bite-sized pieces for seds with
8277 # small command number limits, like on Digital OSF/1 and HP-UX.
8278 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8279 ac_file=1 # Number of current file.
8280 ac_beg=1 # First line for current file.
8281 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8284 while $ac_more_lines; do
8285 if test $ac_beg -gt 1; then
8286 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8288 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8290 if test ! -s conftest.s$ac_file; then
8292 rm -f conftest.s$ac_file
8294 if test -z "$ac_sed_cmds"; then
8295 ac_sed_cmds="sed -f conftest.s$ac_file"
8297 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8299 ac_file=`expr $ac_file + 1`
8301 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8304 if test -z "$ac_sed_cmds"; then
8309 cat >> $CONFIG_STATUS <<EOF
8311 CONFIG_FILES=\${CONFIG_FILES-"\
8312 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8313 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8314 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8315 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8316 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8317 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8318 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8319 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8320 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8321 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8322 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8323 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8324 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8325 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8326 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8327 include/Makefile:build/top.mk:include/Makefile.in \
8328 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8329 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8330 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8331 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8332 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8333 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8334 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8335 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8336 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8337 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8338 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8339 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8340 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8341 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8342 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8343 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8344 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8345 tests/Makefile:build/top.mk:tests/Makefile.in \
8348 cat >> $CONFIG_STATUS <<\EOF
8349 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8352 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8353 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8354 *) ac_file_in="${ac_file}.in" ;;
8357 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8359 # Remove last slash and all that follows it. Not all systems have dirname.
8360 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8361 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8362 # The file is in a subdirectory.
8363 test ! -d "$ac_dir" && mkdir "$ac_dir"
8364 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8365 # A "../" for each directory in $ac_dir_suffix.
8366 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8368 ac_dir_suffix= ac_dots=
8371 case "$ac_given_srcdir" in
8373 if test -z "$ac_dots"; then top_srcdir=.
8374 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8375 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8377 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8378 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8381 case "$ac_given_INSTALL" in
8382 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8383 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8386 echo creating "$ac_file"
8388 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8390 *Makefile*) ac_comsub="1i\\
8391 # $configure_input" ;;
8395 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8397 s%@configure_input@%$configure_input%g
8398 s%@srcdir@%$srcdir%g
8399 s%@top_srcdir@%$top_srcdir%g
8400 s%@INSTALL@%$INSTALL%g
8401 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8405 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8406 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8408 # ac_d sets the value in "#define NAME VALUE" lines.
8409 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8410 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8413 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8414 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8415 ac_uB='\([ ]\)%\1#\2define\3'
8418 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8419 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8420 ac_eB='$%\1#\2define\3'
8424 if test "${CONFIG_HEADERS+set}" != set; then
8426 cat >> $CONFIG_STATUS <<EOF
8427 CONFIG_HEADERS="include/portable.h"
8429 cat >> $CONFIG_STATUS <<\EOF
8431 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8432 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8434 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8435 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8436 *) ac_file_in="${ac_file}.in" ;;
8439 echo creating $ac_file
8441 rm -f conftest.frag conftest.in conftest.out
8442 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8443 cat $ac_file_inputs > conftest.in
8447 # Transform confdefs.h into a sed script conftest.vals that substitutes
8448 # the proper values into config.h.in to produce config.h. And first:
8449 # Protect against being on the right side of a sed subst in config.status.
8450 # Protect against being in an unquoted here document in config.status.
8452 cat > conftest.hdr <<\EOF
8455 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8459 sed -n -f conftest.hdr confdefs.h > conftest.vals
8462 # This sed command replaces #undef with comments. This is necessary, for
8463 # example, in the case of _POSIX_SOURCE, which is predefined and required
8464 # on some systems where configure will not decide to define it.
8465 cat >> conftest.vals <<\EOF
8466 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8469 # Break up conftest.vals because some shells have a limit on
8470 # the size of here documents, and old seds have small limits too.
8475 ac_lines=`grep -c . conftest.vals`
8476 # grep -c gives empty output for an empty file on some AIX systems.
8477 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8478 # Write a limited-size here document to conftest.frag.
8479 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8480 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8482 sed -f conftest.frag conftest.in > conftest.out
8484 mv conftest.out conftest.in
8486 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8488 mv conftest.tail conftest.vals
8492 cat >> $CONFIG_STATUS <<\EOF
8493 rm -f conftest.frag conftest.h
8494 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8495 cat conftest.in >> conftest.h
8497 if cmp -s $ac_file conftest.h 2>/dev/null; then
8498 echo "$ac_file is unchanged"
8501 # Remove last slash and all that follows it. Not all systems have dirname.
8502 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8503 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8504 # The file is in a subdirectory.
8505 test ! -d "$ac_dir" && mkdir "$ac_dir"
8508 mv conftest.h $ac_file
8513 cat >> $CONFIG_STATUS <<EOF
8516 cat >> $CONFIG_STATUS <<\EOF
8519 echo Please \"make depend\" to build dependencies
8523 chmod +x $CONFIG_STATUS
8524 rm -fr confdefs* $ac_clean_files
8525 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1