3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-proctitle enable proctitle support (yes)"
22 --enable-libui enable library user interface (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable dns support (no)"
28 --enable-referrals enable referrals (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-kerberos use Kerberos (auto)"
38 --with-threads use threads (auto)"
40 --with-yielding-select with implicitly yielding select (auto)"
44 --enable-ldapd enable building ldapd (no)"
48 --enable-slapd enable building slapd (yes)"
50 --enable-aclgroups enable ACL group support (auto)"
52 --enable-cleartext enable cleartext passwords (yes)"
54 --enable-crypt enable crypt(3) passwords (auto)"
56 --enable-wrappers enable tcp wrapper support (no)"
58 --enable-phonetic enable phonetic/soundex (no)"
60 --enable-rlookups enable reverse lookups (auto)"
62 --enable-ldbm enable ldbm backend (yes)"
64 --with-ldbm-api use LDBM API (auto)"
66 --with-ldbm-type use LDBM type (auto)"
68 --enable-passwd enable passwd backend (no)"
70 --enable-shell enable shell backend (no)"
74 --enable-slurpd enable building slurpd (auto)"
76 Library Generation & Linking Options"
78 --enable-static build static libraries [default=yes]
79 --enable-static=PKGS only build shared libraries if the current package
80 appears as an element in the PKGS list"
82 --enable-shared build shared libraries [default=no]
83 --enable-shared=PKGS only build shared libraries if the current package
84 appears as an element in the PKGS list"
86 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file=./config.cache
101 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host | --host | --hos | --ho)
264 -host=* | --host=* | --hos=* | --ho=*)
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
385 -site=* | --site=* | --sit=*)
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=include/ldap.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
593 ac_n= ac_c='\c' ac_t=
597 for ac_dir in build $srcdir/build; do
598 if test -f $ac_dir/install-sh; then
600 ac_install_sh="$ac_aux_dir/install-sh -c"
602 elif test -f $ac_dir/install.sh; then
604 ac_install_sh="$ac_aux_dir/install.sh -c"
608 if test -z "$ac_aux_dir"; then
609 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
611 ac_config_guess=$ac_aux_dir/config.guess
612 ac_config_sub=$ac_aux_dir/config.sub
613 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
614 # Find a good install program. We prefer a C program (faster),
615 # so one script is as good as another. But avoid the broken or
616 # incompatible versions:
617 # SysV /etc/install, /usr/sbin/install
618 # SunOS /usr/etc/install
621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
624 # ./install, which can be erroneously created by make from ./install.sh.
625 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
626 echo "configure:627: checking for a BSD compatible install" >&5
627 if test -z "$INSTALL"; then
628 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
629 echo $ac_n "(cached) $ac_c" 1>&6
631 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
632 for ac_dir in $PATH; do
633 # Account for people who put trailing slashes in PATH elements.
635 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
637 # OSF1 and SCO ODT 3.0 have their own names for install.
638 # Don't use installbsd from OSF since it installs stuff as root
640 for ac_prog in ginstall scoinst install; do
641 if test -f $ac_dir/$ac_prog; then
642 if test $ac_prog = install &&
643 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
644 # AIX install. It has an incompatible calling convention.
647 ac_cv_path_install="$ac_dir/$ac_prog -c"
658 if test "${ac_cv_path_install+set}" = set; then
659 INSTALL="$ac_cv_path_install"
661 # As a last resort, use the slow shell script. We don't cache a
662 # path for INSTALL within a source directory, because that will
663 # break other packages using the cache if that directory is
664 # removed, or if the path is relative.
665 INSTALL="$ac_install_sh"
668 echo "$ac_t""$INSTALL" 1>&6
670 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
671 # It thinks the first close brace ends the variable substitution.
672 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
674 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
676 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
678 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
679 echo "configure:680: checking whether build environment is sane" >&5
682 echo timestamp > conftestfile
683 # Do `set' in a subshell so we don't clobber the current shell's
684 # arguments. Must try -L first in case configure is actually a
685 # symlink; some systems play weird games with the mod time of symlinks
686 # (eg FreeBSD returns the mod time of the symlink's containing
689 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
690 if test "$*" = "X"; then
692 set X `ls -t $srcdir/configure conftestfile`
694 if test "$*" != "X $srcdir/configure conftestfile" \
695 && test "$*" != "X conftestfile $srcdir/configure"; then
697 # If neither matched, then we have a broken ls. This can happen
698 # if, for instance, CONFIG_SHELL is bash and it inherits a
699 # broken ls alias from the environment. This has actually
700 # happened. Such a system could not be considered "sane".
701 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
702 alias in your environment" 1>&2; exit 1; }
705 test "$2" = conftestfile
711 { echo "configure: error: newly created file is older than distributed files!
712 Check your system clock" 1>&2; exit 1; }
715 echo "$ac_t""yes" 1>&6
716 if test "$program_transform_name" = s,x,x,; then
717 program_transform_name=
719 # Double any \ or $. echo might interpret backslashes.
720 cat <<\EOF_SED > conftestsed
721 s,\\,\\\\,g; s,\$,$$,g
723 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
726 test "$program_prefix" != NONE &&
727 program_transform_name="s,^,${program_prefix},; $program_transform_name"
728 # Use a double $ so make ignores it.
729 test "$program_suffix" != NONE &&
730 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
732 # sed with no file args requires a program.
733 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
735 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
736 echo "configure:737: checking whether ${MAKE-make} sets \${MAKE}" >&5
737 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
738 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
739 echo $ac_n "(cached) $ac_c" 1>&6
741 cat > conftestmake <<\EOF
743 @echo 'ac_maketemp="${MAKE}"'
745 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
746 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
747 if test -n "$ac_maketemp"; then
748 eval ac_cv_prog_make_${ac_make}_set=yes
750 eval ac_cv_prog_make_${ac_make}_set=no
754 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
755 echo "$ac_t""yes" 1>&6
758 echo "$ac_t""no" 1>&6
759 SET_MAKE="MAKE=${MAKE-make}"
767 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
768 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
773 missing_dir=`cd $ac_aux_dir && pwd`
774 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
775 echo "configure:776: checking for working aclocal" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf. Sigh.
779 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
781 echo "$ac_t""found" 1>&6
783 ACLOCAL="$missing_dir/missing aclocal"
784 echo "$ac_t""missing" 1>&6
787 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
788 echo "configure:789: checking for working autoconf" >&5
789 # Run test in a subshell; some versions of sh will print an error if
790 # an executable is not found, even if stderr is redirected.
791 # Redirect stdin to placate older versions of autoconf. Sigh.
792 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
794 echo "$ac_t""found" 1>&6
796 AUTOCONF="$missing_dir/missing autoconf"
797 echo "$ac_t""missing" 1>&6
800 echo $ac_n "checking for working automake""... $ac_c" 1>&6
801 echo "configure:802: checking for working automake" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (automake --version) < /dev/null > /dev/null 2>&1; then
807 echo "$ac_t""found" 1>&6
809 AUTOMAKE="$missing_dir/missing automake"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
814 echo "configure:815: checking for working autoheader" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
819 AUTOHEADER=autoheader
820 echo "$ac_t""found" 1>&6
822 AUTOHEADER="$missing_dir/missing autoheader"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
827 echo "configure:828: checking for working makeinfo" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
833 echo "$ac_t""found" 1>&6
835 MAKEINFO="$missing_dir/missing makeinfo"
836 echo "$ac_t""missing" 1>&6
842 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
843 echo "configure:844: checking configure arguments" >&5
848 ldap_subdir="openldap"
850 # Check whether --with-subdir or --without-subdir was given.
851 if test "${with_subdir+set}" = set; then
852 withval="$with_subdir"
854 if test "$withval" = "no"; then
856 elif test "$withval" != "yes"; then
857 ldap_subdir="$withval"
863 # OpenLDAP --enable-debug
864 # Check whether --enable-debug or --disable-debug was given.
865 if test "${enable_debug+set}" = set; then
866 enableval="$enable_debug"
869 for ol_val in auto yes no ; do
870 if test "$enableval" = "$ol_val" ; then
874 if test "$ol_arg" = "invalid" ; then
875 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
877 ol_enable_debug="$ol_arg"
880 ol_enable_debug="yes"
883 # OpenLDAP --enable-proctitle
884 # Check whether --enable-proctitle or --disable-proctitle was given.
885 if test "${enable_proctitle+set}" = set; then
886 enableval="$enable_proctitle"
889 for ol_val in auto yes no ; do
890 if test "$enableval" = "$ol_val" ; then
894 if test "$ol_arg" = "invalid" ; then
895 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
897 ol_enable_proctitle="$ol_arg"
900 ol_enable_proctitle="yes"
902 # end --enable-proctitle
903 # OpenLDAP --enable-libui
904 # Check whether --enable-libui or --disable-libui was given.
905 if test "${enable_libui+set}" = set; then
906 enableval="$enable_libui"
909 for ol_val in auto yes no ; do
910 if test "$enableval" = "$ol_val" ; then
914 if test "$ol_arg" = "invalid" ; then
915 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
917 ol_enable_libui="$ol_arg"
920 ol_enable_libui="yes"
923 # OpenLDAP --enable-cache
924 # Check whether --enable-cache or --disable-cache was given.
925 if test "${enable_cache+set}" = set; then
926 enableval="$enable_cache"
929 for ol_val in auto yes no ; do
930 if test "$enableval" = "$ol_val" ; then
934 if test "$ol_arg" = "invalid" ; then
935 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
937 ol_enable_cache="$ol_arg"
940 ol_enable_cache="yes"
943 # OpenLDAP --enable-dns
944 # Check whether --enable-dns or --disable-dns was given.
945 if test "${enable_dns+set}" = set; then
946 enableval="$enable_dns"
949 for ol_val in auto yes no ; do
950 if test "$enableval" = "$ol_val" ; then
954 if test "$ol_arg" = "invalid" ; then
955 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
957 ol_enable_dns="$ol_arg"
963 # OpenLDAP --enable-referrals
964 # Check whether --enable-referrals or --disable-referrals was given.
965 if test "${enable_referrals+set}" = set; then
966 enableval="$enable_referrals"
969 for ol_val in auto yes no ; do
970 if test "$enableval" = "$ol_val" ; then
974 if test "$ol_arg" = "invalid" ; then
975 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
977 ol_enable_referrals="$ol_arg"
980 ol_enable_referrals="yes"
982 # end --enable-referrals
983 # OpenLDAP --enable-cldap
984 # Check whether --enable-cldap or --disable-cldap was given.
985 if test "${enable_cldap+set}" = set; then
986 enableval="$enable_cldap"
989 for ol_val in auto yes no ; do
990 if test "$enableval" = "$ol_val" ; then
994 if test "$ol_arg" = "invalid" ; then
995 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
997 ol_enable_cldap="$ol_arg"
1000 ol_enable_cldap="no"
1002 # end --enable-cldap
1003 # OpenLDAP --enable-x_compile
1004 # Check whether --enable-x_compile or --disable-x_compile was given.
1005 if test "${enable_x_compile+set}" = set; then
1006 enableval="$enable_x_compile"
1009 for ol_val in yes no ; do
1010 if test "$enableval" = "$ol_val" ; then
1014 if test "$ol_arg" = "invalid" ; then
1015 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1017 ol_enable_x_compile="$ol_arg"
1020 ol_enable_x_compile="no"
1022 # end --enable-x_compile
1024 # OpenLDAP --enable-dmalloc
1025 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1026 if test "${enable_dmalloc+set}" = set; then
1027 enableval="$enable_dmalloc"
1030 for ol_val in auto yes no ; do
1031 if test "$enableval" = "$ol_val" ; then
1035 if test "$ol_arg" = "invalid" ; then
1036 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1038 ol_enable_dmalloc="$ol_arg"
1041 ol_enable_dmalloc="no"
1043 # end --enable-dmalloc
1045 # OpenLDAP --with-kerberos
1046 # Check whether --with-kerberos or --without-kerberos was given.
1047 if test "${with_kerberos+set}" = set; then
1048 withval="$with_kerberos"
1051 for ol_val in auto k5 k4 afs yes no ; do
1052 if test "$withval" = "$ol_val" ; then
1056 if test "$ol_arg" = "invalid" ; then
1057 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1059 ol_with_kerberos="$ol_arg"
1062 ol_with_kerberos="auto"
1064 # end --with-kerberos
1066 # OpenLDAP --with-threads
1067 # Check whether --with-threads or --without-threads was given.
1068 if test "${with_threads+set}" = set; then
1069 withval="$with_threads"
1072 for ol_val in auto posix mach lwp yes no manual ; do
1073 if test "$withval" = "$ol_val" ; then
1077 if test "$ol_arg" = "invalid" ; then
1078 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1080 ol_with_threads="$ol_arg"
1083 ol_with_threads="auto"
1085 # end --with-threads
1087 # OpenLDAP --with-yielding_select
1088 # Check whether --with-yielding_select or --without-yielding_select was given.
1089 if test "${with_yielding_select+set}" = set; then
1090 withval="$with_yielding_select"
1093 for ol_val in auto yes no manual ; do
1094 if test "$withval" = "$ol_val" ; then
1098 if test "$ol_arg" = "invalid" ; then
1099 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1101 ol_with_yielding_select="$ol_arg"
1104 ol_with_yielding_select="auto"
1106 # end --with-yielding_select
1110 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1111 if test "${with_xxldapdoptions+set}" = set; then
1112 withval="$with_xxldapdoptions"
1116 # OpenLDAP --enable-ldapd
1117 # Check whether --enable-ldapd or --disable-ldapd was given.
1118 if test "${enable_ldapd+set}" = set; then
1119 enableval="$enable_ldapd"
1122 for ol_val in auto yes no ; do
1123 if test "$enableval" = "$ol_val" ; then
1127 if test "$ol_arg" = "invalid" ; then
1128 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1130 ol_enable_ldapd="$ol_arg"
1133 ol_enable_ldapd="no"
1135 # end --enable-ldapd
1137 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1138 if test "${with_xxslapdoptions+set}" = set; then
1139 withval="$with_xxslapdoptions"
1143 # OpenLDAP --enable-slapd
1144 # Check whether --enable-slapd or --disable-slapd was given.
1145 if test "${enable_slapd+set}" = set; then
1146 enableval="$enable_slapd"
1149 for ol_val in auto yes no ; do
1150 if test "$enableval" = "$ol_val" ; then
1154 if test "$ol_arg" = "invalid" ; then
1155 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1157 ol_enable_slapd="$ol_arg"
1160 ol_enable_slapd="yes"
1162 # end --enable-slapd
1163 # OpenLDAP --enable-aclgroups
1164 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1165 if test "${enable_aclgroups+set}" = set; then
1166 enableval="$enable_aclgroups"
1169 for ol_val in auto yes no ; do
1170 if test "$enableval" = "$ol_val" ; then
1174 if test "$ol_arg" = "invalid" ; then
1175 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1177 ol_enable_aclgroups="$ol_arg"
1180 ol_enable_aclgroups="auto"
1182 # end --enable-aclgroups
1183 # OpenLDAP --enable-cleartext
1184 # Check whether --enable-cleartext or --disable-cleartext was given.
1185 if test "${enable_cleartext+set}" = set; then
1186 enableval="$enable_cleartext"
1189 for ol_val in auto yes no ; do
1190 if test "$enableval" = "$ol_val" ; then
1194 if test "$ol_arg" = "invalid" ; then
1195 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1197 ol_enable_cleartext="$ol_arg"
1200 ol_enable_cleartext="yes"
1202 # end --enable-cleartext
1203 # OpenLDAP --enable-crypt
1204 # Check whether --enable-crypt or --disable-crypt was given.
1205 if test "${enable_crypt+set}" = set; then
1206 enableval="$enable_crypt"
1209 for ol_val in auto yes no ; do
1210 if test "$enableval" = "$ol_val" ; then
1214 if test "$ol_arg" = "invalid" ; then
1215 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1217 ol_enable_crypt="$ol_arg"
1220 ol_enable_crypt="auto"
1222 # end --enable-crypt
1223 # OpenLDAP --enable-wrappers
1224 # Check whether --enable-wrappers or --disable-wrappers was given.
1225 if test "${enable_wrappers+set}" = set; then
1226 enableval="$enable_wrappers"
1229 for ol_val in auto yes no ; do
1230 if test "$enableval" = "$ol_val" ; then
1234 if test "$ol_arg" = "invalid" ; then
1235 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1237 ol_enable_wrappers="$ol_arg"
1240 ol_enable_wrappers="no"
1242 # end --enable-wrappers
1243 # OpenLDAP --enable-phonetic
1244 # Check whether --enable-phonetic or --disable-phonetic was given.
1245 if test "${enable_phonetic+set}" = set; then
1246 enableval="$enable_phonetic"
1249 for ol_val in auto yes no ; do
1250 if test "$enableval" = "$ol_val" ; then
1254 if test "$ol_arg" = "invalid" ; then
1255 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1257 ol_enable_phonetic="$ol_arg"
1260 ol_enable_phonetic="no"
1262 # end --enable-phonetic
1263 # OpenLDAP --enable-rlookups
1264 # Check whether --enable-rlookups or --disable-rlookups was given.
1265 if test "${enable_rlookups+set}" = set; then
1266 enableval="$enable_rlookups"
1269 for ol_val in auto yes no ; do
1270 if test "$enableval" = "$ol_val" ; then
1274 if test "$ol_arg" = "invalid" ; then
1275 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1277 ol_enable_rlookups="$ol_arg"
1280 ol_enable_rlookups="auto"
1282 # end --enable-rlookups
1284 # OpenLDAP --enable-ldbm
1285 # Check whether --enable-ldbm or --disable-ldbm was given.
1286 if test "${enable_ldbm+set}" = set; then
1287 enableval="$enable_ldbm"
1290 for ol_val in auto yes no ; do
1291 if test "$enableval" = "$ol_val" ; then
1295 if test "$ol_arg" = "invalid" ; then
1296 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1298 ol_enable_ldbm="$ol_arg"
1301 ol_enable_ldbm="yes"
1304 # OpenLDAP --with-ldbm_api
1305 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1306 if test "${with_ldbm_api+set}" = set; then
1307 withval="$with_ldbm_api"
1310 for ol_val in auto db2 db gdbm ndbm manual ; do
1311 if test "$withval" = "$ol_val" ; then
1315 if test "$ol_arg" = "invalid" ; then
1316 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1318 ol_with_ldbm_api="$ol_arg"
1321 ol_with_ldbm_api="auto"
1323 # end --with-ldbm_api
1325 # OpenLDAP --with-ldbm_type
1326 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1327 if test "${with_ldbm_type+set}" = set; then
1328 withval="$with_ldbm_type"
1331 for ol_val in auto btree hash ; do
1332 if test "$withval" = "$ol_val" ; then
1336 if test "$ol_arg" = "invalid" ; then
1337 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1339 ol_with_ldbm_type="$ol_arg"
1342 ol_with_ldbm_type="auto"
1344 # end --with-ldbm_type
1347 # OpenLDAP --enable-passwd
1348 # Check whether --enable-passwd or --disable-passwd was given.
1349 if test "${enable_passwd+set}" = set; then
1350 enableval="$enable_passwd"
1353 for ol_val in auto yes no ; do
1354 if test "$enableval" = "$ol_val" ; then
1358 if test "$ol_arg" = "invalid" ; then
1359 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1361 ol_enable_passwd="$ol_arg"
1364 ol_enable_passwd="no"
1366 # end --enable-passwd
1367 # OpenLDAP --enable-shell
1368 # Check whether --enable-shell or --disable-shell was given.
1369 if test "${enable_shell+set}" = set; then
1370 enableval="$enable_shell"
1373 for ol_val in auto yes no ; do
1374 if test "$enableval" = "$ol_val" ; then
1378 if test "$ol_arg" = "invalid" ; then
1379 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1381 ol_enable_shell="$ol_arg"
1384 ol_enable_shell="no"
1386 # end --enable-shell
1388 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1389 if test "${with_xxslurpdoptions+set}" = set; then
1390 withval="$with_xxslurpdoptions"
1394 # OpenLDAP --enable-slurpd
1395 # Check whether --enable-slurpd or --disable-slurpd was given.
1396 if test "${enable_slurpd+set}" = set; then
1397 enableval="$enable_slurpd"
1400 for ol_val in auto yes no ; do
1401 if test "$enableval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1408 ol_enable_slurpd="$ol_arg"
1411 ol_enable_slurpd="auto"
1413 # end --enable-slurpd
1415 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1416 if test "${with_xxliboptions+set}" = set; then
1417 withval="$with_xxliboptions"
1421 # Check whether --enable-static or --disable-static was given.
1422 if test "${enable_static+set}" = set; then
1423 enableval="$enable_static"
1424 p=${PACKAGE-default}
1425 case "$enableval" in
1426 yes) enable_static=yes ;;
1427 no) enable_static=no ;;
1430 # Look at the argument we got. We use all the common list separators.
1431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1432 for pkg in $enableval; do
1433 if test "X$pkg" = "X$p"; then
1444 # Check whether --enable-shared or --disable-shared was given.
1445 if test "${enable_shared+set}" = set; then
1446 enableval="$enable_shared"
1447 p=${PACKAGE-default}
1448 case "$enableval" in
1449 yes) enable_shared=yes ;;
1450 no) enable_shared=no ;;
1453 # Look at the argument we got. We use all the common list separators.
1454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1455 for pkg in $enableval; do
1456 if test "X$pkg" = "X$p"; then
1469 if test $ol_enable_dns = yes ; then
1470 if test $ol_enable_referrals = no ; then
1471 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1473 if test $ol_enable_referrals = auto ; then
1474 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1475 ol_enable_referrals=yes
1479 if test $ol_enable_slapd = no ; then
1480 if test $ol_enable_ldbm = yes ; then
1481 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1483 if test $ol_enable_passwd = yes ; then
1484 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1486 if test $ol_enable_shell = yes ; then
1487 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1489 if test $ol_enable_aclgroups = yes ; then
1490 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1492 if test $ol_enable_wrappers = yes ; then
1493 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1495 if test $ol_enable_phonetic = yes ; then
1496 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1498 if test $ol_enable_rlookups = yes ; then
1499 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1501 if test $ol_with_ldbm_api != auto ; then
1502 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1504 if test $ol_with_ldbm_type != auto ; then
1505 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1507 if test $ol_enable_slurpd = yes ; then
1508 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1511 # force settings to no
1515 ol_enable_aclgroups=no
1516 ol_enable_wrappers=no
1517 ol_enable_phonetic=no
1518 ol_enable_rlookups=no
1520 ol_with_ldbm_type=no
1523 elif test $ol_enable_ldbm = no ; then
1525 if test $ol_with_ldbm_api != auto ; then
1526 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1529 if test $ol_with_ldbm_type != auto ; then
1530 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1533 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1534 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1538 ol_with_ldbm_type=no
1542 if test $ol_with_ldbm_api = gdbm -a \
1543 $ol_with_ldbm_type = btree ; then
1544 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1546 if test $ol_with_ldbm_api = ndbm -a \
1547 $ol_with_ldbm_type = btree ; then
1548 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1552 if test $ol_enable_slurpd = yes ; then
1553 if test $ol_with_threads = no ; then
1554 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1558 echo "$ac_t""done" 1>&6
1561 # Make sure we can run config.sub.
1562 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1563 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1566 echo $ac_n "checking host system type""... $ac_c" 1>&6
1567 echo "configure:1568: checking host system type" >&5
1570 case "$host_alias" in
1574 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1575 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1577 *) host_alias=$nonopt ;;
1581 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1582 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585 echo "$ac_t""$host" 1>&6
1611 # Find a good install program. We prefer a C program (faster),
1612 # so one script is as good as another. But avoid the broken or
1613 # incompatible versions:
1614 # SysV /etc/install, /usr/sbin/install
1615 # SunOS /usr/etc/install
1616 # IRIX /sbin/install
1618 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1619 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1620 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1621 # ./install, which can be erroneously created by make from ./install.sh.
1622 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1623 echo "configure:1624: checking for a BSD compatible install" >&5
1624 if test -z "$INSTALL"; then
1625 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1629 for ac_dir in $PATH; do
1630 # Account for people who put trailing slashes in PATH elements.
1632 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1634 # OSF1 and SCO ODT 3.0 have their own names for install.
1635 # Don't use installbsd from OSF since it installs stuff as root
1637 for ac_prog in ginstall scoinst install; do
1638 if test -f $ac_dir/$ac_prog; then
1639 if test $ac_prog = install &&
1640 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1641 # AIX install. It has an incompatible calling convention.
1644 ac_cv_path_install="$ac_dir/$ac_prog -c"
1655 if test "${ac_cv_path_install+set}" = set; then
1656 INSTALL="$ac_cv_path_install"
1658 # As a last resort, use the slow shell script. We don't cache a
1659 # path for INSTALL within a source directory, because that will
1660 # break other packages using the cache if that directory is
1661 # removed, or if the path is relative.
1662 INSTALL="$ac_install_sh"
1665 echo "$ac_t""$INSTALL" 1>&6
1667 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1668 # It thinks the first close brace ends the variable substitution.
1669 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1671 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1673 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1675 # Extract the first word of "ranlib", so it can be a program name with args.
1676 set dummy ranlib; ac_word=$2
1677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1678 echo "configure:1679: checking for $ac_word" >&5
1679 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 if test -n "$RANLIB"; then
1683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1687 for ac_dir in $ac_dummy; do
1688 test -z "$ac_dir" && ac_dir=.
1689 if test -f $ac_dir/$ac_word; then
1690 ac_cv_prog_RANLIB="ranlib"
1695 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1698 RANLIB="$ac_cv_prog_RANLIB"
1699 if test -n "$RANLIB"; then
1700 echo "$ac_t""$RANLIB" 1>&6
1702 echo "$ac_t""no" 1>&6
1705 # Extract the first word of "gcc", so it can be a program name with args.
1706 set dummy gcc; ac_word=$2
1707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_word" >&5
1709 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1717 for ac_dir in $ac_dummy; do
1718 test -z "$ac_dir" && ac_dir=.
1719 if test -f $ac_dir/$ac_word; then
1728 if test -n "$CC"; then
1729 echo "$ac_t""$CC" 1>&6
1731 echo "$ac_t""no" 1>&6
1734 if test -z "$CC"; then
1735 # Extract the first word of "cc", so it can be a program name with args.
1736 set dummy cc; ac_word=$2
1737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1738 echo "configure:1739: checking for $ac_word" >&5
1739 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1742 if test -n "$CC"; then
1743 ac_cv_prog_CC="$CC" # Let the user override the test.
1745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1748 for ac_dir in $ac_dummy; do
1749 test -z "$ac_dir" && ac_dir=.
1750 if test -f $ac_dir/$ac_word; then
1751 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1752 ac_prog_rejected=yes
1760 if test $ac_prog_rejected = yes; then
1761 # We found a bogon in the path, so make sure we never use it.
1762 set dummy $ac_cv_prog_CC
1764 if test $# -gt 0; then
1765 # We chose a different compiler from the bogus one.
1766 # However, it has the same basename, so the bogon will be chosen
1767 # first if we set CC to just the basename; use the full file name.
1769 set dummy "$ac_dir/$ac_word" "$@"
1777 if test -n "$CC"; then
1778 echo "$ac_t""$CC" 1>&6
1780 echo "$ac_t""no" 1>&6
1783 if test -z "$CC"; then
1784 case "`uname -s`" in
1786 # Extract the first word of "cl", so it can be a program name with args.
1787 set dummy cl; ac_word=$2
1788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1789 echo "configure:1790: checking for $ac_word" >&5
1790 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1793 if test -n "$CC"; then
1794 ac_cv_prog_CC="$CC" # Let the user override the test.
1796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1798 for ac_dir in $ac_dummy; do
1799 test -z "$ac_dir" && ac_dir=.
1800 if test -f $ac_dir/$ac_word; then
1809 if test -n "$CC"; then
1810 echo "$ac_t""$CC" 1>&6
1812 echo "$ac_t""no" 1>&6
1817 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1820 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1821 echo "configure:1822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1824 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1825 ac_cpp='$CPP $CPPFLAGS'
1826 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1827 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1828 cross_compiling=$ac_cv_prog_cc_cross
1830 cat > conftest.$ac_ext << EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1837 if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1838 ac_cv_prog_cc_works=yes
1839 # If we can't run a trivial program, we are probably using a cross compiler.
1840 if (./conftest; exit) 2>/dev/null; then
1841 ac_cv_prog_cc_cross=no
1843 ac_cv_prog_cc_cross=yes
1846 echo "configure: failed program was:" >&5
1847 cat conftest.$ac_ext >&5
1848 ac_cv_prog_cc_works=no
1852 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1853 ac_cpp='$CPP $CPPFLAGS'
1854 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1855 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1856 cross_compiling=$ac_cv_prog_cc_cross
1858 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1859 if test $ac_cv_prog_cc_works = no; then
1860 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1862 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1863 echo "configure:1864: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1864 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1865 cross_compiling=$ac_cv_prog_cc_cross
1867 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1868 echo "configure:1869: checking whether we are using GNU C" >&5
1869 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 cat > conftest.c <<EOF
1877 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1884 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1886 if test $ac_cv_prog_gcc = yes; then
1892 ac_test_CFLAGS="${CFLAGS+set}"
1893 ac_save_CFLAGS="$CFLAGS"
1895 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1896 echo "configure:1897: checking whether ${CC-cc} accepts -g" >&5
1897 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 echo 'void f(){}' > conftest.c
1901 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1910 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1911 if test "$ac_test_CFLAGS" = set; then
1912 CFLAGS="$ac_save_CFLAGS"
1913 elif test $ac_cv_prog_cc_g = yes; then
1914 if test "$GCC" = yes; then
1920 if test "$GCC" = yes; then
1927 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1928 if test "${with_gnu_ld+set}" = set; then
1929 withval="$with_gnu_ld"
1930 test "$withval" = no || with_gnu_ld=yes
1937 if test "$ac_cv_prog_gcc" = yes; then
1938 # Check if gcc -print-prog-name=ld gives a path.
1939 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1940 echo "configure:1941: checking for ld used by GCC" >&5
1941 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1943 # Accept absolute paths.
1945 test -z "$LD" && LD="$ac_prog"
1948 # If it fails, then pretend we aren't using GCC.
1952 # If it is relative, then search for the first ld in PATH.
1956 elif test "$with_gnu_ld" = yes; then
1957 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1958 echo "configure:1959: checking for GNU ld" >&5
1960 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1961 echo "configure:1962: checking for non-GNU ld" >&5
1963 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 if test -z "$LD"; then
1967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1968 for ac_dir in $PATH; do
1969 test -z "$ac_dir" && ac_dir=.
1970 if test -f "$ac_dir/$ac_prog"; then
1971 ac_cv_path_LD="$ac_dir/$ac_prog"
1972 # Check to see if the program is GNU ld. I'd rather use --version,
1973 # but apparently some GNU ld's only accept -v.
1974 # Break only if it was the GNU/non-GNU ld that we prefer.
1975 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1976 test "$with_gnu_ld" != no && break
1978 test "$with_gnu_ld" != yes && break
1984 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1989 if test -n "$LD"; then
1990 echo "$ac_t""$LD" 1>&6
1992 echo "$ac_t""no" 1>&6
1994 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1996 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1997 echo "configure:1998: checking if the linker ($LD) is GNU ld" >&5
1998 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2002 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2003 ac_cv_prog_gnu_ld=yes
2005 ac_cv_prog_gnu_ld=no
2009 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2012 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2013 echo "configure:2014: checking for BSD-compatible nm" >&5
2014 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2015 echo $ac_n "(cached) $ac_c" 1>&6
2019 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2023 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2024 test -z "$ac_dir" && ac_dir=.
2025 if test -f $ac_dir/nm; then
2026 # Check to see if the nm accepts a BSD-compat flag.
2027 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2028 # nm: unknown option "B" ignored
2029 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2030 ac_cv_path_NM="$ac_dir/nm -B"
2031 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2032 ac_cv_path_NM="$ac_dir/nm -p"
2034 ac_cv_path_NM="$ac_dir/nm"
2040 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2046 echo "$ac_t""$NM" 1>&6
2049 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2050 echo "configure:2051: checking whether ln -s works" >&5
2051 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2055 if ln -s X conftestdata 2>/dev/null
2058 ac_cv_prog_LN_S="ln -s"
2063 LN_S="$ac_cv_prog_LN_S"
2064 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2065 echo "$ac_t""yes" 1>&6
2067 echo "$ac_t""no" 1>&6
2070 # Always use our own libtool.
2071 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2073 # Check for any special flags to pass to ltconfig.
2075 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2076 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2077 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2078 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2079 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2081 # Some flags need to be propagated to the compiler or linker for good
2085 # Find out which ABI we are using.
2086 echo '#line 2087 "configure"' > conftest.$ac_ext
2087 if { (eval echo configure:2088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2088 case "`/usr/bin/file conftest.o`" in
2104 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2105 CFLAGS="$CFLAGS -belf"
2109 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2110 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2111 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2112 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2113 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2114 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2117 # Extract the first word of "sendmail", so it can be a program name with args.
2118 set dummy sendmail; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5
2121 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2126 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2129 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2133 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2134 for ac_dir in $ac_dummy; do
2135 test -z "$ac_dir" && ac_dir=.
2136 if test -f $ac_dir/$ac_word; then
2137 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2142 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2146 SENDMAIL="$ac_cv_path_SENDMAIL"
2147 if test -n "$SENDMAIL"; then
2148 echo "$ac_t""$SENDMAIL" 1>&6
2150 echo "$ac_t""no" 1>&6
2153 # Extract the first word of "vi", so it can be a program name with args.
2154 set dummy vi; ac_word=$2
2155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2156 echo "configure:2157: checking for $ac_word" >&5
2157 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2162 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2165 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2169 ac_dummy="$PATH:/usr/ucb"
2170 for ac_dir in $ac_dummy; do
2171 test -z "$ac_dir" && ac_dir=.
2172 if test -f $ac_dir/$ac_word; then
2173 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2178 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2182 EDITOR="$ac_cv_path_EDITOR"
2183 if test -n "$EDITOR"; then
2184 echo "$ac_t""$EDITOR" 1>&6
2186 echo "$ac_t""no" 1>&6
2189 # Extract the first word of "finger", so it can be a program name with args.
2190 set dummy finger; ac_word=$2
2191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2192 echo "configure:2193: checking for $ac_word" >&5
2193 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2198 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2201 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2204 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2205 ac_dummy="$PATH:/usr/ucb"
2206 for ac_dir in $ac_dummy; do
2207 test -z "$ac_dir" && ac_dir=.
2208 if test -f $ac_dir/$ac_word; then
2209 ac_cv_path_FINGER="$ac_dir/$ac_word"
2214 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2218 FINGER="$ac_cv_path_FINGER"
2219 if test -n "$FINGER"; then
2220 echo "$ac_t""$FINGER" 1>&6
2222 echo "$ac_t""no" 1>&6
2227 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2228 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2230 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2231 echo "configure: warning: programs compiled here do run here..." 1>&2
2232 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2234 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2235 echo "configure: warning: programs compiled here do not run here..." 1>&2
2236 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2239 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2240 echo "configure:2241: checking how to run the C preprocessor" >&5
2241 # On Suns, sometimes $CPP names a directory.
2242 if test -n "$CPP" && test -d "$CPP"; then
2245 if test -z "$CPP"; then
2246 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2249 # This must be in double quotes, not single quotes, because CPP may get
2250 # substituted into the Makefile and "${CC-cc}" will confuse make.
2252 # On the NeXT, cc -E runs the code through the compiler's parser,
2253 # not just through cpp.
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2261 { (eval echo configure:2262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2263 if test -z "$ac_err"; then
2267 echo "configure: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2270 CPP="${CC-cc} -E -traditional-cpp"
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2278 { (eval echo configure:2279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2280 if test -z "$ac_err"; then
2284 echo "configure: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2287 CPP="${CC-cc} -nologo -E"
2288 cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2295 { (eval echo configure:2296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2297 if test -z "$ac_err"; then
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2311 ac_cv_prog_CPP="$CPP"
2313 CPP="$ac_cv_prog_CPP"
2315 ac_cv_prog_CPP="$CPP"
2317 echo "$ac_t""$CPP" 1>&6
2320 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2321 echo "configure:2322: checking for AIX" >&5
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2331 egrep "yes" >/dev/null 2>&1; then
2333 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2334 #define _ALL_SOURCE 1
2339 echo "$ac_t""no" 1>&6
2344 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2345 echo "configure:2346: checking for POSIXized ISC" >&5
2346 if test -d /etc/conf/kconfig.d &&
2347 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2349 echo "$ac_t""yes" 1>&6
2350 ISC=yes # If later tests want to check for ISC.
2351 cat >> confdefs.h <<\EOF
2352 #define _POSIX_SOURCE 1
2355 if test "$GCC" = yes; then
2361 echo "$ac_t""no" 1>&6
2365 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2366 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2367 echo "configure:2368: checking for minix/config.h" >&5
2368 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #include <minix/config.h>
2376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2377 { (eval echo configure:2378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2379 if test -z "$ac_err"; then
2381 eval "ac_cv_header_$ac_safe=yes"
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2387 eval "ac_cv_header_$ac_safe=no"
2391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2392 echo "$ac_t""yes" 1>&6
2395 echo "$ac_t""no" 1>&6
2399 if test "$MINIX" = yes; then
2400 cat >> confdefs.h <<\EOF
2401 #define _POSIX_SOURCE 1
2404 cat >> confdefs.h <<\EOF
2405 #define _POSIX_1_SOURCE 2
2408 cat >> confdefs.h <<\EOF
2418 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2419 echo "configure:2420: checking for ${CC-cc} option to accept ANSI C" >&5
2420 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2423 am_cv_prog_cc_stdc=no
2425 # Don't try gcc -ansi; that turns off useful extensions and
2426 # breaks some systems' header files.
2427 # AIX -qlanglvl=ansi
2428 # Ultrix and OSF/1 -std1
2429 # HP-UX -Aa -D_HPUX_SOURCE
2430 # SVR4 -Xc -D__EXTENSIONS__
2431 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2433 CC="$ac_save_CC $ac_arg"
2434 cat > conftest.$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2439 #include <sys/types.h>
2440 #include <sys/stat.h>
2441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2442 struct buf { int x; };
2443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2444 static char *e (p, i)
2450 static char *f (char * (*g) (char **, int), char **p, ...)
2455 s = g (p, va_arg (v,int));
2459 int test (int i, double x);
2460 struct s1 {int (*f) (int a);};
2461 struct s2 {int (*f) (double a);};
2462 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2468 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2472 if { (eval echo configure:2473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2474 am_cv_prog_cc_stdc="$ac_arg"; break
2476 echo "configure: failed program was:" >&5
2477 cat conftest.$ac_ext >&5
2485 if test -z "$am_cv_prog_cc_stdc"; then
2486 echo "$ac_t""none needed" 1>&6
2488 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2490 case "x$am_cv_prog_cc_stdc" in
2492 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2495 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2496 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2502 echo $ac_n "checking for socket""... $ac_c" 1>&6
2503 echo "configure:2504: checking for socket" >&5
2504 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2510 /* System header to define __stub macros and hopefully few prototypes,
2511 which can conflict with char socket(); below. */
2513 /* Override any gcc2 internal prototype to avoid an error. */
2514 /* We use char because int might match the return type of a gcc2
2515 builtin and then its argument prototype would still apply. */
2520 /* The GNU C library defines this for functions which it implements
2521 to always fail with ENOSYS. Some functions are actually named
2522 something starting with __ and the normal name is an alias. */
2523 #if defined (__stub_socket) || defined (__stub___socket)
2531 if { (eval echo configure:2532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2533 eval "ac_cv_func_socket=yes"
2535 echo "configure: failed program was:" >&5
2536 cat conftest.$ac_ext >&5
2538 eval "ac_cv_func_socket=no"
2543 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2544 echo "$ac_t""yes" 1>&6
2547 echo "$ac_t""no" 1>&6
2549 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2550 echo "configure:2551: checking for main in -lsocket" >&5
2551 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2553 echo $ac_n "(cached) $ac_c" 1>&6
2555 ac_save_LIBS="$LIBS"
2556 LIBS="-lsocket $LIBS"
2557 cat > conftest.$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2565 if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2567 eval "ac_cv_lib_$ac_lib_var=yes"
2569 echo "configure: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2572 eval "ac_cv_lib_$ac_lib_var=no"
2575 LIBS="$ac_save_LIBS"
2578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2579 echo "$ac_t""yes" 1>&6
2580 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2581 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2582 cat >> confdefs.h <<EOF
2583 #define $ac_tr_lib 1
2586 LIBS="-lsocket $LIBS"
2589 echo "$ac_t""no" 1>&6
2592 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2593 echo "configure:2594: checking for main in -lnet" >&5
2594 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 ac_save_LIBS="$LIBS"
2600 cat > conftest.$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2608 if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2610 eval "ac_cv_lib_$ac_lib_var=yes"
2612 echo "configure: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2615 eval "ac_cv_lib_$ac_lib_var=no"
2618 LIBS="$ac_save_LIBS"
2621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2622 echo "$ac_t""yes" 1>&6
2623 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2624 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2625 cat >> confdefs.h <<EOF
2626 #define $ac_tr_lib 1
2632 echo "$ac_t""no" 1>&6
2635 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2636 echo "configure:2637: checking for main in -lnsl_s" >&5
2637 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 ac_save_LIBS="$LIBS"
2642 LIBS="-lnsl_s $LIBS"
2643 cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2651 if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2653 eval "ac_cv_lib_$ac_lib_var=yes"
2655 echo "configure: failed program was:" >&5
2656 cat conftest.$ac_ext >&5
2658 eval "ac_cv_lib_$ac_lib_var=no"
2661 LIBS="$ac_save_LIBS"
2664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2665 echo "$ac_t""yes" 1>&6
2666 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2667 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2668 cat >> confdefs.h <<EOF
2669 #define $ac_tr_lib 1
2672 LIBS="-lnsl_s $LIBS"
2675 echo "$ac_t""no" 1>&6
2678 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2679 echo "configure:2680: checking for main in -lnsl" >&5
2680 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 ac_save_LIBS="$LIBS"
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2694 if { (eval echo configure:2695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2696 eval "ac_cv_lib_$ac_lib_var=yes"
2698 echo "configure: failed program was:" >&5
2699 cat conftest.$ac_ext >&5
2701 eval "ac_cv_lib_$ac_lib_var=no"
2704 LIBS="$ac_save_LIBS"
2707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2708 echo "$ac_t""yes" 1>&6
2709 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2710 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2711 cat >> confdefs.h <<EOF
2712 #define $ac_tr_lib 1
2718 echo "$ac_t""no" 1>&6
2721 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2722 echo "configure:2723: checking for socket in -linet" >&5
2723 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2727 ac_save_LIBS="$LIBS"
2729 cat > conftest.$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2732 /* Override any gcc2 internal prototype to avoid an error. */
2733 /* We use char because int might match the return type of a gcc2
2734 builtin and then its argument prototype would still apply. */
2741 if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2743 eval "ac_cv_lib_$ac_lib_var=yes"
2745 echo "configure: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2748 eval "ac_cv_lib_$ac_lib_var=no"
2751 LIBS="$ac_save_LIBS"
2754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2755 echo "$ac_t""yes" 1>&6
2756 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2757 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2758 cat >> confdefs.h <<EOF
2759 #define $ac_tr_lib 1
2765 echo "$ac_t""no" 1>&6
2768 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2769 echo "configure:2770: checking for main in -lgen" >&5
2770 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2772 echo $ac_n "(cached) $ac_c" 1>&6
2774 ac_save_LIBS="$LIBS"
2776 cat > conftest.$ac_ext <<EOF
2777 #line 2778 "configure"
2778 #include "confdefs.h"
2784 if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2786 eval "ac_cv_lib_$ac_lib_var=yes"
2788 echo "configure: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2791 eval "ac_cv_lib_$ac_lib_var=no"
2794 LIBS="$ac_save_LIBS"
2797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2799 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2800 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2801 cat >> confdefs.h <<EOF
2802 #define $ac_tr_lib 1
2808 echo "$ac_t""no" 1>&6
2815 for ac_func in res_search
2817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2818 echo "configure:2819: checking for $ac_func" >&5
2819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2820 echo $ac_n "(cached) $ac_c" 1>&6
2822 cat > conftest.$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2825 /* System header to define __stub macros and hopefully few prototypes,
2826 which can conflict with char $ac_func(); below. */
2828 /* Override any gcc2 internal prototype to avoid an error. */
2829 /* We use char because int might match the return type of a gcc2
2830 builtin and then its argument prototype would still apply. */
2835 /* The GNU C library defines this for functions which it implements
2836 to always fail with ENOSYS. Some functions are actually named
2837 something starting with __ and the normal name is an alias. */
2838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2846 if { (eval echo configure:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2848 eval "ac_cv_func_$ac_func=yes"
2850 echo "configure: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2853 eval "ac_cv_func_$ac_func=no"
2858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2859 echo "$ac_t""yes" 1>&6
2860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2861 cat >> confdefs.h <<EOF
2862 #define $ac_tr_func 1
2866 echo "$ac_t""no" 1>&6
2870 if test $ac_cv_func_res_search = "no" ; then
2871 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
2872 echo "configure:2873: checking for res_search in -lbind" >&5
2873 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
2874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2877 ac_save_LIBS="$LIBS"
2879 cat > conftest.$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2882 /* Override any gcc2 internal prototype to avoid an error. */
2883 /* We use char because int might match the return type of a gcc2
2884 builtin and then its argument prototype would still apply. */
2891 if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2893 eval "ac_cv_lib_$ac_lib_var=yes"
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2898 eval "ac_cv_lib_$ac_lib_var=no"
2901 LIBS="$ac_save_LIBS"
2904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2905 echo "$ac_t""yes" 1>&6
2906 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2907 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2908 cat >> confdefs.h <<EOF
2909 #define $ac_tr_lib 1
2915 echo "$ac_t""no" 1>&6
2918 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
2919 cat >> confdefs.h <<\EOF
2920 #define HAVE_RES_SEARCH 1
2924 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
2925 echo "configure:2926: checking for res_search in -lresolv" >&5
2926 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
2927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 ac_save_LIBS="$LIBS"
2931 LIBS="-lresolv $LIBS"
2932 cat > conftest.$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2935 /* Override any gcc2 internal prototype to avoid an error. */
2936 /* We use char because int might match the return type of a gcc2
2937 builtin and then its argument prototype would still apply. */
2944 if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2946 eval "ac_cv_lib_$ac_lib_var=yes"
2948 echo "configure: failed program was:" >&5
2949 cat conftest.$ac_ext >&5
2951 eval "ac_cv_lib_$ac_lib_var=no"
2954 LIBS="$ac_save_LIBS"
2957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2958 echo "$ac_t""yes" 1>&6
2959 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2960 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2961 cat >> confdefs.h <<EOF
2962 #define $ac_tr_lib 1
2965 LIBS="-lresolv $LIBS"
2968 echo "$ac_t""no" 1>&6
2971 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
2972 cat >> confdefs.h <<\EOF
2973 #define HAVE_RES_SEARCH 1
2980 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2981 echo "configure:2982: checking for sigset in -lV3" >&5
2982 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 ac_save_LIBS="$LIBS"
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2991 /* Override any gcc2 internal prototype to avoid an error. */
2992 /* We use char because int might match the return type of a gcc2
2993 builtin and then its argument prototype would still apply. */
3000 if { (eval echo configure:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3002 eval "ac_cv_lib_$ac_lib_var=yes"
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3007 eval "ac_cv_lib_$ac_lib_var=no"
3010 LIBS="$ac_save_LIBS"
3013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3014 echo "$ac_t""yes" 1>&6
3015 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3016 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3017 cat >> confdefs.h <<EOF
3018 #define $ac_tr_lib 1
3024 echo "$ac_t""no" 1>&6
3030 if test $ol_enable_ldapd != no ; then
3031 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3032 echo "configure:3033: checking for main in -lxtpp" >&5
3033 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3037 ac_save_LIBS="$LIBS"
3038 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3039 cat > conftest.$ac_ext <<EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3047 if { (eval echo configure:3048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3049 eval "ac_cv_lib_$ac_lib_var=yes"
3051 echo "configure: failed program was:" >&5
3052 cat conftest.$ac_ext >&5
3054 eval "ac_cv_lib_$ac_lib_var=no"
3057 LIBS="$ac_save_LIBS"
3060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3061 echo "$ac_t""yes" 1>&6
3064 cat >> confdefs.h <<\EOF
3068 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3071 echo "$ac_t""no" 1>&6
3075 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3076 echo "configure:3077: checking for main in -ldsap" >&5
3077 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3081 ac_save_LIBS="$LIBS"
3082 LIBS="-ldsap -lisode $LIBS"
3083 cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3091 if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3093 eval "ac_cv_lib_$ac_lib_var=yes"
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3098 eval "ac_cv_lib_$ac_lib_var=no"
3101 LIBS="$ac_save_LIBS"
3104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3105 echo "$ac_t""yes" 1>&6
3108 cat >> confdefs.h <<\EOF
3112 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3115 echo "$ac_t""no" 1>&6
3119 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3120 echo "configure:3121: checking for main in -lisode" >&5
3121 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 ac_save_LIBS="$LIBS"
3126 LIBS="-lisode $LIBS"
3127 cat > conftest.$ac_ext <<EOF
3128 #line 3129 "configure"
3129 #include "confdefs.h"
3135 if { (eval echo configure:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3137 eval "ac_cv_lib_$ac_lib_var=yes"
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3142 eval "ac_cv_lib_$ac_lib_var=no"
3145 LIBS="$ac_save_LIBS"
3148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3149 echo "$ac_t""yes" 1>&6
3152 cat >> confdefs.h <<\EOF
3153 #define HAVE_ISODE 1
3156 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3159 echo "$ac_t""no" 1>&6
3165 if test $ol_link_isode != no; then
3166 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3167 echo "configure:3168: checking for main in -lpp" >&5
3168 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3172 ac_save_LIBS="$LIBS"
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3182 if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3184 eval "ac_cv_lib_$ac_lib_var=yes"
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3189 eval "ac_cv_lib_$ac_lib_var=no"
3192 LIBS="$ac_save_LIBS"
3195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3196 echo "$ac_t""yes" 1>&6
3198 cat >> confdefs.h <<\EOF
3202 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3205 echo "$ac_t""no" 1>&6
3210 # Extract the first word of "pepsy", so it can be a program name with args.
3211 set dummy pepsy; ac_word=$2
3212 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3213 echo "configure:3214: checking for $ac_word" >&5
3214 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3219 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3222 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3227 for ac_dir in $ac_dummy; do
3228 test -z "$ac_dir" && ac_dir=.
3229 if test -f $ac_dir/$ac_word; then
3230 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3238 PEPSY="$ac_cv_path_PEPSY"
3239 if test -n "$PEPSY"; then
3240 echo "$ac_t""$PEPSY" 1>&6
3242 echo "$ac_t""no" 1>&6
3249 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3250 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3254 echo "configure:3255: checking for $ac_hdr" >&5
3255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3264 { (eval echo configure:3265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3266 if test -z "$ac_err"; then
3268 eval "ac_cv_header_$ac_safe=yes"
3271 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3274 eval "ac_cv_header_$ac_safe=no"
3278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3279 echo "$ac_t""yes" 1>&6
3280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3281 cat >> confdefs.h <<EOF
3282 #define $ac_tr_hdr 1
3286 echo "$ac_t""no" 1>&6
3291 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3292 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3293 echo "configure:3294: checking for main in -lkrb4" >&5
3294 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 ac_save_LIBS="$LIBS"
3299 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3308 if { (eval echo configure:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3310 eval "ac_cv_lib_$ac_lib_var=yes"
3312 echo "configure: failed program was:" >&5
3313 cat conftest.$ac_ext >&5
3315 eval "ac_cv_lib_$ac_lib_var=no"
3318 LIBS="$ac_save_LIBS"
3321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3322 echo "$ac_t""yes" 1>&6
3325 echo "$ac_t""no" 1>&6
3330 if test $have_k5 = yes ; then
3331 ol_with_kerberos=found
3332 ol_link_kerberos=yes
3334 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3336 LIBS="$KRB_LIBS $LIBS"
3338 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3339 echo "configure:3340: checking for des_debug in Kerberos libraries" >&5
3340 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3345 LIBS="$KRB_LIBS $LIBS"
3346 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3350 #include <kerberosIV/krb.h>
3351 #include <kerberosIV/des.h>
3352 extern int des_debug;
3360 if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3362 ol_cv_var_des_debug=yes
3364 echo "configure: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3367 ol_cv_var_des_debug=no
3374 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
3376 if test $ol_cv_var_des_debug= yes ; then
3377 cat >> confdefs.h <<\EOF
3378 #define HAVE_DES_DEBUG 1
3388 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3389 for ac_hdr in krb.h des.h
3391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3393 echo "configure:3394: checking for $ac_hdr" >&5
3394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3403 { (eval echo configure:3404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3405 if test -z "$ac_err"; then
3407 eval "ac_cv_header_$ac_safe=yes"
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3413 eval "ac_cv_header_$ac_safe=no"
3417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3418 echo "$ac_t""yes" 1>&6
3419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3420 cat >> confdefs.h <<EOF
3421 #define $ac_tr_hdr 1
3425 echo "$ac_t""no" 1>&6
3430 if test $ac_cv_header_krb_h = yes ; then
3431 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3432 echo "configure:3433: checking for main in -lkrb" >&5
3433 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 ac_save_LIBS="$LIBS"
3438 LIBS="-lkrb -ldes $LIBS"
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3447 if { (eval echo configure:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3449 eval "ac_cv_lib_$ac_lib_var=yes"
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3454 eval "ac_cv_lib_$ac_lib_var=no"
3457 LIBS="$ac_save_LIBS"
3460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3461 echo "$ac_t""yes" 1>&6
3464 echo "$ac_t""no" 1>&6
3469 if test $have_k4 = yes ; then
3470 ol_with_kerberos=found
3471 ol_link_kerberos=yes
3473 KRB_LIBS="-lkrb -ldes"
3478 if test $ol_link_kerberos = yes ; then
3479 cat >> confdefs.h <<\EOF
3480 #define HAVE_KERBEROS 1
3486 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3487 -o $ol_with_threads = posix ; then
3489 for ac_hdr in pthread.h sched.h
3491 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3492 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3493 echo "configure:3494: checking for $ac_hdr" >&5
3494 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3503 { (eval echo configure:3504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3505 if test -z "$ac_err"; then
3507 eval "ac_cv_header_$ac_safe=yes"
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3513 eval "ac_cv_header_$ac_safe=no"
3517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3518 echo "$ac_t""yes" 1>&6
3519 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3520 cat >> confdefs.h <<EOF
3521 #define $ac_tr_hdr 1
3525 echo "$ac_t""no" 1>&6
3530 if test $ac_cv_header_pthread_h = yes ; then
3531 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3532 echo "configure:3533: checking POSIX thread version" >&5
3533 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3537 cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3541 # include <pthread.h>
3542 /* this check could be improved */
3543 # ifdef PTHREAD_ONCE_INIT
3544 pthread_version_final
3548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 egrep "pthread_version_final" >/dev/null 2>&1; then
3551 ol_pthread_final=yes
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3563 # include <pthread.h>
3564 /* this check could be improved */
3565 # ifdef pthread_once_init
3566 pthread_version_draft4
3570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3571 egrep "pthread_version_draft4" >/dev/null 2>&1; then
3573 ol_pthread_draft4=yes
3576 ol_pthread_draft4=no
3581 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3582 ol_cv_pthread_version=final
3583 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3584 ol_cv_pthread_version=draft4
3586 ol_cv_pthread_version=unknown
3591 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3594 if test $ol_cv_pthread_version = final ; then
3595 cat >> confdefs.h <<\EOF
3596 #define HAVE_PTHREADS_FINAL 1
3599 elif test $ol_cv_pthread_version = draft4 ; then
3600 cat >> confdefs.h <<\EOF
3601 #define HAVE_PTHREADS_D4 1
3605 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3608 # consider threads found
3609 ol_with_threads=found
3612 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3613 echo "configure:3614: checking for LinuxThreads" >&5
3614 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3618 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3619 if test "$res" -gt 0 ; then
3620 ol_cv_linux_threads=yes
3622 ol_cv_linux_threads=no
3627 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3630 if test $ol_cv_linux_threads = yes ; then
3631 cat >> confdefs.h <<\EOF
3632 #define HAVE_LINUX_THREADS 1
3638 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3639 echo "configure:3640: checking for pthread_create" >&5
3640 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 /* System header to define __stub macros and hopefully few prototypes,
3647 which can conflict with char pthread_create(); below. */
3649 /* Override any gcc2 internal prototype to avoid an error. */
3650 /* We use char because int might match the return type of a gcc2
3651 builtin and then its argument prototype would still apply. */
3652 char pthread_create();
3656 /* The GNU C library defines this for functions which it implements
3657 to always fail with ENOSYS. Some functions are actually named
3658 something starting with __ and the normal name is an alias. */
3659 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3667 if { (eval echo configure:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3669 eval "ac_cv_func_pthread_create=yes"
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3674 eval "ac_cv_func_pthread_create=no"
3679 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3680 echo "$ac_t""yes" 1>&6
3683 echo "$ac_t""no" 1>&6
3687 if test $ol_link_threads = no ; then
3688 echo $ac_n "checking for pthread_create with -kthread""... $ac_c" 1>&6
3689 echo "configure:3690: checking for pthread_create with -kthread" >&5
3690 if eval "test \"`echo '$''{'ol_cv_kthread_flag'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3695 LIBS="-kthread $LIBS"
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 #include <pthread.h>
3701 pthread_create(NULL,NULL,NULL,NULL);
3704 if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3706 ol_cv_kthread_flag=yes
3708 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3711 ol_cv_kthread_flag=no
3718 echo "$ac_t""$ol_cv_kthread_flag" 1>&6
3720 if test $ol_cv_kthread_flag = yes ; then
3721 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
3722 ol_link_threads=posix
3726 if test $ol_link_threads = no ; then
3727 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
3728 echo "configure:3729: checking for pthread_create with -pthread" >&5
3729 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3734 LIBS="-pthread $LIBS"
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 #include <pthread.h>
3740 pthread_create(NULL,NULL,NULL,NULL);
3743 if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3745 ol_cv_pthread_flag=yes
3747 echo "configure: failed program was:" >&5
3748 cat conftest.$ac_ext >&5
3750 ol_cv_pthread_flag=no
3757 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
3759 if test $ol_cv_pthread_flag = yes ; then
3760 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
3761 ol_link_threads=posix
3765 if test $ol_link_threads = no ; then
3766 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
3767 echo "configure:3768: checking for pthread_create with -pthreads" >&5
3768 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3773 LIBS="-pthreads $LIBS"
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 #include <pthread.h>
3779 pthread_create(NULL,NULL,NULL,NULL);
3782 if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3784 ol_cv_pthreads_flag=yes
3786 echo "configure: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3789 ol_cv_pthreads_flag=no
3796 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
3798 if test $ol_cv_pthreads_flag = yes ; then
3799 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
3800 ol_link_threads=posix
3804 if test $ol_link_threads = no ; then
3805 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
3806 echo "configure:3807: checking for pthread_create with -thread" >&5
3807 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
3808 echo $ac_n "(cached) $ac_c" 1>&6
3812 LIBS="-thread $LIBS"
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 char pthread_create();
3821 if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3823 ol_cv_thread_flag=yes
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3828 ol_cv_thread_flag=no
3835 echo "$ac_t""$ol_cv_thread_flag" 1>&6
3837 if test $ol_cv_thread_flag = yes ; then
3838 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
3839 ol_link_threads=posix
3843 if test $ol_link_threads = no ; then
3845 echo $ac_n "checking for pthread_mutex_unlock in -lpthread""... $ac_c" 1>&6
3846 echo "configure:3847: checking for pthread_mutex_unlock in -lpthread" >&5
3847 ac_lib_var=`echo pthread'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
3848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3851 ac_save_LIBS="$LIBS"
3852 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
3853 cat > conftest.$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3856 /* Override any gcc2 internal prototype to avoid an error. */
3857 /* We use char because int might match the return type of a gcc2
3858 builtin and then its argument prototype would still apply. */
3859 char pthread_mutex_unlock();
3862 pthread_mutex_unlock()
3865 if { (eval echo configure:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3867 eval "ac_cv_lib_$ac_lib_var=yes"
3869 echo "configure: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3872 eval "ac_cv_lib_$ac_lib_var=no"
3875 LIBS="$ac_save_LIBS"
3878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3879 echo "$ac_t""yes" 1>&6
3881 ol_link_threads=posix
3882 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
3883 if test $ol_with_yielding_select = auto ; then
3884 ol_with_yielding_select=yes
3888 echo "$ac_t""no" 1>&6
3895 if test $ol_link_threads = no ; then
3897 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
3898 echo "configure:3899: checking for pthread_mutex_lock in -lpthread" >&5
3899 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
3900 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3903 ac_save_LIBS="$LIBS"
3904 LIBS="-lpthread -lmach -lexc $LIBS"
3905 cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3908 /* Override any gcc2 internal prototype to avoid an error. */
3909 /* We use char because int might match the return type of a gcc2
3910 builtin and then its argument prototype would still apply. */
3911 char pthread_mutex_lock();
3914 pthread_mutex_lock()
3917 if { (eval echo configure:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3919 eval "ac_cv_lib_$ac_lib_var=yes"
3921 echo "configure: failed program was:" >&5
3922 cat conftest.$ac_ext >&5
3924 eval "ac_cv_lib_$ac_lib_var=no"
3927 LIBS="$ac_save_LIBS"
3930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3931 echo "$ac_t""yes" 1>&6
3933 ol_link_threads=posix
3934 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
3935 if test $ol_with_yielding_select = auto ; then
3936 ol_with_yielding_select=yes
3940 echo "$ac_t""no" 1>&6
3947 if test $ol_link_threads = no ; then
3949 echo $ac_n "checking for pthread_mutex_trylock in -lpthread""... $ac_c" 1>&6
3950 echo "configure:3951: checking for pthread_mutex_trylock in -lpthread" >&5
3951 ac_lib_var=`echo pthread'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
3952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3955 ac_save_LIBS="$LIBS"
3956 LIBS="-lpthread -lexc $LIBS"
3957 cat > conftest.$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3960 /* Override any gcc2 internal prototype to avoid an error. */
3961 /* We use char because int might match the return type of a gcc2
3962 builtin and then its argument prototype would still apply. */
3963 char pthread_mutex_trylock();
3966 pthread_mutex_trylock()
3969 if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3971 eval "ac_cv_lib_$ac_lib_var=yes"
3973 echo "configure: failed program was:" >&5
3974 cat conftest.$ac_ext >&5
3976 eval "ac_cv_lib_$ac_lib_var=no"
3979 LIBS="$ac_save_LIBS"
3982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3983 echo "$ac_t""yes" 1>&6
3985 ol_link_threads=posix
3986 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
3987 if test $ol_with_yielding_select = auto ; then
3988 ol_with_yielding_select=yes
3992 echo "$ac_t""no" 1>&6
3999 if test $ol_link_threads = no ; then
4001 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4002 echo "configure:4003: checking for pthread_create in -lpthread" >&5
4003 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 ac_save_LIBS="$LIBS"
4008 LIBS="-lpthread $LIBS"
4009 cat > conftest.$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4012 /* Override any gcc2 internal prototype to avoid an error. */
4013 /* We use char because int might match the return type of a gcc2
4014 builtin and then its argument prototype would still apply. */
4015 char pthread_create();
4021 if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4023 eval "ac_cv_lib_$ac_lib_var=yes"
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4028 eval "ac_cv_lib_$ac_lib_var=no"
4031 LIBS="$ac_save_LIBS"
4034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4035 echo "$ac_t""yes" 1>&6
4037 ol_link_threads=posix
4038 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4040 echo "$ac_t""no" 1>&6
4047 if test $ol_link_threads = no ; then
4049 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4050 echo "configure:4051: checking for pthread_create in -lc_r" >&5
4051 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
4052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4053 echo $ac_n "(cached) $ac_c" 1>&6
4055 ac_save_LIBS="$LIBS"
4057 cat > conftest.$ac_ext <<EOF
4058 #line 4059 "configure"
4059 #include "confdefs.h"
4060 /* Override any gcc2 internal prototype to avoid an error. */
4061 /* We use char because int might match the return type of a gcc2
4062 builtin and then its argument prototype would still apply. */
4063 char pthread_create();
4069 if { (eval echo configure:4070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4071 eval "ac_cv_lib_$ac_lib_var=yes"
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4076 eval "ac_cv_lib_$ac_lib_var=no"
4079 LIBS="$ac_save_LIBS"
4082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4083 echo "$ac_t""yes" 1>&6
4085 ol_link_threads=posix
4086 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
4088 echo "$ac_t""no" 1>&6
4095 if test $ol_link_threads = no ; then
4097 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
4098 echo "configure:4099: checking for pthread_create in -lpthreads" >&5
4099 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
4100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4103 ac_save_LIBS="$LIBS"
4104 LIBS="-lpthreads $LIBS"
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4108 /* Override any gcc2 internal prototype to avoid an error. */
4109 /* We use char because int might match the return type of a gcc2
4110 builtin and then its argument prototype would still apply. */
4111 char pthread_create();
4117 if { (eval echo configure:4118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4119 eval "ac_cv_lib_$ac_lib_var=yes"
4121 echo "configure: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4124 eval "ac_cv_lib_$ac_lib_var=no"
4127 LIBS="$ac_save_LIBS"
4130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4131 echo "$ac_t""yes" 1>&6
4133 ol_link_threads=posix
4134 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4136 echo "$ac_t""no" 1>&6
4143 if test $ol_link_threads = no ; then
4145 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
4146 echo "configure:4147: checking for pthread_join in -lpthreads" >&5
4147 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
4148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4151 ac_save_LIBS="$LIBS"
4152 LIBS="-lpthreads -Wl,-woff,85 $LIBS"
4153 cat > conftest.$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4156 /* Override any gcc2 internal prototype to avoid an error. */
4157 /* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4159 char pthread_join();
4165 if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4167 eval "ac_cv_lib_$ac_lib_var=yes"
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4172 eval "ac_cv_lib_$ac_lib_var=no"
4175 LIBS="$ac_save_LIBS"
4178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4179 echo "$ac_t""yes" 1>&6
4181 ol_link_threads=posix
4182 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
4185 echo "$ac_t""no" 1>&6
4192 if test $ol_link_threads = no; then
4194 LIBS="$LIBS -lpthread"
4195 echo $ac_n "checking for pthread_create() in HP-UX -lpthread""... $ac_c" 1>&6
4196 echo "configure:4197: checking for pthread_create() in HP-UX -lpthread" >&5
4197 ol_try_pthread_hpux_11=no
4198 if eval "test \"`echo '$''{'ol_cv_pthread_hpux_11'+set}'`\" = set"; then
4199 echo $ac_n "(cached) $ac_c" 1>&6
4202 cat > conftest.$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4206 #include <pthread.h>
4208 #ifndef ELFABI_HPUX_REL11
4213 pthread_create(NULL, NULL, NULL, NULL);
4216 if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4218 ol_try_pthread_hpux_11=yes
4219 ol_cv_pthread_hpux_11=yes
4221 echo "configure: failed program was:" >&5
4222 cat conftest.$ac_ext >&5
4224 ol_cv_pthread_hpux_11=no
4229 echo "$ac_t""yes" 1>&6
4232 if test $ol_cv_pthread_hpux_11=yes ; then
4233 ol_link_threads=posix
4234 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
4235 if test $ol_try_pthread_hpux_11=yes ; then
4236 ac_cv_func_pthread_attr_init=yes
4241 if test $ol_link_threads = no ; then
4242 echo $ac_n "checking for pthread_create with -threads""... $ac_c" 1>&6
4243 echo "configure:4244: checking for pthread_create with -threads" >&5
4244 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
4245 echo $ac_n "(cached) $ac_c" 1>&6
4249 LIBS="-threads $LIBS"
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 char pthread_create();
4260 if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4262 ol_cv_thread_flag=yes
4264 echo "configure: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4267 ol_cv_thread_flag=no
4274 echo "$ac_t""$ol_cv_thread_flag" 1>&6
4276 if test $ol_cv_thread_flag = yes ; then
4277 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
4278 ol_link_threads=posix
4282 if test $ol_link_threads = no ; then
4284 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
4285 echo "configure:4286: checking for pthread_mutex_unlock in -lpthreads" >&5
4286 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
4287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 ac_save_LIBS="$LIBS"
4291 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
4292 cat > conftest.$ac_ext <<EOF
4293 #line 4294 "configure"
4294 #include "confdefs.h"
4295 /* Override any gcc2 internal prototype to avoid an error. */
4296 /* We use char because int might match the return type of a gcc2
4297 builtin and then its argument prototype would still apply. */
4298 char pthread_mutex_unlock();
4301 pthread_mutex_unlock()
4304 if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4306 eval "ac_cv_lib_$ac_lib_var=yes"
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4311 eval "ac_cv_lib_$ac_lib_var=no"
4314 LIBS="$ac_save_LIBS"
4317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4318 echo "$ac_t""yes" 1>&6
4320 ol_link_threads=posix
4321 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
4322 if test $ol_with_yielding_select = auto ; then
4323 ol_with_yielding_select=yes
4327 echo "$ac_t""no" 1>&6
4334 if test $ol_link_threads = no ; then
4336 echo $ac_n "checking for pthread_mutex_lock in -lpthreads""... $ac_c" 1>&6
4337 echo "configure:4338: checking for pthread_mutex_lock in -lpthreads" >&5
4338 ac_lib_var=`echo pthreads'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
4339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4340 echo $ac_n "(cached) $ac_c" 1>&6
4342 ac_save_LIBS="$LIBS"
4343 LIBS="-lpthreads -lmach -lexc $LIBS"
4344 cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4347 /* Override any gcc2 internal prototype to avoid an error. */
4348 /* We use char because int might match the return type of a gcc2
4349 builtin and then its argument prototype would still apply. */
4350 char pthread_mutex_lock();
4353 pthread_mutex_lock()
4356 if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4358 eval "ac_cv_lib_$ac_lib_var=yes"
4360 echo "configure: failed program was:" >&5
4361 cat conftest.$ac_ext >&5
4363 eval "ac_cv_lib_$ac_lib_var=no"
4366 LIBS="$ac_save_LIBS"
4369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4370 echo "$ac_t""yes" 1>&6
4372 ol_link_threads=posix
4373 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
4374 if test $ol_with_yielding_select = auto ; then
4375 ol_with_yielding_select=yes
4379 echo "$ac_t""no" 1>&6
4386 if test $ol_link_threads = no ; then
4388 echo $ac_n "checking for pthread_mutex_trylock in -lpthreads""... $ac_c" 1>&6
4389 echo "configure:4390: checking for pthread_mutex_trylock in -lpthreads" >&5
4390 ac_lib_var=`echo pthreads'_'pthread_mutex_trylock | sed 'y%./+-%__p_%'`
4391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4394 ac_save_LIBS="$LIBS"
4395 LIBS="-lpthreads -lexc $LIBS"
4396 cat > conftest.$ac_ext <<EOF
4397 #line 4398 "configure"
4398 #include "confdefs.h"
4399 /* Override any gcc2 internal prototype to avoid an error. */
4400 /* We use char because int might match the return type of a gcc2
4401 builtin and then its argument prototype would still apply. */
4402 char pthread_mutex_trylock();
4405 pthread_mutex_trylock()
4408 if { (eval echo configure:4409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4410 eval "ac_cv_lib_$ac_lib_var=yes"
4412 echo "configure: failed program was:" >&5
4413 cat conftest.$ac_ext >&5
4415 eval "ac_cv_lib_$ac_lib_var=no"
4418 LIBS="$ac_save_LIBS"
4421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4422 echo "$ac_t""yes" 1>&6
4424 ol_link_threads=posix
4425 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
4426 if test $ol_with_yielding_select = auto ; then
4427 ol_with_yielding_select=yes
4431 echo "$ac_t""no" 1>&6
4438 if test $ol_link_threads != no ; then
4439 cat >> confdefs.h <<\EOF
4440 #define HAVE_PTHREADS 1
4444 save_CPPFLAGS="$CPPFLAGS"
4446 LIBS="$LTHREAD_LIBS $LIBS"
4448 for ac_func in sched_yield pthread_yield
4450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4451 echo "configure:4452: checking for $ac_func" >&5
4452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4453 echo $ac_n "(cached) $ac_c" 1>&6
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 /* System header to define __stub macros and hopefully few prototypes,
4459 which can conflict with char $ac_func(); below. */
4461 /* Override any gcc2 internal prototype to avoid an error. */
4462 /* We use char because int might match the return type of a gcc2
4463 builtin and then its argument prototype would still apply. */
4468 /* The GNU C library defines this for functions which it implements
4469 to always fail with ENOSYS. Some functions are actually named
4470 something starting with __ and the normal name is an alias. */
4471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4479 if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4481 eval "ac_cv_func_$ac_func=yes"
4483 echo "configure: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4486 eval "ac_cv_func_$ac_func=no"
4491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4492 echo "$ac_t""yes" 1>&6
4493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4494 cat >> confdefs.h <<EOF
4495 #define $ac_tr_func 1
4499 echo "$ac_t""no" 1>&6
4504 if test $ac_cv_func_sched_yield = no -a \
4505 $ac_cv_func_pthread_yield = no ; then
4506 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4507 echo "configure:4508: checking for sched_yield in -lrt" >&5
4508 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4512 ac_save_LIBS="$LIBS"
4514 cat > conftest.$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4517 /* Override any gcc2 internal prototype to avoid an error. */
4518 /* We use char because int might match the return type of a gcc2
4519 builtin and then its argument prototype would still apply. */
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4528 eval "ac_cv_lib_$ac_lib_var=yes"
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4533 eval "ac_cv_lib_$ac_lib_var=no"
4536 LIBS="$ac_save_LIBS"
4539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
4542 cat >> confdefs.h <<\EOF
4543 #define HAVE_SCHED_YIELD 1
4546 ac_cv_func_sched_yield=yes
4548 echo "$ac_t""no" 1>&6
4549 ac_cv_func_sched_yield=no
4553 if test $ac_cv_func_sched_yield = no -a \
4554 $ac_cv_func_pthread_yield = no ; then
4555 for ac_func in thr_yield
4557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4558 echo "configure:4559: checking for $ac_func" >&5
4559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4562 cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4565 /* System header to define __stub macros and hopefully few prototypes,
4566 which can conflict with char $ac_func(); below. */
4568 /* Override any gcc2 internal prototype to avoid an error. */
4569 /* We use char because int might match the return type of a gcc2
4570 builtin and then its argument prototype would still apply. */
4575 /* The GNU C library defines this for functions which it implements
4576 to always fail with ENOSYS. Some functions are actually named
4577 something starting with __ and the normal name is an alias. */
4578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4586 if { (eval echo configure:4587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4588 eval "ac_cv_func_$ac_func=yes"
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4593 eval "ac_cv_func_$ac_func=no"
4598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4599 echo "$ac_t""yes" 1>&6
4600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4601 cat >> confdefs.h <<EOF
4602 #define $ac_tr_func 1
4606 echo "$ac_t""no" 1>&6
4611 if test $ac_cv_func_sched_yield = no -a \
4612 $ac_cv_func_pthread_yield = no -a \
4613 "$ac_cv_func_thr_yield" = no ; then
4614 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
4617 for ac_func in pthread_kill
4619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4620 echo "configure:4621: checking for $ac_func" >&5
4621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure"
4626 #include "confdefs.h"
4627 /* System header to define __stub macros and hopefully few prototypes,
4628 which can conflict with char $ac_func(); below. */
4630 /* Override any gcc2 internal prototype to avoid an error. */
4631 /* We use char because int might match the return type of a gcc2
4632 builtin and then its argument prototype would still apply. */
4637 /* The GNU C library defines this for functions which it implements
4638 to always fail with ENOSYS. Some functions are actually named
4639 something starting with __ and the normal name is an alias. */
4640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4648 if { (eval echo configure:4649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4650 eval "ac_cv_func_$ac_func=yes"
4652 echo "configure: failed program was:" >&5
4653 cat conftest.$ac_ext >&5
4655 eval "ac_cv_func_$ac_func=no"
4660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4661 echo "$ac_t""yes" 1>&6
4662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4663 cat >> confdefs.h <<EOF
4664 #define $ac_tr_func 1
4668 echo "$ac_t""no" 1>&6
4673 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
4674 echo "configure:4675: checking for pthread_detach with <pthread.h>" >&5
4675 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4679 cat > conftest.$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4682 #include <pthread.h>
4684 pthread_detach(NULL);
4687 if { (eval echo configure:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4689 ol_cv_func_pthread_detach=yes
4691 echo "configure: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4694 ol_cv_func_pthread_detach=no
4700 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
4702 if test $ol_cv_func_pthread_detach = no ; then
4703 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
4706 cat >> confdefs.h <<\EOF
4707 #define HAVE_PTHREAD_DETACH 1
4712 pthread_setconcurrency \
4713 pthread_getconcurrency \
4714 thr_setconcurrency \
4715 thr_getconcurrency \
4718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4719 echo "configure:4720: checking for $ac_func" >&5
4720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 /* System header to define __stub macros and hopefully few prototypes,
4727 which can conflict with char $ac_func(); below. */
4729 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4736 /* The GNU C library defines this for functions which it implements
4737 to always fail with ENOSYS. Some functions are actually named
4738 something starting with __ and the normal name is an alias. */
4739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4749 eval "ac_cv_func_$ac_func=yes"
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4754 eval "ac_cv_func_$ac_func=no"
4759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4760 echo "$ac_t""yes" 1>&6
4761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4762 cat >> confdefs.h <<EOF
4763 #define $ac_tr_func 1
4767 echo "$ac_t""no" 1>&6
4772 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
4773 echo "configure:4774: checking if pthread_create() works" >&5
4774 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4778 if test "$cross_compiling" = yes; then
4779 ol_cv_pthread_create_works=yes
4781 cat > conftest.$ac_ext <<EOF
4782 #line 4783 "configure"
4783 #include "confdefs.h"
4785 #include <pthread.h>
4787 #define NULL (void*)0
4790 static void *task(p)
4793 return (void *) (p == NULL);
4796 int main(argc, argv)
4801 exit(pthread_create(&t, NULL, task, NULL));
4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4807 ol_cv_pthread_create_works=yes
4809 echo "configure: failed program was:" >&5
4810 cat conftest.$ac_ext >&5
4812 ol_cv_pthread_create_works=no
4819 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
4821 if test $ol_cv_pthread_create_works = no ; then
4822 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
4825 if test $ol_with_yielding_select = auto ; then
4826 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
4827 echo "configure:4828: checking if select yields when using pthreads" >&5
4828 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4832 if test "$cross_compiling" = yes; then
4834 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
4836 cat > conftest.$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4840 #include <sys/types.h>
4841 #include <sys/time.h>
4843 #include <pthread.h>
4845 #define NULL (void*) 0
4848 static int fildes[2];
4850 static void *task(p)
4862 FD_SET(fildes[0], &rfds);
4864 /* we're not interested in any fds */
4865 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
4872 exit(0); /* if we exit here, the select blocked the whole process */
4875 int main(argc, argv)
4881 /* create a pipe to select */
4882 if(pipe(&fildes[0])) {
4887 #ifdef HAVE_PTHREAD_SETCONCURRENCY
4888 (void) pthread_setconcurrency(2);
4890 #ifdef HAVE_THR_SETCONCURRENCY
4891 /* Set Solaris LWP concurrency to 2 */
4892 thr_setconcurrency(2);
4896 pthread_create(&t, NULL, task, NULL);
4898 #if HAVE_SCHED_YIELD
4899 sched_yield(); /* make sure task runs first */
4901 #ifdef HAVE_PTHREAD_YIELD
4902 pthread_yield(); /* make sure task runs first */
4909 if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4911 ol_cv_pthread_select_yields=no
4913 echo "configure: failed program was:" >&5
4914 cat conftest.$ac_ext >&5
4916 ol_cv_pthread_select_yields=yes
4923 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
4925 if test $ol_cv_pthread_select_yields = yes ; then
4926 ol_with_yielding_select=yes
4930 CPPFLAGS="$save_CPPFLAGS"
4933 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
4937 if test $ol_with_threads = posix ; then
4938 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
4942 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4943 -o $ol_with_threads = mach ; then
4945 for ac_hdr in mach/cthreads.h
4947 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4948 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4949 echo "configure:4950: checking for $ac_hdr" >&5
4950 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4959 { (eval echo configure:4960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4961 if test -z "$ac_err"; then
4963 eval "ac_cv_header_$ac_safe=yes"
4966 echo "configure: failed program was:" >&5
4967 cat conftest.$ac_ext >&5
4969 eval "ac_cv_header_$ac_safe=no"
4973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4975 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4976 cat >> confdefs.h <<EOF
4977 #define $ac_tr_hdr 1
4981 echo "$ac_t""no" 1>&6
4985 if test $ac_cv_header_mach_cthreads_h = yes ; then
4986 ol_with_threads=found
4988 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
4989 echo "configure:4990: checking for cthread_fork" >&5
4990 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
4991 echo $ac_n "(cached) $ac_c" 1>&6
4993 cat > conftest.$ac_ext <<EOF
4994 #line 4995 "configure"
4995 #include "confdefs.h"
4996 /* System header to define __stub macros and hopefully few prototypes,
4997 which can conflict with char cthread_fork(); below. */
4999 /* Override any gcc2 internal prototype to avoid an error. */
5000 /* We use char because int might match the return type of a gcc2
5001 builtin and then its argument prototype would still apply. */
5002 char cthread_fork();
5006 /* The GNU C library defines this for functions which it implements
5007 to always fail with ENOSYS. Some functions are actually named
5008 something starting with __ and the normal name is an alias. */
5009 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
5017 if { (eval echo configure:5018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5019 eval "ac_cv_func_cthread_fork=yes"
5021 echo "configure: failed program was:" >&5
5022 cat conftest.$ac_ext >&5
5024 eval "ac_cv_func_cthread_fork=no"
5029 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
5030 echo "$ac_t""yes" 1>&6
5033 echo "$ac_t""no" 1>&6
5037 if test $ol_link_threads = no ; then
5038 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
5039 echo "configure:5040: checking for cthread_fork with -all_load" >&5
5040 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5045 LIBS="-all_load $LIBS"
5046 cat > conftest.$ac_ext <<EOF
5047 #line 5048 "configure"
5048 #include "confdefs.h"
5049 #include <mach/cthreads.h>
5052 cthread_fork((void *)0, (void *)0);
5056 if { (eval echo configure:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5058 ol_cv_cthread_all_load=yes
5060 echo "configure: failed program was:" >&5
5061 cat conftest.$ac_ext >&5
5063 ol_cv_cthread_all_load=no
5070 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
5072 if test $ol_cv_cthread_all_load = yes ; then
5073 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
5074 ol_link_threads=mach
5078 if test $ol_link_threads != no ; then
5079 : check for cthread specific functionality here
5080 cat >> confdefs.h <<\EOF
5081 #define HAVE_MACH_CTHREADS 1
5085 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
5089 if test $ol_with_threads = mach ; then
5090 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
5094 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5095 -o $ol_with_threads = lwp ; then
5097 for ac_hdr in thread.h synch.h
5099 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5100 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5101 echo "configure:5102: checking for $ac_hdr" >&5
5102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5105 cat > conftest.$ac_ext <<EOF
5106 #line 5107 "configure"
5107 #include "confdefs.h"
5110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5111 { (eval echo configure:5112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5113 if test -z "$ac_err"; then
5115 eval "ac_cv_header_$ac_safe=yes"
5118 echo "configure: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5121 eval "ac_cv_header_$ac_safe=no"
5125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5126 echo "$ac_t""yes" 1>&6
5127 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5128 cat >> confdefs.h <<EOF
5129 #define $ac_tr_hdr 1
5133 echo "$ac_t""no" 1>&6
5137 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
5138 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
5139 echo "configure:5140: checking for thr_create in -lthread" >&5
5140 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
5141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5144 ac_save_LIBS="$LIBS"
5145 LIBS="-lthread $LIBS"
5146 cat > conftest.$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 /* Override any gcc2 internal prototype to avoid an error. */
5150 /* We use char because int might match the return type of a gcc2
5151 builtin and then its argument prototype would still apply. */
5158 if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5160 eval "ac_cv_lib_$ac_lib_var=yes"
5162 echo "configure: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5165 eval "ac_cv_lib_$ac_lib_var=no"
5168 LIBS="$ac_save_LIBS"
5171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5172 echo "$ac_t""yes" 1>&6
5175 echo "$ac_t""no" 1>&6
5180 if test $have_thr = yes ; then
5181 cat >> confdefs.h <<\EOF
5185 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
5188 if test $ol_with_yielding_select = auto ; then
5189 ol_with_yielding_select=yes
5193 thr_setconcurrency \
5194 thr_getconcurrency \
5197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5198 echo "configure:5199: checking for $ac_func" >&5
5199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5202 cat > conftest.$ac_ext <<EOF
5203 #line 5204 "configure"
5204 #include "confdefs.h"
5205 /* System header to define __stub macros and hopefully few prototypes,
5206 which can conflict with char $ac_func(); below. */
5208 /* Override any gcc2 internal prototype to avoid an error. */
5209 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5215 /* The GNU C library defines this for functions which it implements
5216 to always fail with ENOSYS. Some functions are actually named
5217 something starting with __ and the normal name is an alias. */
5218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5226 if { (eval echo configure:5227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5228 eval "ac_cv_func_$ac_func=yes"
5230 echo "configure: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5233 eval "ac_cv_func_$ac_func=no"
5238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5239 echo "$ac_t""yes" 1>&6
5240 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5241 cat >> confdefs.h <<EOF
5242 #define $ac_tr_func 1
5246 echo "$ac_t""no" 1>&6
5253 for ac_hdr in lwp/lwp.h
5255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5257 echo "configure:5258: checking for $ac_hdr" >&5
5258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5267 { (eval echo configure:5268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5269 if test -z "$ac_err"; then
5271 eval "ac_cv_header_$ac_safe=yes"
5274 echo "configure: failed program was:" >&5
5275 cat conftest.$ac_ext >&5
5277 eval "ac_cv_header_$ac_safe=no"
5281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5282 echo "$ac_t""yes" 1>&6
5283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5284 cat >> confdefs.h <<EOF
5285 #define $ac_tr_hdr 1
5289 echo "$ac_t""no" 1>&6
5293 if test $ac_cv_header_lwp_lwp_h = yes ; then
5294 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
5295 echo "configure:5296: checking for lwp_create in -llwp" >&5
5296 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
5297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5298 echo $ac_n "(cached) $ac_c" 1>&6
5300 ac_save_LIBS="$LIBS"
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305 /* Override any gcc2 internal prototype to avoid an error. */
5306 /* We use char because int might match the return type of a gcc2
5307 builtin and then its argument prototype would still apply. */
5314 if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5316 eval "ac_cv_lib_$ac_lib_var=yes"
5318 echo "configure: failed program was:" >&5
5319 cat conftest.$ac_ext >&5
5321 eval "ac_cv_lib_$ac_lib_var=no"
5324 LIBS="$ac_save_LIBS"
5327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5328 echo "$ac_t""yes" 1>&6
5331 echo "$ac_t""no" 1>&6
5336 if test $have_lwp = yes ; then
5337 cat >> confdefs.h <<\EOF
5341 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
5344 if test $ol_with_yielding_select = auto ; then
5345 ol_with_yielding_select=no
5351 if test $ol_with_yielding_select = yes ; then
5352 cat >> confdefs.h <<\EOF
5353 #define HAVE_YIELDING_SELECT 1
5358 if test $ol_with_threads = manual ; then
5361 echo "configure: warning: thread defines and link options must be set manually" 1>&2
5363 for ac_hdr in pthread.h sched.h
5365 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5366 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5367 echo "configure:5368: checking for $ac_hdr" >&5
5368 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5371 cat > conftest.$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5377 { (eval echo configure:5378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5379 if test -z "$ac_err"; then
5381 eval "ac_cv_header_$ac_safe=yes"
5384 echo "configure: failed program was:" >&5
5385 cat conftest.$ac_ext >&5
5387 eval "ac_cv_header_$ac_safe=no"
5391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5392 echo "$ac_t""yes" 1>&6
5393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5394 cat >> confdefs.h <<EOF
5395 #define $ac_tr_hdr 1
5399 echo "$ac_t""no" 1>&6
5403 for ac_func in sched_yield pthread_yield
5405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5406 echo "configure:5407: checking for $ac_func" >&5
5407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5413 /* System header to define __stub macros and hopefully few prototypes,
5414 which can conflict with char $ac_func(); below. */
5416 /* Override any gcc2 internal prototype to avoid an error. */
5417 /* We use char because int might match the return type of a gcc2
5418 builtin and then its argument prototype would still apply. */
5423 /* The GNU C library defines this for functions which it implements
5424 to always fail with ENOSYS. Some functions are actually named
5425 something starting with __ and the normal name is an alias. */
5426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5436 eval "ac_cv_func_$ac_func=yes"
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5441 eval "ac_cv_func_$ac_func=no"
5446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5447 echo "$ac_t""yes" 1>&6
5448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5449 cat >> confdefs.h <<EOF
5450 #define $ac_tr_func 1
5454 echo "$ac_t""no" 1>&6
5459 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
5460 echo "configure:5461: checking for LinuxThreads" >&5
5461 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
5462 echo $ac_n "(cached) $ac_c" 1>&6
5465 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
5466 if test "$res" -gt 0 ; then
5467 ol_cv_linux_threads=yes
5469 ol_cv_linux_threads=no
5474 echo "$ac_t""$ol_cv_linux_threads" 1>&6
5477 for ac_hdr in mach/cthreads.h
5479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5481 echo "configure:5482: checking for $ac_hdr" >&5
5482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5485 cat > conftest.$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5491 { (eval echo configure:5492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5493 if test -z "$ac_err"; then
5495 eval "ac_cv_header_$ac_safe=yes"
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5501 eval "ac_cv_header_$ac_safe=no"
5505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5506 echo "$ac_t""yes" 1>&6
5507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5508 cat >> confdefs.h <<EOF
5509 #define $ac_tr_hdr 1
5513 echo "$ac_t""no" 1>&6
5517 for ac_hdr in lwp/lwp.h
5519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5521 echo "configure:5522: checking for $ac_hdr" >&5
5522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5525 cat > conftest.$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5531 { (eval echo configure:5532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5533 if test -z "$ac_err"; then
5535 eval "ac_cv_header_$ac_safe=yes"
5538 echo "configure: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5541 eval "ac_cv_header_$ac_safe=no"
5545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5546 echo "$ac_t""yes" 1>&6
5547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5548 cat >> confdefs.h <<EOF
5549 #define $ac_tr_hdr 1
5553 echo "$ac_t""no" 1>&6
5557 for ac_hdr in thread.h synch.h
5559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5561 echo "configure:5562: checking for $ac_hdr" >&5
5562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5563 echo $ac_n "(cached) $ac_c" 1>&6
5565 cat > conftest.$ac_ext <<EOF
5566 #line 5567 "configure"
5567 #include "confdefs.h"
5570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5571 { (eval echo configure:5572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5573 if test -z "$ac_err"; then
5575 eval "ac_cv_header_$ac_safe=yes"
5578 echo "configure: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5581 eval "ac_cv_header_$ac_safe=no"
5585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5586 echo "$ac_t""yes" 1>&6
5587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5588 cat >> confdefs.h <<EOF
5589 #define $ac_tr_hdr 1
5593 echo "$ac_t""no" 1>&6
5599 if test $ol_link_threads != no ; then
5600 cat >> confdefs.h <<\EOF
5604 cat >> confdefs.h <<\EOF
5605 #define _REENTRANT 1
5608 cat >> confdefs.h <<\EOF
5609 #define THREAD_SAFE 1
5612 cat >> confdefs.h <<\EOF
5613 #define _THREAD_SAFE 1
5616 cat >> confdefs.h <<\EOF
5617 #define THREADSAFE 1
5620 cat >> confdefs.h <<\EOF
5621 #define _THREADSAFE 1
5625 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
5626 echo "configure:5627: checking for thread specific errno" >&5
5627 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
5628 echo $ac_n "(cached) $ac_c" 1>&6
5631 cat > conftest.$ac_ext <<EOF
5632 #line 5633 "configure"
5633 #include "confdefs.h"
5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5641 ol_cv_errno_thread_specific=yes
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5646 ol_cv_errno_thread_specific=no
5652 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
5654 if test $ol_cv_errno_thread_specific != yes ; then
5655 LIBS="$LTHREAD_LIBS $LIBS"
5661 if test $ol_link_threads = no ; then
5662 if test $ol_with_threads = yes ; then
5663 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
5666 if test $ol_with_threads = auto ; then
5667 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
5671 cat >> confdefs.h <<\EOF
5672 #define NO_THREADS 1
5679 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
5680 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
5681 echo "configure:5682: checking for DB2 library" >&5
5682 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
5683 echo $ac_n "(cached) $ac_c" 1>&6
5686 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
5687 echo "configure:5688: checking for db_open in -ldb" >&5
5688 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
5689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5690 echo $ac_n "(cached) $ac_c" 1>&6
5692 ac_save_LIBS="$LIBS"
5694 cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5697 /* Override any gcc2 internal prototype to avoid an error. */
5698 /* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5706 if { (eval echo configure:5707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5708 eval "ac_cv_lib_$ac_lib_var=yes"
5710 echo "configure: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5713 eval "ac_cv_lib_$ac_lib_var=no"
5716 LIBS="$ac_save_LIBS"
5719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5720 echo "$ac_t""yes" 1>&6
5723 echo "$ac_t""no" 1>&6
5731 echo "$ac_t""$ol_cv_lib_db2" 1>&6
5735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5737 echo "configure:5738: checking for $ac_hdr" >&5
5738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
5741 cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5747 { (eval echo configure:5748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5749 if test -z "$ac_err"; then
5751 eval "ac_cv_header_$ac_safe=yes"
5754 echo "configure: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5757 eval "ac_cv_header_$ac_safe=no"
5761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5762 echo "$ac_t""yes" 1>&6
5763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5764 cat >> confdefs.h <<EOF
5765 #define $ac_tr_hdr 1
5769 echo "$ac_t""no" 1>&6
5773 if test $ac_cv_header_db_h = yes ; then
5774 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
5775 echo "configure:5776: checking if db.h is DB2" >&5
5776 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5785 /* this check could be improved */
5786 # ifdef DB_VERSION_MAJOR
5787 # if DB_VERSION_MAJOR == 2
5793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5794 egrep "__db_version_2" >/dev/null 2>&1; then
5796 ol_cv_header_db2=yes
5805 echo "$ac_t""$ol_cv_header_db2" 1>&6
5812 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
5813 echo "configure:5814: checking for Berkeley DB2" >&5
5814 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5818 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
5819 ol_cv_berkeley_db2=no
5821 ol_cv_berkeley_db2=yes
5826 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
5827 if test $ol_cv_berkeley_db2 = yes ; then
5828 cat >> confdefs.h <<\EOF
5829 #define HAVE_BERKELEY_DB2 1
5835 if test $ol_cv_berkeley_db2 = yes ; then
5837 ol_with_ldbm_api=db2
5839 if test $ol_with_ldbm_type = hash ; then
5840 cat >> confdefs.h <<\EOF
5841 #define LDBM_USE_DBHASH 1
5845 cat >> confdefs.h <<\EOF
5846 #define LDBM_USE_DBBTREE 1
5851 if test $ol_cv_lib_db2 != yes ; then
5852 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
5857 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
5858 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
5859 echo "configure:5860: checking for Berkeley DB library" >&5
5860 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
5861 echo $ac_n "(cached) $ac_c" 1>&6
5864 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
5865 echo "configure:5866: checking for dbopen" >&5
5866 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
5867 echo $ac_n "(cached) $ac_c" 1>&6
5869 cat > conftest.$ac_ext <<EOF
5870 #line 5871 "configure"
5871 #include "confdefs.h"
5872 /* System header to define __stub macros and hopefully few prototypes,
5873 which can conflict with char dbopen(); below. */
5875 /* Override any gcc2 internal prototype to avoid an error. */
5876 /* We use char because int might match the return type of a gcc2
5877 builtin and then its argument prototype would still apply. */
5882 /* The GNU C library defines this for functions which it implements
5883 to always fail with ENOSYS. Some functions are actually named
5884 something starting with __ and the normal name is an alias. */
5885 #if defined (__stub_dbopen) || defined (__stub___dbopen)
5893 if { (eval echo configure:5894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5895 eval "ac_cv_func_dbopen=yes"
5897 echo "configure: failed program was:" >&5
5898 cat conftest.$ac_ext >&5
5900 eval "ac_cv_func_dbopen=no"
5905 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
5906 echo "$ac_t""yes" 1>&6
5909 echo "$ac_t""no" 1>&6
5911 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
5912 echo "configure:5913: checking for dbopen in -ldb" >&5
5913 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
5914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5915 echo $ac_n "(cached) $ac_c" 1>&6
5917 ac_save_LIBS="$LIBS"
5919 cat > conftest.$ac_ext <<EOF
5920 #line 5921 "configure"
5921 #include "confdefs.h"
5922 /* Override any gcc2 internal prototype to avoid an error. */
5923 /* We use char because int might match the return type of a gcc2
5924 builtin and then its argument prototype would still apply. */
5931 if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5933 eval "ac_cv_lib_$ac_lib_var=yes"
5935 echo "configure: failed program was:" >&5
5936 cat conftest.$ac_ext >&5
5938 eval "ac_cv_lib_$ac_lib_var=no"
5941 LIBS="$ac_save_LIBS"
5944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5945 echo "$ac_t""yes" 1>&6
5948 echo "$ac_t""no" 1>&6
5959 echo "$ac_t""$ol_cv_lib_db" 1>&6
5962 for ac_hdr in db_185.h
5964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5966 echo "configure:5967: checking for $ac_hdr" >&5
5967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6
5970 cat > conftest.$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5976 { (eval echo configure:5977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5978 if test -z "$ac_err"; then
5980 eval "ac_cv_header_$ac_safe=yes"
5983 echo "configure: failed program was:" >&5
5984 cat conftest.$ac_ext >&5
5986 eval "ac_cv_header_$ac_safe=no"
5990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5991 echo "$ac_t""yes" 1>&6
5992 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5993 cat >> confdefs.h <<EOF
5994 #define $ac_tr_hdr 1
5998 echo "$ac_t""no" 1>&6
6002 if test "$ol_cv_header_db2" = yes ; then
6004 ol_cv_header_db=$ac_cv_header_db_185_h
6006 ol_cv_header_db=$ac_cv_header_db_h
6011 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
6012 echo "configure:6013: checking for Berkeley DB" >&5
6013 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
6014 echo $ac_n "(cached) $ac_c" 1>&6
6017 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
6018 ol_cv_berkeley_db=no
6020 ol_cv_berkeley_db=yes
6025 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
6026 if test $ol_cv_berkeley_db = yes ; then
6027 cat >> confdefs.h <<\EOF
6028 #define HAVE_BERKELEY_DB 1
6034 if test $ol_cv_berkeley_db = yes ; then
6038 if test $ol_with_ldbm_type = hash ; then
6039 cat >> confdefs.h <<\EOF
6040 #define LDBM_USE_DBHASH 1
6044 cat >> confdefs.h <<\EOF
6045 #define LDBM_USE_DBBTREE 1
6050 if test $ol_cv_lib_db != yes ; then
6051 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
6056 if test $ol_with_ldbm_api = manual ; then
6059 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
6061 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
6063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6065 echo "configure:6066: checking for $ac_hdr" >&5
6066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6075 { (eval echo configure:6076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6077 if test -z "$ac_err"; then
6079 eval "ac_cv_header_$ac_safe=yes"
6082 echo "configure: failed program was:" >&5
6083 cat conftest.$ac_ext >&5
6085 eval "ac_cv_header_$ac_safe=no"
6089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6090 echo "$ac_t""yes" 1>&6
6091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6092 cat >> confdefs.h <<EOF
6093 #define $ac_tr_hdr 1
6097 echo "$ac_t""no" 1>&6
6103 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
6104 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
6105 ol_with_ldbm_api=none
6108 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
6109 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
6110 echo "configure:6111: checking for GDBM library" >&5
6111 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6115 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6116 echo "configure:6117: checking for gdbm_open" >&5
6117 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
6118 echo $ac_n "(cached) $ac_c" 1>&6
6120 cat > conftest.$ac_ext <<EOF
6121 #line 6122 "configure"
6122 #include "confdefs.h"
6123 /* System header to define __stub macros and hopefully few prototypes,
6124 which can conflict with char gdbm_open(); below. */
6126 /* Override any gcc2 internal prototype to avoid an error. */
6127 /* We use char because int might match the return type of a gcc2
6128 builtin and then its argument prototype would still apply. */
6133 /* The GNU C library defines this for functions which it implements
6134 to always fail with ENOSYS. Some functions are actually named
6135 something starting with __ and the normal name is an alias. */
6136 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
6144 if { (eval echo configure:6145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6146 eval "ac_cv_func_gdbm_open=yes"
6148 echo "configure: failed program was:" >&5
6149 cat conftest.$ac_ext >&5
6151 eval "ac_cv_func_gdbm_open=no"
6156 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
6157 echo "$ac_t""yes" 1>&6
6160 echo "$ac_t""no" 1>&6
6162 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
6163 echo "configure:6164: checking for gdbm_open in -lgdbm" >&5
6164 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
6165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6168 ac_save_LIBS="$LIBS"
6170 cat > conftest.$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6173 /* Override any gcc2 internal prototype to avoid an error. */
6174 /* We use char because int might match the return type of a gcc2
6175 builtin and then its argument prototype would still apply. */
6182 if { (eval echo configure:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6184 eval "ac_cv_lib_$ac_lib_var=yes"
6186 echo "configure: failed program was:" >&5
6187 cat conftest.$ac_ext >&5
6189 eval "ac_cv_lib_$ac_lib_var=no"
6192 LIBS="$ac_save_LIBS"
6195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6196 echo "$ac_t""yes" 1>&6
6197 ol_cv_lib_gdbm=-lgdbm
6199 echo "$ac_t""no" 1>&6
6210 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
6213 for ac_hdr in gdbm.h
6215 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6217 echo "configure:6218: checking for $ac_hdr" >&5
6218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6219 echo $ac_n "(cached) $ac_c" 1>&6
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6227 { (eval echo configure:6228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6229 if test -z "$ac_err"; then
6231 eval "ac_cv_header_$ac_safe=yes"
6234 echo "configure: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6237 eval "ac_cv_header_$ac_safe=no"
6241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6242 echo "$ac_t""yes" 1>&6
6243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6244 cat >> confdefs.h <<EOF
6245 #define $ac_tr_hdr 1
6249 echo "$ac_t""no" 1>&6
6253 echo $ac_n "checking for db""... $ac_c" 1>&6
6254 echo "configure:6255: checking for db" >&5
6255 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
6256 echo $ac_n "(cached) $ac_c" 1>&6
6259 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
6267 echo "$ac_t""$ol_cv_gdbm" 1>&6
6268 if test $ol_cv_gdbm = yes ; then
6269 cat >> confdefs.h <<\EOF
6276 if test $ol_cv_gdbm = yes ; then
6278 ol_with_ldbm_api=gdbm
6280 if test $ol_cv_lib_gdbm != yes ; then
6281 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
6286 if test $ol_with_ldbm_api = auto ; then
6287 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
6288 elif test $ol_with_ldbm_api = ndbm ; then
6289 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
6290 echo "configure:6291: checking for NDBM library" >&5
6291 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
6292 echo $ac_n "(cached) $ac_c" 1>&6
6295 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
6296 echo "configure:6297: checking for dbm_open" >&5
6297 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
6298 echo $ac_n "(cached) $ac_c" 1>&6
6300 cat > conftest.$ac_ext <<EOF
6301 #line 6302 "configure"
6302 #include "confdefs.h"
6303 /* System header to define __stub macros and hopefully few prototypes,
6304 which can conflict with char dbm_open(); below. */
6306 /* Override any gcc2 internal prototype to avoid an error. */
6307 /* We use char because int might match the return type of a gcc2
6308 builtin and then its argument prototype would still apply. */
6313 /* The GNU C library defines this for functions which it implements
6314 to always fail with ENOSYS. Some functions are actually named
6315 something starting with __ and the normal name is an alias. */
6316 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
6324 if { (eval echo configure:6325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6326 eval "ac_cv_func_dbm_open=yes"
6328 echo "configure: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6331 eval "ac_cv_func_dbm_open=no"
6336 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
6337 echo "$ac_t""yes" 1>&6
6340 echo "$ac_t""no" 1>&6
6342 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
6343 echo "configure:6344: checking for dbm_open in -lndbm" >&5
6344 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
6345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6346 echo $ac_n "(cached) $ac_c" 1>&6
6348 ac_save_LIBS="$LIBS"
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6352 "configure"
6352 #include "confdefs.h"
6353 /* Override any gcc2 internal prototype to avoid an error. */
6354 /* We use char because int might match the return type of a gcc2
6355 builtin and then its argument prototype would still apply. */
6362 if { (eval echo configure:6363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6364 eval "ac_cv_lib_$ac_lib_var=yes"
6366 echo "configure: failed program was:" >&5
6367 cat conftest.$ac_ext >&5
6369 eval "ac_cv_lib_$ac_lib_var=no"
6372 LIBS="$ac_save_LIBS"
6375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6376 echo "$ac_t""yes" 1>&6
6377 ol_cv_lib_ndbm=-lndbm
6379 echo "$ac_t""no" 1>&6
6381 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
6382 echo "configure:6383: checking for dbm_open in -ldbm" >&5
6383 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
6384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6385 echo $ac_n "(cached) $ac_c" 1>&6
6387 ac_save_LIBS="$LIBS"
6389 cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 /* Override any gcc2 internal prototype to avoid an error. */
6393 /* We use char because int might match the return type of a gcc2
6394 builtin and then its argument prototype would still apply. */
6401 if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6403 eval "ac_cv_lib_$ac_lib_var=yes"
6405 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6408 eval "ac_cv_lib_$ac_lib_var=no"
6411 LIBS="$ac_save_LIBS"
6414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6415 echo "$ac_t""yes" 1>&6
6416 ol_cv_lib_ndbm=-ldbm
6418 echo "$ac_t""no" 1>&6
6431 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
6434 for ac_hdr in ndbm.h
6436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6438 echo "configure:6439: checking for $ac_hdr" >&5
6439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6440 echo $ac_n "(cached) $ac_c" 1>&6
6442 cat > conftest.$ac_ext <<EOF
6443 #line 6444 "configure"
6444 #include "confdefs.h"
6447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6448 { (eval echo configure:6449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6450 if test -z "$ac_err"; then
6452 eval "ac_cv_header_$ac_safe=yes"
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6458 eval "ac_cv_header_$ac_safe=no"
6462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6463 echo "$ac_t""yes" 1>&6
6464 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6465 cat >> confdefs.h <<EOF
6466 #define $ac_tr_hdr 1
6470 echo "$ac_t""no" 1>&6
6474 echo $ac_n "checking for db""... $ac_c" 1>&6
6475 echo "configure:6476: checking for db" >&5
6476 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6
6480 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
6488 echo "$ac_t""$ol_cv_ndbm" 1>&6
6489 if test $ol_cv_ndbm = yes ; then
6490 cat >> confdefs.h <<\EOF
6497 if test $ol_cv_ndbm = yes ; then
6499 ol_with_ldbm_api=ndbm
6501 if test $ol_cv_lib_ndbm != yes ; then
6502 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
6507 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
6508 echo "configure: warning: could not find suitable LDBM backend" 1>&2
6509 if test $ol_enable_ldbm = yes ; then
6510 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
6513 echo "configure: warning: disabling LDBM" 1>&2
6517 if test $ol_enable_wrappers != no ; then
6518 for ac_hdr in tcpd.h
6520 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6521 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6522 echo "configure:6523: checking for $ac_hdr" >&5
6523 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6526 cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6532 { (eval echo configure:6533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6534 if test -z "$ac_err"; then
6536 eval "ac_cv_header_$ac_safe=yes"
6539 echo "configure: failed program was:" >&5
6540 cat conftest.$ac_ext >&5
6542 eval "ac_cv_header_$ac_safe=no"
6546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6547 echo "$ac_t""yes" 1>&6
6548 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6549 cat >> confdefs.h <<EOF
6550 #define $ac_tr_hdr 1
6554 echo "$ac_t""no" 1>&6
6559 if test $ac_cv_header_tcpd_h != yes ; then
6562 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
6563 echo "configure:6564: checking for main in -lwrap" >&5
6564 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
6565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6566 echo $ac_n "(cached) $ac_c" 1>&6
6568 ac_save_LIBS="$LIBS"
6570 cat > conftest.$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6580 eval "ac_cv_lib_$ac_lib_var=yes"
6582 echo "configure: failed program was:" >&5
6583 cat conftest.$ac_ext >&5
6585 eval "ac_cv_lib_$ac_lib_var=no"
6588 LIBS="$ac_save_LIBS"
6591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6592 echo "$ac_t""yes" 1>&6
6595 echo "$ac_t""no" 1>&6
6601 if test $have_wrappers = yes ; then
6602 cat >> confdefs.h <<\EOF
6606 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
6608 echo "configure: warning: could not find -lwrap" 1>&2
6609 if test $ol_enable_wrappers = yes ; then
6610 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
6613 echo "configure: warning: disabling wrappers support" 1>&2
6614 ol_enable_wrappers=no
6618 if test $ol_enable_dmalloc != no ; then
6619 for ac_hdr in dmalloc.h
6621 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6622 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6623 echo "configure:6624: checking for $ac_hdr" >&5
6624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
6632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6633 { (eval echo configure:6634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6635 if test -z "$ac_err"; then
6637 eval "ac_cv_header_$ac_safe=yes"
6640 echo "configure: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6643 eval "ac_cv_header_$ac_safe=no"
6647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6648 echo "$ac_t""yes" 1>&6
6649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6650 cat >> confdefs.h <<EOF
6651 #define $ac_tr_hdr 1
6655 echo "$ac_t""no" 1>&6
6659 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
6660 echo "configure:6661: checking for dmalloc_shutdown in -ldmalloc" >&5
6661 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
6662 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6663 echo $ac_n "(cached) $ac_c" 1>&6
6665 ac_save_LIBS="$LIBS"
6666 LIBS="-ldmalloc $LIBS"
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6670 /* Override any gcc2 internal prototype to avoid an error. */
6671 /* We use char because int might match the return type of a gcc2
6672 builtin and then its argument prototype would still apply. */
6673 char dmalloc_shutdown();
6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6681 eval "ac_cv_lib_$ac_lib_var=yes"
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6686 eval "ac_cv_lib_$ac_lib_var=no"
6689 LIBS="$ac_save_LIBS"
6692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6693 echo "$ac_t""yes" 1>&6
6694 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6695 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6696 cat >> confdefs.h <<EOF
6697 #define $ac_tr_lib 1
6700 LIBS="-ldmalloc $LIBS"
6703 echo "$ac_t""no" 1>&6
6708 # ud needs termcap (should insert check here)
6710 for ac_hdr in termcap.h ncurses.h
6712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6714 echo "configure:6715: checking for $ac_hdr" >&5
6715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6716 echo $ac_n "(cached) $ac_c" 1>&6
6718 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6724 { (eval echo configure:6725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6726 if test -z "$ac_err"; then
6728 eval "ac_cv_header_$ac_safe=yes"
6731 echo "configure: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6734 eval "ac_cv_header_$ac_safe=no"
6738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6739 echo "$ac_t""yes" 1>&6
6740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6741 cat >> confdefs.h <<EOF
6742 #define $ac_tr_hdr 1
6746 echo "$ac_t""no" 1>&6
6751 if test $ol_link_termcap = no ; then
6752 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
6753 echo "configure:6754: checking for tputs in -ltermcap" >&5
6754 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
6755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6756 echo $ac_n "(cached) $ac_c" 1>&6
6758 ac_save_LIBS="$LIBS"
6759 LIBS="-ltermcap $LIBS"
6760 cat > conftest.$ac_ext <<EOF
6761 #line 6762 "configure"
6762 #include "confdefs.h"
6763 /* Override any gcc2 internal prototype to avoid an error. */
6764 /* We use char because int might match the return type of a gcc2
6765 builtin and then its argument prototype would still apply. */
6772 if { (eval echo configure:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6774 eval "ac_cv_lib_$ac_lib_var=yes"
6776 echo "configure: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6779 eval "ac_cv_lib_$ac_lib_var=no"
6782 LIBS="$ac_save_LIBS"
6785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6786 echo "$ac_t""yes" 1>&6
6789 echo "$ac_t""no" 1>&6
6793 if test $have_termcap = yes ; then
6794 cat >> confdefs.h <<\EOF
6795 #define HAVE_TERMCAP 1
6799 TERMCAP_LIBS=-ltermcap
6803 if test $ol_link_termcap = no ; then
6804 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
6805 echo "configure:6806: checking for initscr in -lncurses" >&5
6806 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
6807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6808 echo $ac_n "(cached) $ac_c" 1>&6
6810 ac_save_LIBS="$LIBS"
6811 LIBS="-lncurses $LIBS"
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6824 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6826 eval "ac_cv_lib_$ac_lib_var=yes"
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6831 eval "ac_cv_lib_$ac_lib_var=no"
6834 LIBS="$ac_save_LIBS"
6837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6838 echo "$ac_t""yes" 1>&6
6841 echo "$ac_t""no" 1>&6
6845 if test $have_ncurses = yes ; then
6846 cat >> confdefs.h <<\EOF
6847 #define HAVE_NCURSES 1
6851 TERMCAP_LIBS=-lncurses
6855 if test $ol_link_termcap = no ; then
6856 cat >> confdefs.h <<\EOF
6857 #define NO_TERMCAP 1
6863 # FreeBSD (and others) have crypt(3) in -lcrypt
6864 if test $ol_enable_crypt != no ; then
6865 echo $ac_n "checking for crypt""... $ac_c" 1>&6
6866 echo "configure:6867: checking for crypt" >&5
6867 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
6868 echo $ac_n "(cached) $ac_c" 1>&6
6870 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6873 /* System header to define __stub macros and hopefully few prototypes,
6874 which can conflict with char crypt(); below. */
6876 /* Override any gcc2 internal prototype to avoid an error. */
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6883 /* The GNU C library defines this for functions which it implements
6884 to always fail with ENOSYS. Some functions are actually named
6885 something starting with __ and the normal name is an alias. */
6886 #if defined (__stub_crypt) || defined (__stub___crypt)
6894 if { (eval echo configure:6895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6896 eval "ac_cv_func_crypt=yes"
6898 echo "configure: failed program was:" >&5
6899 cat conftest.$ac_ext >&5
6901 eval "ac_cv_func_crypt=no"
6906 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
6907 echo "$ac_t""yes" 1>&6
6910 echo "$ac_t""no" 1>&6
6912 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6913 echo "configure:6914: checking for crypt in -lcrypt" >&5
6914 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6918 ac_save_LIBS="$LIBS"
6919 LIBS="-lcrypt $LIBS"
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6932 if { (eval echo configure:6933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6934 eval "ac_cv_lib_$ac_lib_var=yes"
6936 echo "configure: failed program was:" >&5
6937 cat conftest.$ac_ext >&5
6939 eval "ac_cv_lib_$ac_lib_var=no"
6942 LIBS="$ac_save_LIBS"
6945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6946 echo "$ac_t""yes" 1>&6
6947 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
6950 echo "$ac_t""no" 1>&6
6957 if test $have_crypt = yes ; then
6958 cat >> confdefs.h <<\EOF
6959 #define HAVE_CRYPT 1
6963 echo "configure: warning: could not find crypt" 1>&2
6964 if test $ol_enable_crypt = yes ; then
6965 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
6968 echo "configure: warning: disabling crypt support" 1>&2
6973 # FreeBSD (and others) have setproctitle(3) in -lutil
6974 if test $ol_enable_proctitle != no ; then
6975 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
6976 echo "configure:6977: checking for setproctitle" >&5
6977 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
6978 echo $ac_n "(cached) $ac_c" 1>&6
6980 cat > conftest.$ac_ext <<EOF
6981 #line 6982 "configure"
6982 #include "confdefs.h"
6983 /* System header to define __stub macros and hopefully few prototypes,
6984 which can conflict with char setproctitle(); below. */
6986 /* Override any gcc2 internal prototype to avoid an error. */
6987 /* We use char because int might match the return type of a gcc2
6988 builtin and then its argument prototype would still apply. */
6989 char setproctitle();
6993 /* The GNU C library defines this for functions which it implements
6994 to always fail with ENOSYS. Some functions are actually named
6995 something starting with __ and the normal name is an alias. */
6996 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
7004 if { (eval echo configure:7005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7006 eval "ac_cv_func_setproctitle=yes"
7008 echo "configure: failed program was:" >&5
7009 cat conftest.$ac_ext >&5
7011 eval "ac_cv_func_setproctitle=no"
7016 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
7017 echo "$ac_t""yes" 1>&6
7018 have_setproctitle=yes
7020 echo "$ac_t""no" 1>&6
7022 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
7023 echo "configure:7024: checking for setproctitle in -lutil" >&5
7024 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
7025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7028 ac_save_LIBS="$LIBS"
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7033 /* Override any gcc2 internal prototype to avoid an error. */
7034 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7036 char setproctitle();
7042 if { (eval echo configure:7043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7044 eval "ac_cv_lib_$ac_lib_var=yes"
7046 echo "configure: failed program was:" >&5
7047 cat conftest.$ac_ext >&5
7049 eval "ac_cv_lib_$ac_lib_var=no"
7052 LIBS="$ac_save_LIBS"
7055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7056 echo "$ac_t""yes" 1>&6
7057 have_setproctitle=yes
7058 LUTIL_LIBS="$LUTIL_LIBS -lutil"
7060 echo "$ac_t""no" 1>&6
7061 have_setproctitle=no
7062 LIBOBJS="$LIBOBJS setproctitle.o"
7068 if test $have_setproctitle = yes ; then
7069 cat >> confdefs.h <<\EOF
7070 #define HAVE_SETPROCTITLE 1
7076 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7077 echo "configure:7078: checking for ANSI C header files" >&5
7078 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7079 echo $ac_n "(cached) $ac_c" 1>&6
7081 cat > conftest.$ac_ext <<EOF
7082 #line 7083 "configure"
7083 #include "confdefs.h"
7089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7090 { (eval echo configure:7091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7092 if test -z "$ac_err"; then
7094 ac_cv_header_stdc=yes
7097 echo "configure: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7100 ac_cv_header_stdc=no
7104 if test $ac_cv_header_stdc = yes; then
7105 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7106 cat > conftest.$ac_ext <<EOF
7107 #line 7108 "configure"
7108 #include "confdefs.h"
7111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7112 egrep "memchr" >/dev/null 2>&1; then
7116 ac_cv_header_stdc=no
7122 if test $ac_cv_header_stdc = yes; then
7123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7124 cat > conftest.$ac_ext <<EOF
7125 #line 7126 "configure"
7126 #include "confdefs.h"
7129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7130 egrep "free" >/dev/null 2>&1; then
7134 ac_cv_header_stdc=no
7140 if test $ac_cv_header_stdc = yes; then
7141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7142 if test "$cross_compiling" = yes; then
7145 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7149 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7150 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7152 int main () { int i; for (i = 0; i < 256; i++)
7153 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7157 if { (eval echo configure:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7161 echo "configure: failed program was:" >&5
7162 cat conftest.$ac_ext >&5
7164 ac_cv_header_stdc=no
7172 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7173 if test $ac_cv_header_stdc = yes; then
7174 cat >> confdefs.h <<\EOF
7175 #define STDC_HEADERS 1
7181 if test $ac_cv_header_stdc != yes; then
7182 echo "configure: warning: could not Standard C compliant headers" 1>&2
7186 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
7188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7189 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
7190 echo "configure:7191: checking for $ac_hdr that defines DIR" >&5
7191 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6
7194 cat > conftest.$ac_ext <<EOF
7195 #line 7196 "configure"
7196 #include "confdefs.h"
7197 #include <sys/types.h>
7203 if { (eval echo configure:7204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7205 eval "ac_cv_header_dirent_$ac_safe=yes"
7207 echo "configure: failed program was:" >&5
7208 cat conftest.$ac_ext >&5
7210 eval "ac_cv_header_dirent_$ac_safe=no"
7214 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
7215 echo "$ac_t""yes" 1>&6
7216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7217 cat >> confdefs.h <<EOF
7218 #define $ac_tr_hdr 1
7220 ac_header_dirent=$ac_hdr; break
7222 echo "$ac_t""no" 1>&6
7225 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7226 if test $ac_header_dirent = dirent.h; then
7227 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
7228 echo "configure:7229: checking for opendir in -ldir" >&5
7229 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
7230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7231 echo $ac_n "(cached) $ac_c" 1>&6
7233 ac_save_LIBS="$LIBS"
7235 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure"
7237 #include "confdefs.h"
7238 /* Override any gcc2 internal prototype to avoid an error. */
7239 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */
7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7249 eval "ac_cv_lib_$ac_lib_var=yes"
7251 echo "configure: failed program was:" >&5
7252 cat conftest.$ac_ext >&5
7254 eval "ac_cv_lib_$ac_lib_var=no"
7257 LIBS="$ac_save_LIBS"
7260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7261 echo "$ac_t""yes" 1>&6
7264 echo "$ac_t""no" 1>&6
7268 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
7269 echo "configure:7270: checking for opendir in -lx" >&5
7270 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
7271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7272 echo $ac_n "(cached) $ac_c" 1>&6
7274 ac_save_LIBS="$LIBS"
7276 cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7279 /* Override any gcc2 internal prototype to avoid an error. */
7280 /* We use char because int might match the return type of a gcc2
7281 builtin and then its argument prototype would still apply. */
7288 if { (eval echo configure:7289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7290 eval "ac_cv_lib_$ac_lib_var=yes"
7292 echo "configure: failed program was:" >&5
7293 cat conftest.$ac_ext >&5
7295 eval "ac_cv_lib_$ac_lib_var=no"
7298 LIBS="$ac_save_LIBS"
7301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7302 echo "$ac_t""yes" 1>&6
7305 echo "$ac_t""no" 1>&6
7310 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7311 echo "configure:7312: checking for sys/wait.h that is POSIX.1 compatible" >&5
7312 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7313 echo $ac_n "(cached) $ac_c" 1>&6
7315 cat > conftest.$ac_ext <<EOF
7316 #line 7317 "configure"
7317 #include "confdefs.h"
7318 #include <sys/types.h>
7319 #include <sys/wait.h>
7321 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7324 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7329 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7332 if { (eval echo configure:7333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7334 ac_cv_header_sys_wait_h=yes
7336 echo "configure: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7339 ac_cv_header_sys_wait_h=no
7344 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7345 if test $ac_cv_header_sys_wait_h = yes; then
7346 cat >> confdefs.h <<\EOF
7347 #define HAVE_SYS_WAIT_H 1
7352 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
7353 echo "configure:7354: checking POSIX termios" >&5
7354 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
7355 echo $ac_n "(cached) $ac_c" 1>&6
7357 cat > conftest.$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 #include <sys/types.h>
7362 #include <termios.h>
7364 /* SunOS 4.0.3 has termios.h but not the library calls. */
7368 if { (eval echo configure:7369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7370 am_cv_sys_posix_termios=yes
7372 echo "configure: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7375 am_cv_sys_posix_termios=no
7380 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
7383 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
7384 echo "configure:7385: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
7385 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
7386 echo $ac_n "(cached) $ac_c" 1>&6
7388 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
7390 gwinsz_in_termios_h=no
7391 if test $am_cv_sys_posix_termios = yes; then
7392 cat > conftest.$ac_ext <<EOF
7393 #line 7394 "configure"
7394 #include "confdefs.h"
7395 #include <sys/types.h>
7396 # include <termios.h>
7402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7403 egrep "yes" >/dev/null 2>&1; then
7405 gwinsz_in_termios_h=yes
7411 if test $gwinsz_in_termios_h = no; then
7412 cat > conftest.$ac_ext <<EOF
7413 #line 7414 "configure"
7414 #include "confdefs.h"
7415 #include <sys/types.h>
7416 # include <sys/ioctl.h>
7422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423 egrep "yes" >/dev/null 2>&1; then
7425 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
7433 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
7434 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
7435 cat >> confdefs.h <<\EOF
7436 #define GWINSZ_IN_SYS_IOCTL 1
7441 if test $am_cv_sys_posix_termios = yes ; then
7442 cat >> confdefs.h <<\EOF
7443 #define HAVE_POSIX_TERMIOS 1
7483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7485 echo "configure:7486: checking for $ac_hdr" >&5
7486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7487 echo $ac_n "(cached) $ac_c" 1>&6
7489 cat > conftest.$ac_ext <<EOF
7490 #line 7491 "configure"
7491 #include "confdefs.h"
7494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7495 { (eval echo configure:7496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7497 if test -z "$ac_err"; then
7499 eval "ac_cv_header_$ac_safe=yes"
7502 echo "configure: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7505 eval "ac_cv_header_$ac_safe=no"
7509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7510 echo "$ac_t""yes" 1>&6
7511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7512 cat >> confdefs.h <<EOF
7513 #define $ac_tr_hdr 1
7517 echo "$ac_t""no" 1>&6
7522 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7523 echo "configure:7524: checking for uid_t in sys/types.h" >&5
7524 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7525 echo $ac_n "(cached) $ac_c" 1>&6
7527 cat > conftest.$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7530 #include <sys/types.h>
7532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7533 egrep "uid_t" >/dev/null 2>&1; then
7535 ac_cv_type_uid_t=yes
7544 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7545 if test $ac_cv_type_uid_t = no; then
7546 cat >> confdefs.h <<\EOF
7550 cat >> confdefs.h <<\EOF
7556 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
7557 echo "configure:7558: checking type of array argument to getgroups" >&5
7558 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
7559 echo $ac_n "(cached) $ac_c" 1>&6
7561 if test "$cross_compiling" = yes; then
7562 ac_cv_type_getgroups=cross
7564 cat > conftest.$ac_ext <<EOF
7565 #line 7566 "configure"
7566 #include "confdefs.h"
7568 /* Thanks to Mike Rendell for this test. */
7569 #include <sys/types.h>
7572 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7577 union { gid_t gval; long lval; } val;
7580 for (i = 0; i < NGID; i++)
7581 gidset[i] = val.gval;
7582 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7584 /* Exit non-zero if getgroups seems to require an array of ints. This
7585 happens when gid_t is short but getgroups modifies an array of ints. */
7586 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7590 if { (eval echo configure:7591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7592 ac_cv_type_getgroups=gid_t
7594 echo "configure: failed program was:" >&5
7595 cat conftest.$ac_ext >&5
7597 ac_cv_type_getgroups=int
7602 if test $ac_cv_type_getgroups = cross; then
7603 cat > conftest.$ac_ext <<EOF
7604 #line 7605 "configure"
7605 #include "confdefs.h"
7608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7609 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7611 ac_cv_type_getgroups=gid_t
7614 ac_cv_type_getgroups=int
7621 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
7622 cat >> confdefs.h <<EOF
7623 #define GETGROUPS_T $ac_cv_type_getgroups
7626 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7627 echo "configure:7628: checking for mode_t" >&5
7628 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7629 echo $ac_n "(cached) $ac_c" 1>&6
7631 cat > conftest.$ac_ext <<EOF
7632 #line 7633 "configure"
7633 #include "confdefs.h"
7634 #include <sys/types.h>
7640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7641 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7643 ac_cv_type_mode_t=yes
7646 ac_cv_type_mode_t=no
7651 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
7652 if test $ac_cv_type_mode_t = no; then
7653 cat >> confdefs.h <<\EOF
7659 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7660 echo "configure:7661: checking for off_t" >&5
7661 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7662 echo $ac_n "(cached) $ac_c" 1>&6
7664 cat > conftest.$ac_ext <<EOF
7665 #line 7666 "configure"
7666 #include "confdefs.h"
7667 #include <sys/types.h>
7673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7674 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7676 ac_cv_type_off_t=yes
7684 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7685 if test $ac_cv_type_off_t = no; then
7686 cat >> confdefs.h <<\EOF
7692 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7693 echo "configure:7694: checking for pid_t" >&5
7694 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7695 echo $ac_n "(cached) $ac_c" 1>&6
7697 cat > conftest.$ac_ext <<EOF
7698 #line 7699 "configure"
7699 #include "confdefs.h"
7700 #include <sys/types.h>
7706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7707 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7709 ac_cv_type_pid_t=yes
7717 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7718 if test $ac_cv_type_pid_t = no; then
7719 cat >> confdefs.h <<\EOF
7725 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
7726 echo "configure:7727: checking for ptrdiff_t" >&5
7727 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7730 cat > conftest.$ac_ext <<EOF
7731 #line 7732 "configure"
7732 #include "confdefs.h"
7738 if { (eval echo configure:7739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7740 am_cv_type_ptrdiff_t=yes
7742 echo "configure: failed program was:" >&5
7743 cat conftest.$ac_ext >&5
7745 am_cv_type_ptrdiff_t=no
7750 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
7751 if test $am_cv_type_ptrdiff_t = yes; then
7752 cat >> confdefs.h <<\EOF
7753 #define HAVE_PTRDIFF_T 1
7758 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
7759 echo "configure:7760: checking return type of signal handlers" >&5
7760 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
7761 echo $ac_n "(cached) $ac_c" 1>&6
7763 cat > conftest.$ac_ext <<EOF
7764 #line 7765 "configure"
7765 #include "confdefs.h"
7766 #include <sys/types.h>
7772 extern "C" void (*signal (int, void (*)(int)))(int);
7774 void (*signal ()) ();
7781 if { (eval echo configure:7782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7783 ac_cv_type_signal=void
7785 echo "configure: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7788 ac_cv_type_signal=int
7793 echo "$ac_t""$ac_cv_type_signal" 1>&6
7794 cat >> confdefs.h <<EOF
7795 #define RETSIGTYPE $ac_cv_type_signal
7799 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7800 echo "configure:7801: checking for size_t" >&5
7801 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7804 cat > conftest.$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7807 #include <sys/types.h>
7813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7814 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7816 ac_cv_type_size_t=yes
7819 ac_cv_type_size_t=no
7824 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7825 if test $ac_cv_type_size_t = no; then
7826 cat >> confdefs.h <<\EOF
7827 #define size_t unsigned
7832 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
7833 echo "configure:7834: checking for st_blksize in struct stat" >&5
7834 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7837 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7840 #include <sys/types.h>
7841 #include <sys/stat.h>
7843 struct stat s; s.st_blksize;
7846 if { (eval echo configure:7847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7848 ac_cv_struct_st_blksize=yes
7850 echo "configure: failed program was:" >&5
7851 cat conftest.$ac_ext >&5
7853 ac_cv_struct_st_blksize=no
7858 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
7859 if test $ac_cv_struct_st_blksize = yes; then
7860 cat >> confdefs.h <<\EOF
7861 #define HAVE_ST_BLKSIZE 1
7866 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
7867 echo "configure:7868: checking whether time.h and sys/time.h may both be included" >&5
7868 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
7869 echo $ac_n "(cached) $ac_c" 1>&6
7871 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7874 #include <sys/types.h>
7875 #include <sys/time.h>
7881 if { (eval echo configure:7882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7883 ac_cv_header_time=yes
7885 echo "configure: failed program was:" >&5
7886 cat conftest.$ac_ext >&5
7888 ac_cv_header_time=no
7893 echo "$ac_t""$ac_cv_header_time" 1>&6
7894 if test $ac_cv_header_time = yes; then
7895 cat >> confdefs.h <<\EOF
7896 #define TIME_WITH_SYS_TIME 1
7901 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
7902 echo "configure:7903: checking whether struct tm is in sys/time.h or time.h" >&5
7903 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
7904 echo $ac_n "(cached) $ac_c" 1>&6
7906 cat > conftest.$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7909 #include <sys/types.h>
7912 struct tm *tp; tp->tm_sec;
7915 if { (eval echo configure:7916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7917 ac_cv_struct_tm=time.h
7919 echo "configure: failed program was:" >&5
7920 cat conftest.$ac_ext >&5
7922 ac_cv_struct_tm=sys/time.h
7927 echo "$ac_t""$ac_cv_struct_tm" 1>&6
7928 if test $ac_cv_struct_tm = sys/time.h; then
7929 cat >> confdefs.h <<\EOF
7930 #define TM_IN_SYS_TIME 1
7937 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
7938 echo "configure:7939: checking if toupper() requires islower()" >&5
7939 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
7940 echo $ac_n "(cached) $ac_c" 1>&6
7943 if test "$cross_compiling" = yes; then
7944 ol_cv_c_upper_lower=safe
7946 cat > conftest.$ac_ext <<EOF
7947 #line 7948 "configure"
7948 #include "confdefs.h"
7953 if ('C' == toupper('C'))
7959 if { (eval echo configure:7960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7961 ol_cv_c_upper_lower=no
7963 echo "configure: failed program was:" >&5
7964 cat conftest.$ac_ext >&5
7966 ol_cv_c_upper_lower=yes
7973 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
7974 if test $ol_cv_c_upper_lower != no ; then
7975 cat >> confdefs.h <<\EOF
7976 #define C_UPPER_LOWER 1
7981 echo $ac_n "checking for working const""... $ac_c" 1>&6
7982 echo "configure:7983: checking for working const" >&5
7983 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7992 /* Ultrix mips cc rejects this. */
7993 typedef int charset[2]; const charset x;
7994 /* SunOS 4.1.1 cc rejects this. */
7995 char const *const *ccp;
7997 /* NEC SVR4.0.2 mips cc rejects this. */
7998 struct point {int x, y;};
7999 static struct point const zero = {0,0};
8000 /* AIX XL C 1.02.0.0 rejects this.
8001 It does not let you subtract one const X* pointer from another in an arm
8002 of an if-expression whose if-part is not a constant expression */
8003 const char *g = "string";
8004 ccp = &g + (g ? g-g : 0);
8005 /* HPUX 7.0 cc rejects these. */
8008 ccp = (char const *const *) p;
8009 { /* SCO 3.2v4 cc rejects this. */
8011 char const *s = 0 ? (char *) 0 : (char const *) 0;
8015 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8017 const int *foo = &x[0];
8020 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8021 typedef const int *iptr;
8025 { /* AIX XL C 1.02.0.0 rejects this saying
8026 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8027 struct s { int j; const int *ap[3]; };
8028 struct s *b; b->j = 5;
8030 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8036 if { (eval echo configure:8037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8040 echo "configure: failed program was:" >&5
8041 cat conftest.$ac_ext >&5
8048 echo "$ac_t""$ac_cv_c_const" 1>&6
8049 if test $ac_cv_c_const = no; then
8050 cat >> confdefs.h <<\EOF
8057 if test $cross_compiling = yes ; then
8058 cat >> confdefs.h <<\EOF
8059 #define CROSS_COMPILING 1
8063 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
8064 echo "configure:8065: checking whether byte ordering is bigendian" >&5
8065 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8066 echo $ac_n "(cached) $ac_c" 1>&6
8068 ac_cv_c_bigendian=unknown
8069 # See if sys/param.h defines the BYTE_ORDER macro.
8070 cat > conftest.$ac_ext <<EOF
8071 #line 8072 "configure"
8072 #include "confdefs.h"
8073 #include <sys/types.h>
8074 #include <sys/param.h>
8077 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8082 if { (eval echo configure:8083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8084 # It does; now see whether it defined to BIG_ENDIAN or not.
8085 cat > conftest.$ac_ext <<EOF
8086 #line 8087 "configure"
8087 #include "confdefs.h"
8088 #include <sys/types.h>
8089 #include <sys/param.h>
8092 #if BYTE_ORDER != BIG_ENDIAN
8097 if { (eval echo configure:8098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8099 ac_cv_c_bigendian=yes
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8104 ac_cv_c_bigendian=no
8108 echo "configure: failed program was:" >&5
8109 cat conftest.$ac_ext >&5
8112 if test $ac_cv_c_bigendian = unknown; then
8113 if test "$cross_compiling" = yes; then
8114 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8116 cat > conftest.$ac_ext <<EOF
8117 #line 8118 "configure"
8118 #include "confdefs.h"
8120 /* Are we little or big endian? From Harbison&Steele. */
8124 char c[sizeof (long)];
8127 exit (u.c[sizeof (long) - 1] == 1);
8130 if { (eval echo configure:8131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8132 ac_cv_c_bigendian=no
8134 echo "configure: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8137 ac_cv_c_bigendian=yes
8145 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8146 if test $ac_cv_c_bigendian = yes; then
8147 cat >> confdefs.h <<\EOF
8148 #define WORDS_BIGENDIAN 1
8153 echo $ac_n "checking size of short""... $ac_c" 1>&6
8154 echo "configure:8155: checking size of short" >&5
8155 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8156 echo $ac_n "(cached) $ac_c" 1>&6
8158 if test "$cross_compiling" = yes; then
8159 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8161 cat > conftest.$ac_ext <<EOF
8162 #line 8163 "configure"
8163 #include "confdefs.h"
8167 FILE *f=fopen("conftestval", "w");
8169 fprintf(f, "%d\n", sizeof(short));
8173 if { (eval echo configure:8174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8175 ac_cv_sizeof_short=`cat conftestval`
8177 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8180 ac_cv_sizeof_short=0
8186 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8187 cat >> confdefs.h <<EOF
8188 #define SIZEOF_SHORT $ac_cv_sizeof_short
8192 echo $ac_n "checking size of int""... $ac_c" 1>&6
8193 echo "configure:8194: checking size of int" >&5
8194 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8195 echo $ac_n "(cached) $ac_c" 1>&6
8197 if test "$cross_compiling" = yes; then
8198 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8200 cat > conftest.$ac_ext <<EOF
8201 #line 8202 "configure"
8202 #include "confdefs.h"
8206 FILE *f=fopen("conftestval", "w");
8208 fprintf(f, "%d\n", sizeof(int));
8212 if { (eval echo configure:8213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8214 ac_cv_sizeof_int=`cat conftestval`
8216 echo "configure: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8225 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8226 cat >> confdefs.h <<EOF
8227 #define SIZEOF_INT $ac_cv_sizeof_int
8231 echo $ac_n "checking size of long""... $ac_c" 1>&6
8232 echo "configure:8233: checking size of long" >&5
8233 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8234 echo $ac_n "(cached) $ac_c" 1>&6
8236 if test "$cross_compiling" = yes; then
8237 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8239 cat > conftest.$ac_ext <<EOF
8240 #line 8241 "configure"
8241 #include "confdefs.h"
8245 FILE *f=fopen("conftestval", "w");
8247 fprintf(f, "%d\n", sizeof(long));
8251 if { (eval echo configure:8252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8253 ac_cv_sizeof_long=`cat conftestval`
8255 echo "configure: failed program was:" >&5
8256 cat conftest.$ac_ext >&5
8264 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8265 cat >> confdefs.h <<EOF
8266 #define SIZEOF_LONG $ac_cv_sizeof_long
8272 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
8273 echo "configure:8274: checking for 8-bit clean memcmp" >&5
8274 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
8275 echo $ac_n "(cached) $ac_c" 1>&6
8277 if test "$cross_compiling" = yes; then
8278 ac_cv_func_memcmp_clean=no
8280 cat > conftest.$ac_ext <<EOF
8281 #line 8282 "configure"
8282 #include "confdefs.h"
8286 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8287 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
8291 if { (eval echo configure:8292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8293 ac_cv_func_memcmp_clean=yes
8295 echo "configure: failed program was:" >&5
8296 cat conftest.$ac_ext >&5
8298 ac_cv_func_memcmp_clean=no
8305 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
8306 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
8308 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8309 echo "configure:8310: checking for strftime" >&5
8310 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8313 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8316 /* System header to define __stub macros and hopefully few prototypes,
8317 which can conflict with char strftime(); below. */
8319 /* Override any gcc2 internal prototype to avoid an error. */
8320 /* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8326 /* The GNU C library defines this for functions which it implements
8327 to always fail with ENOSYS. Some functions are actually named
8328 something starting with __ and the normal name is an alias. */
8329 #if defined (__stub_strftime) || defined (__stub___strftime)
8337 if { (eval echo configure:8338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8339 eval "ac_cv_func_strftime=yes"
8341 echo "configure: failed program was:" >&5
8342 cat conftest.$ac_ext >&5
8344 eval "ac_cv_func_strftime=no"
8349 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8350 echo "$ac_t""yes" 1>&6
8351 cat >> confdefs.h <<\EOF
8352 #define HAVE_STRFTIME 1
8356 echo "$ac_t""no" 1>&6
8357 # strftime is in -lintl on SCO UNIX.
8358 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8359 echo "configure:8360: checking for strftime in -lintl" >&5
8360 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8362 echo $ac_n "(cached) $ac_c" 1>&6
8364 ac_save_LIBS="$LIBS"
8366 cat > conftest.$ac_ext <<EOF
8367 #line 8368 "configure"
8368 #include "confdefs.h"
8369 /* Override any gcc2 internal prototype to avoid an error. */
8370 /* We use char because int might match the return type of a gcc2
8371 builtin and then its argument prototype would still apply. */
8378 if { (eval echo configure:8379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8380 eval "ac_cv_lib_$ac_lib_var=yes"
8382 echo "configure: failed program was:" >&5
8383 cat conftest.$ac_ext >&5
8385 eval "ac_cv_lib_$ac_lib_var=no"
8388 LIBS="$ac_save_LIBS"
8391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8392 echo "$ac_t""yes" 1>&6
8393 cat >> confdefs.h <<\EOF
8394 #define HAVE_STRFTIME 1
8399 echo "$ac_t""no" 1>&6
8404 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8405 echo "configure:8406: checking for vprintf" >&5
8406 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8407 echo $ac_n "(cached) $ac_c" 1>&6
8409 cat > conftest.$ac_ext <<EOF
8410 #line 8411 "configure"
8411 #include "confdefs.h"
8412 /* System header to define __stub macros and hopefully few prototypes,
8413 which can conflict with char vprintf(); below. */
8415 /* Override any gcc2 internal prototype to avoid an error. */
8416 /* We use char because int might match the return type of a gcc2
8417 builtin and then its argument prototype would still apply. */
8422 /* The GNU C library defines this for functions which it implements
8423 to always fail with ENOSYS. Some functions are actually named
8424 something starting with __ and the normal name is an alias. */
8425 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8433 if { (eval echo configure:8434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8435 eval "ac_cv_func_vprintf=yes"
8437 echo "configure: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8440 eval "ac_cv_func_vprintf=no"
8445 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8446 echo "$ac_t""yes" 1>&6
8447 cat >> confdefs.h <<\EOF
8448 #define HAVE_VPRINTF 1
8452 echo "$ac_t""no" 1>&6
8455 if test "$ac_cv_func_vprintf" != yes; then
8456 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8457 echo "configure:8458: checking for _doprnt" >&5
8458 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8459 echo $ac_n "(cached) $ac_c" 1>&6
8461 cat > conftest.$ac_ext <<EOF
8462 #line 8463 "configure"
8463 #include "confdefs.h"
8464 /* System header to define __stub macros and hopefully few prototypes,
8465 which can conflict with char _doprnt(); below. */
8467 /* Override any gcc2 internal prototype to avoid an error. */
8468 /* We use char because int might match the return type of a gcc2
8469 builtin and then its argument prototype would still apply. */
8474 /* The GNU C library defines this for functions which it implements
8475 to always fail with ENOSYS. Some functions are actually named
8476 something starting with __ and the normal name is an alias. */
8477 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8485 if { (eval echo configure:8486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8487 eval "ac_cv_func__doprnt=yes"
8489 echo "configure: failed program was:" >&5
8490 cat conftest.$ac_ext >&5
8492 eval "ac_cv_func__doprnt=no"
8497 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8498 echo "$ac_t""yes" 1>&6
8499 cat >> confdefs.h <<\EOF
8500 #define HAVE_DOPRNT 1
8504 echo "$ac_t""no" 1>&6
8510 if test $ac_cv_func_vprintf = yes ; then
8511 for ac_func in vsnprintf vsprintf
8513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8514 echo "configure:8515: checking for $ac_func" >&5
8515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8516 echo $ac_n "(cached) $ac_c" 1>&6
8518 cat > conftest.$ac_ext <<EOF
8519 #line 8520 "configure"
8520 #include "confdefs.h"
8521 /* System header to define __stub macros and hopefully few prototypes,
8522 which can conflict with char $ac_func(); below. */
8524 /* Override any gcc2 internal prototype to avoid an error. */
8525 /* We use char because int might match the return type of a gcc2
8526 builtin and then its argument prototype would still apply. */
8531 /* The GNU C library defines this for functions which it implements
8532 to always fail with ENOSYS. Some functions are actually named
8533 something starting with __ and the normal name is an alias. */
8534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8542 if { (eval echo configure:8543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8544 eval "ac_cv_func_$ac_func=yes"
8546 echo "configure: failed program was:" >&5
8547 cat conftest.$ac_ext >&5
8549 eval "ac_cv_func_$ac_func=no"
8554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8555 echo "$ac_t""yes" 1>&6
8556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8557 cat >> confdefs.h <<EOF
8558 #define $ac_tr_func 1
8562 echo "$ac_t""no" 1>&6
8598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8599 echo "configure:8600: checking for $ac_func" >&5
8600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8601 echo $ac_n "(cached) $ac_c" 1>&6
8603 cat > conftest.$ac_ext <<EOF
8604 #line 8605 "configure"
8605 #include "confdefs.h"
8606 /* System header to define __stub macros and hopefully few prototypes,
8607 which can conflict with char $ac_func(); below. */
8609 /* Override any gcc2 internal prototype to avoid an error. */
8610 /* We use char because int might match the return type of a gcc2
8611 builtin and then its argument prototype would still apply. */
8616 /* The GNU C library defines this for functions which it implements
8617 to always fail with ENOSYS. Some functions are actually named
8618 something starting with __ and the normal name is an alias. */
8619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8627 if { (eval echo configure:8628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8629 eval "ac_cv_func_$ac_func=yes"
8631 echo "configure: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8634 eval "ac_cv_func_$ac_func=no"
8639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8640 echo "$ac_t""yes" 1>&6
8641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8642 cat >> confdefs.h <<EOF
8643 #define $ac_tr_func 1
8647 echo "$ac_t""no" 1>&6
8652 for ac_func in getopt strdup tempnam
8654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8655 echo "configure:8656: checking for $ac_func" >&5
8656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8657 echo $ac_n "(cached) $ac_c" 1>&6
8659 cat > conftest.$ac_ext <<EOF
8660 #line 8661 "configure"
8661 #include "confdefs.h"
8662 /* System header to define __stub macros and hopefully few prototypes,
8663 which can conflict with char $ac_func(); below. */
8665 /* Override any gcc2 internal prototype to avoid an error. */
8666 /* We use char because int might match the return type of a gcc2
8667 builtin and then its argument prototype would still apply. */
8672 /* The GNU C library defines this for functions which it implements
8673 to always fail with ENOSYS. Some functions are actually named
8674 something starting with __ and the normal name is an alias. */
8675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8683 if { (eval echo configure:8684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8685 eval "ac_cv_func_$ac_func=yes"
8687 echo "configure: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8690 eval "ac_cv_func_$ac_func=no"
8695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8696 echo "$ac_t""yes" 1>&6
8697 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8698 cat >> confdefs.h <<EOF
8699 #define $ac_tr_func 1
8703 echo "$ac_t""no" 1>&6
8704 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
8710 # Check Configuration
8712 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
8713 echo "configure:8714: checking declaration of sys_errlist" >&5
8714 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
8715 echo $ac_n "(cached) $ac_c" 1>&6
8718 cat > conftest.$ac_ext <<EOF
8719 #line 8720 "configure"
8720 #include "confdefs.h"
8723 #include <sys/types.h>
8726 char *c = (char *) *sys_errlist
8729 if { (eval echo configure:8730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8731 ol_cv_dcl_sys_errlist=yes
8733 echo "configure: failed program was:" >&5
8734 cat conftest.$ac_ext >&5
8736 ol_cv_dcl_sys_errlist=no
8741 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
8743 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
8744 if test $ol_cv_dcl_sys_errlist = no ; then
8745 cat >> confdefs.h <<\EOF
8746 #define DECL_SYS_ERRLIST 1
8749 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
8750 echo "configure:8751: checking existence of sys_errlist" >&5
8751 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
8752 echo $ac_n "(cached) $ac_c" 1>&6
8755 cat > conftest.$ac_ext <<EOF
8756 #line 8757 "configure"
8757 #include "confdefs.h"
8760 char *c = (char *) *sys_errlist
8763 if { (eval echo configure:8764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8765 ol_cv_have_sys_errlist=yes
8767 echo "configure: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8770 ol_cv_have_sys_errlist=no
8775 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
8780 if test "$ol_enable_debug" != no ; then
8781 cat >> confdefs.h <<\EOF
8782 #define LDAP_DEBUG 1
8786 if test "$ol_enable_libui" = yes ; then
8787 cat >> confdefs.h <<\EOF
8788 #define LDAP_LIBUI 1
8792 if test "$ol_enable_cache" = no ; then
8793 cat >> confdefs.h <<\EOF
8794 #define LDAP_NOCACHE 1
8798 if test "$ol_enable_dns" != no ; then
8799 cat >> confdefs.h <<\EOF
8804 if test "$ol_enable_proctitle" != no ; then
8805 cat >> confdefs.h <<\EOF
8806 #define LDAP_PROCTITLE 1
8810 if test "$ol_enable_referrals" != no ; then
8811 cat >> confdefs.h <<\EOF
8812 #define LDAP_REFERRALS 1
8816 if test "$ol_enable_cldap" != no ; then
8817 cat >> confdefs.h <<\EOF
8818 #define LDAP_CONNECTIONLESS 1
8823 if test "$ol_enable_aclgroups" != no ; then
8824 cat >> confdefs.h <<\EOF
8825 #define SLAPD_ACLGROUPS 1
8829 if test "$ol_enable_crypt" != no ; then
8830 cat >> confdefs.h <<\EOF
8831 #define SLAPD_CRYPT 1
8835 if test "$ol_enable_cleartext" != no ; then
8836 cat >> confdefs.h <<\EOF
8837 #define SLAPD_CLEARTEXT 1
8841 if test "$ol_enable_phonetic" != no ; then
8842 cat >> confdefs.h <<\EOF
8843 #define SLAPD_PHONETIC 1
8847 if test "$ol_enable_rlookups" != no ; then
8848 cat >> confdefs.h <<\EOF
8849 #define SLAPD_RLOOKUPS 1
8854 if test "$ol_link_ldbm" != no ; then
8855 cat >> confdefs.h <<\EOF
8856 #define SLAPD_LDBM 1
8863 if test "$ol_enable_passwd" != no ; then
8864 cat >> confdefs.h <<\EOF
8865 #define SLAPD_PASSWD 1
8872 if test "$ol_enable_shell" != no ; then
8873 cat >> confdefs.h <<\EOF
8874 #define SLAPD_SHELL 1
8881 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
8882 $BUILD_SLAPD = yes ; then
8886 if test "$ol_link_isode" != no ; then
8911 cat > confcache <<\EOF
8912 # This file is a shell script that caches the results of configure
8913 # tests run on this system so they can be shared between configure
8914 # scripts and configure runs. It is not useful on other systems.
8915 # If it contains results you don't want to keep, you may remove or edit it.
8917 # By default, configure uses ./config.cache as the cache file,
8918 # creating it if it does not exist already. You can give configure
8919 # the --cache-file=FILE option to use a different cache file; that is
8920 # what configure does when it calls configure scripts in
8921 # subdirectories, so they share the cache.
8922 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8923 # config.status only pays attention to the cache file if you give it the
8924 # --recheck option to rerun configure.
8927 # The following way of writing the cache mishandles newlines in values,
8928 # but we know of no workaround that is simple, portable, and efficient.
8929 # So, don't put newlines in cache variables' values.
8930 # Ultrix sh set writes to stderr and can't be redirected directly,
8931 # and sets the high bit in the cache file unless we assign to the vars.
8933 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8935 # `set' does not quote correctly, so add quotes (double-quote substitution
8936 # turns \\\\ into \\, and sed turns \\ into \).
8938 -e "s/'/'\\\\''/g" \
8939 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8942 # `set' quotes correctly as required by POSIX, so do not add quotes.
8943 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8946 if cmp -s $cache_file confcache; then
8949 if test -w $cache_file; then
8950 echo "updating cache $cache_file"
8951 cat confcache > $cache_file
8953 echo "not updating unwritable cache $cache_file"
8958 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8961 # Let make expand exec_prefix.
8962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8964 # Any assignment to VPATH causes Sun make to only execute
8965 # the first set of double-colon rules, so remove it if not needed.
8966 # If there is a colon in the path, we need to keep it.
8967 if test "x$srcdir" = x.; then
8968 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8971 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8973 DEFS=-DHAVE_CONFIG_H
8975 # Without the "./", some shells look in PATH for config.status.
8976 : ${CONFIG_STATUS=./config.status}
8978 echo creating $CONFIG_STATUS
8979 rm -f $CONFIG_STATUS
8980 cat > $CONFIG_STATUS <<EOF
8982 # Generated automatically by configure.
8983 # Run this file to recreate the current configuration.
8984 # This directory was configured as follows,
8985 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8987 # $0 $ac_configure_args
8989 # Compiler output produced by configure, useful for debugging
8990 # configure, is in ./config.log if it exists.
8992 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8995 case "\$ac_option" in
8996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8997 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8998 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8999 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9000 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9002 -help | --help | --hel | --he | --h)
9003 echo "\$ac_cs_usage"; exit 0 ;;
9004 *) echo "\$ac_cs_usage"; exit 1 ;;
9008 ac_given_srcdir=$srcdir
9009 ac_given_INSTALL="$INSTALL"
9011 trap 'rm -fr `echo "\
9012 Makefile:build/top.mk:Makefile.in:build/dir.mk \
9013 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
9014 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
9015 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
9016 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
9017 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
9018 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
9019 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
9020 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
9021 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
9022 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
9023 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
9024 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
9025 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
9026 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
9027 include/Makefile:build/top.mk:include/Makefile.in \
9028 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
9029 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
9030 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
9031 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
9032 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
9033 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
9034 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
9035 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
9036 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
9037 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
9038 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
9039 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
9040 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
9041 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
9042 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
9043 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
9044 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
9045 tests/Makefile:build/top.mk:tests/Makefile.in \
9046 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9048 cat >> $CONFIG_STATUS <<EOF
9050 # Protect against being on the right side of a sed subst in config.status.
9051 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9052 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9056 s%@CFLAGS@%$CFLAGS%g
9057 s%@CPPFLAGS@%$CPPFLAGS%g
9058 s%@CXXFLAGS@%$CXXFLAGS%g
9059 s%@FFLAGS@%$FFLAGS%g
9061 s%@LDFLAGS@%$LDFLAGS%g
9063 s%@exec_prefix@%$exec_prefix%g
9064 s%@prefix@%$prefix%g
9065 s%@program_transform_name@%$program_transform_name%g
9066 s%@bindir@%$bindir%g
9067 s%@sbindir@%$sbindir%g
9068 s%@libexecdir@%$libexecdir%g
9069 s%@datadir@%$datadir%g
9070 s%@sysconfdir@%$sysconfdir%g
9071 s%@sharedstatedir@%$sharedstatedir%g
9072 s%@localstatedir@%$localstatedir%g
9073 s%@libdir@%$libdir%g
9074 s%@includedir@%$includedir%g
9075 s%@oldincludedir@%$oldincludedir%g
9076 s%@infodir@%$infodir%g
9077 s%@mandir@%$mandir%g
9078 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9079 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9080 s%@INSTALL_DATA@%$INSTALL_DATA%g
9081 s%@PACKAGE@%$PACKAGE%g
9082 s%@VERSION@%$VERSION%g
9083 s%@ACLOCAL@%$ACLOCAL%g
9084 s%@AUTOCONF@%$AUTOCONF%g
9085 s%@AUTOMAKE@%$AUTOMAKE%g
9086 s%@AUTOHEADER@%$AUTOHEADER%g
9087 s%@MAKEINFO@%$MAKEINFO%g
9088 s%@SET_MAKE@%$SET_MAKE%g
9089 s%@top_builddir@%$top_builddir%g
9090 s%@ldap_subdir@%$ldap_subdir%g
9092 s%@host_alias@%$host_alias%g
9093 s%@host_cpu@%$host_cpu%g
9094 s%@host_vendor@%$host_vendor%g
9095 s%@host_os@%$host_os%g
9096 s%@RANLIB@%$RANLIB%g
9101 s%@LIBTOOL@%$LIBTOOL%g
9102 s%@SENDMAIL@%$SENDMAIL%g
9103 s%@EDITOR@%$EDITOR%g
9104 s%@FINGER@%$FINGER%g
9107 s%@LIBOBJS@%$LIBOBJS%g
9108 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
9109 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
9110 s%@BUILD_LDBM@%$BUILD_LDBM%g
9111 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
9112 s%@BUILD_SHELL@%$BUILD_SHELL%g
9113 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
9114 s%@LDAP_LIBS@%$LDAP_LIBS%g
9115 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
9116 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
9117 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
9118 s%@LDBM_LIBS@%$LDBM_LIBS%g
9119 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
9120 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
9121 s%@KRB_LIBS@%$KRB_LIBS%g
9122 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
9127 cat >> $CONFIG_STATUS <<\EOF
9129 # Split the substitutions into bite-sized pieces for seds with
9130 # small command number limits, like on Digital OSF/1 and HP-UX.
9131 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9132 ac_file=1 # Number of current file.
9133 ac_beg=1 # First line for current file.
9134 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9137 while $ac_more_lines; do
9138 if test $ac_beg -gt 1; then
9139 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9141 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9143 if test ! -s conftest.s$ac_file; then
9145 rm -f conftest.s$ac_file
9147 if test -z "$ac_sed_cmds"; then
9148 ac_sed_cmds="sed -f conftest.s$ac_file"
9150 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9152 ac_file=`expr $ac_file + 1`
9154 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9157 if test -z "$ac_sed_cmds"; then
9162 cat >> $CONFIG_STATUS <<EOF
9164 CONFIG_FILES=\${CONFIG_FILES-"\
9165 Makefile:build/top.mk:Makefile.in:build/dir.mk \
9166 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
9167 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
9168 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
9169 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
9170 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
9171 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
9172 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
9173 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
9174 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
9175 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
9176 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
9177 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
9178 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
9179 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
9180 include/Makefile:build/top.mk:include/Makefile.in \
9181 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
9182 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
9183 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
9184 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
9185 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
9186 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
9187 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
9188 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
9189 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
9190 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
9191 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
9192 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
9193 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
9194 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
9195 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
9196 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
9197 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
9198 tests/Makefile:build/top.mk:tests/Makefile.in \
9201 cat >> $CONFIG_STATUS <<\EOF
9202 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9203 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9205 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9206 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9207 *) ac_file_in="${ac_file}.in" ;;
9210 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9212 # Remove last slash and all that follows it. Not all systems have dirname.
9213 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9214 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9215 # The file is in a subdirectory.
9216 test ! -d "$ac_dir" && mkdir "$ac_dir"
9217 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9218 # A "../" for each directory in $ac_dir_suffix.
9219 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9221 ac_dir_suffix= ac_dots=
9224 case "$ac_given_srcdir" in
9226 if test -z "$ac_dots"; then top_srcdir=.
9227 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9228 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9230 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9231 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9234 case "$ac_given_INSTALL" in
9235 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9236 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9239 echo creating "$ac_file"
9241 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9243 *Makefile*) ac_comsub="1i\\
9244 # $configure_input" ;;
9248 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9250 s%@configure_input@%$configure_input%g
9251 s%@srcdir@%$srcdir%g
9252 s%@top_srcdir@%$top_srcdir%g
9253 s%@INSTALL@%$INSTALL%g
9254 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9258 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9259 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9261 # ac_d sets the value in "#define NAME VALUE" lines.
9262 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9263 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9266 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9267 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9268 ac_uB='\([ ]\)%\1#\2define\3'
9271 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9272 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9273 ac_eB='$%\1#\2define\3'
9277 if test "${CONFIG_HEADERS+set}" != set; then
9279 cat >> $CONFIG_STATUS <<EOF
9280 CONFIG_HEADERS="include/portable.h"
9282 cat >> $CONFIG_STATUS <<\EOF
9284 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9285 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9287 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9288 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9289 *) ac_file_in="${ac_file}.in" ;;
9292 echo creating $ac_file
9294 rm -f conftest.frag conftest.in conftest.out
9295 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9296 cat $ac_file_inputs > conftest.in
9300 # Transform confdefs.h into a sed script conftest.vals that substitutes
9301 # the proper values into config.h.in to produce config.h. And first:
9302 # Protect against being on the right side of a sed subst in config.status.
9303 # Protect against being in an unquoted here document in config.status.
9305 cat > conftest.hdr <<\EOF
9308 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9312 sed -n -f conftest.hdr confdefs.h > conftest.vals
9315 # This sed command replaces #undef with comments. This is necessary, for
9316 # example, in the case of _POSIX_SOURCE, which is predefined and required
9317 # on some systems where configure will not decide to define it.
9318 cat >> conftest.vals <<\EOF
9319 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9322 # Break up conftest.vals because some shells have a limit on
9323 # the size of here documents, and old seds have small limits too.
9328 ac_lines=`grep -c . conftest.vals`
9329 # grep -c gives empty output for an empty file on some AIX systems.
9330 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9331 # Write a limited-size here document to conftest.frag.
9332 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9333 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9335 sed -f conftest.frag conftest.in > conftest.out
9337 mv conftest.out conftest.in
9339 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9341 mv conftest.tail conftest.vals
9345 cat >> $CONFIG_STATUS <<\EOF
9346 rm -f conftest.frag conftest.h
9347 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9348 cat conftest.in >> conftest.h
9350 if cmp -s $ac_file conftest.h 2>/dev/null; then
9351 echo "$ac_file is unchanged"
9354 # Remove last slash and all that follows it. Not all systems have dirname.
9355 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9356 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9357 # The file is in a subdirectory.
9358 test ! -d "$ac_dir" && mkdir "$ac_dir"
9361 mv conftest.h $ac_file
9366 cat >> $CONFIG_STATUS <<EOF
9369 cat >> $CONFIG_STATUS <<\EOF
9372 echo Please \"make depend\" to build dependencies
9376 chmod +x $CONFIG_STATUS
9377 rm -fr confdefs* $ac_clean_files
9378 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1