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 V2 DNS extension (no)"
26 --enable-referrals enable V2 Referrals extension (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --enable-x-compile enable cross compiling (no)"
32 --with-kerberos use Kerberos (auto)"
34 --with-threads use threads (auto)"
36 --with-preemptive thread implementation is preemptive (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 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
837 echo "configure:838: checking configure arguments" >&5
842 # OpenLDAP --enable-debug
843 # Check whether --enable-debug or --disable-debug was given.
844 if test "${enable_debug+set}" = set; then
845 enableval="$enable_debug"
848 for ol_val in auto yes no ; do
849 if test "$enableval" = "$ol_val" ; then
853 if test "$ol_arg" = "invalid" ; then
854 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
856 ol_enable_debug="$ol_arg"
859 ol_enable_debug="yes"
862 # OpenLDAP --enable-proctitle
863 # Check whether --enable-proctitle or --disable-proctitle was given.
864 if test "${enable_proctitle+set}" = set; then
865 enableval="$enable_proctitle"
868 for ol_val in auto yes no ; do
869 if test "$enableval" = "$ol_val" ; then
873 if test "$ol_arg" = "invalid" ; then
874 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
876 ol_enable_proctitle="$ol_arg"
879 ol_enable_proctitle="yes"
881 # end --enable-proctitle
882 # OpenLDAP --enable-libui
883 # Check whether --enable-libui or --disable-libui was given.
884 if test "${enable_libui+set}" = set; then
885 enableval="$enable_libui"
888 for ol_val in auto yes no ; do
889 if test "$enableval" = "$ol_val" ; then
893 if test "$ol_arg" = "invalid" ; then
894 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
896 ol_enable_libui="$ol_arg"
899 ol_enable_libui="yes"
902 # OpenLDAP --enable-cache
903 # Check whether --enable-cache or --disable-cache was given.
904 if test "${enable_cache+set}" = set; then
905 enableval="$enable_cache"
908 for ol_val in auto yes no ; do
909 if test "$enableval" = "$ol_val" ; then
913 if test "$ol_arg" = "invalid" ; then
914 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
916 ol_enable_cache="$ol_arg"
919 ol_enable_cache="yes"
922 # OpenLDAP --enable-dns
923 # Check whether --enable-dns or --disable-dns was given.
924 if test "${enable_dns+set}" = set; then
925 enableval="$enable_dns"
928 for ol_val in auto yes no ; do
929 if test "$enableval" = "$ol_val" ; then
933 if test "$ol_arg" = "invalid" ; then
934 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
936 ol_enable_dns="$ol_arg"
942 # OpenLDAP --enable-referrals
943 # Check whether --enable-referrals or --disable-referrals was given.
944 if test "${enable_referrals+set}" = set; then
945 enableval="$enable_referrals"
948 for ol_val in auto yes no ; do
949 if test "$enableval" = "$ol_val" ; then
953 if test "$ol_arg" = "invalid" ; then
954 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
956 ol_enable_referrals="$ol_arg"
959 ol_enable_referrals="yes"
961 # end --enable-referrals
962 # OpenLDAP --enable-cldap
963 # Check whether --enable-cldap or --disable-cldap was given.
964 if test "${enable_cldap+set}" = set; then
965 enableval="$enable_cldap"
968 for ol_val in auto yes no ; do
969 if test "$enableval" = "$ol_val" ; then
973 if test "$ol_arg" = "invalid" ; then
974 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
976 ol_enable_cldap="$ol_arg"
982 # OpenLDAP --enable-x_compile
983 # Check whether --enable-x_compile or --disable-x_compile was given.
984 if test "${enable_x_compile+set}" = set; then
985 enableval="$enable_x_compile"
988 for ol_val in yes no ; do
989 if test "$enableval" = "$ol_val" ; then
993 if test "$ol_arg" = "invalid" ; then
994 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
996 ol_enable_x_compile="$ol_arg"
999 ol_enable_x_compile="no"
1001 # end --enable-x_compile
1003 # OpenLDAP --with-kerberos
1004 # Check whether --with-kerberos or --without-kerberos was given.
1005 if test "${with_kerberos+set}" = set; then
1006 withval="$with_kerberos"
1009 for ol_val in auto k5 k4 afs yes no ; do
1010 if test "$withval" = "$ol_val" ; then
1014 if test "$ol_arg" = "invalid" ; then
1015 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1017 ol_with_kerberos="$ol_arg"
1020 ol_with_kerberos="auto"
1022 # end --with-kerberos
1024 # OpenLDAP --with-threads
1025 # Check whether --with-threads or --without-threads was given.
1026 if test "${with_threads+set}" = set; then
1027 withval="$with_threads"
1030 for ol_val in auto posix mach lwp yes no manual ; do
1031 if test "$withval" = "$ol_val" ; then
1035 if test "$ol_arg" = "invalid" ; then
1036 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1038 ol_with_threads="$ol_arg"
1041 ol_with_threads="auto"
1043 # end --with-threads
1045 # OpenLDAP --with-preemptive
1046 # Check whether --with-preemptive or --without-preemptive was given.
1047 if test "${with_preemptive+set}" = set; then
1048 withval="$with_preemptive"
1051 for ol_val in auto yes no manual ; do
1052 if test "$withval" = "$ol_val" ; then
1056 if test "$ol_arg" = "invalid" ; then
1057 { echo "configure: error: bad value $withval for --with-preemptive" 1>&2; exit 1; }
1059 ol_with_preemptive="$ol_arg"
1062 ol_with_preemptive="auto"
1064 # end --with-preemptive
1068 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1069 if test "${with_xxldapdoptions+set}" = set; then
1070 withval="$with_xxldapdoptions"
1074 # OpenLDAP --enable-ldapd
1075 # Check whether --enable-ldapd or --disable-ldapd was given.
1076 if test "${enable_ldapd+set}" = set; then
1077 enableval="$enable_ldapd"
1080 for ol_val in auto yes no ; do
1081 if test "$enableval" = "$ol_val" ; then
1085 if test "$ol_arg" = "invalid" ; then
1086 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1088 ol_enable_ldapd="$ol_arg"
1091 ol_enable_ldapd="no"
1093 # end --enable-ldapd
1095 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1096 if test "${with_xxslapdoptions+set}" = set; then
1097 withval="$with_xxslapdoptions"
1101 # OpenLDAP --enable-slapd
1102 # Check whether --enable-slapd or --disable-slapd was given.
1103 if test "${enable_slapd+set}" = set; then
1104 enableval="$enable_slapd"
1107 for ol_val in auto yes no ; do
1108 if test "$enableval" = "$ol_val" ; then
1112 if test "$ol_arg" = "invalid" ; then
1113 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1115 ol_enable_slapd="$ol_arg"
1118 ol_enable_slapd="yes"
1120 # end --enable-slapd
1121 # OpenLDAP --enable-aclgroups
1122 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1123 if test "${enable_aclgroups+set}" = set; then
1124 enableval="$enable_aclgroups"
1127 for ol_val in auto yes no ; do
1128 if test "$enableval" = "$ol_val" ; then
1132 if test "$ol_arg" = "invalid" ; then
1133 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1135 ol_enable_aclgroups="$ol_arg"
1138 ol_enable_aclgroups="auto"
1140 # end --enable-aclgroups
1141 # OpenLDAP --enable-crypt
1142 # Check whether --enable-crypt or --disable-crypt was given.
1143 if test "${enable_crypt+set}" = set; then
1144 enableval="$enable_crypt"
1147 for ol_val in auto yes no ; do
1148 if test "$enableval" = "$ol_val" ; then
1152 if test "$ol_arg" = "invalid" ; then
1153 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1155 ol_enable_crypt="$ol_arg"
1158 ol_enable_crypt="auto"
1160 # end --enable-crypt
1161 # OpenLDAP --enable-md5
1162 # Check whether --enable-md5 or --disable-md5 was given.
1163 if test "${enable_md5+set}" = set; then
1164 enableval="$enable_md5"
1167 for ol_val in auto yes no ; do
1168 if test "$enableval" = "$ol_val" ; then
1172 if test "$ol_arg" = "invalid" ; then
1173 { echo "configure: error: bad value $enableval for --enable-md5" 1>&2; exit 1; }
1175 ol_enable_md5="$ol_arg"
1178 ol_enable_md5="auto"
1181 # OpenLDAP --enable-sha1
1182 # Check whether --enable-sha1 or --disable-sha1 was given.
1183 if test "${enable_sha1+set}" = set; then
1184 enableval="$enable_sha1"
1187 for ol_val in auto yes no ; do
1188 if test "$enableval" = "$ol_val" ; then
1192 if test "$ol_arg" = "invalid" ; then
1193 { echo "configure: error: bad value $enableval for --enable-sha1" 1>&2; exit 1; }
1195 ol_enable_sha1="$ol_arg"
1198 ol_enable_sha1="auto"
1201 # OpenLDAP --enable-wrappers
1202 # Check whether --enable-wrappers or --disable-wrappers was given.
1203 if test "${enable_wrappers+set}" = set; then
1204 enableval="$enable_wrappers"
1207 for ol_val in auto yes no ; do
1208 if test "$enableval" = "$ol_val" ; then
1212 if test "$ol_arg" = "invalid" ; then
1213 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1215 ol_enable_wrappers="$ol_arg"
1218 ol_enable_wrappers="no"
1220 # end --enable-wrappers
1221 # OpenLDAP --enable-phonetic
1222 # Check whether --enable-phonetic or --disable-phonetic was given.
1223 if test "${enable_phonetic+set}" = set; then
1224 enableval="$enable_phonetic"
1227 for ol_val in auto yes no ; do
1228 if test "$enableval" = "$ol_val" ; then
1232 if test "$ol_arg" = "invalid" ; then
1233 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1235 ol_enable_phonetic="$ol_arg"
1238 ol_enable_phonetic="no"
1240 # end --enable-phonetic
1241 # OpenLDAP --enable-rlookups
1242 # Check whether --enable-rlookups or --disable-rlookups was given.
1243 if test "${enable_rlookups+set}" = set; then
1244 enableval="$enable_rlookups"
1247 for ol_val in auto yes no ; do
1248 if test "$enableval" = "$ol_val" ; then
1252 if test "$ol_arg" = "invalid" ; then
1253 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1255 ol_enable_rlookups="$ol_arg"
1258 ol_enable_rlookups="auto"
1260 # end --enable-rlookups
1262 # OpenLDAP --enable-ldbm
1263 # Check whether --enable-ldbm or --disable-ldbm was given.
1264 if test "${enable_ldbm+set}" = set; then
1265 enableval="$enable_ldbm"
1268 for ol_val in auto yes no ; do
1269 if test "$enableval" = "$ol_val" ; then
1273 if test "$ol_arg" = "invalid" ; then
1274 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1276 ol_enable_ldbm="$ol_arg"
1279 ol_enable_ldbm="yes"
1282 # OpenLDAP --with-ldbm_api
1283 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1284 if test "${with_ldbm_api+set}" = set; then
1285 withval="$with_ldbm_api"
1288 for ol_val in auto db2 db gdbm ndbm manual ; do
1289 if test "$withval" = "$ol_val" ; then
1293 if test "$ol_arg" = "invalid" ; then
1294 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1296 ol_with_ldbm_api="$ol_arg"
1299 ol_with_ldbm_api="auto"
1301 # end --with-ldbm_api
1303 # OpenLDAP --with-ldbm_type
1304 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1305 if test "${with_ldbm_type+set}" = set; then
1306 withval="$with_ldbm_type"
1309 for ol_val in auto btree hash ; do
1310 if test "$withval" = "$ol_val" ; then
1314 if test "$ol_arg" = "invalid" ; then
1315 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1317 ol_with_ldbm_type="$ol_arg"
1320 ol_with_ldbm_type="auto"
1322 # end --with-ldbm_type
1325 # OpenLDAP --enable-passwd
1326 # Check whether --enable-passwd or --disable-passwd was given.
1327 if test "${enable_passwd+set}" = set; then
1328 enableval="$enable_passwd"
1331 for ol_val in auto yes no ; do
1332 if test "$enableval" = "$ol_val" ; then
1336 if test "$ol_arg" = "invalid" ; then
1337 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1339 ol_enable_passwd="$ol_arg"
1342 ol_enable_passwd="no"
1344 # end --enable-passwd
1345 # OpenLDAP --enable-shell
1346 # Check whether --enable-shell or --disable-shell was given.
1347 if test "${enable_shell+set}" = set; then
1348 enableval="$enable_shell"
1351 for ol_val in auto yes no ; do
1352 if test "$enableval" = "$ol_val" ; then
1356 if test "$ol_arg" = "invalid" ; then
1357 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1359 ol_enable_shell="$ol_arg"
1362 ol_enable_shell="no"
1364 # end --enable-shell
1366 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1367 if test "${with_xxslurpdoptions+set}" = set; then
1368 withval="$with_xxslurpdoptions"
1372 # OpenLDAP --enable-slurpd
1373 # Check whether --enable-slurpd or --disable-slurpd was given.
1374 if test "${enable_slurpd+set}" = set; then
1375 enableval="$enable_slurpd"
1378 for ol_val in auto yes no ; do
1379 if test "$enableval" = "$ol_val" ; then
1383 if test "$ol_arg" = "invalid" ; then
1384 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1386 ol_enable_slurpd="$ol_arg"
1389 ol_enable_slurpd="auto"
1391 # end --enable-slurpd
1393 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1394 if test "${with_xxliboptions+set}" = set; then
1395 withval="$with_xxliboptions"
1399 # Check whether --enable-static or --disable-static was given.
1400 if test "${enable_static+set}" = set; then
1401 enableval="$enable_static"
1402 p=${PACKAGE-default}
1403 case "$enableval" in
1404 yes) enable_static=yes ;;
1405 no) enable_static=no ;;
1408 # Look at the argument we got. We use all the common list separators.
1409 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1410 for pkg in $enableval; do
1411 if test "X$pkg" = "X$p"; then
1422 # Check whether --enable-shared or --disable-shared was given.
1423 if test "${enable_shared+set}" = set; then
1424 enableval="$enable_shared"
1425 p=${PACKAGE-default}
1426 case "$enableval" in
1427 yes) enable_shared=yes ;;
1428 no) enable_shared=no ;;
1431 # Look at the argument we got. We use all the common list separators.
1432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1433 for pkg in $enableval; do
1434 if test "X$pkg" = "X$p"; then
1447 if test $ol_enable_referrals = no ; then
1448 if test $ol_enable_dns = yes ; then
1449 echo "configure: warning: dns disabled, ignoring --enable-dns argument" 1>&2
1454 if test $ol_enable_slapd = no ; then
1455 if test $ol_enable_ldbm = yes ; then
1456 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1458 if test $ol_enable_passwd = yes ; then
1459 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1461 if test $ol_enable_shell = yes ; then
1462 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1464 if test $ol_enable_aclgroups = yes ; then
1465 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1467 if test $ol_enable_crypt = yes ; then
1468 echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2
1470 if test $ol_enable_md5 = yes ; then
1471 echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2
1473 if test $ol_enable_sha1 = yes ; then
1474 echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2
1476 if test $ol_enable_wrappers = yes ; then
1477 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1479 if test $ol_enable_phonetic = yes ; then
1480 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1482 if test $ol_enable_rlookups = yes ; then
1483 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1485 if test $ol_with_ldbm_api != auto ; then
1486 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1488 if test $ol_with_ldbm_type != auto ; then
1489 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1491 if test $ol_enable_slurpd = yes ; then
1492 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1495 # force settings to no
1499 ol_enable_aclgroups=no
1503 ol_enable_wrappers=no
1504 ol_enable_phonetic=no
1505 ol_enable_rlookups=no
1507 ol_with_ldbm_type=no
1510 elif test $ol_enable_ldbm = no ; then
1512 if test $ol_with_ldbm_api != auto ; then
1513 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1516 if test $ol_with_ldbm_type != auto ; then
1517 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1520 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1521 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1525 ol_with_ldbm_type=no
1529 if test $ol_with_ldbm_api = gdbm -a \
1530 $ol_with_ldbm_type = btree ; then
1531 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1533 if test $ol_with_ldbm_api = ndbm -a \
1534 $ol_with_ldbm_type = btree ; then
1535 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1539 if test $ol_enable_slurpd = yes ; then
1540 if test $ol_with_threads = no ; then
1541 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1545 echo "$ac_t""done" 1>&6
1548 # Make sure we can run config.sub.
1549 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1550 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1553 echo $ac_n "checking host system type""... $ac_c" 1>&6
1554 echo "configure:1555: checking host system type" >&5
1557 case "$host_alias" in
1561 if host_alias=`$ac_config_guess`; then :
1562 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1564 *) host_alias=$nonopt ;;
1568 host=`$ac_config_sub $host_alias`
1569 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572 echo "$ac_t""$host" 1>&6
1598 # Find a good install program. We prefer a C program (faster),
1599 # so one script is as good as another. But avoid the broken or
1600 # incompatible versions:
1601 # SysV /etc/install, /usr/sbin/install
1602 # SunOS /usr/etc/install
1603 # IRIX /sbin/install
1605 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1606 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1607 # ./install, which can be erroneously created by make from ./install.sh.
1608 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1609 echo "configure:1610: checking for a BSD compatible install" >&5
1610 if test -z "$INSTALL"; then
1611 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1615 for ac_dir in $PATH; do
1616 # Account for people who put trailing slashes in PATH elements.
1618 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1620 # OSF1 and SCO ODT 3.0 have their own names for install.
1621 for ac_prog in ginstall installbsd scoinst install; do
1622 if test -f $ac_dir/$ac_prog; then
1623 if test $ac_prog = install &&
1624 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1625 # AIX install. It has an incompatible calling convention.
1626 # OSF/1 installbsd also uses dspmsg, but is usable.
1629 ac_cv_path_install="$ac_dir/$ac_prog -c"
1640 if test "${ac_cv_path_install+set}" = set; then
1641 INSTALL="$ac_cv_path_install"
1643 # As a last resort, use the slow shell script. We don't cache a
1644 # path for INSTALL within a source directory, because that will
1645 # break other packages using the cache if that directory is
1646 # removed, or if the path is relative.
1647 INSTALL="$ac_install_sh"
1650 echo "$ac_t""$INSTALL" 1>&6
1652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1653 # It thinks the first close brace ends the variable substitution.
1654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1658 # Extract the first word of "ranlib", so it can be a program name with args.
1659 set dummy ranlib; ac_word=$2
1660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1661 echo "configure:1662: checking for $ac_word" >&5
1662 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 if test -n "$RANLIB"; then
1666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1669 for ac_dir in $PATH; do
1670 test -z "$ac_dir" && ac_dir=.
1671 if test -f $ac_dir/$ac_word; then
1672 ac_cv_prog_RANLIB="ranlib"
1677 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1680 RANLIB="$ac_cv_prog_RANLIB"
1681 if test -n "$RANLIB"; then
1682 echo "$ac_t""$RANLIB" 1>&6
1684 echo "$ac_t""no" 1>&6
1687 # Extract the first word of "gcc", so it can be a program name with args.
1688 set dummy gcc; ac_word=$2
1689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1690 echo "configure:1691: checking for $ac_word" >&5
1691 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1698 for ac_dir in $PATH; do
1699 test -z "$ac_dir" && ac_dir=.
1700 if test -f $ac_dir/$ac_word; then
1709 if test -n "$CC"; then
1710 echo "$ac_t""$CC" 1>&6
1712 echo "$ac_t""no" 1>&6
1715 if test -z "$CC"; then
1716 # Extract the first word of "cc", so it can be a program name with args.
1717 set dummy cc; ac_word=$2
1718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1719 echo "configure:1720: checking for $ac_word" >&5
1720 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 if test -n "$CC"; then
1724 ac_cv_prog_CC="$CC" # Let the user override the test.
1726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1728 for ac_dir in $PATH; do
1729 test -z "$ac_dir" && ac_dir=.
1730 if test -f $ac_dir/$ac_word; then
1731 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1732 ac_prog_rejected=yes
1740 if test $ac_prog_rejected = yes; then
1741 # We found a bogon in the path, so make sure we never use it.
1742 set dummy $ac_cv_prog_CC
1744 if test $# -gt 0; then
1745 # We chose a different compiler from the bogus one.
1746 # However, it has the same basename, so the bogon will be chosen
1747 # first if we set CC to just the basename; use the full file name.
1749 set dummy "$ac_dir/$ac_word" "$@"
1757 if test -n "$CC"; then
1758 echo "$ac_t""$CC" 1>&6
1760 echo "$ac_t""no" 1>&6
1763 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1766 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1767 echo "configure:1768: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1771 ac_cpp='$CPP $CPPFLAGS'
1772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1773 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1774 cross_compiling=$ac_cv_prog_cc_cross
1776 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1781 if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1782 ac_cv_prog_cc_works=yes
1783 # If we can't run a trivial program, we are probably using a cross compiler.
1784 if (./conftest; exit) 2>/dev/null; then
1785 ac_cv_prog_cc_cross=no
1787 ac_cv_prog_cc_cross=yes
1790 echo "configure: failed program was:" >&5
1791 cat conftest.$ac_ext >&5
1792 ac_cv_prog_cc_works=no
1796 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1797 if test $ac_cv_prog_cc_works = no; then
1798 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1800 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1801 echo "configure:1802: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1802 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1803 cross_compiling=$ac_cv_prog_cc_cross
1805 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1806 echo "configure:1807: checking whether we are using GNU C" >&5
1807 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1810 cat > conftest.c <<EOF
1815 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1822 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1824 if test $ac_cv_prog_gcc = yes; then
1826 ac_test_CFLAGS="${CFLAGS+set}"
1827 ac_save_CFLAGS="$CFLAGS"
1829 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1830 echo "configure:1831: checking whether ${CC-cc} accepts -g" >&5
1831 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1834 echo 'void f(){}' > conftest.c
1835 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1844 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1845 if test "$ac_test_CFLAGS" = set; then
1846 CFLAGS="$ac_save_CFLAGS"
1847 elif test $ac_cv_prog_cc_g = yes; then
1854 test "${CFLAGS+set}" = set || CFLAGS="-g"
1857 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1858 if test "${with_gnu_ld+set}" = set; then
1859 withval="$with_gnu_ld"
1860 test "$withval" = no || with_gnu_ld=yes
1867 if test "$ac_cv_prog_gcc" = yes; then
1868 # Check if gcc -print-prog-name=ld gives a path.
1869 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1870 echo "configure:1871: checking for ld used by GCC" >&5
1871 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1873 # Accept absolute paths.
1875 test -z "$LD" && LD="$ac_prog"
1878 # If it fails, then pretend we aren't using GCC.
1882 # If it is relative, then search for the first ld in PATH.
1886 elif test "$with_gnu_ld" = yes; then
1887 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1888 echo "configure:1889: checking for GNU ld" >&5
1890 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1891 echo "configure:1892: checking for non-GNU ld" >&5
1893 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1896 if test -z "$LD"; then
1897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1898 for ac_dir in $PATH; do
1899 test -z "$ac_dir" && ac_dir=.
1900 if test -f "$ac_dir/$ac_prog"; then
1901 ac_cv_path_LD="$ac_dir/$ac_prog"
1902 # Check to see if the program is GNU ld. I'd rather use --version,
1903 # but apparently some GNU ld's only accept -v.
1904 # Break only if it was the GNU/non-GNU ld that we prefer.
1905 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1906 test "$with_gnu_ld" != no && break
1908 test "$with_gnu_ld" != yes && break
1914 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1919 if test -n "$LD"; then
1920 echo "$ac_t""$LD" 1>&6
1922 echo "$ac_t""no" 1>&6
1924 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1926 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1927 echo "configure:1928: checking if the linker ($LD) is GNU ld" >&5
1928 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1932 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1933 ac_cv_prog_gnu_ld=yes
1935 ac_cv_prog_gnu_ld=no
1939 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1942 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1943 echo "configure:1944: checking for BSD-compatible nm" >&5
1944 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1949 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1953 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1954 test -z "$ac_dir" && ac_dir=.
1955 if test -f $ac_dir/nm; then
1956 # Check to see if the nm accepts a BSD-compat flag.
1957 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1958 # nm: unknown option "B" ignored
1959 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1960 ac_cv_path_NM="$ac_dir/nm -B"
1961 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1962 ac_cv_path_NM="$ac_dir/nm -p"
1964 ac_cv_path_NM="$ac_dir/nm"
1970 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1976 echo "$ac_t""$NM" 1>&6
1979 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1980 echo "configure:1981: checking whether ln -s works" >&5
1981 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1985 if ln -s X conftestdata 2>/dev/null
1988 ac_cv_prog_LN_S="ln -s"
1993 LN_S="$ac_cv_prog_LN_S"
1994 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1995 echo "$ac_t""yes" 1>&6
1997 echo "$ac_t""no" 1>&6
2000 # Always use our own libtool.
2001 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2003 # Check for any special flags to pass to ltconfig.
2005 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2006 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2007 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2008 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2009 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2011 # Some flags need to be propagated to the compiler or linker for good
2015 # Find out which ABI we are using.
2016 echo '#line 2017 "configure"' > conftest.$ac_ext
2017 if { (eval echo configure:2018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2018 case "`/usr/bin/file conftest.o`" in
2034 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2035 CFLAGS="$CFLAGS -belf"
2039 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2040 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2041 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2042 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2043 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2044 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2047 # Extract the first word of "sendmail", so it can be a program name with args.
2048 set dummy sendmail; ac_word=$2
2049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2050 echo "configure:2051: checking for $ac_word" >&5
2051 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2056 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2060 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
2061 test -z "$ac_dir" && ac_dir=.
2062 if test -f $ac_dir/$ac_word; then
2063 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2068 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2072 SENDMAIL="$ac_cv_path_SENDMAIL"
2073 if test -n "$SENDMAIL"; then
2074 echo "$ac_t""$SENDMAIL" 1>&6
2076 echo "$ac_t""no" 1>&6
2079 # Extract the first word of "vi", so it can be a program name with args.
2080 set dummy vi; ac_word=$2
2081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2082 echo "configure:2083: checking for $ac_word" >&5
2083 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2088 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2092 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2093 test -z "$ac_dir" && ac_dir=.
2094 if test -f $ac_dir/$ac_word; then
2095 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2100 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2104 EDITOR="$ac_cv_path_EDITOR"
2105 if test -n "$EDITOR"; then
2106 echo "$ac_t""$EDITOR" 1>&6
2108 echo "$ac_t""no" 1>&6
2111 # Extract the first word of "finger", so it can be a program name with args.
2112 set dummy finger; ac_word=$2
2113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2114 echo "configure:2115: checking for $ac_word" >&5
2115 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2120 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2124 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2125 test -z "$ac_dir" && ac_dir=.
2126 if test -f $ac_dir/$ac_word; then
2127 ac_cv_path_FINGER="$ac_dir/$ac_word"
2132 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2136 FINGER="$ac_cv_path_FINGER"
2137 if test -n "$FINGER"; then
2138 echo "$ac_t""$FINGER" 1>&6
2140 echo "$ac_t""no" 1>&6
2145 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2146 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2148 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2149 echo "configure: warning: programs compiled here do run here..." 1>&2
2150 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2152 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2153 echo "configure: warning: programs compiled here do not run here..." 1>&2
2154 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2157 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2158 echo "configure:2159: checking how to run the C preprocessor" >&5
2159 # On Suns, sometimes $CPP names a directory.
2160 if test -n "$CPP" && test -d "$CPP"; then
2163 if test -z "$CPP"; then
2164 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2167 # This must be in double quotes, not single quotes, because CPP may get
2168 # substituted into the Makefile and "${CC-cc}" will confuse make.
2170 # On the NeXT, cc -E runs the code through the compiler's parser,
2171 # not just through cpp.
2172 cat > conftest.$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2179 { (eval echo configure:2180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2180 ac_err=`grep -v '^ *+' conftest.out`
2181 if test -z "$ac_err"; then
2185 echo "configure: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2188 CPP="${CC-cc} -E -traditional-cpp"
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2196 { (eval echo configure:2197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2197 ac_err=`grep -v '^ *+' conftest.out`
2198 if test -z "$ac_err"; then
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2210 ac_cv_prog_CPP="$CPP"
2212 CPP="$ac_cv_prog_CPP"
2214 ac_cv_prog_CPP="$CPP"
2216 echo "$ac_t""$CPP" 1>&6
2219 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2220 echo "configure:2221: checking for AIX" >&5
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2230 egrep "yes" >/dev/null 2>&1; then
2232 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2233 #define _ALL_SOURCE 1
2238 echo "$ac_t""no" 1>&6
2243 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2244 echo "configure:2245: checking for POSIXized ISC" >&5
2245 if test -d /etc/conf/kconfig.d &&
2246 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2248 echo "$ac_t""yes" 1>&6
2249 ISC=yes # If later tests want to check for ISC.
2250 cat >> confdefs.h <<\EOF
2251 #define _POSIX_SOURCE 1
2254 if test "$GCC" = yes; then
2260 echo "$ac_t""no" 1>&6
2264 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2265 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2266 echo "configure:2267: checking for minix/config.h" >&5
2267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 cat > conftest.$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 #include <minix/config.h>
2275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2276 { (eval echo configure:2277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2277 ac_err=`grep -v '^ *+' conftest.out`
2278 if test -z "$ac_err"; then
2280 eval "ac_cv_header_$ac_safe=yes"
2283 echo "configure: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2286 eval "ac_cv_header_$ac_safe=no"
2290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2291 echo "$ac_t""yes" 1>&6
2294 echo "$ac_t""no" 1>&6
2298 if test "$MINIX" = yes; then
2299 cat >> confdefs.h <<\EOF
2300 #define _POSIX_SOURCE 1
2303 cat >> confdefs.h <<\EOF
2304 #define _POSIX_1_SOURCE 2
2307 cat >> confdefs.h <<\EOF
2317 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2318 echo "configure:2319: checking for ${CC-cc} option to accept ANSI C" >&5
2319 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2322 am_cv_prog_cc_stdc=no
2324 # Don't try gcc -ansi; that turns off useful extensions and
2325 # breaks some systems' header files.
2326 # AIX -qlanglvl=ansi
2327 # Ultrix and OSF/1 -std1
2328 # HP-UX -Aa -D_HPUX_SOURCE
2329 # SVR4 -Xc -D__EXTENSIONS__
2330 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2332 CC="$ac_save_CC $ac_arg"
2333 cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2338 #include <sys/types.h>
2339 #include <sys/stat.h>
2340 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2341 struct buf { int x; };
2342 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2343 static char *e (p, i)
2349 static char *f (char * (*g) (char **, int), char **p, ...)
2354 s = g (p, va_arg (v,int));
2358 int test (int i, double x);
2359 struct s1 {int (*f) (int a);};
2360 struct s2 {int (*f) (double a);};
2361 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2367 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2371 if { (eval echo configure:2372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2373 am_cv_prog_cc_stdc="$ac_arg"; break
2375 echo "configure: failed program was:" >&5
2376 cat conftest.$ac_ext >&5
2384 if test -z "$am_cv_prog_cc_stdc"; then
2385 echo "$ac_t""none needed" 1>&6
2387 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2389 case "x$am_cv_prog_cc_stdc" in
2391 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2394 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2395 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2401 echo $ac_n "checking for socket""... $ac_c" 1>&6
2402 echo "configure:2403: checking for socket" >&5
2403 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 cat > conftest.$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2409 /* System header to define __stub macros and hopefully few prototypes,
2410 which can conflict with char socket(); below. */
2412 /* Override any gcc2 internal prototype to avoid an error. */
2413 /* We use char because int might match the return type of a gcc2
2414 builtin and then its argument prototype would still apply. */
2419 /* The GNU C library defines this for functions which it implements
2420 to always fail with ENOSYS. Some functions are actually named
2421 something starting with __ and the normal name is an alias. */
2422 #if defined (__stub_socket) || defined (__stub___socket)
2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2432 eval "ac_cv_func_socket=yes"
2434 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2437 eval "ac_cv_func_socket=no"
2442 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2443 echo "$ac_t""yes" 1>&6
2446 echo "$ac_t""no" 1>&6
2448 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2449 echo "configure:2450: checking for main in -lsocket" >&5
2450 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 ac_save_LIBS="$LIBS"
2455 LIBS="-lsocket $LIBS"
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2466 eval "ac_cv_lib_$ac_lib_var=yes"
2468 echo "configure: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2471 eval "ac_cv_lib_$ac_lib_var=no"
2474 LIBS="$ac_save_LIBS"
2477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2478 echo "$ac_t""yes" 1>&6
2479 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2481 cat >> confdefs.h <<EOF
2482 #define $ac_tr_lib 1
2485 LIBS="-lsocket $LIBS"
2488 echo "$ac_t""no" 1>&6
2491 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2492 echo "configure:2493: checking for main in -lnet" >&5
2493 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2497 ac_save_LIBS="$LIBS"
2499 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2509 eval "ac_cv_lib_$ac_lib_var=yes"
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2514 eval "ac_cv_lib_$ac_lib_var=no"
2517 LIBS="$ac_save_LIBS"
2520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2521 echo "$ac_t""yes" 1>&6
2522 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2523 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2524 cat >> confdefs.h <<EOF
2525 #define $ac_tr_lib 1
2531 echo "$ac_t""no" 1>&6
2534 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2535 echo "configure:2536: checking for main in -lnsl_s" >&5
2536 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 ac_save_LIBS="$LIBS"
2541 LIBS="-lnsl_s $LIBS"
2542 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2550 if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2552 eval "ac_cv_lib_$ac_lib_var=yes"
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2557 eval "ac_cv_lib_$ac_lib_var=no"
2560 LIBS="$ac_save_LIBS"
2563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2564 echo "$ac_t""yes" 1>&6
2565 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2566 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2567 cat >> confdefs.h <<EOF
2568 #define $ac_tr_lib 1
2571 LIBS="-lnsl_s $LIBS"
2574 echo "$ac_t""no" 1>&6
2577 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2578 echo "configure:2579: checking for main in -lnsl" >&5
2579 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 ac_save_LIBS="$LIBS"
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2593 if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2595 eval "ac_cv_lib_$ac_lib_var=yes"
2597 echo "configure: failed program was:" >&5
2598 cat conftest.$ac_ext >&5
2600 eval "ac_cv_lib_$ac_lib_var=no"
2603 LIBS="$ac_save_LIBS"
2606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2607 echo "$ac_t""yes" 1>&6
2608 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2609 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2610 cat >> confdefs.h <<EOF
2611 #define $ac_tr_lib 1
2617 echo "$ac_t""no" 1>&6
2620 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2621 echo "configure:2622: checking for socket in -linet" >&5
2622 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2626 ac_save_LIBS="$LIBS"
2628 cat > conftest.$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2631 /* Override any gcc2 internal prototype to avoid an error. */
2632 /* We use char because int might match the return type of a gcc2
2633 builtin and then its argument prototype would still apply. */
2640 if { (eval echo configure:2641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2642 eval "ac_cv_lib_$ac_lib_var=yes"
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2647 eval "ac_cv_lib_$ac_lib_var=no"
2650 LIBS="$ac_save_LIBS"
2653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2654 echo "$ac_t""yes" 1>&6
2655 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2656 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2657 cat >> confdefs.h <<EOF
2658 #define $ac_tr_lib 1
2664 echo "$ac_t""no" 1>&6
2667 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2668 echo "configure:2669: checking for main in -lgen" >&5
2669 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2670 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2673 ac_save_LIBS="$LIBS"
2675 cat > conftest.$ac_ext <<EOF
2676 #line 2677 "configure"
2677 #include "confdefs.h"
2683 if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2685 eval "ac_cv_lib_$ac_lib_var=yes"
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2690 eval "ac_cv_lib_$ac_lib_var=no"
2693 LIBS="$ac_save_LIBS"
2696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2697 echo "$ac_t""yes" 1>&6
2698 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2699 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2700 cat >> confdefs.h <<EOF
2701 #define $ac_tr_lib 1
2707 echo "$ac_t""no" 1>&6
2714 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
2715 echo "configure:2716: checking for res_search in -lresolv" >&5
2716 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
2717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2720 ac_save_LIBS="$LIBS"
2721 LIBS="-lresolv $LIBS"
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 /* Override any gcc2 internal prototype to avoid an error. */
2726 /* We use char because int might match the return type of a gcc2
2727 builtin and then its argument prototype would still apply. */
2734 if { (eval echo configure:2735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2736 eval "ac_cv_lib_$ac_lib_var=yes"
2738 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2741 eval "ac_cv_lib_$ac_lib_var=no"
2744 LIBS="$ac_save_LIBS"
2747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2748 echo "$ac_t""yes" 1>&6
2749 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2750 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2751 cat >> confdefs.h <<EOF
2752 #define $ac_tr_lib 1
2755 LIBS="-lresolv $LIBS"
2758 echo "$ac_t""no" 1>&6
2762 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2763 echo "configure:2764: checking for sigset in -lV3" >&5
2764 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2768 ac_save_LIBS="$LIBS"
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2773 /* Override any gcc2 internal prototype to avoid an error. */
2774 /* We use char because int might match the return type of a gcc2
2775 builtin and then its argument prototype would still apply. */
2782 if { (eval echo configure:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2784 eval "ac_cv_lib_$ac_lib_var=yes"
2786 echo "configure: failed program was:" >&5
2787 cat conftest.$ac_ext >&5
2789 eval "ac_cv_lib_$ac_lib_var=no"
2792 LIBS="$ac_save_LIBS"
2795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2796 echo "$ac_t""yes" 1>&6
2797 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2798 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2799 cat >> confdefs.h <<EOF
2800 #define $ac_tr_lib 1
2806 echo "$ac_t""no" 1>&6
2812 if test $ol_enable_ldapd != no ; then
2813 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
2814 echo "configure:2815: checking for main in -lxtpp" >&5
2815 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
2816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 ac_save_LIBS="$LIBS"
2820 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2829 if { (eval echo configure:2830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2831 eval "ac_cv_lib_$ac_lib_var=yes"
2833 echo "configure: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2836 eval "ac_cv_lib_$ac_lib_var=no"
2839 LIBS="$ac_save_LIBS"
2842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2843 echo "$ac_t""yes" 1>&6
2846 cat >> confdefs.h <<\EOF
2850 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
2853 echo "$ac_t""no" 1>&6
2857 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
2858 echo "configure:2859: checking for main in -ldsap" >&5
2859 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
2860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 ac_save_LIBS="$LIBS"
2864 LIBS="-ldsap -lisode $LIBS"
2865 cat > conftest.$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2873 if { (eval echo configure:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2875 eval "ac_cv_lib_$ac_lib_var=yes"
2877 echo "configure: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2880 eval "ac_cv_lib_$ac_lib_var=no"
2883 LIBS="$ac_save_LIBS"
2886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2887 echo "$ac_t""yes" 1>&6
2890 cat >> confdefs.h <<\EOF
2894 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
2897 echo "$ac_t""no" 1>&6
2901 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
2902 echo "configure:2903: checking for main in -lisode" >&5
2903 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
2904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 ac_save_LIBS="$LIBS"
2908 LIBS="-lisode $LIBS"
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2917 if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2919 eval "ac_cv_lib_$ac_lib_var=yes"
2921 echo "configure: failed program was:" >&5
2922 cat conftest.$ac_ext >&5
2924 eval "ac_cv_lib_$ac_lib_var=no"
2927 LIBS="$ac_save_LIBS"
2930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2931 echo "$ac_t""yes" 1>&6
2934 cat >> confdefs.h <<\EOF
2935 #define HAVE_ISODE 1
2938 LDAPD_LIBS="$LDAPD_LIBS -lisode"
2941 echo "$ac_t""no" 1>&6
2947 if test $ol_link_isode != no; then
2948 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
2949 echo "configure:2950: checking for main in -lpp" >&5
2950 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
2951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2954 ac_save_LIBS="$LIBS"
2956 cat > conftest.$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2964 if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2966 eval "ac_cv_lib_$ac_lib_var=yes"
2968 echo "configure: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2971 eval "ac_cv_lib_$ac_lib_var=no"
2974 LIBS="$ac_save_LIBS"
2977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2978 echo "$ac_t""yes" 1>&6
2980 cat >> confdefs.h <<\EOF
2984 LDAPD_LIBS="-lpp $LDAPD_LIBS"
2987 echo "$ac_t""no" 1>&6
2992 # Extract the first word of "pepsy", so it can be a program name with args.
2993 set dummy pepsy; ac_word=$2
2994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2995 echo "configure:2996: checking for $ac_word" >&5
2996 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
2997 echo $ac_n "(cached) $ac_c" 1>&6
3001 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3005 for ac_dir in $PATH; do
3006 test -z "$ac_dir" && ac_dir=.
3007 if test -f $ac_dir/$ac_word; then
3008 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3016 PEPSY="$ac_cv_path_PEPSY"
3017 if test -n "$PEPSY"; then
3018 echo "$ac_t""$PEPSY" 1>&6
3020 echo "$ac_t""no" 1>&6
3025 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3026 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_hdr" >&5
3031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3040 { (eval echo configure:3041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3041 ac_err=`grep -v '^ *+' conftest.out`
3042 if test -z "$ac_err"; then
3044 eval "ac_cv_header_$ac_safe=yes"
3047 echo "configure: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3050 eval "ac_cv_header_$ac_safe=no"
3054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3055 echo "$ac_t""yes" 1>&6
3056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3057 cat >> confdefs.h <<EOF
3058 #define $ac_tr_hdr 1
3062 echo "$ac_t""no" 1>&6
3067 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3068 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3069 echo "configure:3070: checking for main in -lkrb4" >&5
3070 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 ac_save_LIBS="$LIBS"
3075 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3076 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3086 eval "ac_cv_lib_$ac_lib_var=yes"
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3091 eval "ac_cv_lib_$ac_lib_var=no"
3094 LIBS="$ac_save_LIBS"
3097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3098 echo "$ac_t""yes" 1>&6
3101 echo "$ac_t""no" 1>&6
3106 if test $have_k5 = yes ; then
3107 ol_with_kerberos=found
3108 ol_link_kerberos=yes
3110 cat >> confdefs.h <<\EOF
3111 #define HAVE_KERBEROS 1
3115 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3119 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3120 for ac_hdr in krb.h des.h
3122 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3123 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3124 echo "configure:3125: checking for $ac_hdr" >&5
3125 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3134 { (eval echo configure:3135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3135 ac_err=`grep -v '^ *+' conftest.out`
3136 if test -z "$ac_err"; then
3138 eval "ac_cv_header_$ac_safe=yes"
3141 echo "configure: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3144 eval "ac_cv_header_$ac_safe=no"
3148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3149 echo "$ac_t""yes" 1>&6
3150 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3151 cat >> confdefs.h <<EOF
3152 #define $ac_tr_hdr 1
3156 echo "$ac_t""no" 1>&6
3161 if test $ac_cv_header_krb_h = yes ; then
3162 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3163 echo "configure:3164: checking for main in -lkrb" >&5
3164 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3168 ac_save_LIBS="$LIBS"
3169 LIBS="-lkrb -ldes $LIBS"
3170 cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3178 if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3180 eval "ac_cv_lib_$ac_lib_var=yes"
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3185 eval "ac_cv_lib_$ac_lib_var=no"
3188 LIBS="$ac_save_LIBS"
3191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3192 echo "$ac_t""yes" 1>&6
3195 echo "$ac_t""no" 1>&6
3200 if test $have_k4 = yes ; then
3201 ol_with_kerberos=found
3202 ol_link_kerberos=yes
3204 cat >> confdefs.h <<\EOF
3205 #define HAVE_KERBEROS 1
3209 KRB_LIBS="-lkrb -ldes"
3215 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
3216 for ac_hdr in pthread.h sched.h
3218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_hdr" >&5
3221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3230 { (eval echo configure:3231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3231 ac_err=`grep -v '^ *+' conftest.out`
3232 if test -z "$ac_err"; then
3234 eval "ac_cv_header_$ac_safe=yes"
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3240 eval "ac_cv_header_$ac_safe=no"
3244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3245 echo "$ac_t""yes" 1>&6
3246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3247 cat >> confdefs.h <<EOF
3248 #define $ac_tr_hdr 1
3252 echo "$ac_t""no" 1>&6
3257 if test $ac_cv_header_pthread_h = yes ; then
3258 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3259 echo "configure:3260: checking POSIX thread version" >&5
3260 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3264 cat > conftest.$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3268 # include <pthread.h>
3269 /* this check could be improved */
3270 # ifdef PTHREAD_ONCE_INIT
3275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3276 egrep "final" >/dev/null 2>&1; then
3278 ol_pthread_final=yes
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3290 # include <pthread.h>
3291 /* this check could be improved */
3292 # ifdef pthread_once_init
3297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3298 egrep "draft4" >/dev/null 2>&1; then
3300 ol_pthread_draft4=yes
3303 ol_pthread_draft4=no
3308 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3309 ol_cv_pthread_version=final
3310 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3311 ol_cv_pthread_version=draft4
3313 ol_cv_pthread_version=unknown
3318 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3321 if test $ol_cv_pthread_version = final ; then
3322 cat >> confdefs.h <<\EOF
3323 #define HAVE_PTHREADS_FINAL 1
3326 elif test $ol_cv_pthread_version = draft4 ; then
3327 cat >> confdefs.h <<\EOF
3328 #define HAVE_PTHREADS_D4 1
3332 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3335 # consider threads found
3336 ol_with_threads=found
3339 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3340 echo "configure:3341: checking for LinuxThreads" >&5
3341 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3345 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3346 if test "$res" -gt 0 ; then
3347 ol_cv_linux_threads=yes
3349 ol_cv_linux_threads=no
3354 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3357 if test $ol_cv_linux_threads = yes ; then
3358 cat >> confdefs.h <<\EOF
3359 #define HAVE_LINUX_THREADS 1
3365 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3366 echo "configure:3367: checking for pthread_create" >&5
3367 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3370 cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3373 /* System header to define __stub macros and hopefully few prototypes,
3374 which can conflict with char pthread_create(); below. */
3376 /* Override any gcc2 internal prototype to avoid an error. */
3377 /* We use char because int might match the return type of a gcc2
3378 builtin and then its argument prototype would still apply. */
3379 char pthread_create();
3383 /* The GNU C library defines this for functions which it implements
3384 to always fail with ENOSYS. Some functions are actually named
3385 something starting with __ and the normal name is an alias. */
3386 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3394 if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3396 eval "ac_cv_func_pthread_create=yes"
3398 echo "configure: failed program was:" >&5
3399 cat conftest.$ac_ext >&5
3401 eval "ac_cv_func_pthread_create=no"
3406 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3407 echo "$ac_t""yes" 1>&6
3410 echo "$ac_t""no" 1>&6
3414 if test $ol_link_threads = no ; then
3415 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
3416 echo "configure:3417: checking for pthread_create with -pthread" >&5
3417 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3422 LIBS="-pthread $LIBS"
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3433 if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3435 ol_cv_pthread_flag=yes
3437 echo "configure: failed program was:" >&5
3438 cat conftest.$ac_ext >&5
3440 ol_cv_pthread_flag=no
3447 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
3449 if test $ol_cv_pthread_flag = yes ; then
3450 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
3451 ol_link_threads=posix
3455 if test $ol_link_threads = no ; then
3456 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
3457 echo "configure:3458: checking for pthread_create with -thread" >&5
3458 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3463 LIBS="-thread $LIBS"
3464 cat > conftest.$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3474 if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3476 ol_cv_thread_flag=yes
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3481 ol_cv_thread_flag=no
3488 echo "$ac_t""$ol_cv_thread_flag" 1>&6
3490 if test $ol_cv_thread_flag = yes ; then
3491 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
3492 ol_link_threads=posix
3496 if test $ol_link_threads = no ; then
3498 echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
3499 echo "configure:3500: checking for pthread_join in -lpthread" >&5
3500 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
3501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 ac_save_LIBS="$LIBS"
3505 LIBS="-lpthread -lexc $LIBS"
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 /* Override any gcc2 internal prototype to avoid an error. */
3510 /* We use char because int might match the return type of a gcc2
3511 builtin and then its argument prototype would still apply. */
3512 char pthread_join();
3518 if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3520 eval "ac_cv_lib_$ac_lib_var=yes"
3522 echo "configure: failed program was:" >&5
3523 cat conftest.$ac_ext >&5
3525 eval "ac_cv_lib_$ac_lib_var=no"
3528 LIBS="$ac_save_LIBS"
3531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3532 echo "$ac_t""yes" 1>&6
3534 ol_link_threads=posix
3535 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
3536 if test $ol_with_preemptive = auto ; then
3537 ol_with_preemptive=yes
3541 echo "$ac_t""no" 1>&6
3547 if test $ol_link_threads = no ; then
3549 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
3550 echo "configure:3551: checking for pthread_join in -lpthreads" >&5
3551 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
3552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 ac_save_LIBS="$LIBS"
3556 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 /* Override any gcc2 internal prototype to avoid an error. */
3561 /* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
3563 char pthread_join();
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3571 eval "ac_cv_lib_$ac_lib_var=yes"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3576 eval "ac_cv_lib_$ac_lib_var=no"
3579 LIBS="$ac_save_LIBS"
3582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3583 echo "$ac_t""yes" 1>&6
3585 ol_link_threads=posix
3586 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
3587 if test $ol_with_preemptive = auto ; then
3588 ol_with_preemptive=yes
3592 echo "$ac_t""no" 1>&6
3598 if test $ol_link_threads = no ; then
3600 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3601 echo "configure:3602: checking for pthread_create in -lpthread" >&5
3602 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 ac_save_LIBS="$LIBS"
3607 LIBS="-lpthread $LIBS"
3608 cat > conftest.$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3611 /* Override any gcc2 internal prototype to avoid an error. */
3612 /* We use char because int might match the return type of a gcc2
3613 builtin and then its argument prototype would still apply. */
3614 char pthread_create();
3620 if { (eval echo configure:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3622 eval "ac_cv_lib_$ac_lib_var=yes"
3624 echo "configure: failed program was:" >&5
3625 cat conftest.$ac_ext >&5
3627 eval "ac_cv_lib_$ac_lib_var=no"
3630 LIBS="$ac_save_LIBS"
3633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3634 echo "$ac_t""yes" 1>&6
3636 ol_link_threads=posix
3637 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
3639 echo "$ac_t""no" 1>&6
3645 if test $ol_link_threads = no ; then
3647 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3648 echo "configure:3649: checking for pthread_create in -lc_r" >&5
3649 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 ac_save_LIBS="$LIBS"
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3661 char pthread_create();
3667 if { (eval echo configure:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3669 eval "ac_cv_lib_$ac_lib_var=yes"
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3674 eval "ac_cv_lib_$ac_lib_var=no"
3677 LIBS="$ac_save_LIBS"
3680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3681 echo "$ac_t""yes" 1>&6
3683 ol_link_threads=posix
3684 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
3686 echo "$ac_t""no" 1>&6
3692 if test $ol_link_threads != no ; then
3693 cat >> confdefs.h <<\EOF
3694 #define HAVE_PTHREADS 1
3698 save_CPPFLAGS="$CPPFLAGS"
3700 LIBS="$LTHREAD_LIBS $LIBS"
3702 for ac_func in sched_yield pthread_yield
3704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3705 echo "configure:3706: checking for $ac_func" >&5
3706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3709 cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 /* System header to define __stub macros and hopefully few prototypes,
3713 which can conflict with char $ac_func(); below. */
3715 /* Override any gcc2 internal prototype to avoid an error. */
3716 /* We use char because int might match the return type of a gcc2
3717 builtin and then its argument prototype would still apply. */
3722 /* The GNU C library defines this for functions which it implements
3723 to always fail with ENOSYS. Some functions are actually named
3724 something starting with __ and the normal name is an alias. */
3725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3733 if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3735 eval "ac_cv_func_$ac_func=yes"
3737 echo "configure: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3740 eval "ac_cv_func_$ac_func=no"
3745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3746 echo "$ac_t""yes" 1>&6
3747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3748 cat >> confdefs.h <<EOF
3749 #define $ac_tr_func 1
3753 echo "$ac_t""no" 1>&6
3758 if test $ac_cv_func_sched_yield = no -a \
3759 $ac_cv_func_pthread_yield = no ; then
3760 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3761 echo "configure:3762: checking for sched_yield in -lrt" >&5
3762 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3764 echo $ac_n "(cached) $ac_c" 1>&6
3766 ac_save_LIBS="$LIBS"
3768 cat > conftest.$ac_ext <<EOF
3769 #line 3770 "configure"
3770 #include "confdefs.h"
3771 /* Override any gcc2 internal prototype to avoid an error. */
3772 /* We use char because int might match the return type of a gcc2
3773 builtin and then its argument prototype would still apply. */
3780 if { (eval echo configure:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3782 eval "ac_cv_lib_$ac_lib_var=yes"
3784 echo "configure: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3787 eval "ac_cv_lib_$ac_lib_var=no"
3790 LIBS="$ac_save_LIBS"
3793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3794 echo "$ac_t""yes" 1>&6
3795 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
3796 cat >> confdefs.h <<\EOF
3797 #define HAVE_SCHED_YIELD 1
3800 ac_cv_func_sched_yield=yes
3802 echo "$ac_t""no" 1>&6
3803 ac_cv_func_sched_yield=no
3807 if test $ac_cv_func_sched_yield = no -a \
3808 $ac_cv_func_pthread_yield = no ; then
3809 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3810 echo "configure:3811: checking for sched_yield in -lposix4" >&5
3811 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3815 ac_save_LIBS="$LIBS"
3816 LIBS="-lposix4 $LIBS"
3817 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3820 /* Override any gcc2 internal prototype to avoid an error. */
3821 /* We use char because int might match the return type of a gcc2
3822 builtin and then its argument prototype would still apply. */
3829 if { (eval echo configure:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3831 eval "ac_cv_lib_$ac_lib_var=yes"
3833 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3836 eval "ac_cv_lib_$ac_lib_var=no"
3839 LIBS="$ac_save_LIBS"
3842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3843 echo "$ac_t""yes" 1>&6
3844 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
3845 cat >> confdefs.h <<\EOF
3846 #define HAVE_SCHED_YIELD 1
3849 ac_cv_func_sched_yield=yes
3851 echo "$ac_t""no" 1>&6
3852 ac_cv_func_sched_yield=no
3856 if test $ac_cv_func_sched_yield = no -a \
3857 $ac_cv_func_pthread_yield = no ; then
3858 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
3859 { echo "configure: error: POSIX Threads are not usable" 1>&2; exit 1; }
3862 for ac_func in pthread_kill
3864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3865 echo "configure:3866: checking for $ac_func" >&5
3866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 /* System header to define __stub macros and hopefully few prototypes,
3873 which can conflict with char $ac_func(); below. */
3875 /* Override any gcc2 internal prototype to avoid an error. */
3876 /* We use char because int might match the return type of a gcc2
3877 builtin and then its argument prototype would still apply. */
3882 /* The GNU C library defines this for functions which it implements
3883 to always fail with ENOSYS. Some functions are actually named
3884 something starting with __ and the normal name is an alias. */
3885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3893 if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3895 eval "ac_cv_func_$ac_func=yes"
3897 echo "configure: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3900 eval "ac_cv_func_$ac_func=no"
3905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3906 echo "$ac_t""yes" 1>&6
3907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3908 cat >> confdefs.h <<EOF
3909 #define $ac_tr_func 1
3913 echo "$ac_t""no" 1>&6
3918 pthread_attr_create pthread_attr_init \
3919 pthread_attr_destroy pthread_attr_delete \
3920 pthread_attr_setdetachstate pthread_attr_setdetach_np \
3923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3924 echo "configure:3925: checking for $ac_func" >&5
3925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3931 /* System header to define __stub macros and hopefully few prototypes,
3932 which can conflict with char $ac_func(); below. */
3934 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3941 /* The GNU C library defines this for functions which it implements
3942 to always fail with ENOSYS. Some functions are actually named
3943 something starting with __ and the normal name is an alias. */
3944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3952 if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3954 eval "ac_cv_func_$ac_func=yes"
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3959 eval "ac_cv_func_$ac_func=no"
3964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
3966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3967 cat >> confdefs.h <<EOF
3968 #define $ac_tr_func 1
3972 echo "$ac_t""no" 1>&6
3978 pthread_setconcurrency \
3979 thr_setconcurrency \
3982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3983 echo "configure:3984: checking for $ac_func" >&5
3984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3987 cat > conftest.$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 /* System header to define __stub macros and hopefully few prototypes,
3991 which can conflict with char $ac_func(); below. */
3993 /* Override any gcc2 internal prototype to avoid an error. */
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
4000 /* The GNU C library defines this for functions which it implements
4001 to always fail with ENOSYS. Some functions are actually named
4002 something starting with __ and the normal name is an alias. */
4003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4011 if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4013 eval "ac_cv_func_$ac_func=yes"
4015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4018 eval "ac_cv_func_$ac_func=no"
4023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4024 echo "$ac_t""yes" 1>&6
4025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4026 cat >> confdefs.h <<EOF
4027 #define $ac_tr_func 1
4031 echo "$ac_t""no" 1>&6
4036 if test $ol_with_preemptive = auto ; then
4037 echo $ac_n "checking for preemptive Pthread implementation""... $ac_c" 1>&6
4038 echo "configure:4039: checking for preemptive Pthread implementation" >&5
4039 if test "$cross_compiling" = yes; then
4041 { echo "configure: error: crossing compiling: use --with-preemptive=yes|no|manual" 1>&2; exit 1; }
4043 cat > conftest.$ac_ext <<EOF
4044 #line 4045 "configure"
4045 #include "confdefs.h"
4047 #include <sys/types.h>
4048 #include <sys/time.h>
4050 #include <pthread.h>
4064 /* we're not interested in any fds */
4065 i = select(FD_SETSIZE, NULL, NULL, NULL, &tv);
4071 exit(1); /* if we exit here, the select blocked the whole process */
4075 int argc; char **argv;
4079 #ifdef HAVE_PTHREAD_SETCONCURRENCY
4080 (void) pthread_setconcurrency(2);
4082 #ifdef HAVE_THR_SETCONCURRENCY
4083 /* Set Solaris LWP concurrency to 2 */
4084 thr_setconcurrency(2);
4088 pthread_create(&t, NULL, (void *) task, NULL);
4090 #if HAVE_SCHED_YIELD
4091 sched_yield(); /* make sure task runs first */
4093 #ifdef HAVE_PTHREAD_YIELD
4094 pthread_yield(); /* make sure task runs first */
4101 if { (eval echo configure:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4103 ol_pthread_preemptive=yes
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4108 ol_pthread_preemptive=no
4113 echo "$ac_t""$ol_pthread_preemptive" 1>&6
4115 if test $ol_pthread_preemptive = yes ; then
4116 cat >> confdefs.h <<\EOF
4117 #define HAVE_PREEMPTIVE_PTHREADS 1
4120 ol_with_preemptive=yes
4125 CPPFLAGS="$save_CPPFLAGS"
4128 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
4132 if test $ol_with_threads = posix ; then
4133 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
4137 if test $ol_with_threads = auto -o $ol_with_threads = mach ; then
4138 for ac_hdr in mach/cthreads.h
4140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4142 echo "configure:4143: checking for $ac_hdr" >&5
4143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4146 cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4152 { (eval echo configure:4153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4153 ac_err=`grep -v '^ *+' conftest.out`
4154 if test -z "$ac_err"; then
4156 eval "ac_cv_header_$ac_safe=yes"
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 eval "ac_cv_header_$ac_safe=no"
4166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4167 echo "$ac_t""yes" 1>&6
4168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4169 cat >> confdefs.h <<EOF
4170 #define $ac_tr_hdr 1
4174 echo "$ac_t""no" 1>&6
4178 if test $ac_cv_header_mach_cthreads_h = yes ; then
4179 ol_with_threads=found
4181 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
4182 echo "configure:4183: checking for cthread_fork" >&5
4183 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189 /* System header to define __stub macros and hopefully few prototypes,
4190 which can conflict with char cthread_fork(); below. */
4192 /* Override any gcc2 internal prototype to avoid an error. */
4193 /* We use char because int might match the return type of a gcc2
4194 builtin and then its argument prototype would still apply. */
4195 char cthread_fork();
4199 /* The GNU C library defines this for functions which it implements
4200 to always fail with ENOSYS. Some functions are actually named
4201 something starting with __ and the normal name is an alias. */
4202 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
4210 if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4212 eval "ac_cv_func_cthread_fork=yes"
4214 echo "configure: failed program was:" >&5
4215 cat conftest.$ac_ext >&5
4217 eval "ac_cv_func_cthread_fork=no"
4222 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
4223 echo "$ac_t""yes" 1>&6
4226 echo "$ac_t""no" 1>&6
4230 if test $ol_link_threads = no ; then
4231 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
4232 echo "configure:4233: checking for cthread_fork with -all_load" >&5
4233 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
4234 echo $ac_n "(cached) $ac_c" 1>&6
4238 LIBS="-all_load $LIBS"
4239 cat > conftest.$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4242 #include <mach/cthreads.h>
4245 cthread_fork((void *)0, (void *)0);
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4251 ol_cv_cthread_all_load=yes
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4256 ol_cv_cthread_all_load=no
4263 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
4265 if test $ol_cv_cthread_all_load = yes ; then
4266 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
4267 ol_link_threads=mach
4271 if test $ol_link_threads != no ; then
4272 : check for cthread specific functionality here
4273 cat >> confdefs.h <<\EOF
4274 #define HAVE_MACH_CTHREADS 1
4278 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
4282 if test $ol_with_threads = mach ; then
4283 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
4287 if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
4288 for ac_hdr in thread.h synch.h
4290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4292 echo "configure:4293: checking for $ac_hdr" >&5
4293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4294 echo $ac_n "(cached) $ac_c" 1>&6
4296 cat > conftest.$ac_ext <<EOF
4297 #line 4298 "configure"
4298 #include "confdefs.h"
4301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4302 { (eval echo configure:4303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4303 ac_err=`grep -v '^ *+' conftest.out`
4304 if test -z "$ac_err"; then
4306 eval "ac_cv_header_$ac_safe=yes"
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4312 eval "ac_cv_header_$ac_safe=no"
4316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4317 echo "$ac_t""yes" 1>&6
4318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4319 cat >> confdefs.h <<EOF
4320 #define $ac_tr_hdr 1
4324 echo "$ac_t""no" 1>&6
4328 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
4329 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
4330 echo "configure:4331: checking for thr_create in -lthread" >&5
4331 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
4332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4335 ac_save_LIBS="$LIBS"
4336 LIBS="-lthread $LIBS"
4337 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4340 /* Override any gcc2 internal prototype to avoid an error. */
4341 /* We use char because int might match the return type of a gcc2
4342 builtin and then its argument prototype would still apply. */
4349 if { (eval echo configure:4350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4351 eval "ac_cv_lib_$ac_lib_var=yes"
4353 echo "configure: failed program was:" >&5
4354 cat conftest.$ac_ext >&5
4356 eval "ac_cv_lib_$ac_lib_var=no"
4359 LIBS="$ac_save_LIBS"
4362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4363 echo "$ac_t""yes" 1>&6
4366 echo "$ac_t""no" 1>&6
4371 if test $have_thr = yes ; then
4372 cat >> confdefs.h <<\EOF
4376 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
4379 if test $ol_with_preemptive = auto ; then
4380 ol_with_preemptive=yes
4385 for ac_hdr in lwp/lwp.h
4387 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4389 echo "configure:4390: checking for $ac_hdr" >&5
4390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 cat > conftest.$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4399 { (eval echo configure:4400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4400 ac_err=`grep -v '^ *+' conftest.out`
4401 if test -z "$ac_err"; then
4403 eval "ac_cv_header_$ac_safe=yes"
4406 echo "configure: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4409 eval "ac_cv_header_$ac_safe=no"
4413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4414 echo "$ac_t""yes" 1>&6
4415 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4416 cat >> confdefs.h <<EOF
4417 #define $ac_tr_hdr 1
4421 echo "$ac_t""no" 1>&6
4425 if test $ac_cv_header_lwp_lwp_h = yes ; then
4426 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
4427 echo "configure:4428: checking for lwp_create in -llwp" >&5
4428 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
4429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4432 ac_save_LIBS="$LIBS"
4434 cat > conftest.$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437 /* Override any gcc2 internal prototype to avoid an error. */
4438 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4448 eval "ac_cv_lib_$ac_lib_var=yes"
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4453 eval "ac_cv_lib_$ac_lib_var=no"
4456 LIBS="$ac_save_LIBS"
4459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4463 echo "$ac_t""no" 1>&6
4468 if test $have_lwp = yes ; then
4469 cat >> confdefs.h <<\EOF
4473 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
4476 if test $ol_with_preemptive = auto ; then
4477 ol_with_preemptive=no
4483 if test $ol_with_preemptive = yes ; then
4484 cat >> confdefs.h <<\EOF
4485 #define PREEMPTIVE_THREADS 1
4490 if test $ol_with_threads = manual ; then
4493 echo "configure: warning: thread defines and link options must be set manually" 1>&2
4495 for ac_hdr in pthread.h sched.h
4497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4499 echo "configure:4500: checking for $ac_hdr" >&5
4500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4501 echo $ac_n "(cached) $ac_c" 1>&6
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4509 { (eval echo configure:4510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4510 ac_err=`grep -v '^ *+' conftest.out`
4511 if test -z "$ac_err"; then
4513 eval "ac_cv_header_$ac_safe=yes"
4516 echo "configure: failed program was:" >&5
4517 cat conftest.$ac_ext >&5
4519 eval "ac_cv_header_$ac_safe=no"
4523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4524 echo "$ac_t""yes" 1>&6
4525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4526 cat >> confdefs.h <<EOF
4527 #define $ac_tr_hdr 1
4531 echo "$ac_t""no" 1>&6
4535 for ac_func in sched_yield pthread_yield
4537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4538 echo "configure:4539: checking for $ac_func" >&5
4539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4540 echo $ac_n "(cached) $ac_c" 1>&6
4542 cat > conftest.$ac_ext <<EOF
4543 #line 4544 "configure"
4544 #include "confdefs.h"
4545 /* System header to define __stub macros and hopefully few prototypes,
4546 which can conflict with char $ac_func(); below. */
4548 /* Override any gcc2 internal prototype to avoid an error. */
4549 /* We use char because int might match the return type of a gcc2
4550 builtin and then its argument prototype would still apply. */
4555 /* The GNU C library defines this for functions which it implements
4556 to always fail with ENOSYS. Some functions are actually named
4557 something starting with __ and the normal name is an alias. */
4558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4566 if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4568 eval "ac_cv_func_$ac_func=yes"
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4573 eval "ac_cv_func_$ac_func=no"
4578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4579 echo "$ac_t""yes" 1>&6
4580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4581 cat >> confdefs.h <<EOF
4582 #define $ac_tr_func 1
4586 echo "$ac_t""no" 1>&6
4591 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4592 echo "configure:4593: checking for LinuxThreads" >&5
4593 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4597 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4598 if test "$res" -gt 0 ; then
4599 ol_cv_linux_threads=yes
4601 ol_cv_linux_threads=no
4606 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4609 for ac_hdr in mach/cthreads.h
4611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4613 echo "configure:4614: checking for $ac_hdr" >&5
4614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4615 echo $ac_n "(cached) $ac_c" 1>&6
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4623 { (eval echo configure:4624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4624 ac_err=`grep -v '^ *+' conftest.out`
4625 if test -z "$ac_err"; then
4627 eval "ac_cv_header_$ac_safe=yes"
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4633 eval "ac_cv_header_$ac_safe=no"
4637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4638 echo "$ac_t""yes" 1>&6
4639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4640 cat >> confdefs.h <<EOF
4641 #define $ac_tr_hdr 1
4645 echo "$ac_t""no" 1>&6
4649 for ac_hdr in lwp/lwp.h
4651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4653 echo "configure:4654: checking for $ac_hdr" >&5
4654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4663 { (eval echo configure:4664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4664 ac_err=`grep -v '^ *+' conftest.out`
4665 if test -z "$ac_err"; then
4667 eval "ac_cv_header_$ac_safe=yes"
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4673 eval "ac_cv_header_$ac_safe=no"
4677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4678 echo "$ac_t""yes" 1>&6
4679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4680 cat >> confdefs.h <<EOF
4681 #define $ac_tr_hdr 1
4685 echo "$ac_t""no" 1>&6
4689 for ac_hdr in thread.h synch.h
4691 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4692 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4693 echo "configure:4694: checking for $ac_hdr" >&5
4694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4703 { (eval echo configure:4704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4704 ac_err=`grep -v '^ *+' conftest.out`
4705 if test -z "$ac_err"; then
4707 eval "ac_cv_header_$ac_safe=yes"
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4713 eval "ac_cv_header_$ac_safe=no"
4717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4718 echo "$ac_t""yes" 1>&6
4719 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4720 cat >> confdefs.h <<EOF
4721 #define $ac_tr_hdr 1
4725 echo "$ac_t""no" 1>&6
4731 if test $ol_with_threads != no ; then
4732 cat >> confdefs.h <<\EOF
4733 #define _REENTRANT 1
4736 cat >> confdefs.h <<\EOF
4737 #define _THREAD_SAFE 1
4740 cat >> confdefs.h <<\EOF
4741 #define _THREADSAFE 1
4745 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
4746 echo "configure:4747: checking for thread specific errno" >&5
4747 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4751 cat > conftest.$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4763 if { (eval echo configure:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4765 ol_cv_errno_thread_specific=yes
4767 echo "configure: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4770 ol_cv_errno_thread_specific=no
4776 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
4778 if test $ol_cv_errno_thread_specific != yes ; then
4779 LIBS="$LTHREAD_LIBS $LIBS"
4785 if test $ol_link_threads = no ; then
4786 if test $ol_with_threads = yes ; then
4787 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
4790 if test $ol_with_threads = auto ; then
4791 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
4795 cat >> confdefs.h <<\EOF
4796 #define NO_THREADS 1
4799 cat >> confdefs.h <<\EOF
4800 #define PREEMPTIVE_THREADS 1
4807 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
4808 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
4809 echo "configure:4810: checking for DB2 library" >&5
4810 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4814 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
4815 echo "configure:4816: checking for db_open in -ldb" >&5
4816 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
4817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4820 ac_save_LIBS="$LIBS"
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4825 /* Override any gcc2 internal prototype to avoid an error. */
4826 /* We use char because int might match the return type of a gcc2
4827 builtin and then its argument prototype would still apply. */
4834 if { (eval echo configure:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4836 eval "ac_cv_lib_$ac_lib_var=yes"
4838 echo "configure: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4841 eval "ac_cv_lib_$ac_lib_var=no"
4844 LIBS="$ac_save_LIBS"
4847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4848 echo "$ac_t""yes" 1>&6
4851 echo "$ac_t""no" 1>&6
4859 echo "$ac_t""$ol_cv_lib_db2" 1>&6
4863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4865 echo "configure:4866: checking for $ac_hdr" >&5
4866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4875 { (eval echo configure:4876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4876 ac_err=`grep -v '^ *+' conftest.out`
4877 if test -z "$ac_err"; then
4879 eval "ac_cv_header_$ac_safe=yes"
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4885 eval "ac_cv_header_$ac_safe=no"
4889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4890 echo "$ac_t""yes" 1>&6
4891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4892 cat >> confdefs.h <<EOF
4893 #define $ac_tr_hdr 1
4897 echo "$ac_t""no" 1>&6
4901 if test $ac_cv_header_db_h = yes ; then
4902 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
4903 echo "configure:4904: checking if db.h is DB2" >&5
4904 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
4905 echo $ac_n "(cached) $ac_c" 1>&6
4908 cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4913 /* this check could be improved */
4914 # ifdef DB_VERSION_MAJOR
4915 # if DB_VERSION_MAJOR == 2
4921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4922 egrep "__db_version_2" >/dev/null 2>&1; then
4924 ol_cv_header_db2=yes
4933 echo "$ac_t""$ol_cv_header_db2" 1>&6
4940 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
4941 echo "configure:4942: checking for Berkeley DB2" >&5
4942 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4946 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
4947 ol_cv_berkeley_db2=no
4949 ol_cv_berkeley_db2=yes
4954 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
4955 if test $ol_cv_berkeley_db2 = yes ; then
4956 cat >> confdefs.h <<\EOF
4957 #define HAVE_BERKELEY_DB2 1
4963 if test $ol_cv_berkeley_db2 = yes ; then
4965 ol_with_ldbm_api=db2
4967 if test $ol_with_ldbm_type = hash ; then
4968 cat >> confdefs.h <<\EOF
4969 #define LDBM_USE_DBHASH 1
4973 cat >> confdefs.h <<\EOF
4974 #define LDBM_USE_DBBTREE 1
4979 if test $ol_cv_lib_db2 != yes ; then
4980 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
4985 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
4986 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
4987 echo "configure:4988: checking for Berkeley DB library" >&5
4988 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
4989 echo $ac_n "(cached) $ac_c" 1>&6
4992 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
4993 echo "configure:4994: checking for dbopen" >&5
4994 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4997 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5000 /* System header to define __stub macros and hopefully few prototypes,
5001 which can conflict with char dbopen(); below. */
5003 /* Override any gcc2 internal prototype to avoid an error. */
5004 /* We use char because int might match the return type of a gcc2
5005 builtin and then its argument prototype would still apply. */
5010 /* The GNU C library defines this for functions which it implements
5011 to always fail with ENOSYS. Some functions are actually named
5012 something starting with __ and the normal name is an alias. */
5013 #if defined (__stub_dbopen) || defined (__stub___dbopen)
5021 if { (eval echo configure:5022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5023 eval "ac_cv_func_dbopen=yes"
5025 echo "configure: failed program was:" >&5
5026 cat conftest.$ac_ext >&5
5028 eval "ac_cv_func_dbopen=no"
5033 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
5034 echo "$ac_t""yes" 1>&6
5037 echo "$ac_t""no" 1>&6
5039 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
5040 echo "configure:5041: checking for dbopen in -ldb" >&5
5041 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
5042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5043 echo $ac_n "(cached) $ac_c" 1>&6
5045 ac_save_LIBS="$LIBS"
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5050 /* Override any gcc2 internal prototype to avoid an error. */
5051 /* We use char because int might match the return type of a gcc2
5052 builtin and then its argument prototype would still apply. */
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5061 eval "ac_cv_lib_$ac_lib_var=yes"
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 eval "ac_cv_lib_$ac_lib_var=no"
5069 LIBS="$ac_save_LIBS"
5072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5073 echo "$ac_t""yes" 1>&6
5076 echo "$ac_t""no" 1>&6
5087 echo "$ac_t""$ol_cv_lib_db" 1>&6
5090 for ac_hdr in db_185.h
5092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5094 echo "configure:5095: checking for $ac_hdr" >&5
5095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5104 { (eval echo configure:5105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5105 ac_err=`grep -v '^ *+' conftest.out`
5106 if test -z "$ac_err"; then
5108 eval "ac_cv_header_$ac_safe=yes"
5111 echo "configure: failed program was:" >&5
5112 cat conftest.$ac_ext >&5
5114 eval "ac_cv_header_$ac_safe=no"
5118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5119 echo "$ac_t""yes" 1>&6
5120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5121 cat >> confdefs.h <<EOF
5122 #define $ac_tr_hdr 1
5126 echo "$ac_t""no" 1>&6
5130 if test $ol_cv_header_db2 = yes ; then
5132 ol_cv_header_db=$ac_cv_header_db_185_h
5134 ol_cv_header_db=$ac_cv_header_db_h
5139 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
5140 echo "configure:5141: checking for Berkeley DB" >&5
5141 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5145 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
5146 ol_cv_berkeley_db=no
5148 ol_cv_berkeley_db=yes
5153 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
5154 if test $ol_cv_berkeley_db = yes ; then
5155 cat >> confdefs.h <<\EOF
5156 #define HAVE_BERKELEY_DB 1
5162 if test $ol_cv_berkeley_db = yes ; then
5166 if test $ol_with_ldbm_type = hash ; then
5167 cat >> confdefs.h <<\EOF
5168 #define LDBM_USE_DBHASH 1
5172 cat >> confdefs.h <<\EOF
5173 #define LDBM_USE_DBBTREE 1
5178 if test $ol_cv_lib_db != yes ; then
5179 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
5184 if test $ol_with_ldbm_api = manual ; then
5187 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
5189 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
5191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5193 echo "configure:5194: checking for $ac_hdr" >&5
5194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5203 { (eval echo configure:5204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5204 ac_err=`grep -v '^ *+' conftest.out`
5205 if test -z "$ac_err"; then
5207 eval "ac_cv_header_$ac_safe=yes"
5210 echo "configure: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5213 eval "ac_cv_header_$ac_safe=no"
5217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5218 echo "$ac_t""yes" 1>&6
5219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5220 cat >> confdefs.h <<EOF
5221 #define $ac_tr_hdr 1
5225 echo "$ac_t""no" 1>&6
5231 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
5232 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
5233 ol_with_ldbm_api=none
5236 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
5237 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
5238 echo "configure:5239: checking for GDBM library" >&5
5239 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
5240 echo $ac_n "(cached) $ac_c" 1>&6
5243 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
5244 echo "configure:5245: checking for gdbm_open" >&5
5245 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5251 /* System header to define __stub macros and hopefully few prototypes,
5252 which can conflict with char gdbm_open(); below. */
5254 /* Override any gcc2 internal prototype to avoid an error. */
5255 /* We use char because int might match the return type of a gcc2
5256 builtin and then its argument prototype would still apply. */
5261 /* The GNU C library defines this for functions which it implements
5262 to always fail with ENOSYS. Some functions are actually named
5263 something starting with __ and the normal name is an alias. */
5264 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
5272 if { (eval echo configure:5273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5274 eval "ac_cv_func_gdbm_open=yes"
5276 echo "configure: failed program was:" >&5
5277 cat conftest.$ac_ext >&5
5279 eval "ac_cv_func_gdbm_open=no"
5284 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
5285 echo "$ac_t""yes" 1>&6
5288 echo "$ac_t""no" 1>&6
5290 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
5291 echo "configure:5292: checking for gdbm_open in -lgdbm" >&5
5292 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
5293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 ac_save_LIBS="$LIBS"
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5301 /* Override any gcc2 internal prototype to avoid an error. */
5302 /* We use char because int might match the return type of a gcc2
5303 builtin and then its argument prototype would still apply. */
5310 if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5312 eval "ac_cv_lib_$ac_lib_var=yes"
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5317 eval "ac_cv_lib_$ac_lib_var=no"
5320 LIBS="$ac_save_LIBS"
5323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5324 echo "$ac_t""yes" 1>&6
5325 ol_cv_lib_gdbm=-lgdbm
5327 echo "$ac_t""no" 1>&6
5338 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
5341 for ac_hdr in gdbm.h
5343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5345 echo "configure:5346: checking for $ac_hdr" >&5
5346 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5347 echo $ac_n "(cached) $ac_c" 1>&6
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5355 { (eval echo configure:5356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5356 ac_err=`grep -v '^ *+' conftest.out`
5357 if test -z "$ac_err"; then
5359 eval "ac_cv_header_$ac_safe=yes"
5362 echo "configure: failed program was:" >&5
5363 cat conftest.$ac_ext >&5
5365 eval "ac_cv_header_$ac_safe=no"
5369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5370 echo "$ac_t""yes" 1>&6
5371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5372 cat >> confdefs.h <<EOF
5373 #define $ac_tr_hdr 1
5377 echo "$ac_t""no" 1>&6
5381 echo $ac_n "checking for db""... $ac_c" 1>&6
5382 echo "configure:5383: checking for db" >&5
5383 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
5384 echo $ac_n "(cached) $ac_c" 1>&6
5387 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
5395 echo "$ac_t""$ol_cv_gdbm" 1>&6
5396 if test $ol_cv_gdbm = yes ; then
5397 cat >> confdefs.h <<\EOF
5404 if test $ol_cv_gdbm = yes ; then
5406 ol_with_ldbm_api=gdbm
5408 if test $ol_cv_lib_gdbm != yes ; then
5409 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
5414 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
5415 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
5416 echo "configure:5417: checking for NDBM library" >&5
5417 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5421 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
5422 echo "configure:5423: checking for dbm_open" >&5
5423 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5426 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5429 /* System header to define __stub macros and hopefully few prototypes,
5430 which can conflict with char dbm_open(); below. */
5432 /* Override any gcc2 internal prototype to avoid an error. */
5433 /* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */
5439 /* The GNU C library defines this for functions which it implements
5440 to always fail with ENOSYS. Some functions are actually named
5441 something starting with __ and the normal name is an alias. */
5442 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
5450 if { (eval echo configure:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5452 eval "ac_cv_func_dbm_open=yes"
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5457 eval "ac_cv_func_dbm_open=no"
5462 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
5463 echo "$ac_t""yes" 1>&6
5466 echo "$ac_t""no" 1>&6
5468 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
5469 echo "configure:5470: checking for dbm_open in -lndbm" >&5
5470 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
5471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5472 echo $ac_n "(cached) $ac_c" 1>&6
5474 ac_save_LIBS="$LIBS"
5476 cat > conftest.$ac_ext <<EOF
5477 #line 5478 "configure"
5478 #include "confdefs.h"
5479 /* Override any gcc2 internal prototype to avoid an error. */
5480 /* We use char because int might match the return type of a gcc2
5481 builtin and then its argument prototype would still apply. */
5488 if { (eval echo configure:5489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5490 eval "ac_cv_lib_$ac_lib_var=yes"
5492 echo "configure: failed program was:" >&5
5493 cat conftest.$ac_ext >&5
5495 eval "ac_cv_lib_$ac_lib_var=no"
5498 LIBS="$ac_save_LIBS"
5501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5502 echo "$ac_t""yes" 1>&6
5503 ol_cv_lib_ndbm=-lndbm
5505 echo "$ac_t""no" 1>&6
5507 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
5508 echo "configure:5509: checking for dbm_open in -ldbm" >&5
5509 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
5510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5511 echo $ac_n "(cached) $ac_c" 1>&6
5513 ac_save_LIBS="$LIBS"
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 /* Override any gcc2 internal prototype to avoid an error. */
5519 /* We use char because int might match the return type of a gcc2
5520 builtin and then its argument prototype would still apply. */
5527 if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5529 eval "ac_cv_lib_$ac_lib_var=yes"
5531 echo "configure: failed program was:" >&5
5532 cat conftest.$ac_ext >&5
5534 eval "ac_cv_lib_$ac_lib_var=no"
5537 LIBS="$ac_save_LIBS"
5540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5541 echo "$ac_t""yes" 1>&6
5542 ol_cv_lib_ndbm=-ldbm
5544 echo "$ac_t""no" 1>&6
5557 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
5560 for ac_hdr in ndbm.h
5562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5564 echo "configure:5565: checking for $ac_hdr" >&5
5565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5574 { (eval echo configure:5575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5575 ac_err=`grep -v '^ *+' conftest.out`
5576 if test -z "$ac_err"; then
5578 eval "ac_cv_header_$ac_safe=yes"
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5584 eval "ac_cv_header_$ac_safe=no"
5588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5589 echo "$ac_t""yes" 1>&6
5590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5591 cat >> confdefs.h <<EOF
5592 #define $ac_tr_hdr 1
5596 echo "$ac_t""no" 1>&6
5600 echo $ac_n "checking for db""... $ac_c" 1>&6
5601 echo "configure:5602: checking for db" >&5
5602 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
5603 echo $ac_n "(cached) $ac_c" 1>&6
5606 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
5614 echo "$ac_t""$ol_cv_ndbm" 1>&6
5615 if test $ol_cv_ndbm = yes ; then
5616 cat >> confdefs.h <<\EOF
5623 if test $ol_cv_ndbm = yes ; then
5625 ol_with_ldbm_api=ndbm
5627 if test $ol_with_ldbm_api = ndbm ; then
5628 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
5631 if test $ol_cv_lib_ndbm != yes ; then
5632 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
5637 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
5638 echo "configure: warning: could not find suitable LDBM backend" 1>&2
5639 if test $ol_enable_ldbm = yes ; then
5640 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
5643 echo "configure: warning: disabling LDBM" 1>&2
5647 if test $ol_enable_wrappers = yes ; then
5648 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
5649 echo "configure:5650: checking for hosts_access in -lwrap" >&5
5650 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
5651 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5652 echo $ac_n "(cached) $ac_c" 1>&6
5654 ac_save_LIBS="$LIBS"
5656 cat > conftest.$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5659 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5662 char hosts_access();
5668 if { (eval echo configure:5669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5670 eval "ac_cv_lib_$ac_lib_var=yes"
5672 echo "configure: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5675 eval "ac_cv_lib_$ac_lib_var=no"
5678 LIBS="$ac_save_LIBS"
5681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5682 echo "$ac_t""yes" 1>&6
5685 echo "$ac_t""no" 1>&6
5690 if test $have_wrappers = yes ; then
5691 cat >> confdefs.h <<\EOF
5695 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
5697 echo "configure: warning: could not find -lwrap" 1>&2
5698 if test $ol_enable_wrappers = yes ; then
5699 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
5702 echo "configure: warning: disabling wrappers support" 1>&2
5703 ol_enable_wrappers=no
5708 # ud needs termcap (should insert check here)
5710 for ac_hdr in termcap.h ncurses.h
5712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5714 echo "configure:5715: checking for $ac_hdr" >&5
5715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5718 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5724 { (eval echo configure:5725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5725 ac_err=`grep -v '^ *+' conftest.out`
5726 if test -z "$ac_err"; then
5728 eval "ac_cv_header_$ac_safe=yes"
5731 echo "configure: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5734 eval "ac_cv_header_$ac_safe=no"
5738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5739 echo "$ac_t""yes" 1>&6
5740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5741 cat >> confdefs.h <<EOF
5742 #define $ac_tr_hdr 1
5746 echo "$ac_t""no" 1>&6
5751 if test $ol_link_termcap = no ; then
5752 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
5753 echo "configure:5754: checking for tputs in -ltermcap" >&5
5754 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
5755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5756 echo $ac_n "(cached) $ac_c" 1>&6
5758 ac_save_LIBS="$LIBS"
5759 LIBS="-ltermcap $LIBS"
5760 cat > conftest.$ac_ext <<EOF
5761 #line 5762 "configure"
5762 #include "confdefs.h"
5763 /* Override any gcc2 internal prototype to avoid an error. */
5764 /* We use char because int might match the return type of a gcc2
5765 builtin and then its argument prototype would still apply. */
5772 if { (eval echo configure:5773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5774 eval "ac_cv_lib_$ac_lib_var=yes"
5776 echo "configure: failed program was:" >&5
5777 cat conftest.$ac_ext >&5
5779 eval "ac_cv_lib_$ac_lib_var=no"
5782 LIBS="$ac_save_LIBS"
5785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5786 echo "$ac_t""yes" 1>&6
5789 echo "$ac_t""no" 1>&6
5793 if test $have_termcap = yes ; then
5794 cat >> confdefs.h <<\EOF
5795 #define HAVE_TERMCAP 1
5799 TERMCAP_LIBS=-ltermcap
5803 if test $ol_link_termcap = no ; then
5804 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
5805 echo "configure:5806: checking for initscr in -lncurses" >&5
5806 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
5807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5808 echo $ac_n "(cached) $ac_c" 1>&6
5810 ac_save_LIBS="$LIBS"
5811 LIBS="-lncurses $LIBS"
5812 cat > conftest.$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 /* Override any gcc2 internal prototype to avoid an error. */
5816 /* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5824 if { (eval echo configure:5825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5826 eval "ac_cv_lib_$ac_lib_var=yes"
5828 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5831 eval "ac_cv_lib_$ac_lib_var=no"
5834 LIBS="$ac_save_LIBS"
5837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5838 echo "$ac_t""yes" 1>&6
5841 echo "$ac_t""no" 1>&6
5845 if test $have_ncurses = yes ; then
5846 cat >> confdefs.h <<\EOF
5847 #define HAVE_NCURSES 1
5851 TERMCAP_LIBS=-lncurses
5855 if test $ol_link_termcap = no ; then
5856 cat >> confdefs.h <<\EOF
5857 #define NO_TERMCAP 1
5863 # FreeBSD (and others) have crypt(3) in -lcrypt
5864 if test $ol_enable_crypt != no ; then
5865 echo $ac_n "checking for crypt""... $ac_c" 1>&6
5866 echo "configure:5867: checking for crypt" >&5
5867 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6
5870 cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5873 /* System header to define __stub macros and hopefully few prototypes,
5874 which can conflict with char crypt(); below. */
5876 /* Override any gcc2 internal prototype to avoid an error. */
5877 /* We use char because int might match the return type of a gcc2
5878 builtin and then its argument prototype would still apply. */
5883 /* The GNU C library defines this for functions which it implements
5884 to always fail with ENOSYS. Some functions are actually named
5885 something starting with __ and the normal name is an alias. */
5886 #if defined (__stub_crypt) || defined (__stub___crypt)
5894 if { (eval echo configure:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5896 eval "ac_cv_func_crypt=yes"
5898 echo "configure: failed program was:" >&5
5899 cat conftest.$ac_ext >&5
5901 eval "ac_cv_func_crypt=no"
5906 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
5907 echo "$ac_t""yes" 1>&6
5910 echo "$ac_t""no" 1>&6
5912 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
5913 echo "configure:5914: checking for crypt in -lcrypt" >&5
5914 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
5915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5916 echo $ac_n "(cached) $ac_c" 1>&6
5918 ac_save_LIBS="$LIBS"
5919 LIBS="-lcrypt $LIBS"
5920 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5923 /* Override any gcc2 internal prototype to avoid an error. */
5924 /* We use char because int might match the return type of a gcc2
5925 builtin and then its argument prototype would still apply. */
5932 if { (eval echo configure:5933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5934 eval "ac_cv_lib_$ac_lib_var=yes"
5936 echo "configure: failed program was:" >&5
5937 cat conftest.$ac_ext >&5
5939 eval "ac_cv_lib_$ac_lib_var=no"
5942 LIBS="$ac_save_LIBS"
5945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5946 echo "$ac_t""yes" 1>&6
5947 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
5950 echo "$ac_t""no" 1>&6
5957 if test $have_crypt = yes ; then
5958 cat >> confdefs.h <<\EOF
5959 #define HAVE_CRYPT 1
5963 echo "configure: warning: could not find crypt" 1>&2
5964 if test $ol_enable_crypt = yes ; then
5965 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
5968 echo "configure: warning: disabling crypt support" 1>&2
5973 # FreeBSD (and others) have setproctitle(3) in -lutil
5974 if test $ol_enable_proctitle != no ; then
5975 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
5976 echo "configure:5977: checking for setproctitle" >&5
5977 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5980 cat > conftest.$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 /* System header to define __stub macros and hopefully few prototypes,
5984 which can conflict with char setproctitle(); below. */
5986 /* Override any gcc2 internal prototype to avoid an error. */
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5989 char setproctitle();
5993 /* The GNU C library defines this for functions which it implements
5994 to always fail with ENOSYS. Some functions are actually named
5995 something starting with __ and the normal name is an alias. */
5996 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6006 eval "ac_cv_func_setproctitle=yes"
6008 echo "configure: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6011 eval "ac_cv_func_setproctitle=no"
6016 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
6017 echo "$ac_t""yes" 1>&6
6018 have_setproctitle=yes
6020 echo "$ac_t""no" 1>&6
6022 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
6023 echo "configure:6024: checking for setproctitle in -lutil" >&5
6024 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
6025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6026 echo $ac_n "(cached) $ac_c" 1>&6
6028 ac_save_LIBS="$LIBS"
6030 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 /* Override any gcc2 internal prototype to avoid an error. */
6034 /* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */
6036 char setproctitle();
6042 if { (eval echo configure:6043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6044 eval "ac_cv_lib_$ac_lib_var=yes"
6046 echo "configure: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6049 eval "ac_cv_lib_$ac_lib_var=no"
6052 LIBS="$ac_save_LIBS"
6055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6056 echo "$ac_t""yes" 1>&6
6057 have_setproctitle=yes
6058 LUTIL_LIBS="$LUTIL_LIBS -lutil"
6060 echo "$ac_t""no" 1>&6
6061 have_setproctitle=no
6062 LIBOBJS="$LIBOBJS setproctitle.o"
6068 if test $have_setproctitle = yes ; then
6069 cat >> confdefs.h <<\EOF
6070 #define HAVE_SETPROCTITLE 1
6076 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6077 echo "configure:6078: checking for ANSI C header files" >&5
6078 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6079 echo $ac_n "(cached) $ac_c" 1>&6
6081 cat > conftest.$ac_ext <<EOF
6082 #line 6083 "configure"
6083 #include "confdefs.h"
6089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6090 { (eval echo configure:6091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6091 ac_err=`grep -v '^ *+' conftest.out`
6092 if test -z "$ac_err"; then
6094 ac_cv_header_stdc=yes
6097 echo "configure: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6100 ac_cv_header_stdc=no
6104 if test $ac_cv_header_stdc = yes; then
6105 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6106 cat > conftest.$ac_ext <<EOF
6107 #line 6108 "configure"
6108 #include "confdefs.h"
6111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6112 egrep "memchr" >/dev/null 2>&1; then
6116 ac_cv_header_stdc=no
6122 if test $ac_cv_header_stdc = yes; then
6123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6124 cat > conftest.$ac_ext <<EOF
6125 #line 6126 "configure"
6126 #include "confdefs.h"
6129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6130 egrep "free" >/dev/null 2>&1; then
6134 ac_cv_header_stdc=no
6140 if test $ac_cv_header_stdc = yes; then
6141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6142 if test "$cross_compiling" = yes; then
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6149 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6150 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6152 int main () { int i; for (i = 0; i < 256; i++)
6153 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6157 if { (eval echo configure:6158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6161 echo "configure: failed program was:" >&5
6162 cat conftest.$ac_ext >&5
6164 ac_cv_header_stdc=no
6172 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6173 if test $ac_cv_header_stdc = yes; then
6174 cat >> confdefs.h <<\EOF
6175 #define STDC_HEADERS 1
6181 if test $ac_cv_header_stdc != yes; then
6182 echo "configure: warning: could not Standard C compliant headers" 1>&2
6186 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6189 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6190 echo "configure:6191: checking for $ac_hdr that defines DIR" >&5
6191 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6192 echo $ac_n "(cached) $ac_c" 1>&6
6194 cat > conftest.$ac_ext <<EOF
6195 #line 6196 "configure"
6196 #include "confdefs.h"
6197 #include <sys/types.h>
6203 if { (eval echo configure:6204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6205 eval "ac_cv_header_dirent_$ac_safe=yes"
6207 echo "configure: failed program was:" >&5
6208 cat conftest.$ac_ext >&5
6210 eval "ac_cv_header_dirent_$ac_safe=no"
6214 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6215 echo "$ac_t""yes" 1>&6
6216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6217 cat >> confdefs.h <<EOF
6218 #define $ac_tr_hdr 1
6220 ac_header_dirent=$ac_hdr; break
6222 echo "$ac_t""no" 1>&6
6225 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6226 if test $ac_header_dirent = dirent.h; then
6227 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6228 echo "configure:6229: checking for opendir in -ldir" >&5
6229 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6231 echo $ac_n "(cached) $ac_c" 1>&6
6233 ac_save_LIBS="$LIBS"
6235 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure"
6237 #include "confdefs.h"
6238 /* Override any gcc2 internal prototype to avoid an error. */
6239 /* We use char because int might match the return type of a gcc2
6240 builtin and then its argument prototype would still apply. */
6247 if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6249 eval "ac_cv_lib_$ac_lib_var=yes"
6251 echo "configure: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6254 eval "ac_cv_lib_$ac_lib_var=no"
6257 LIBS="$ac_save_LIBS"
6260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6261 echo "$ac_t""yes" 1>&6
6264 echo "$ac_t""no" 1>&6
6268 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6269 echo "configure:6270: checking for opendir in -lx" >&5
6270 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6272 echo $ac_n "(cached) $ac_c" 1>&6
6274 ac_save_LIBS="$LIBS"
6276 cat > conftest.$ac_ext <<EOF
6277 #line 6278 "configure"
6278 #include "confdefs.h"
6279 /* Override any gcc2 internal prototype to avoid an error. */
6280 /* We use char because int might match the return type of a gcc2
6281 builtin and then its argument prototype would still apply. */
6288 if { (eval echo configure:6289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6290 eval "ac_cv_lib_$ac_lib_var=yes"
6292 echo "configure: failed program was:" >&5
6293 cat conftest.$ac_ext >&5
6295 eval "ac_cv_lib_$ac_lib_var=no"
6298 LIBS="$ac_save_LIBS"
6301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6302 echo "$ac_t""yes" 1>&6
6305 echo "$ac_t""no" 1>&6
6310 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6311 echo "configure:6312: checking for sys/wait.h that is POSIX.1 compatible" >&5
6312 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6313 echo $ac_n "(cached) $ac_c" 1>&6
6315 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure"
6317 #include "confdefs.h"
6318 #include <sys/types.h>
6319 #include <sys/wait.h>
6321 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6324 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6329 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6332 if { (eval echo configure:6333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6334 ac_cv_header_sys_wait_h=yes
6336 echo "configure: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6339 ac_cv_header_sys_wait_h=no
6344 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6345 if test $ac_cv_header_sys_wait_h = yes; then
6346 cat >> confdefs.h <<\EOF
6347 #define HAVE_SYS_WAIT_H 1
6352 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
6353 echo "configure:6354: checking POSIX termios" >&5
6354 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
6355 echo $ac_n "(cached) $ac_c" 1>&6
6357 cat > conftest.$ac_ext <<EOF
6358 #line 6359 "configure"
6359 #include "confdefs.h"
6360 #include <sys/types.h>
6362 #include <termios.h>
6364 /* SunOS 4.0.3 has termios.h but not the library calls. */
6368 if { (eval echo configure:6369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6370 am_cv_sys_posix_termios=yes
6372 echo "configure: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6375 am_cv_sys_posix_termios=no
6380 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
6383 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
6384 echo "configure:6385: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
6385 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
6386 echo $ac_n "(cached) $ac_c" 1>&6
6388 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
6390 gwinsz_in_termios_h=no
6391 if test $am_cv_sys_posix_termios = yes; then
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6395 #include <sys/types.h>
6396 # include <termios.h>
6402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6403 egrep "yes" >/dev/null 2>&1; then
6405 gwinsz_in_termios_h=yes
6411 if test $gwinsz_in_termios_h = no; then
6412 cat > conftest.$ac_ext <<EOF
6413 #line 6414 "configure"
6414 #include "confdefs.h"
6415 #include <sys/types.h>
6416 # include <sys/ioctl.h>
6422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6423 egrep "yes" >/dev/null 2>&1; then
6425 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
6433 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
6434 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
6435 cat >> confdefs.h <<\EOF
6436 #define GWINSZ_IN_SYS_IOCTL 1
6441 if test $am_cv_sys_posix_termios = yes ; then
6442 cat >> confdefs.h <<\EOF
6443 #define HAVE_POSIX_TERMIOS 1
6479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6481 echo "configure:6482: checking for $ac_hdr" >&5
6482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6483 echo $ac_n "(cached) $ac_c" 1>&6
6485 cat > conftest.$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6491 { (eval echo configure:6492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6492 ac_err=`grep -v '^ *+' conftest.out`
6493 if test -z "$ac_err"; then
6495 eval "ac_cv_header_$ac_safe=yes"
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6501 eval "ac_cv_header_$ac_safe=no"
6505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6506 echo "$ac_t""yes" 1>&6
6507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6508 cat >> confdefs.h <<EOF
6509 #define $ac_tr_hdr 1
6513 echo "$ac_t""no" 1>&6
6518 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6519 echo "configure:6520: checking for uid_t in sys/types.h" >&5
6520 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6521 echo $ac_n "(cached) $ac_c" 1>&6
6523 cat > conftest.$ac_ext <<EOF
6524 #line 6525 "configure"
6525 #include "confdefs.h"
6526 #include <sys/types.h>
6528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6529 egrep "uid_t" >/dev/null 2>&1; then
6531 ac_cv_type_uid_t=yes
6540 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6541 if test $ac_cv_type_uid_t = no; then
6542 cat >> confdefs.h <<\EOF
6546 cat >> confdefs.h <<\EOF
6552 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
6553 echo "configure:6554: checking type of array argument to getgroups" >&5
6554 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6557 if test "$cross_compiling" = yes; then
6558 ac_cv_type_getgroups=cross
6560 cat > conftest.$ac_ext <<EOF
6561 #line 6562 "configure"
6562 #include "confdefs.h"
6564 /* Thanks to Mike Rendell for this test. */
6565 #include <sys/types.h>
6568 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6573 union { gid_t gval; long lval; } val;
6576 for (i = 0; i < NGID; i++)
6577 gidset[i] = val.gval;
6578 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6580 /* Exit non-zero if getgroups seems to require an array of ints. This
6581 happens when gid_t is short but getgroups modifies an array of ints. */
6582 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6586 if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6588 ac_cv_type_getgroups=gid_t
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6593 ac_cv_type_getgroups=int
6598 if test $ac_cv_type_getgroups = cross; then
6599 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure"
6601 #include "confdefs.h"
6604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6605 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6607 ac_cv_type_getgroups=gid_t
6610 ac_cv_type_getgroups=int
6617 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
6618 cat >> confdefs.h <<EOF
6619 #define GETGROUPS_T $ac_cv_type_getgroups
6622 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
6623 echo "configure:6624: checking for mode_t" >&5
6624 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
6625 echo $ac_n "(cached) $ac_c" 1>&6
6627 cat > conftest.$ac_ext <<EOF
6628 #line 6629 "configure"
6629 #include "confdefs.h"
6630 #include <sys/types.h>
6636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6637 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6639 ac_cv_type_mode_t=yes
6642 ac_cv_type_mode_t=no
6647 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
6648 if test $ac_cv_type_mode_t = no; then
6649 cat >> confdefs.h <<\EOF
6655 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6656 echo "configure:6657: checking for off_t" >&5
6657 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6658 echo $ac_n "(cached) $ac_c" 1>&6
6660 cat > conftest.$ac_ext <<EOF
6661 #line 6662 "configure"
6662 #include "confdefs.h"
6663 #include <sys/types.h>
6669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6670 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6672 ac_cv_type_off_t=yes
6680 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6681 if test $ac_cv_type_off_t = no; then
6682 cat >> confdefs.h <<\EOF
6688 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6689 echo "configure:6690: checking for pid_t" >&5
6690 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6691 echo $ac_n "(cached) $ac_c" 1>&6
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6696 #include <sys/types.h>
6702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6703 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6705 ac_cv_type_pid_t=yes
6713 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6714 if test $ac_cv_type_pid_t = no; then
6715 cat >> confdefs.h <<\EOF
6721 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
6722 echo "configure:6723: checking for ptrdiff_t" >&5
6723 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
6724 echo $ac_n "(cached) $ac_c" 1>&6
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6734 if { (eval echo configure:6735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6736 am_cv_type_ptrdiff_t=yes
6738 echo "configure: failed program was:" >&5
6739 cat conftest.$ac_ext >&5
6741 am_cv_type_ptrdiff_t=no
6746 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
6747 if test $am_cv_type_ptrdiff_t = yes; then
6748 cat >> confdefs.h <<\EOF
6749 #define HAVE_PTRDIFF_T 1
6754 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6755 echo "configure:6756: checking return type of signal handlers" >&5
6756 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6759 cat > conftest.$ac_ext <<EOF
6760 #line 6761 "configure"
6761 #include "confdefs.h"
6762 #include <sys/types.h>
6768 extern "C" void (*signal (int, void (*)(int)))(int);
6770 void (*signal ()) ();
6777 if { (eval echo configure:6778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6779 ac_cv_type_signal=void
6781 echo "configure: failed program was:" >&5
6782 cat conftest.$ac_ext >&5
6784 ac_cv_type_signal=int
6789 echo "$ac_t""$ac_cv_type_signal" 1>&6
6790 cat >> confdefs.h <<EOF
6791 #define RETSIGTYPE $ac_cv_type_signal
6795 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6796 echo "configure:6797: checking for size_t" >&5
6797 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 #include <sys/types.h>
6809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6810 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6812 ac_cv_type_size_t=yes
6815 ac_cv_type_size_t=no
6820 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6821 if test $ac_cv_type_size_t = no; then
6822 cat >> confdefs.h <<\EOF
6823 #define size_t unsigned
6828 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
6829 echo "configure:6830: checking for st_blksize in struct stat" >&5
6830 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6833 cat > conftest.$ac_ext <<EOF
6834 #line 6835 "configure"
6835 #include "confdefs.h"
6836 #include <sys/types.h>
6837 #include <sys/stat.h>
6839 struct stat s; s.st_blksize;
6842 if { (eval echo configure:6843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6844 ac_cv_struct_st_blksize=yes
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6849 ac_cv_struct_st_blksize=no
6854 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
6855 if test $ac_cv_struct_st_blksize = yes; then
6856 cat >> confdefs.h <<\EOF
6857 #define HAVE_ST_BLKSIZE 1
6862 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6863 echo "configure:6864: checking whether time.h and sys/time.h may both be included" >&5
6864 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
6865 echo $ac_n "(cached) $ac_c" 1>&6
6867 cat > conftest.$ac_ext <<EOF
6868 #line 6869 "configure"
6869 #include "confdefs.h"
6870 #include <sys/types.h>
6871 #include <sys/time.h>
6877 if { (eval echo configure:6878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6879 ac_cv_header_time=yes
6881 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6884 ac_cv_header_time=no
6889 echo "$ac_t""$ac_cv_header_time" 1>&6
6890 if test $ac_cv_header_time = yes; then
6891 cat >> confdefs.h <<\EOF
6892 #define TIME_WITH_SYS_TIME 1
6897 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6898 echo "configure:6899: checking whether struct tm is in sys/time.h or time.h" >&5
6899 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6900 echo $ac_n "(cached) $ac_c" 1>&6
6902 cat > conftest.$ac_ext <<EOF
6903 #line 6904 "configure"
6904 #include "confdefs.h"
6905 #include <sys/types.h>
6908 struct tm *tp; tp->tm_sec;
6911 if { (eval echo configure:6912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6913 ac_cv_struct_tm=time.h
6915 echo "configure: failed program was:" >&5
6916 cat conftest.$ac_ext >&5
6918 ac_cv_struct_tm=sys/time.h
6923 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6924 if test $ac_cv_struct_tm = sys/time.h; then
6925 cat >> confdefs.h <<\EOF
6926 #define TM_IN_SYS_TIME 1
6933 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
6934 echo "configure:6935: checking if toupper() requires islower()" >&5
6935 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
6936 echo $ac_n "(cached) $ac_c" 1>&6
6939 if test "$cross_compiling" = yes; then
6940 ol_cv_c_upper_lower=safe
6942 cat > conftest.$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6949 if ('C' == toupper('C'))
6955 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6957 ol_cv_c_upper_lower=no
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 ol_cv_c_upper_lower=yes
6969 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
6970 if test $ol_cv_c_upper_lower != no ; then
6971 cat >> confdefs.h <<\EOF
6972 #define C_UPPER_LOWER 1
6977 echo $ac_n "checking for working const""... $ac_c" 1>&6
6978 echo "configure:6979: checking for working const" >&5
6979 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6980 echo $ac_n "(cached) $ac_c" 1>&6
6982 cat > conftest.$ac_ext <<EOF
6983 #line 6984 "configure"
6984 #include "confdefs.h"
6988 /* Ultrix mips cc rejects this. */
6989 typedef int charset[2]; const charset x;
6990 /* SunOS 4.1.1 cc rejects this. */
6991 char const *const *ccp;
6993 /* NEC SVR4.0.2 mips cc rejects this. */
6994 struct point {int x, y;};
6995 static struct point const zero = {0,0};
6996 /* AIX XL C 1.02.0.0 rejects this.
6997 It does not let you subtract one const X* pointer from another in an arm
6998 of an if-expression whose if-part is not a constant expression */
6999 const char *g = "string";
7000 ccp = &g + (g ? g-g : 0);
7001 /* HPUX 7.0 cc rejects these. */
7004 ccp = (char const *const *) p;
7005 { /* SCO 3.2v4 cc rejects this. */
7007 char const *s = 0 ? (char *) 0 : (char const *) 0;
7011 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7013 const int *foo = &x[0];
7016 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7017 typedef const int *iptr;
7021 { /* AIX XL C 1.02.0.0 rejects this saying
7022 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7023 struct s { int j; const int *ap[3]; };
7024 struct s *b; b->j = 5;
7026 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7032 if { (eval echo configure:7033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7036 echo "configure: failed program was:" >&5
7037 cat conftest.$ac_ext >&5
7044 echo "$ac_t""$ac_cv_c_const" 1>&6
7045 if test $ac_cv_c_const = no; then
7046 cat >> confdefs.h <<\EOF
7053 if test $cross_compiling = yes ; then
7054 cat >> confdefs.h <<\EOF
7055 #define CROSS_COMPILING 1
7059 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7060 echo "configure:7061: checking whether byte ordering is bigendian" >&5
7061 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7062 echo $ac_n "(cached) $ac_c" 1>&6
7064 ac_cv_c_bigendian=unknown
7065 # See if sys/param.h defines the BYTE_ORDER macro.
7066 cat > conftest.$ac_ext <<EOF
7067 #line 7068 "configure"
7068 #include "confdefs.h"
7069 #include <sys/types.h>
7070 #include <sys/param.h>
7073 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7078 if { (eval echo configure:7079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7080 # It does; now see whether it defined to BIG_ENDIAN or not.
7081 cat > conftest.$ac_ext <<EOF
7082 #line 7083 "configure"
7083 #include "confdefs.h"
7084 #include <sys/types.h>
7085 #include <sys/param.h>
7088 #if BYTE_ORDER != BIG_ENDIAN
7093 if { (eval echo configure:7094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7095 ac_cv_c_bigendian=yes
7097 echo "configure: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7100 ac_cv_c_bigendian=no
7104 echo "configure: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7108 if test $ac_cv_c_bigendian = unknown; then
7109 if test "$cross_compiling" = yes; then
7110 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7112 cat > conftest.$ac_ext <<EOF
7113 #line 7114 "configure"
7114 #include "confdefs.h"
7116 /* Are we little or big endian? From Harbison&Steele. */
7120 char c[sizeof (long)];
7123 exit (u.c[sizeof (long) - 1] == 1);
7126 if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7128 ac_cv_c_bigendian=no
7130 echo "configure: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7133 ac_cv_c_bigendian=yes
7141 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7142 if test $ac_cv_c_bigendian = yes; then
7143 cat >> confdefs.h <<\EOF
7144 #define WORDS_BIGENDIAN 1
7149 echo $ac_n "checking size of short""... $ac_c" 1>&6
7150 echo "configure:7151: checking size of short" >&5
7151 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7152 echo $ac_n "(cached) $ac_c" 1>&6
7154 if test "$cross_compiling" = yes; then
7155 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7157 cat > conftest.$ac_ext <<EOF
7158 #line 7159 "configure"
7159 #include "confdefs.h"
7163 FILE *f=fopen("conftestval", "w");
7165 fprintf(f, "%d\n", sizeof(short));
7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7171 ac_cv_sizeof_short=`cat conftestval`
7173 echo "configure: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7176 ac_cv_sizeof_short=0
7182 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7183 cat >> confdefs.h <<EOF
7184 #define SIZEOF_SHORT $ac_cv_sizeof_short
7188 echo $ac_n "checking size of int""... $ac_c" 1>&6
7189 echo "configure:7190: checking size of int" >&5
7190 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7191 echo $ac_n "(cached) $ac_c" 1>&6
7193 if test "$cross_compiling" = yes; then
7194 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7196 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7202 FILE *f=fopen("conftestval", "w");
7204 fprintf(f, "%d\n", sizeof(int));
7208 if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7210 ac_cv_sizeof_int=`cat conftestval`
7212 echo "configure: failed program was:" >&5
7213 cat conftest.$ac_ext >&5
7221 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7222 cat >> confdefs.h <<EOF
7223 #define SIZEOF_INT $ac_cv_sizeof_int
7227 echo $ac_n "checking size of long""... $ac_c" 1>&6
7228 echo "configure:7229: checking size of long" >&5
7229 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7230 echo $ac_n "(cached) $ac_c" 1>&6
7232 if test "$cross_compiling" = yes; then
7233 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7235 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure"
7237 #include "confdefs.h"
7241 FILE *f=fopen("conftestval", "w");
7243 fprintf(f, "%d\n", sizeof(long));
7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7249 ac_cv_sizeof_long=`cat conftestval`
7251 echo "configure: failed program was:" >&5
7252 cat conftest.$ac_ext >&5
7260 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
7261 cat >> confdefs.h <<EOF
7262 #define SIZEOF_LONG $ac_cv_sizeof_long
7268 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
7269 echo "configure:7270: checking for 8-bit clean memcmp" >&5
7270 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7273 if test "$cross_compiling" = yes; then
7274 ac_cv_func_memcmp_clean=no
7276 cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7282 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
7283 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
7287 if { (eval echo configure:7288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7289 ac_cv_func_memcmp_clean=yes
7291 echo "configure: failed program was:" >&5
7292 cat conftest.$ac_ext >&5
7294 ac_cv_func_memcmp_clean=no
7301 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
7302 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
7304 for ac_hdr in sys/time.h unistd.h
7306 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7308 echo "configure:7309: checking for $ac_hdr" >&5
7309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7310 echo $ac_n "(cached) $ac_c" 1>&6
7312 cat > conftest.$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7318 { (eval echo configure:7319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7319 ac_err=`grep -v '^ *+' conftest.out`
7320 if test -z "$ac_err"; then
7322 eval "ac_cv_header_$ac_safe=yes"
7325 echo "configure: failed program was:" >&5
7326 cat conftest.$ac_ext >&5
7328 eval "ac_cv_header_$ac_safe=no"
7332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7333 echo "$ac_t""yes" 1>&6
7334 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7335 cat >> confdefs.h <<EOF
7336 #define $ac_tr_hdr 1
7340 echo "$ac_t""no" 1>&6
7344 for ac_func in alarm
7346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7347 echo "configure:7348: checking for $ac_func" >&5
7348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7349 echo $ac_n "(cached) $ac_c" 1>&6
7351 cat > conftest.$ac_ext <<EOF
7352 #line 7353 "configure"
7353 #include "confdefs.h"
7354 /* System header to define __stub macros and hopefully few prototypes,
7355 which can conflict with char $ac_func(); below. */
7357 /* Override any gcc2 internal prototype to avoid an error. */
7358 /* We use char because int might match the return type of a gcc2
7359 builtin and then its argument prototype would still apply. */
7364 /* The GNU C library defines this for functions which it implements
7365 to always fail with ENOSYS. Some functions are actually named
7366 something starting with __ and the normal name is an alias. */
7367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7375 if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7377 eval "ac_cv_func_$ac_func=yes"
7379 echo "configure: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7382 eval "ac_cv_func_$ac_func=no"
7387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7388 echo "$ac_t""yes" 1>&6
7389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7390 cat >> confdefs.h <<EOF
7391 #define $ac_tr_func 1
7395 echo "$ac_t""no" 1>&6
7399 echo $ac_n "checking for working mktime""... $ac_c" 1>&6
7400 echo "configure:7401: checking for working mktime" >&5
7401 if eval "test \"`echo '$''{'am_cv_func_working_mktime'+set}'`\" = set"; then
7402 echo $ac_n "(cached) $ac_c" 1>&6
7404 if test "$cross_compiling" = yes; then
7405 am_cv_func_working_mktime=no
7407 cat > conftest.$ac_ext <<EOF
7408 #line 7409 "configure"
7409 #include "confdefs.h"
7410 /* Test program from Paul Eggert (eggert@twinsun.com)
7411 and Tony Leneis (tony@plaza.ds.adp.com). */
7412 #if TIME_WITH_SYS_TIME
7413 # include <sys/time.h>
7416 # if HAVE_SYS_TIME_H
7417 # include <sys/time.h>
7424 # include <unistd.h>
7428 # define alarm(X) /* empty */
7431 /* Work around redefinition to rpl_putenv by other config tests. */
7434 static time_t time_t_max;
7436 /* Values we'll use to set the TZ environment variable. */
7437 static const char *const tz_strings[] = {
7438 (const char *) 0, "GMT0", "JST-9",
7439 "EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
7441 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
7448 if ((lt = localtime (&now)) && mktime (lt) != now)
7450 now = time_t_max - now;
7451 if ((lt = localtime (&now)) && mktime (lt) != now)
7458 /* Based on code from Ariel Faigon. */
7468 if (tm.tm_mon != 2 || tm.tm_mday != 31)
7478 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
7479 /* This test makes some buggy mktime implementations loop.
7480 Give up after 10 seconds. */
7484 if (now != (time_t) -1)
7486 struct tm *lt = localtime (&now);
7488 && lt->tm_year == tm.tm_year
7489 && lt->tm_mon == tm.tm_mon
7490 && lt->tm_mday == tm.tm_mday
7491 && lt->tm_hour == tm.tm_hour
7492 && lt->tm_min == tm.tm_min
7493 && lt->tm_sec == tm.tm_sec
7494 && lt->tm_yday == tm.tm_yday
7495 && lt->tm_wday == tm.tm_wday
7496 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
7497 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
7508 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
7511 delta = time_t_max / 997; /* a suitable prime number */
7512 for (i = 0; i < N_STRINGS; i++)
7515 putenv (tz_strings[i]);
7517 for (t = 0; t <= time_t_max - delta; t += delta)
7519 mktime_test ((time_t) 60 * 60);
7520 mktime_test ((time_t) 60 * 60 * 24);
7522 for (j = 1; 0 < j; j *= 2)
7524 bigtime_test (j - 1);
7531 if { (eval echo configure:7532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7533 am_cv_func_working_mktime=yes
7535 echo "configure: failed program was:" >&5
7536 cat conftest.$ac_ext >&5
7538 am_cv_func_working_mktime=no
7546 echo "$ac_t""$am_cv_func_working_mktime" 1>&6
7547 if test $am_cv_func_working_mktime = no; then
7548 LIBOBJS="$LIBOBJS mktime.o"
7550 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7551 echo "configure:7552: checking for strftime" >&5
7552 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
7553 echo $ac_n "(cached) $ac_c" 1>&6
7555 cat > conftest.$ac_ext <<EOF
7556 #line 7557 "configure"
7557 #include "confdefs.h"
7558 /* System header to define __stub macros and hopefully few prototypes,
7559 which can conflict with char strftime(); below. */
7561 /* Override any gcc2 internal prototype to avoid an error. */
7562 /* We use char because int might match the return type of a gcc2
7563 builtin and then its argument prototype would still apply. */
7568 /* The GNU C library defines this for functions which it implements
7569 to always fail with ENOSYS. Some functions are actually named
7570 something starting with __ and the normal name is an alias. */
7571 #if defined (__stub_strftime) || defined (__stub___strftime)
7579 if { (eval echo configure:7580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7581 eval "ac_cv_func_strftime=yes"
7583 echo "configure: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7586 eval "ac_cv_func_strftime=no"
7591 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
7592 echo "$ac_t""yes" 1>&6
7593 cat >> confdefs.h <<\EOF
7594 #define HAVE_STRFTIME 1
7598 echo "$ac_t""no" 1>&6
7599 # strftime is in -lintl on SCO UNIX.
7600 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
7601 echo "configure:7602: checking for strftime in -lintl" >&5
7602 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
7603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7604 echo $ac_n "(cached) $ac_c" 1>&6
7606 ac_save_LIBS="$LIBS"
7608 cat > conftest.$ac_ext <<EOF
7609 #line 7610 "configure"
7610 #include "confdefs.h"
7611 /* Override any gcc2 internal prototype to avoid an error. */
7612 /* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7620 if { (eval echo configure:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7622 eval "ac_cv_lib_$ac_lib_var=yes"
7624 echo "configure: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7627 eval "ac_cv_lib_$ac_lib_var=no"
7630 LIBS="$ac_save_LIBS"
7633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7634 echo "$ac_t""yes" 1>&6
7635 cat >> confdefs.h <<\EOF
7636 #define HAVE_STRFTIME 1
7641 echo "$ac_t""no" 1>&6
7646 echo $ac_n "checking for working strtod""... $ac_c" 1>&6
7647 echo "configure:7648: checking for working strtod" >&5
7648 if eval "test \"`echo '$''{'am_cv_func_strtod'+set}'`\" = set"; then
7649 echo $ac_n "(cached) $ac_c" 1>&6
7651 if test "$cross_compiling" = yes; then
7652 am_cv_func_strtod=no
7654 cat > conftest.$ac_ext <<EOF
7655 #line 7656 "configure"
7656 #include "confdefs.h"
7663 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7664 char *string = " +69";
7667 value = strtod (string, &term);
7668 if (value != 69 || term != (string + 4))
7673 /* Under Solaris 2.4, strtod returns the wrong value for the
7674 terminating character under some conditions. */
7675 char *string = "NaN";
7677 strtod (string, &term);
7678 if (term != string && *(term - 1) == 0)
7685 if { (eval echo configure:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7687 am_cv_func_strtod=yes
7689 echo "configure: failed program was:" >&5
7690 cat conftest.$ac_ext >&5
7692 am_cv_func_strtod=no
7699 echo "$ac_t""$am_cv_func_strtod" 1>&6
7700 test $am_cv_func_strtod = no && LIBOBJS="$LIBOBJS strtod.o"
7701 am_cv_func_strtod_needs_libm=no
7702 if test $am_cv_func_strtod = no; then
7705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7706 echo "configure:7707: checking for $ac_func" >&5
7707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7708 echo $ac_n "(cached) $ac_c" 1>&6
7710 cat > conftest.$ac_ext <<EOF
7711 #line 7712 "configure"
7712 #include "confdefs.h"
7713 /* System header to define __stub macros and hopefully few prototypes,
7714 which can conflict with char $ac_func(); below. */
7716 /* Override any gcc2 internal prototype to avoid an error. */
7717 /* We use char because int might match the return type of a gcc2
7718 builtin and then its argument prototype would still apply. */
7723 /* The GNU C library defines this for functions which it implements
7724 to always fail with ENOSYS. Some functions are actually named
7725 something starting with __ and the normal name is an alias. */
7726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7734 if { (eval echo configure:7735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7736 eval "ac_cv_func_$ac_func=yes"
7738 echo "configure: failed program was:" >&5
7739 cat conftest.$ac_ext >&5
7741 eval "ac_cv_func_$ac_func=no"
7746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7747 echo "$ac_t""yes" 1>&6
7748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7749 cat >> confdefs.h <<EOF
7750 #define $ac_tr_func 1
7754 echo "$ac_t""no" 1>&6
7758 if test $ac_cv_func_pow = no; then
7759 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
7760 echo "configure:7761: checking for pow in -lm" >&5
7761 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
7762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7763 echo $ac_n "(cached) $ac_c" 1>&6
7765 ac_save_LIBS="$LIBS"
7767 cat > conftest.$ac_ext <<EOF
7768 #line 7769 "configure"
7769 #include "confdefs.h"
7770 /* Override any gcc2 internal prototype to avoid an error. */
7771 /* We use char because int might match the return type of a gcc2
7772 builtin and then its argument prototype would still apply. */
7779 if { (eval echo configure:7780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7781 eval "ac_cv_lib_$ac_lib_var=yes"
7783 echo "configure: failed program was:" >&5
7784 cat conftest.$ac_ext >&5
7786 eval "ac_cv_lib_$ac_lib_var=no"
7789 LIBS="$ac_save_LIBS"
7792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7793 echo "$ac_t""yes" 1>&6
7794 am_cv_func_strtod_needs_libm=yes
7796 echo "$ac_t""no" 1>&6
7797 echo "configure: warning: can't find library containing definition of pow" 1>&2
7803 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7804 echo "configure:7805: checking for vprintf" >&5
7805 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7808 cat > conftest.$ac_ext <<EOF
7809 #line 7810 "configure"
7810 #include "confdefs.h"
7811 /* System header to define __stub macros and hopefully few prototypes,
7812 which can conflict with char vprintf(); below. */
7814 /* Override any gcc2 internal prototype to avoid an error. */
7815 /* We use char because int might match the return type of a gcc2
7816 builtin and then its argument prototype would still apply. */
7821 /* The GNU C library defines this for functions which it implements
7822 to always fail with ENOSYS. Some functions are actually named
7823 something starting with __ and the normal name is an alias. */
7824 #if defined (__stub_vprintf) || defined (__stub___vprintf)
7832 if { (eval echo configure:7833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7834 eval "ac_cv_func_vprintf=yes"
7836 echo "configure: failed program was:" >&5
7837 cat conftest.$ac_ext >&5
7839 eval "ac_cv_func_vprintf=no"
7844 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
7845 echo "$ac_t""yes" 1>&6
7846 cat >> confdefs.h <<\EOF
7847 #define HAVE_VPRINTF 1
7851 echo "$ac_t""no" 1>&6
7854 if test "$ac_cv_func_vprintf" != yes; then
7855 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7856 echo "configure:7857: checking for _doprnt" >&5
7857 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
7858 echo $ac_n "(cached) $ac_c" 1>&6
7860 cat > conftest.$ac_ext <<EOF
7861 #line 7862 "configure"
7862 #include "confdefs.h"
7863 /* System header to define __stub macros and hopefully few prototypes,
7864 which can conflict with char _doprnt(); below. */
7866 /* Override any gcc2 internal prototype to avoid an error. */
7867 /* We use char because int might match the return type of a gcc2
7868 builtin and then its argument prototype would still apply. */
7873 /* The GNU C library defines this for functions which it implements
7874 to always fail with ENOSYS. Some functions are actually named
7875 something starting with __ and the normal name is an alias. */
7876 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7884 if { (eval echo configure:7885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7886 eval "ac_cv_func__doprnt=yes"
7888 echo "configure: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7891 eval "ac_cv_func__doprnt=no"
7896 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
7897 echo "$ac_t""yes" 1>&6
7898 cat >> confdefs.h <<\EOF
7899 #define HAVE_DOPRNT 1
7903 echo "$ac_t""no" 1>&6
7909 if test $ac_cv_func_vprintf = yes ; then
7910 for ac_func in vsnprintf
7912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7913 echo "configure:7914: checking for $ac_func" >&5
7914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7915 echo $ac_n "(cached) $ac_c" 1>&6
7917 cat > conftest.$ac_ext <<EOF
7918 #line 7919 "configure"
7919 #include "confdefs.h"
7920 /* System header to define __stub macros and hopefully few prototypes,
7921 which can conflict with char $ac_func(); below. */
7923 /* Override any gcc2 internal prototype to avoid an error. */
7924 /* We use char because int might match the return type of a gcc2
7925 builtin and then its argument prototype would still apply. */
7930 /* The GNU C library defines this for functions which it implements
7931 to always fail with ENOSYS. Some functions are actually named
7932 something starting with __ and the normal name is an alias. */
7933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7941 if { (eval echo configure:7942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7943 eval "ac_cv_func_$ac_func=yes"
7945 echo "configure: failed program was:" >&5
7946 cat conftest.$ac_ext >&5
7948 eval "ac_cv_func_$ac_func=no"
7953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7954 echo "$ac_t""yes" 1>&6
7955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7956 cat >> confdefs.h <<EOF
7957 #define $ac_tr_func 1
7961 echo "$ac_t""no" 1>&6
7967 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
7968 echo "configure:7969: checking for wait3 that fills in rusage" >&5
7969 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
7970 echo $ac_n "(cached) $ac_c" 1>&6
7972 if test "$cross_compiling" = yes; then
7973 ac_cv_func_wait3_rusage=no
7975 cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure"
7977 #include "confdefs.h"
7978 #include <sys/types.h>
7979 #include <sys/time.h>
7980 #include <sys/resource.h>
7982 /* HP-UX has wait3 but does not fill in rusage at all. */
7986 /* Use a field that we can force nonzero --
7987 voluntary context switches.
7988 For systems like NeXT and OSF/1 that don't set it,
7989 also use the system CPU time. And page faults (I/O) for Linux. */
7991 r.ru_stime.tv_sec = 0;
7992 r.ru_stime.tv_usec = 0;
7993 r.ru_majflt = r.ru_minflt = 0;
7995 case 0: /* Child. */
7996 sleep(1); /* Give up the CPU. */
7998 case -1: _exit(0); /* What can we do? */
7999 default: /* Parent. */
8001 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
8002 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
8003 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
8007 if { (eval echo configure:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8009 ac_cv_func_wait3_rusage=yes
8011 echo "configure: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8014 ac_cv_func_wait3_rusage=no
8021 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
8022 if test $ac_cv_func_wait3_rusage = yes; then
8023 cat >> confdefs.h <<\EOF
8024 #define HAVE_WAIT3 1
8061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8062 echo "configure:8063: checking for $ac_func" >&5
8063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8064 echo $ac_n "(cached) $ac_c" 1>&6
8066 cat > conftest.$ac_ext <<EOF
8067 #line 8068 "configure"
8068 #include "confdefs.h"
8069 /* System header to define __stub macros and hopefully few prototypes,
8070 which can conflict with char $ac_func(); below. */
8072 /* Override any gcc2 internal prototype to avoid an error. */
8073 /* We use char because int might match the return type of a gcc2
8074 builtin and then its argument prototype would still apply. */
8079 /* The GNU C library defines this for functions which it implements
8080 to always fail with ENOSYS. Some functions are actually named
8081 something starting with __ and the normal name is an alias. */
8082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8090 if { (eval echo configure:8091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8092 eval "ac_cv_func_$ac_func=yes"
8094 echo "configure: failed program was:" >&5
8095 cat conftest.$ac_ext >&5
8097 eval "ac_cv_func_$ac_func=no"
8102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8103 echo "$ac_t""yes" 1>&6
8104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8105 cat >> confdefs.h <<EOF
8106 #define $ac_tr_func 1
8110 echo "$ac_t""no" 1>&6
8115 for ac_func in getopt strdup tempnam
8117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8118 echo "configure:8119: checking for $ac_func" >&5
8119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8120 echo $ac_n "(cached) $ac_c" 1>&6
8122 cat > conftest.$ac_ext <<EOF
8123 #line 8124 "configure"
8124 #include "confdefs.h"
8125 /* System header to define __stub macros and hopefully few prototypes,
8126 which can conflict with char $ac_func(); below. */
8128 /* Override any gcc2 internal prototype to avoid an error. */
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8135 /* The GNU C library defines this for functions which it implements
8136 to always fail with ENOSYS. Some functions are actually named
8137 something starting with __ and the normal name is an alias. */
8138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8146 if { (eval echo configure:8147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8148 eval "ac_cv_func_$ac_func=yes"
8150 echo "configure: failed program was:" >&5
8151 cat conftest.$ac_ext >&5
8153 eval "ac_cv_func_$ac_func=no"
8158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8159 echo "$ac_t""yes" 1>&6
8160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8161 cat >> confdefs.h <<EOF
8162 #define $ac_tr_func 1
8166 echo "$ac_t""no" 1>&6
8167 LIBOBJS="$LIBOBJS ${ac_func}.o"
8173 # Check Configuration
8175 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
8176 echo "configure:8177: checking declaration of sys_errlist" >&5
8177 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
8178 echo $ac_n "(cached) $ac_c" 1>&6
8181 cat > conftest.$ac_ext <<EOF
8182 #line 8183 "configure"
8183 #include "confdefs.h"
8186 #include <sys/types.h>
8189 char *c = (char *) *sys_errlist
8192 if { (eval echo configure:8193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8194 ol_cv_dcl_sys_errlist=yes
8196 echo "configure: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8199 ol_cv_dcl_sys_errlist=no
8204 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
8206 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
8207 if test $ol_cv_dcl_sys_errlist = no ; then
8208 cat >> confdefs.h <<\EOF
8209 #define DECL_SYS_ERRLIST 1
8212 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
8213 echo "configure:8214: checking existence of sys_errlist" >&5
8214 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
8215 echo $ac_n "(cached) $ac_c" 1>&6
8218 cat > conftest.$ac_ext <<EOF
8219 #line 8220 "configure"
8220 #include "confdefs.h"
8223 char *c = (char *) *sys_errlist
8226 if { (eval echo configure:8227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8228 ol_cv_have_sys_errlist=yes
8230 echo "configure: failed program was:" >&5
8231 cat conftest.$ac_ext >&5
8233 ol_cv_have_sys_errlist=no
8238 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
8243 if test $ol_enable_debug != no ; then
8244 cat >> confdefs.h <<\EOF
8245 #define LDAP_DEBUG 1
8249 if test $ol_enable_libui = yes ; then
8250 cat >> confdefs.h <<\EOF
8251 #define LDAP_LIBUI 1
8255 if test $ol_enable_cache = no ; then
8256 cat >> confdefs.h <<\EOF
8257 #define LDAP_NOCACHE 1
8261 if test $ol_enable_dns != no ; then
8262 cat >> confdefs.h <<\EOF
8263 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS 1
8267 if test $ol_enable_proctitle != no ; then
8268 cat >> confdefs.h <<\EOF
8269 #define LDAP_PROCTITLE 1
8273 if test $ol_enable_referrals != no ; then
8274 cat >> confdefs.h <<\EOF
8275 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS 1
8279 if test $ol_enable_cldap != no ; then
8280 cat >> confdefs.h <<\EOF
8281 #define LDAP_CONNECTIONLESS 1
8286 if test $ol_enable_aclgroups != no ; then
8287 cat >> confdefs.h <<\EOF
8288 #define SLAPD_ACLGROUPS 1
8292 if test $ol_enable_crypt != no ; then
8293 cat >> confdefs.h <<\EOF
8294 #define SLAPD_CRYPT 1
8298 if test $ol_enable_md5 != no ; then
8299 cat >> confdefs.h <<\EOF
8304 if test $ol_enable_sha1 != no ; then
8305 cat >> confdefs.h <<\EOF
8306 #define SLAPD_SHA1 1
8310 if test $ol_enable_phonetic != no ; then
8311 cat >> confdefs.h <<\EOF
8312 #define SLAPD_PHONETIC 1
8316 if test $ol_enable_rlookups != no ; then
8317 cat >> confdefs.h <<\EOF
8318 #define SLAPD_RLOOKUPS 1
8323 if test $ol_link_ldbm != no ; then
8324 cat >> confdefs.h <<\EOF
8325 #define SLAPD_LDBM 1
8332 if test $ol_enable_passwd != no ; then
8333 cat >> confdefs.h <<\EOF
8334 #define SLAPD_PASSWD 1
8341 if test $ol_enable_shell != no ; then
8342 cat >> confdefs.h <<\EOF
8343 #define SLAPD_SHELL 1
8350 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
8351 $BUILD_SLAPD = yes ; then
8355 if test $ol_link_isode != no ; then
8381 cat > confcache <<\EOF
8382 # This file is a shell script that caches the results of configure
8383 # tests run on this system so they can be shared between configure
8384 # scripts and configure runs. It is not useful on other systems.
8385 # If it contains results you don't want to keep, you may remove or edit it.
8387 # By default, configure uses ./config.cache as the cache file,
8388 # creating it if it does not exist already. You can give configure
8389 # the --cache-file=FILE option to use a different cache file; that is
8390 # what configure does when it calls configure scripts in
8391 # subdirectories, so they share the cache.
8392 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8393 # config.status only pays attention to the cache file if you give it the
8394 # --recheck option to rerun configure.
8397 # The following way of writing the cache mishandles newlines in values,
8398 # but we know of no workaround that is simple, portable, and efficient.
8399 # So, don't put newlines in cache variables' values.
8400 # Ultrix sh set writes to stderr and can't be redirected directly,
8401 # and sets the high bit in the cache file unless we assign to the vars.
8403 case `(ac_space=' '; set) 2>&1` in
8405 # `set' does not quote correctly, so add quotes (double-quote substitution
8406 # turns \\\\ into \\, and sed turns \\ into \).
8408 -e "s/'/'\\\\''/g" \
8409 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8412 # `set' quotes correctly as required by POSIX, so do not add quotes.
8413 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8416 if cmp -s $cache_file confcache; then
8419 if test -w $cache_file; then
8420 echo "updating cache $cache_file"
8421 cat confcache > $cache_file
8423 echo "not updating unwritable cache $cache_file"
8428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8430 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8431 # Let make expand exec_prefix.
8432 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8434 # Any assignment to VPATH causes Sun make to only execute
8435 # the first set of double-colon rules, so remove it if not needed.
8436 # If there is a colon in the path, we need to keep it.
8437 if test "x$srcdir" = x.; then
8438 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8441 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8443 DEFS=-DHAVE_CONFIG_H
8445 # Without the "./", some shells look in PATH for config.status.
8446 : ${CONFIG_STATUS=./config.status}
8448 echo creating $CONFIG_STATUS
8449 rm -f $CONFIG_STATUS
8450 cat > $CONFIG_STATUS <<EOF
8452 # Generated automatically by configure.
8453 # Run this file to recreate the current configuration.
8454 # This directory was configured as follows,
8455 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8457 # $0 $ac_configure_args
8459 # Compiler output produced by configure, useful for debugging
8460 # configure, is in ./config.log if it exists.
8462 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8465 case "\$ac_option" in
8466 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8467 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8468 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8469 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8470 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8472 -help | --help | --hel | --he | --h)
8473 echo "\$ac_cs_usage"; exit 0 ;;
8474 *) echo "\$ac_cs_usage"; exit 1 ;;
8478 ac_given_srcdir=$srcdir
8479 ac_given_INSTALL="$INSTALL"
8481 trap 'rm -fr `echo "\
8482 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8483 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8484 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8485 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8486 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8487 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8488 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8489 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8490 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8491 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8492 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8493 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8494 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8495 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8496 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8497 include/Makefile:build/top.mk:include/Makefile.in \
8498 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8499 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8500 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8501 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8502 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8503 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8504 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8505 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8506 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8507 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8508 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8509 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8510 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8511 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8512 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8513 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8514 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8515 tests/Makefile:build/top.mk:tests/Makefile.in \
8516 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8518 cat >> $CONFIG_STATUS <<EOF
8520 # Protect against being on the right side of a sed subst in config.status.
8521 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8522 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8525 s%@CFLAGS@%$CFLAGS%g
8526 s%@CPPFLAGS@%$CPPFLAGS%g
8527 s%@CXXFLAGS@%$CXXFLAGS%g
8529 s%@LDFLAGS@%$LDFLAGS%g
8531 s%@exec_prefix@%$exec_prefix%g
8532 s%@prefix@%$prefix%g
8533 s%@program_transform_name@%$program_transform_name%g
8534 s%@bindir@%$bindir%g
8535 s%@sbindir@%$sbindir%g
8536 s%@libexecdir@%$libexecdir%g
8537 s%@datadir@%$datadir%g
8538 s%@sysconfdir@%$sysconfdir%g
8539 s%@sharedstatedir@%$sharedstatedir%g
8540 s%@localstatedir@%$localstatedir%g
8541 s%@libdir@%$libdir%g
8542 s%@includedir@%$includedir%g
8543 s%@oldincludedir@%$oldincludedir%g
8544 s%@infodir@%$infodir%g
8545 s%@mandir@%$mandir%g
8546 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8547 s%@INSTALL_DATA@%$INSTALL_DATA%g
8548 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8549 s%@PACKAGE@%$PACKAGE%g
8550 s%@VERSION@%$VERSION%g
8551 s%@ACLOCAL@%$ACLOCAL%g
8552 s%@AUTOCONF@%$AUTOCONF%g
8553 s%@AUTOMAKE@%$AUTOMAKE%g
8554 s%@AUTOHEADER@%$AUTOHEADER%g
8555 s%@MAKEINFO@%$MAKEINFO%g
8556 s%@SET_MAKE@%$SET_MAKE%g
8557 s%@top_builddir@%$top_builddir%g
8559 s%@host_alias@%$host_alias%g
8560 s%@host_cpu@%$host_cpu%g
8561 s%@host_vendor@%$host_vendor%g
8562 s%@host_os@%$host_os%g
8563 s%@RANLIB@%$RANLIB%g
8568 s%@LIBTOOL@%$LIBTOOL%g
8569 s%@SENDMAIL@%$SENDMAIL%g
8570 s%@EDITOR@%$EDITOR%g
8571 s%@FINGER@%$FINGER%g
8574 s%@LIBOBJS@%$LIBOBJS%g
8575 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
8576 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
8577 s%@BUILD_LDBM@%$BUILD_LDBM%g
8578 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
8579 s%@BUILD_SHELL@%$BUILD_SHELL%g
8580 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
8581 s%@LDAP_LIBS@%$LDAP_LIBS%g
8582 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
8583 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
8584 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
8585 s%@LDBM_LIBS@%$LDBM_LIBS%g
8586 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
8587 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
8588 s%@KRB_LIBS@%$KRB_LIBS%g
8589 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
8594 cat >> $CONFIG_STATUS <<\EOF
8596 # Split the substitutions into bite-sized pieces for seds with
8597 # small command number limits, like on Digital OSF/1 and HP-UX.
8598 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8599 ac_file=1 # Number of current file.
8600 ac_beg=1 # First line for current file.
8601 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8604 while $ac_more_lines; do
8605 if test $ac_beg -gt 1; then
8606 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8608 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8610 if test ! -s conftest.s$ac_file; then
8612 rm -f conftest.s$ac_file
8614 if test -z "$ac_sed_cmds"; then
8615 ac_sed_cmds="sed -f conftest.s$ac_file"
8617 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8619 ac_file=`expr $ac_file + 1`
8621 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8624 if test -z "$ac_sed_cmds"; then
8629 cat >> $CONFIG_STATUS <<EOF
8631 CONFIG_FILES=\${CONFIG_FILES-"\
8632 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8633 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8634 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8635 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8636 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8637 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8638 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8639 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8640 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8641 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8642 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8643 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8644 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8645 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8646 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8647 include/Makefile:build/top.mk:include/Makefile.in \
8648 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8649 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8650 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8651 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8652 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8653 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8654 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8655 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8656 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8657 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8658 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8659 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8660 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8661 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8662 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8663 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8664 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8665 tests/Makefile:build/top.mk:tests/Makefile.in \
8668 cat >> $CONFIG_STATUS <<\EOF
8669 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8670 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8672 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8673 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8674 *) ac_file_in="${ac_file}.in" ;;
8677 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8679 # Remove last slash and all that follows it. Not all systems have dirname.
8680 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8681 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8682 # The file is in a subdirectory.
8683 test ! -d "$ac_dir" && mkdir "$ac_dir"
8684 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8685 # A "../" for each directory in $ac_dir_suffix.
8686 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8688 ac_dir_suffix= ac_dots=
8691 case "$ac_given_srcdir" in
8693 if test -z "$ac_dots"; then top_srcdir=.
8694 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8695 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8697 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8698 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8701 case "$ac_given_INSTALL" in
8702 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8703 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8706 echo creating "$ac_file"
8708 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8710 *Makefile*) ac_comsub="1i\\
8711 # $configure_input" ;;
8715 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8717 s%@configure_input@%$configure_input%g
8718 s%@srcdir@%$srcdir%g
8719 s%@top_srcdir@%$top_srcdir%g
8720 s%@INSTALL@%$INSTALL%g
8721 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8725 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8726 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8728 # ac_d sets the value in "#define NAME VALUE" lines.
8729 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8730 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8733 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8734 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8735 ac_uB='\([ ]\)%\1#\2define\3'
8738 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8739 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8740 ac_eB='$%\1#\2define\3'
8744 if test "${CONFIG_HEADERS+set}" != set; then
8746 cat >> $CONFIG_STATUS <<EOF
8747 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
8749 cat >> $CONFIG_STATUS <<\EOF
8751 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8752 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8754 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8755 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8756 *) ac_file_in="${ac_file}.in" ;;
8759 echo creating $ac_file
8761 rm -f conftest.frag conftest.in conftest.out
8762 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8763 cat $ac_file_inputs > conftest.in
8767 # Transform confdefs.h into a sed script conftest.vals that substitutes
8768 # the proper values into config.h.in to produce config.h. And first:
8769 # Protect against being on the right side of a sed subst in config.status.
8770 # Protect against being in an unquoted here document in config.status.
8772 cat > conftest.hdr <<\EOF
8775 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8779 sed -n -f conftest.hdr confdefs.h > conftest.vals
8782 # This sed command replaces #undef with comments. This is necessary, for
8783 # example, in the case of _POSIX_SOURCE, which is predefined and required
8784 # on some systems where configure will not decide to define it.
8785 cat >> conftest.vals <<\EOF
8786 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8789 # Break up conftest.vals because some shells have a limit on
8790 # the size of here documents, and old seds have small limits too.
8795 ac_lines=`grep -c . conftest.vals`
8796 # grep -c gives empty output for an empty file on some AIX systems.
8797 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8798 # Write a limited-size here document to conftest.frag.
8799 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8800 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8802 sed -f conftest.frag conftest.in > conftest.out
8804 mv conftest.out conftest.in
8806 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8808 mv conftest.tail conftest.vals
8812 cat >> $CONFIG_STATUS <<\EOF
8813 rm -f conftest.frag conftest.h
8814 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8815 cat conftest.in >> conftest.h
8817 if cmp -s $ac_file conftest.h 2>/dev/null; then
8818 echo "$ac_file is unchanged"
8821 # Remove last slash and all that follows it. Not all systems have dirname.
8822 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8823 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8824 # The file is in a subdirectory.
8825 test ! -d "$ac_dir" && mkdir "$ac_dir"
8828 mv conftest.h $ac_file
8833 cat >> $CONFIG_STATUS <<EOF
8836 cat >> $CONFIG_STATUS <<\EOF
8839 echo Please \"make depend\" to build dependencies
8843 chmod +x $CONFIG_STATUS
8844 rm -fr confdefs* $ac_clean_files
8845 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1