3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-proctitle enable proctitle support (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable V2 DNS extension (no)"
26 --enable-referrals enable V2 Referrals extension (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --enable-x-compile enable cross compiling (no)"
32 --enable-dmalloc enable debug malloc support (no)"
34 --with-kerberos use Kerberos (auto)"
36 --with-threads use threads (auto)"
38 --with-yielding-select with implicitly yielding select (auto)"
42 --enable-ldapd enable building ldapd (no)"
46 --enable-slapd enable building slapd (yes)"
48 --enable-aclgroups enable ACL group support (auto)"
50 --enable-cleartext enable cleartext passwords (yes)"
52 --enable-crypt enable crypt(3) passwords (auto)"
54 --enable-wrappers enable tcp wrapper support (no)"
56 --enable-phonetic enable phonetic/soundex (no)"
58 --enable-rlookups enable reverse lookups (auto)"
60 --enable-ldbm enable ldbm backend (yes)"
62 --with-ldbm-api use LDBM API (auto)"
64 --with-ldbm-type use LDBM type (auto)"
66 --enable-passwd enable passwd backend (no)"
68 --enable-shell enable shell backend (no)"
72 --enable-slurpd enable building slurpd (auto)"
74 Library Generation & Linking Options"
76 --enable-static build static libraries [default=yes]
77 --enable-static=PKGS only build shared libraries if the current package
78 appears as an element in the PKGS list"
80 --enable-shared build shared libraries [default=yes]
81 --enable-shared=PKGS only build shared libraries if the current package
82 appears as an element in the PKGS list"
84 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
86 # Initialize some variables set by options.
87 # The variables have the same names as the options, with
88 # dashes changed to underlines.
90 cache_file=./config.cache
99 program_transform_name=s,x,x,
107 bindir='${exec_prefix}/bin'
108 sbindir='${exec_prefix}/sbin'
109 libexecdir='${exec_prefix}/libexec'
110 datadir='${prefix}/share'
111 sysconfdir='${prefix}/etc'
112 sharedstatedir='${prefix}/com'
113 localstatedir='${prefix}/var'
114 libdir='${exec_prefix}/lib'
115 includedir='${prefix}/include'
116 oldincludedir='/usr/include'
117 infodir='${prefix}/info'
118 mandir='${prefix}/man'
120 # Initialize some other variables.
123 # Maximum number of lines to put in a shell here document.
130 # If the previous option needs an argument, assign it.
131 if test -n "$ac_prev"; then
132 eval "$ac_prev=\$ac_option"
138 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
142 # Accept the important Cygnus configure options, so we can diagnose typos.
146 -bindir | --bindir | --bindi | --bind | --bin | --bi)
148 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
149 bindir="$ac_optarg" ;;
151 -build | --build | --buil | --bui | --bu)
153 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
154 build="$ac_optarg" ;;
156 -cache-file | --cache-file | --cache-fil | --cache-fi \
157 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
158 ac_prev=cache_file ;;
159 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
160 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
161 cache_file="$ac_optarg" ;;
163 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
165 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
167 datadir="$ac_optarg" ;;
169 -disable-* | --disable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}=no" ;;
178 -enable-* | --enable-*)
179 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
189 eval "enable_${ac_feature}='$ac_optarg'" ;;
191 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
192 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
193 | --exec | --exe | --ex)
194 ac_prev=exec_prefix ;;
195 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
196 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
197 | --exec=* | --exe=* | --ex=*)
198 exec_prefix="$ac_optarg" ;;
200 -gas | --gas | --ga | --g)
201 # Obsolete; use --with-gas.
204 -help | --help | --hel | --he)
205 # Omit some internal or obsolete options to make the list less imposing.
206 # This message is too long to be a string in the A/UX 3.1 sh.
208 Usage: configure [options] [host]
209 Options: [defaults in brackets after descriptions]
211 --cache-file=FILE cache test results in FILE
212 --help print this message
213 --no-create do not create output files
214 --quiet, --silent do not print \`checking...' messages
215 --version print the version of autoconf that created configure
216 Directory and file names:
217 --prefix=PREFIX install architecture-independent files in PREFIX
219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
221 --bindir=DIR user executables in DIR [EPREFIX/bin]
222 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
223 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
224 --datadir=DIR read-only architecture-independent data in DIR
226 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
227 --sharedstatedir=DIR modifiable architecture-independent data in DIR
229 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
230 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
231 --includedir=DIR C header files in DIR [PREFIX/include]
232 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
233 --infodir=DIR info documentation in DIR [PREFIX/info]
234 --mandir=DIR man documentation in DIR [PREFIX/man]
235 --srcdir=DIR find the sources in DIR [configure dir or ..]
236 --program-prefix=PREFIX prepend PREFIX to installed program names
237 --program-suffix=SUFFIX append SUFFIX to installed program names
238 --program-transform-name=PROGRAM
239 run sed PROGRAM on installed program names
243 --build=BUILD configure for building on BUILD [BUILD=HOST]
244 --host=HOST configure for HOST [guessed]
245 --target=TARGET configure for TARGET [TARGET=HOST]
246 Features and packages:
247 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
248 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
249 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
250 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
251 --x-includes=DIR X include files are in DIR
252 --x-libraries=DIR X library files are in DIR
254 if test -n "$ac_help"; then
255 echo "--enable and --with options recognized:$ac_help"
259 -host | --host | --hos | --ho)
261 -host=* | --host=* | --hos=* | --ho=*)
264 -includedir | --includedir | --includedi | --included | --include \
265 | --includ | --inclu | --incl | --inc)
266 ac_prev=includedir ;;
267 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
268 | --includ=* | --inclu=* | --incl=* | --inc=*)
269 includedir="$ac_optarg" ;;
271 -infodir | --infodir | --infodi | --infod | --info | --inf)
273 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
274 infodir="$ac_optarg" ;;
276 -libdir | --libdir | --libdi | --libd)
278 -libdir=* | --libdir=* | --libdi=* | --libd=*)
279 libdir="$ac_optarg" ;;
281 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
282 | --libexe | --libex | --libe)
283 ac_prev=libexecdir ;;
284 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
285 | --libexe=* | --libex=* | --libe=*)
286 libexecdir="$ac_optarg" ;;
288 -localstatedir | --localstatedir | --localstatedi | --localstated \
289 | --localstate | --localstat | --localsta | --localst \
290 | --locals | --local | --loca | --loc | --lo)
291 ac_prev=localstatedir ;;
292 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
293 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
294 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
295 localstatedir="$ac_optarg" ;;
297 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
299 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
300 mandir="$ac_optarg" ;;
303 # Obsolete; use --without-fp.
306 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
310 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
311 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
314 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
315 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
316 | --oldin | --oldi | --old | --ol | --o)
317 ac_prev=oldincludedir ;;
318 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
319 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
320 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
321 oldincludedir="$ac_optarg" ;;
323 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
325 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
326 prefix="$ac_optarg" ;;
328 -program-prefix | --program-prefix | --program-prefi | --program-pref \
329 | --program-pre | --program-pr | --program-p)
330 ac_prev=program_prefix ;;
331 -program-prefix=* | --program-prefix=* | --program-prefi=* \
332 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
333 program_prefix="$ac_optarg" ;;
335 -program-suffix | --program-suffix | --program-suffi | --program-suff \
336 | --program-suf | --program-su | --program-s)
337 ac_prev=program_suffix ;;
338 -program-suffix=* | --program-suffix=* | --program-suffi=* \
339 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
340 program_suffix="$ac_optarg" ;;
342 -program-transform-name | --program-transform-name \
343 | --program-transform-nam | --program-transform-na \
344 | --program-transform-n | --program-transform- \
345 | --program-transform | --program-transfor \
346 | --program-transfo | --program-transf \
347 | --program-trans | --program-tran \
348 | --progr-tra | --program-tr | --program-t)
349 ac_prev=program_transform_name ;;
350 -program-transform-name=* | --program-transform-name=* \
351 | --program-transform-nam=* | --program-transform-na=* \
352 | --program-transform-n=* | --program-transform-=* \
353 | --program-transform=* | --program-transfor=* \
354 | --program-transfo=* | --program-transf=* \
355 | --program-trans=* | --program-tran=* \
356 | --progr-tra=* | --program-tr=* | --program-t=*)
357 program_transform_name="$ac_optarg" ;;
359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
360 | -silent | --silent | --silen | --sile | --sil)
363 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
365 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
367 sbindir="$ac_optarg" ;;
369 -sharedstatedir | --sharedstatedir | --sharedstatedi \
370 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
371 | --sharedst | --shareds | --shared | --share | --shar \
373 ac_prev=sharedstatedir ;;
374 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
375 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
376 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
378 sharedstatedir="$ac_optarg" ;;
380 -site | --site | --sit)
382 -site=* | --site=* | --sit=*)
385 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
387 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
388 srcdir="$ac_optarg" ;;
390 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
391 | --syscon | --sysco | --sysc | --sys | --sy)
392 ac_prev=sysconfdir ;;
393 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
394 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
395 sysconfdir="$ac_optarg" ;;
397 -target | --target | --targe | --targ | --tar | --ta | --t)
399 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
400 target="$ac_optarg" ;;
402 -v | -verbose | --verbose | --verbos | --verbo | --verb)
405 -version | --version | --versio | --versi | --vers)
406 echo "configure generated by autoconf version 2.12"
410 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}='$ac_optarg'" ;;
422 -without-* | --without-*)
423 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428 ac_package=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}=no" ;;
432 # Obsolete; use --with-x.
435 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
436 | --x-incl | --x-inc | --x-in | --x-i)
437 ac_prev=x_includes ;;
438 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
439 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
440 x_includes="$ac_optarg" ;;
442 -x-libraries | --x-libraries | --x-librarie | --x-librari \
443 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
444 ac_prev=x_libraries ;;
445 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
446 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
447 x_libraries="$ac_optarg" ;;
449 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
453 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
454 echo "configure: warning: $ac_option: invalid host type" 1>&2
456 if test "x$nonopt" != xNONE; then
457 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
465 if test -n "$ac_prev"; then
466 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
469 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
471 # File descriptor usage:
474 # 2 errors and warnings
475 # 3 some systems may open it to /dev/tty
476 # 4 used on the Kubota Titan
477 # 6 checking for... messages and results
478 # 5 compiler messages saved in config.log
479 if test "$silent" = yes; then
487 This file contains any messages produced by compilers while
488 running configure, to aid debugging if configure makes a mistake.
491 # Strip out --no-create and --no-recursion so they do not pile up.
492 # Also quote any args containing shell metacharacters.
497 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
498 | --no-cr | --no-c) ;;
499 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
500 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
502 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
503 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
508 # Only set these to C if already set. These must not be set unconditionally
509 # because not all systems understand e.g. LANG=C (notably SCO).
510 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
511 # Non-C LC_CTYPE values break the ctype check.
512 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
513 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
514 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
515 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
517 # confdefs.h avoids OS command line length limits that DEFS can exceed.
518 rm -rf conftest* confdefs.h
519 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
522 # A filename unique to this package, relative to the directory that
523 # configure is in, which we can look for to find out if srcdir is correct.
524 ac_unique_file=include/ldap.h
526 # Find the source files, if location was not specified.
527 if test -z "$srcdir"; then
528 ac_srcdir_defaulted=yes
529 # Try the directory containing this script, then its parent.
531 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
532 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
534 if test ! -r $srcdir/$ac_unique_file; then
538 ac_srcdir_defaulted=no
540 if test ! -r $srcdir/$ac_unique_file; then
541 if test "$ac_srcdir_defaulted" = yes; then
542 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
544 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
547 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
549 # Prefer explicitly selected file to automatically selected ones.
550 if test -z "$CONFIG_SITE"; then
551 if test "x$prefix" != xNONE; then
552 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
554 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
557 for ac_site_file in $CONFIG_SITE; do
558 if test -r "$ac_site_file"; then
559 echo "loading site script $ac_site_file"
564 if test -r "$cache_file"; then
565 echo "loading cache $cache_file"
568 echo "creating cache $cache_file"
573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
574 ac_cpp='$CPP $CPPFLAGS'
575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
576 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
577 cross_compiling=$ac_cv_prog_cc_cross
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
588 ac_n= ac_c='\c' ac_t=
592 for ac_dir in build $srcdir/build; do
593 if test -f $ac_dir/install-sh; then
595 ac_install_sh="$ac_aux_dir/install-sh -c"
597 elif test -f $ac_dir/install.sh; then
599 ac_install_sh="$ac_aux_dir/install.sh -c"
603 if test -z "$ac_aux_dir"; then
604 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
606 ac_config_guess=$ac_aux_dir/config.guess
607 ac_config_sub=$ac_aux_dir/config.sub
608 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
609 # Find a good install program. We prefer a C program (faster),
610 # so one script is as good as another. But avoid the broken or
611 # incompatible versions:
612 # SysV /etc/install, /usr/sbin/install
613 # SunOS /usr/etc/install
616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
618 # ./install, which can be erroneously created by make from ./install.sh.
619 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
620 echo "configure:621: checking for a BSD compatible install" >&5
621 if test -z "$INSTALL"; then
622 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
625 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
626 for ac_dir in $PATH; do
627 # Account for people who put trailing slashes in PATH elements.
629 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
631 # OSF1 and SCO ODT 3.0 have their own names for install.
632 for ac_prog in ginstall installbsd scoinst install; do
633 if test -f $ac_dir/$ac_prog; then
634 if test $ac_prog = install &&
635 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
636 # AIX install. It has an incompatible calling convention.
637 # OSF/1 installbsd also uses dspmsg, but is usable.
640 ac_cv_path_install="$ac_dir/$ac_prog -c"
651 if test "${ac_cv_path_install+set}" = set; then
652 INSTALL="$ac_cv_path_install"
654 # As a last resort, use the slow shell script. We don't cache a
655 # path for INSTALL within a source directory, because that will
656 # break other packages using the cache if that directory is
657 # removed, or if the path is relative.
658 INSTALL="$ac_install_sh"
661 echo "$ac_t""$INSTALL" 1>&6
663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
664 # It thinks the first close brace ends the variable substitution.
665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
670 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
672 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
673 echo "configure:674: checking whether build environment is sane" >&5
676 echo timestamp > conftestfile
677 # Do `set' in a subshell so we don't clobber the current shell's
678 # arguments. Must try -L first in case configure is actually a
679 # symlink; some systems play weird games with the mod time of symlinks
680 # (eg FreeBSD returns the mod time of the symlink's containing
683 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
684 if test "$*" = "X"; then
686 set X `ls -t $srcdir/configure conftestfile`
688 if test "$*" != "X $srcdir/configure conftestfile" \
689 && test "$*" != "X conftestfile $srcdir/configure"; then
691 # If neither matched, then we have a broken ls. This can happen
692 # if, for instance, CONFIG_SHELL is bash and it inherits a
693 # broken ls alias from the environment. This has actually
694 # happened. Such a system could not be considered "sane".
695 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
696 alias in your environment" 1>&2; exit 1; }
699 test "$2" = conftestfile
705 { echo "configure: error: newly created file is older than distributed files!
706 Check your system clock" 1>&2; exit 1; }
709 echo "$ac_t""yes" 1>&6
710 if test "$program_transform_name" = s,x,x,; then
711 program_transform_name=
713 # Double any \ or $. echo might interpret backslashes.
714 cat <<\EOF_SED > conftestsed
715 s,\\,\\\\,g; s,\$,$$,g
717 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
720 test "$program_prefix" != NONE &&
721 program_transform_name="s,^,${program_prefix},; $program_transform_name"
722 # Use a double $ so make ignores it.
723 test "$program_suffix" != NONE &&
724 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
726 # sed with no file args requires a program.
727 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
729 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
730 echo "configure:731: checking whether ${MAKE-make} sets \${MAKE}" >&5
731 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
732 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
735 cat > conftestmake <<\EOF
737 @echo 'ac_maketemp="${MAKE}"'
739 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
740 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
741 if test -n "$ac_maketemp"; then
742 eval ac_cv_prog_make_${ac_make}_set=yes
744 eval ac_cv_prog_make_${ac_make}_set=no
748 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
749 echo "$ac_t""yes" 1>&6
752 echo "$ac_t""no" 1>&6
753 SET_MAKE="MAKE=${MAKE-make}"
761 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
762 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
767 missing_dir=`cd $ac_aux_dir && pwd`
768 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
769 echo "configure:770: checking for working aclocal" >&5
770 # Run test in a subshell; some versions of sh will print an error if
771 # an executable is not found, even if stderr is redirected.
772 # Redirect stdin to placate older versions of autoconf. Sigh.
773 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
775 echo "$ac_t""found" 1>&6
777 ACLOCAL="$missing_dir/missing aclocal"
778 echo "$ac_t""missing" 1>&6
781 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
782 echo "configure:783: checking for working autoconf" >&5
783 # Run test in a subshell; some versions of sh will print an error if
784 # an executable is not found, even if stderr is redirected.
785 # Redirect stdin to placate older versions of autoconf. Sigh.
786 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
788 echo "$ac_t""found" 1>&6
790 AUTOCONF="$missing_dir/missing autoconf"
791 echo "$ac_t""missing" 1>&6
794 echo $ac_n "checking for working automake""... $ac_c" 1>&6
795 echo "configure:796: checking for working automake" >&5
796 # Run test in a subshell; some versions of sh will print an error if
797 # an executable is not found, even if stderr is redirected.
798 # Redirect stdin to placate older versions of autoconf. Sigh.
799 if (automake --version) < /dev/null > /dev/null 2>&1; then
801 echo "$ac_t""found" 1>&6
803 AUTOMAKE="$missing_dir/missing automake"
804 echo "$ac_t""missing" 1>&6
807 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
808 echo "configure:809: checking for working autoheader" >&5
809 # Run test in a subshell; some versions of sh will print an error if
810 # an executable is not found, even if stderr is redirected.
811 # Redirect stdin to placate older versions of autoconf. Sigh.
812 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
813 AUTOHEADER=autoheader
814 echo "$ac_t""found" 1>&6
816 AUTOHEADER="$missing_dir/missing autoheader"
817 echo "$ac_t""missing" 1>&6
820 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
821 echo "configure:822: checking for working makeinfo" >&5
822 # Run test in a subshell; some versions of sh will print an error if
823 # an executable is not found, even if stderr is redirected.
824 # Redirect stdin to placate older versions of autoconf. Sigh.
825 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
827 echo "$ac_t""found" 1>&6
829 MAKEINFO="$missing_dir/missing makeinfo"
830 echo "$ac_t""missing" 1>&6
836 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
837 echo "configure:838: checking configure arguments" >&5
842 ldap_subdir="openldap"
844 # Check whether --with-subdir or --without-subdir was given.
845 if test "${with_subdir+set}" = set; then
846 withval="$with_subdir"
848 if test "$withval" = "no"; then
850 elif test "$withval" != "yes"; then
851 ldap_subdir="$withval"
857 # OpenLDAP --enable-debug
858 # Check whether --enable-debug or --disable-debug was given.
859 if test "${enable_debug+set}" = set; then
860 enableval="$enable_debug"
863 for ol_val in auto yes no ; do
864 if test "$enableval" = "$ol_val" ; then
868 if test "$ol_arg" = "invalid" ; then
869 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
871 ol_enable_debug="$ol_arg"
874 ol_enable_debug="yes"
878 # OpenLDAP --enable-proctitle
879 # Check whether --enable-proctitle or --disable-proctitle was given.
880 if test "${enable_proctitle+set}" = set; then
881 enableval="$enable_proctitle"
884 for ol_val in auto yes no ; do
885 if test "$enableval" = "$ol_val" ; then
889 if test "$ol_arg" = "invalid" ; then
890 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
892 ol_enable_proctitle="$ol_arg"
895 ol_enable_proctitle="yes"
897 # end --enable-proctitle
898 # OpenLDAP --enable-cache
899 # Check whether --enable-cache or --disable-cache was given.
900 if test "${enable_cache+set}" = set; then
901 enableval="$enable_cache"
904 for ol_val in auto yes no ; do
905 if test "$enableval" = "$ol_val" ; then
909 if test "$ol_arg" = "invalid" ; then
910 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
912 ol_enable_cache="$ol_arg"
915 ol_enable_cache="yes"
918 # OpenLDAP --enable-dns
919 # Check whether --enable-dns or --disable-dns was given.
920 if test "${enable_dns+set}" = set; then
921 enableval="$enable_dns"
924 for ol_val in auto yes no ; do
925 if test "$enableval" = "$ol_val" ; then
929 if test "$ol_arg" = "invalid" ; then
930 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
932 ol_enable_dns="$ol_arg"
938 # OpenLDAP --enable-referrals
939 # Check whether --enable-referrals or --disable-referrals was given.
940 if test "${enable_referrals+set}" = set; then
941 enableval="$enable_referrals"
944 for ol_val in auto yes no ; do
945 if test "$enableval" = "$ol_val" ; then
949 if test "$ol_arg" = "invalid" ; then
950 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
952 ol_enable_referrals="$ol_arg"
955 ol_enable_referrals="yes"
957 # end --enable-referrals
958 # OpenLDAP --enable-cldap
959 # Check whether --enable-cldap or --disable-cldap was given.
960 if test "${enable_cldap+set}" = set; then
961 enableval="$enable_cldap"
964 for ol_val in auto yes no ; do
965 if test "$enableval" = "$ol_val" ; then
969 if test "$ol_arg" = "invalid" ; then
970 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
972 ol_enable_cldap="$ol_arg"
978 # OpenLDAP --enable-x_compile
979 # Check whether --enable-x_compile or --disable-x_compile was given.
980 if test "${enable_x_compile+set}" = set; then
981 enableval="$enable_x_compile"
984 for ol_val in yes no ; do
985 if test "$enableval" = "$ol_val" ; then
989 if test "$ol_arg" = "invalid" ; then
990 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
992 ol_enable_x_compile="$ol_arg"
995 ol_enable_x_compile="no"
997 # end --enable-x_compile
1000 # OpenLDAP --enable-dmalloc
1001 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1002 if test "${enable_dmalloc+set}" = set; then
1003 enableval="$enable_dmalloc"
1006 for ol_val in auto yes no ; do
1007 if test "$enableval" = "$ol_val" ; then
1011 if test "$ol_arg" = "invalid" ; then
1012 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1014 ol_enable_dmalloc="$ol_arg"
1017 ol_enable_dmalloc="no"
1019 # end --enable-dmalloc
1021 # OpenLDAP --with-kerberos
1022 # Check whether --with-kerberos or --without-kerberos was given.
1023 if test "${with_kerberos+set}" = set; then
1024 withval="$with_kerberos"
1027 for ol_val in auto k5 k4 afs yes no ; do
1028 if test "$withval" = "$ol_val" ; then
1032 if test "$ol_arg" = "invalid" ; then
1033 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1035 ol_with_kerberos="$ol_arg"
1038 ol_with_kerberos="auto"
1040 # end --with-kerberos
1042 # OpenLDAP --with-threads
1043 # Check whether --with-threads or --without-threads was given.
1044 if test "${with_threads+set}" = set; then
1045 withval="$with_threads"
1048 for ol_val in auto posix mach lwp yes no manual ; do
1049 if test "$withval" = "$ol_val" ; then
1053 if test "$ol_arg" = "invalid" ; then
1054 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1056 ol_with_threads="$ol_arg"
1059 ol_with_threads="auto"
1061 # end --with-threads
1063 # OpenLDAP --with-yielding_select
1064 # Check whether --with-yielding_select or --without-yielding_select was given.
1065 if test "${with_yielding_select+set}" = set; then
1066 withval="$with_yielding_select"
1069 for ol_val in auto yes no manual ; do
1070 if test "$withval" = "$ol_val" ; then
1074 if test "$ol_arg" = "invalid" ; then
1075 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1077 ol_with_yielding_select="$ol_arg"
1080 ol_with_yielding_select="auto"
1082 # end --with-yielding_select
1086 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1087 if test "${with_xxldapdoptions+set}" = set; then
1088 withval="$with_xxldapdoptions"
1092 # OpenLDAP --enable-ldapd
1093 # Check whether --enable-ldapd or --disable-ldapd was given.
1094 if test "${enable_ldapd+set}" = set; then
1095 enableval="$enable_ldapd"
1098 for ol_val in auto yes no ; do
1099 if test "$enableval" = "$ol_val" ; then
1103 if test "$ol_arg" = "invalid" ; then
1104 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1106 ol_enable_ldapd="$ol_arg"
1109 ol_enable_ldapd="no"
1111 # end --enable-ldapd
1113 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1114 if test "${with_xxslapdoptions+set}" = set; then
1115 withval="$with_xxslapdoptions"
1119 # OpenLDAP --enable-slapd
1120 # Check whether --enable-slapd or --disable-slapd was given.
1121 if test "${enable_slapd+set}" = set; then
1122 enableval="$enable_slapd"
1125 for ol_val in auto yes no ; do
1126 if test "$enableval" = "$ol_val" ; then
1130 if test "$ol_arg" = "invalid" ; then
1131 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1133 ol_enable_slapd="$ol_arg"
1136 ol_enable_slapd="yes"
1138 # end --enable-slapd
1139 # OpenLDAP --enable-aclgroups
1140 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1141 if test "${enable_aclgroups+set}" = set; then
1142 enableval="$enable_aclgroups"
1145 for ol_val in auto yes no ; do
1146 if test "$enableval" = "$ol_val" ; then
1150 if test "$ol_arg" = "invalid" ; then
1151 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1153 ol_enable_aclgroups="$ol_arg"
1156 ol_enable_aclgroups="auto"
1158 # end --enable-aclgroups
1159 # OpenLDAP --enable-cleartext
1160 # Check whether --enable-cleartext or --disable-cleartext was given.
1161 if test "${enable_cleartext+set}" = set; then
1162 enableval="$enable_cleartext"
1165 for ol_val in auto yes no ; do
1166 if test "$enableval" = "$ol_val" ; then
1170 if test "$ol_arg" = "invalid" ; then
1171 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1173 ol_enable_cleartext="$ol_arg"
1176 ol_enable_cleartext="yes"
1178 # end --enable-cleartext
1179 # OpenLDAP --enable-crypt
1180 # Check whether --enable-crypt or --disable-crypt was given.
1181 if test "${enable_crypt+set}" = set; then
1182 enableval="$enable_crypt"
1185 for ol_val in auto yes no ; do
1186 if test "$enableval" = "$ol_val" ; then
1190 if test "$ol_arg" = "invalid" ; then
1191 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1193 ol_enable_crypt="$ol_arg"
1196 ol_enable_crypt="auto"
1198 # end --enable-crypt
1199 # OpenLDAP --enable-wrappers
1200 # Check whether --enable-wrappers or --disable-wrappers was given.
1201 if test "${enable_wrappers+set}" = set; then
1202 enableval="$enable_wrappers"
1205 for ol_val in auto yes no ; do
1206 if test "$enableval" = "$ol_val" ; then
1210 if test "$ol_arg" = "invalid" ; then
1211 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1213 ol_enable_wrappers="$ol_arg"
1216 ol_enable_wrappers="no"
1218 # end --enable-wrappers
1219 # OpenLDAP --enable-phonetic
1220 # Check whether --enable-phonetic or --disable-phonetic was given.
1221 if test "${enable_phonetic+set}" = set; then
1222 enableval="$enable_phonetic"
1225 for ol_val in auto yes no ; do
1226 if test "$enableval" = "$ol_val" ; then
1230 if test "$ol_arg" = "invalid" ; then
1231 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1233 ol_enable_phonetic="$ol_arg"
1236 ol_enable_phonetic="no"
1238 # end --enable-phonetic
1239 # OpenLDAP --enable-rlookups
1240 # Check whether --enable-rlookups or --disable-rlookups was given.
1241 if test "${enable_rlookups+set}" = set; then
1242 enableval="$enable_rlookups"
1245 for ol_val in auto yes no ; do
1246 if test "$enableval" = "$ol_val" ; then
1250 if test "$ol_arg" = "invalid" ; then
1251 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1253 ol_enable_rlookups="$ol_arg"
1256 ol_enable_rlookups="auto"
1258 # end --enable-rlookups
1260 # OpenLDAP --enable-ldbm
1261 # Check whether --enable-ldbm or --disable-ldbm was given.
1262 if test "${enable_ldbm+set}" = set; then
1263 enableval="$enable_ldbm"
1266 for ol_val in auto yes no ; do
1267 if test "$enableval" = "$ol_val" ; then
1271 if test "$ol_arg" = "invalid" ; then
1272 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1274 ol_enable_ldbm="$ol_arg"
1277 ol_enable_ldbm="yes"
1280 # OpenLDAP --with-ldbm_api
1281 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1282 if test "${with_ldbm_api+set}" = set; then
1283 withval="$with_ldbm_api"
1286 for ol_val in auto db2 db gdbm ndbm manual ; do
1287 if test "$withval" = "$ol_val" ; then
1291 if test "$ol_arg" = "invalid" ; then
1292 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1294 ol_with_ldbm_api="$ol_arg"
1297 ol_with_ldbm_api="auto"
1299 # end --with-ldbm_api
1301 # OpenLDAP --with-ldbm_type
1302 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1303 if test "${with_ldbm_type+set}" = set; then
1304 withval="$with_ldbm_type"
1307 for ol_val in auto btree hash ; do
1308 if test "$withval" = "$ol_val" ; then
1312 if test "$ol_arg" = "invalid" ; then
1313 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1315 ol_with_ldbm_type="$ol_arg"
1318 ol_with_ldbm_type="auto"
1320 # end --with-ldbm_type
1323 # OpenLDAP --enable-passwd
1324 # Check whether --enable-passwd or --disable-passwd was given.
1325 if test "${enable_passwd+set}" = set; then
1326 enableval="$enable_passwd"
1329 for ol_val in auto yes no ; do
1330 if test "$enableval" = "$ol_val" ; then
1334 if test "$ol_arg" = "invalid" ; then
1335 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1337 ol_enable_passwd="$ol_arg"
1340 ol_enable_passwd="no"
1342 # end --enable-passwd
1343 # OpenLDAP --enable-shell
1344 # Check whether --enable-shell or --disable-shell was given.
1345 if test "${enable_shell+set}" = set; then
1346 enableval="$enable_shell"
1349 for ol_val in auto yes no ; do
1350 if test "$enableval" = "$ol_val" ; then
1354 if test "$ol_arg" = "invalid" ; then
1355 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1357 ol_enable_shell="$ol_arg"
1360 ol_enable_shell="no"
1362 # end --enable-shell
1364 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1365 if test "${with_xxslurpdoptions+set}" = set; then
1366 withval="$with_xxslurpdoptions"
1370 # OpenLDAP --enable-slurpd
1371 # Check whether --enable-slurpd or --disable-slurpd was given.
1372 if test "${enable_slurpd+set}" = set; then
1373 enableval="$enable_slurpd"
1376 for ol_val in auto yes no ; do
1377 if test "$enableval" = "$ol_val" ; then
1381 if test "$ol_arg" = "invalid" ; then
1382 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1384 ol_enable_slurpd="$ol_arg"
1387 ol_enable_slurpd="auto"
1389 # end --enable-slurpd
1391 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1392 if test "${with_xxliboptions+set}" = set; then
1393 withval="$with_xxliboptions"
1397 # Check whether --enable-static or --disable-static was given.
1398 if test "${enable_static+set}" = set; then
1399 enableval="$enable_static"
1400 p=${PACKAGE-default}
1401 case "$enableval" in
1402 yes) enable_static=yes ;;
1403 no) enable_static=no ;;
1406 # Look at the argument we got. We use all the common list separators.
1407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1408 for pkg in $enableval; do
1409 if test "X$pkg" = "X$p"; then
1420 # Check whether --enable-shared or --disable-shared was given.
1421 if test "${enable_shared+set}" = set; then
1422 enableval="$enable_shared"
1423 p=${PACKAGE-default}
1424 case "$enableval" in
1425 yes) enable_shared=yes ;;
1426 no) enable_shared=no ;;
1429 # Look at the argument we got. We use all the common list separators.
1430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1431 for pkg in $enableval; do
1432 if test "X$pkg" = "X$p"; then
1445 if test $ol_enable_referrals = no ; then
1446 if test $ol_enable_dns = yes ; then
1447 echo "configure: warning: dns disabled, ignoring --enable-dns argument" 1>&2
1452 if test $ol_enable_slapd = no ; then
1453 if test $ol_enable_ldbm = yes ; then
1454 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1456 if test $ol_enable_passwd = yes ; then
1457 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1459 if test $ol_enable_shell = yes ; then
1460 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1462 if test $ol_enable_aclgroups = yes ; then
1463 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1465 if test $ol_enable_wrappers = yes ; then
1466 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1468 if test $ol_enable_phonetic = yes ; then
1469 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1471 if test $ol_enable_rlookups = yes ; then
1472 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1474 if test $ol_with_ldbm_api != auto ; then
1475 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1477 if test $ol_with_ldbm_type != auto ; then
1478 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1480 if test $ol_enable_slurpd = yes ; then
1481 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1484 # force settings to no
1488 ol_enable_aclgroups=no
1489 ol_enable_wrappers=no
1490 ol_enable_phonetic=no
1491 ol_enable_rlookups=no
1493 ol_with_ldbm_type=no
1496 elif test $ol_enable_ldbm = no ; then
1498 if test $ol_with_ldbm_api != auto ; then
1499 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1502 if test $ol_with_ldbm_type != auto ; then
1503 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1506 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1507 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1511 ol_with_ldbm_type=no
1515 if test $ol_with_ldbm_api = gdbm -a \
1516 $ol_with_ldbm_type = btree ; then
1517 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1519 if test $ol_with_ldbm_api = ndbm -a \
1520 $ol_with_ldbm_type = btree ; then
1521 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1525 if test $ol_enable_slurpd = yes ; then
1526 if test $ol_with_threads = no ; then
1527 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1531 echo "$ac_t""done" 1>&6
1534 # Make sure we can run config.sub.
1535 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1536 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1539 echo $ac_n "checking host system type""... $ac_c" 1>&6
1540 echo "configure:1541: checking host system type" >&5
1543 case "$host_alias" in
1547 if host_alias=`$ac_config_guess`; then :
1548 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1550 *) host_alias=$nonopt ;;
1554 host=`$ac_config_sub $host_alias`
1555 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1556 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1557 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1558 echo "$ac_t""$host" 1>&6
1584 # Find a good install program. We prefer a C program (faster),
1585 # so one script is as good as another. But avoid the broken or
1586 # incompatible versions:
1587 # SysV /etc/install, /usr/sbin/install
1588 # SunOS /usr/etc/install
1589 # IRIX /sbin/install
1591 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1592 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1593 # ./install, which can be erroneously created by make from ./install.sh.
1594 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1595 echo "configure:1596: checking for a BSD compatible install" >&5
1596 if test -z "$INSTALL"; then
1597 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1601 for ac_dir in $PATH; do
1602 # Account for people who put trailing slashes in PATH elements.
1604 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1606 # OSF1 and SCO ODT 3.0 have their own names for install.
1607 for ac_prog in ginstall installbsd scoinst install; do
1608 if test -f $ac_dir/$ac_prog; then
1609 if test $ac_prog = install &&
1610 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1611 # AIX install. It has an incompatible calling convention.
1612 # OSF/1 installbsd also uses dspmsg, but is usable.
1615 ac_cv_path_install="$ac_dir/$ac_prog -c"
1626 if test "${ac_cv_path_install+set}" = set; then
1627 INSTALL="$ac_cv_path_install"
1629 # As a last resort, use the slow shell script. We don't cache a
1630 # path for INSTALL within a source directory, because that will
1631 # break other packages using the cache if that directory is
1632 # removed, or if the path is relative.
1633 INSTALL="$ac_install_sh"
1636 echo "$ac_t""$INSTALL" 1>&6
1638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1639 # It thinks the first close brace ends the variable substitution.
1640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1644 # Extract the first word of "ranlib", so it can be a program name with args.
1645 set dummy ranlib; ac_word=$2
1646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1647 echo "configure:1648: checking for $ac_word" >&5
1648 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 if test -n "$RANLIB"; then
1652 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1655 for ac_dir in $PATH; do
1656 test -z "$ac_dir" && ac_dir=.
1657 if test -f $ac_dir/$ac_word; then
1658 ac_cv_prog_RANLIB="ranlib"
1663 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1666 RANLIB="$ac_cv_prog_RANLIB"
1667 if test -n "$RANLIB"; then
1668 echo "$ac_t""$RANLIB" 1>&6
1670 echo "$ac_t""no" 1>&6
1673 # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1676 echo "configure:1677: checking for $ac_word" >&5
1677 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 if test -n "$CC"; then
1681 ac_cv_prog_CC="$CC" # Let the user override the test.
1683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1684 for ac_dir in $PATH; do
1685 test -z "$ac_dir" && ac_dir=.
1686 if test -f $ac_dir/$ac_word; then
1695 if test -n "$CC"; then
1696 echo "$ac_t""$CC" 1>&6
1698 echo "$ac_t""no" 1>&6
1701 if test -z "$CC"; then
1702 # Extract the first word of "cc", so it can be a program name with args.
1703 set dummy cc; ac_word=$2
1704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1705 echo "configure:1706: checking for $ac_word" >&5
1706 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1709 if test -n "$CC"; then
1710 ac_cv_prog_CC="$CC" # Let the user override the test.
1712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1714 for ac_dir in $PATH; do
1715 test -z "$ac_dir" && ac_dir=.
1716 if test -f $ac_dir/$ac_word; then
1717 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1718 ac_prog_rejected=yes
1726 if test $ac_prog_rejected = yes; then
1727 # We found a bogon in the path, so make sure we never use it.
1728 set dummy $ac_cv_prog_CC
1730 if test $# -gt 0; then
1731 # We chose a different compiler from the bogus one.
1732 # However, it has the same basename, so the bogon will be chosen
1733 # first if we set CC to just the basename; use the full file name.
1735 set dummy "$ac_dir/$ac_word" "$@"
1743 if test -n "$CC"; then
1744 echo "$ac_t""$CC" 1>&6
1746 echo "$ac_t""no" 1>&6
1749 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1752 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1753 echo "configure:1754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1757 ac_cpp='$CPP $CPPFLAGS'
1758 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1759 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1760 cross_compiling=$ac_cv_prog_cc_cross
1762 cat > conftest.$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1767 if { (eval echo configure:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1768 ac_cv_prog_cc_works=yes
1769 # If we can't run a trivial program, we are probably using a cross compiler.
1770 if (./conftest; exit) 2>/dev/null; then
1771 ac_cv_prog_cc_cross=no
1773 ac_cv_prog_cc_cross=yes
1776 echo "configure: failed program was:" >&5
1777 cat conftest.$ac_ext >&5
1778 ac_cv_prog_cc_works=no
1782 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1783 if test $ac_cv_prog_cc_works = no; then
1784 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1786 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1787 echo "configure:1788: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1788 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1789 cross_compiling=$ac_cv_prog_cc_cross
1791 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1792 echo "configure:1793: checking whether we are using GNU C" >&5
1793 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1796 cat > conftest.c <<EOF
1801 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1808 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1810 if test $ac_cv_prog_gcc = yes; then
1812 ac_test_CFLAGS="${CFLAGS+set}"
1813 ac_save_CFLAGS="$CFLAGS"
1815 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1816 echo "configure:1817: checking whether ${CC-cc} accepts -g" >&5
1817 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 echo 'void f(){}' > conftest.c
1821 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1830 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1831 if test "$ac_test_CFLAGS" = set; then
1832 CFLAGS="$ac_save_CFLAGS"
1833 elif test $ac_cv_prog_cc_g = yes; then
1840 test "${CFLAGS+set}" = set || CFLAGS="-g"
1843 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1844 if test "${with_gnu_ld+set}" = set; then
1845 withval="$with_gnu_ld"
1846 test "$withval" = no || with_gnu_ld=yes
1853 if test "$ac_cv_prog_gcc" = yes; then
1854 # Check if gcc -print-prog-name=ld gives a path.
1855 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1856 echo "configure:1857: checking for ld used by GCC" >&5
1857 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1859 # Accept absolute paths.
1861 test -z "$LD" && LD="$ac_prog"
1864 # If it fails, then pretend we aren't using GCC.
1868 # If it is relative, then search for the first ld in PATH.
1872 elif test "$with_gnu_ld" = yes; then
1873 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1874 echo "configure:1875: checking for GNU ld" >&5
1876 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1877 echo "configure:1878: checking for non-GNU ld" >&5
1879 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1882 if test -z "$LD"; then
1883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1884 for ac_dir in $PATH; do
1885 test -z "$ac_dir" && ac_dir=.
1886 if test -f "$ac_dir/$ac_prog"; then
1887 ac_cv_path_LD="$ac_dir/$ac_prog"
1888 # Check to see if the program is GNU ld. I'd rather use --version,
1889 # but apparently some GNU ld's only accept -v.
1890 # Break only if it was the GNU/non-GNU ld that we prefer.
1891 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1892 test "$with_gnu_ld" != no && break
1894 test "$with_gnu_ld" != yes && break
1900 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1905 if test -n "$LD"; then
1906 echo "$ac_t""$LD" 1>&6
1908 echo "$ac_t""no" 1>&6
1910 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1912 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1913 echo "configure:1914: checking if the linker ($LD) is GNU ld" >&5
1914 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1917 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1918 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1919 ac_cv_prog_gnu_ld=yes
1921 ac_cv_prog_gnu_ld=no
1925 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1928 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1929 echo "configure:1930: checking for BSD-compatible nm" >&5
1930 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1935 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1939 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1940 test -z "$ac_dir" && ac_dir=.
1941 if test -f $ac_dir/nm; then
1942 # Check to see if the nm accepts a BSD-compat flag.
1943 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1944 # nm: unknown option "B" ignored
1945 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1946 ac_cv_path_NM="$ac_dir/nm -B"
1947 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1948 ac_cv_path_NM="$ac_dir/nm -p"
1950 ac_cv_path_NM="$ac_dir/nm"
1956 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1962 echo "$ac_t""$NM" 1>&6
1965 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1966 echo "configure:1967: checking whether ln -s works" >&5
1967 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1971 if ln -s X conftestdata 2>/dev/null
1974 ac_cv_prog_LN_S="ln -s"
1979 LN_S="$ac_cv_prog_LN_S"
1980 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1981 echo "$ac_t""yes" 1>&6
1983 echo "$ac_t""no" 1>&6
1986 # Always use our own libtool.
1987 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1989 # Check for any special flags to pass to ltconfig.
1991 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1992 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1993 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1994 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1995 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1997 # Some flags need to be propagated to the compiler or linker for good
2001 # Find out which ABI we are using.
2002 echo '#line 2003 "configure"' > conftest.$ac_ext
2003 if { (eval echo configure:2004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2004 case "`/usr/bin/file conftest.o`" in
2020 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2021 CFLAGS="$CFLAGS -belf"
2025 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2026 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2027 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2028 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2029 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2030 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2033 # Extract the first word of "sendmail", so it can be a program name with args.
2034 set dummy sendmail; ac_word=$2
2035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2036 echo "configure:2037: checking for $ac_word" >&5
2037 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2042 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2046 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
2047 test -z "$ac_dir" && ac_dir=.
2048 if test -f $ac_dir/$ac_word; then
2049 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2054 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2058 SENDMAIL="$ac_cv_path_SENDMAIL"
2059 if test -n "$SENDMAIL"; then
2060 echo "$ac_t""$SENDMAIL" 1>&6
2062 echo "$ac_t""no" 1>&6
2065 # Extract the first word of "vi", so it can be a program name with args.
2066 set dummy vi; ac_word=$2
2067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2068 echo "configure:2069: checking for $ac_word" >&5
2069 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2074 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2078 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2079 test -z "$ac_dir" && ac_dir=.
2080 if test -f $ac_dir/$ac_word; then
2081 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2086 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2090 EDITOR="$ac_cv_path_EDITOR"
2091 if test -n "$EDITOR"; then
2092 echo "$ac_t""$EDITOR" 1>&6
2094 echo "$ac_t""no" 1>&6
2097 # Extract the first word of "finger", so it can be a program name with args.
2098 set dummy finger; ac_word=$2
2099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2100 echo "configure:2101: checking for $ac_word" >&5
2101 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2106 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2110 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
2111 test -z "$ac_dir" && ac_dir=.
2112 if test -f $ac_dir/$ac_word; then
2113 ac_cv_path_FINGER="$ac_dir/$ac_word"
2118 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2122 FINGER="$ac_cv_path_FINGER"
2123 if test -n "$FINGER"; then
2124 echo "$ac_t""$FINGER" 1>&6
2126 echo "$ac_t""no" 1>&6
2131 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2132 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2134 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2135 echo "configure: warning: programs compiled here do run here..." 1>&2
2136 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2138 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2139 echo "configure: warning: programs compiled here do not run here..." 1>&2
2140 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2143 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2144 echo "configure:2145: checking how to run the C preprocessor" >&5
2145 # On Suns, sometimes $CPP names a directory.
2146 if test -n "$CPP" && test -d "$CPP"; then
2149 if test -z "$CPP"; then
2150 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 # This must be in double quotes, not single quotes, because CPP may get
2154 # substituted into the Makefile and "${CC-cc}" will confuse make.
2156 # On the NeXT, cc -E runs the code through the compiler's parser,
2157 # not just through cpp.
2158 cat > conftest.$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2165 { (eval echo configure:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2166 ac_err=`grep -v '^ *+' conftest.out`
2167 if test -z "$ac_err"; then
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2174 CPP="${CC-cc} -E -traditional-cpp"
2175 cat > conftest.$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2182 { (eval echo configure:2183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2183 ac_err=`grep -v '^ *+' conftest.out`
2184 if test -z "$ac_err"; then
2188 echo "configure: failed program was:" >&5
2189 cat conftest.$ac_ext >&5
2196 ac_cv_prog_CPP="$CPP"
2198 CPP="$ac_cv_prog_CPP"
2200 ac_cv_prog_CPP="$CPP"
2202 echo "$ac_t""$CPP" 1>&6
2205 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2206 echo "configure:2207: checking for AIX" >&5
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2216 egrep "yes" >/dev/null 2>&1; then
2218 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2219 #define _ALL_SOURCE 1
2224 echo "$ac_t""no" 1>&6
2229 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2230 echo "configure:2231: checking for POSIXized ISC" >&5
2231 if test -d /etc/conf/kconfig.d &&
2232 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2234 echo "$ac_t""yes" 1>&6
2235 ISC=yes # If later tests want to check for ISC.
2236 cat >> confdefs.h <<\EOF
2237 #define _POSIX_SOURCE 1
2240 if test "$GCC" = yes; then
2246 echo "$ac_t""no" 1>&6
2250 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2251 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2252 echo "configure:2253: checking for minix/config.h" >&5
2253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2259 #include <minix/config.h>
2261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2262 { (eval echo configure:2263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2263 ac_err=`grep -v '^ *+' conftest.out`
2264 if test -z "$ac_err"; then
2266 eval "ac_cv_header_$ac_safe=yes"
2269 echo "configure: failed program was:" >&5
2270 cat conftest.$ac_ext >&5
2272 eval "ac_cv_header_$ac_safe=no"
2276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2277 echo "$ac_t""yes" 1>&6
2280 echo "$ac_t""no" 1>&6
2284 if test "$MINIX" = yes; then
2285 cat >> confdefs.h <<\EOF
2286 #define _POSIX_SOURCE 1
2289 cat >> confdefs.h <<\EOF
2290 #define _POSIX_1_SOURCE 2
2293 cat >> confdefs.h <<\EOF
2303 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2304 echo "configure:2305: checking for ${CC-cc} option to accept ANSI C" >&5
2305 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 am_cv_prog_cc_stdc=no
2310 # Don't try gcc -ansi; that turns off useful extensions and
2311 # breaks some systems' header files.
2312 # AIX -qlanglvl=ansi
2313 # Ultrix and OSF/1 -std1
2314 # HP-UX -Aa -D_HPUX_SOURCE
2315 # SVR4 -Xc -D__EXTENSIONS__
2316 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2318 CC="$ac_save_CC $ac_arg"
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2324 #include <sys/types.h>
2325 #include <sys/stat.h>
2326 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2327 struct buf { int x; };
2328 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2329 static char *e (p, i)
2335 static char *f (char * (*g) (char **, int), char **p, ...)
2340 s = g (p, va_arg (v,int));
2344 int test (int i, double x);
2345 struct s1 {int (*f) (int a);};
2346 struct s2 {int (*f) (double a);};
2347 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2353 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2357 if { (eval echo configure:2358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2359 am_cv_prog_cc_stdc="$ac_arg"; break
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2370 if test -z "$am_cv_prog_cc_stdc"; then
2371 echo "$ac_t""none needed" 1>&6
2373 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
2375 case "x$am_cv_prog_cc_stdc" in
2377 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2380 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
2381 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
2387 echo $ac_n "checking for socket""... $ac_c" 1>&6
2388 echo "configure:2389: checking for socket" >&5
2389 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 cat > conftest.$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2395 /* System header to define __stub macros and hopefully few prototypes,
2396 which can conflict with char socket(); below. */
2398 /* Override any gcc2 internal prototype to avoid an error. */
2399 /* We use char because int might match the return type of a gcc2
2400 builtin and then its argument prototype would still apply. */
2405 /* The GNU C library defines this for functions which it implements
2406 to always fail with ENOSYS. Some functions are actually named
2407 something starting with __ and the normal name is an alias. */
2408 #if defined (__stub_socket) || defined (__stub___socket)
2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2418 eval "ac_cv_func_socket=yes"
2420 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2423 eval "ac_cv_func_socket=no"
2428 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2429 echo "$ac_t""yes" 1>&6
2432 echo "$ac_t""no" 1>&6
2434 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2435 echo "configure:2436: checking for main in -lsocket" >&5
2436 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 ac_save_LIBS="$LIBS"
2441 LIBS="-lsocket $LIBS"
2442 cat > conftest.$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2450 if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2452 eval "ac_cv_lib_$ac_lib_var=yes"
2454 echo "configure: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2457 eval "ac_cv_lib_$ac_lib_var=no"
2460 LIBS="$ac_save_LIBS"
2463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2464 echo "$ac_t""yes" 1>&6
2465 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2466 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2467 cat >> confdefs.h <<EOF
2468 #define $ac_tr_lib 1
2471 LIBS="-lsocket $LIBS"
2474 echo "$ac_t""no" 1>&6
2477 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
2478 echo "configure:2479: checking for main in -lnet" >&5
2479 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
2480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 ac_save_LIBS="$LIBS"
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2493 if { (eval echo configure:2494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2495 eval "ac_cv_lib_$ac_lib_var=yes"
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2500 eval "ac_cv_lib_$ac_lib_var=no"
2503 LIBS="$ac_save_LIBS"
2506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2507 echo "$ac_t""yes" 1>&6
2508 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2509 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2510 cat >> confdefs.h <<EOF
2511 #define $ac_tr_lib 1
2517 echo "$ac_t""no" 1>&6
2520 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
2521 echo "configure:2522: checking for main in -lnsl_s" >&5
2522 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
2523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2526 ac_save_LIBS="$LIBS"
2527 LIBS="-lnsl_s $LIBS"
2528 cat > conftest.$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2536 if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2538 eval "ac_cv_lib_$ac_lib_var=yes"
2540 echo "configure: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2543 eval "ac_cv_lib_$ac_lib_var=no"
2546 LIBS="$ac_save_LIBS"
2549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2550 echo "$ac_t""yes" 1>&6
2551 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2552 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2553 cat >> confdefs.h <<EOF
2554 #define $ac_tr_lib 1
2557 LIBS="-lnsl_s $LIBS"
2560 echo "$ac_t""no" 1>&6
2563 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2564 echo "configure:2565: checking for main in -lnsl" >&5
2565 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2569 ac_save_LIBS="$LIBS"
2571 cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2579 if { (eval echo configure:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2581 eval "ac_cv_lib_$ac_lib_var=yes"
2583 echo "configure: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2586 eval "ac_cv_lib_$ac_lib_var=no"
2589 LIBS="$ac_save_LIBS"
2592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2593 echo "$ac_t""yes" 1>&6
2594 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2595 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2596 cat >> confdefs.h <<EOF
2597 #define $ac_tr_lib 1
2603 echo "$ac_t""no" 1>&6
2606 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2607 echo "configure:2608: checking for socket in -linet" >&5
2608 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2612 ac_save_LIBS="$LIBS"
2614 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2617 /* Override any gcc2 internal prototype to avoid an error. */
2618 /* We use char because int might match the return type of a gcc2
2619 builtin and then its argument prototype would still apply. */
2626 if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2628 eval "ac_cv_lib_$ac_lib_var=yes"
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2633 eval "ac_cv_lib_$ac_lib_var=no"
2636 LIBS="$ac_save_LIBS"
2639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2640 echo "$ac_t""yes" 1>&6
2641 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2642 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2643 cat >> confdefs.h <<EOF
2644 #define $ac_tr_lib 1
2650 echo "$ac_t""no" 1>&6
2653 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2654 echo "configure:2655: checking for main in -lgen" >&5
2655 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 ac_save_LIBS="$LIBS"
2661 cat > conftest.$ac_ext <<EOF
2662 #line 2663 "configure"
2663 #include "confdefs.h"
2669 if { (eval echo configure:2670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2671 eval "ac_cv_lib_$ac_lib_var=yes"
2673 echo "configure: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2676 eval "ac_cv_lib_$ac_lib_var=no"
2679 LIBS="$ac_save_LIBS"
2682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2683 echo "$ac_t""yes" 1>&6
2684 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2686 cat >> confdefs.h <<EOF
2687 #define $ac_tr_lib 1
2693 echo "$ac_t""no" 1>&6
2700 for ac_func in res_search
2702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2703 echo "configure:2704: checking for $ac_func" >&5
2704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2707 cat > conftest.$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2710 /* System header to define __stub macros and hopefully few prototypes,
2711 which can conflict with char $ac_func(); below. */
2713 /* Override any gcc2 internal prototype to avoid an error. */
2714 /* We use char because int might match the return type of a gcc2
2715 builtin and then its argument prototype would still apply. */
2720 /* The GNU C library defines this for functions which it implements
2721 to always fail with ENOSYS. Some functions are actually named
2722 something starting with __ and the normal name is an alias. */
2723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2731 if { (eval echo configure:2732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2733 eval "ac_cv_func_$ac_func=yes"
2735 echo "configure: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2738 eval "ac_cv_func_$ac_func=no"
2743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2744 echo "$ac_t""yes" 1>&6
2745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2746 cat >> confdefs.h <<EOF
2747 #define $ac_tr_func 1
2751 echo "$ac_t""no" 1>&6
2755 if test $ac_cv_func_res_search = "no" ; then
2756 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
2757 echo "configure:2758: checking for res_search in -lbind" >&5
2758 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
2759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2762 ac_save_LIBS="$LIBS"
2764 cat > conftest.$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2767 /* Override any gcc2 internal prototype to avoid an error. */
2768 /* We use char because int might match the return type of a gcc2
2769 builtin and then its argument prototype would still apply. */
2776 if { (eval echo configure:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2778 eval "ac_cv_lib_$ac_lib_var=yes"
2780 echo "configure: failed program was:" >&5
2781 cat conftest.$ac_ext >&5
2783 eval "ac_cv_lib_$ac_lib_var=no"
2786 LIBS="$ac_save_LIBS"
2789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2790 echo "$ac_t""yes" 1>&6
2791 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2792 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2793 cat >> confdefs.h <<EOF
2794 #define $ac_tr_lib 1
2800 echo "$ac_t""no" 1>&6
2803 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
2804 cat >> confdefs.h <<\EOF
2805 #define HAVE_RES_SEARCH 1
2809 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
2810 echo "configure:2811: checking for res_search in -lresolv" >&5
2811 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
2812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2815 ac_save_LIBS="$LIBS"
2816 LIBS="-lresolv $LIBS"
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 /* Override any gcc2 internal prototype to avoid an error. */
2821 /* We use char because int might match the return type of a gcc2
2822 builtin and then its argument prototype would still apply. */
2829 if { (eval echo configure:2830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2831 eval "ac_cv_lib_$ac_lib_var=yes"
2833 echo "configure: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2836 eval "ac_cv_lib_$ac_lib_var=no"
2839 LIBS="$ac_save_LIBS"
2842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2843 echo "$ac_t""yes" 1>&6
2844 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2845 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2846 cat >> confdefs.h <<EOF
2847 #define $ac_tr_lib 1
2850 LIBS="-lresolv $LIBS"
2853 echo "$ac_t""no" 1>&6
2856 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
2857 cat >> confdefs.h <<\EOF
2858 #define HAVE_RES_SEARCH 1
2865 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2866 echo "configure:2867: checking for sigset in -lV3" >&5
2867 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 ac_save_LIBS="$LIBS"
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 /* Override any gcc2 internal prototype to avoid an error. */
2877 /* We use char because int might match the return type of a gcc2
2878 builtin and then its argument prototype would still apply. */
2885 if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2887 eval "ac_cv_lib_$ac_lib_var=yes"
2889 echo "configure: failed program was:" >&5
2890 cat conftest.$ac_ext >&5
2892 eval "ac_cv_lib_$ac_lib_var=no"
2895 LIBS="$ac_save_LIBS"
2898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2901 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2902 cat >> confdefs.h <<EOF
2903 #define $ac_tr_lib 1
2909 echo "$ac_t""no" 1>&6
2915 if test $ol_enable_ldapd != no ; then
2916 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
2917 echo "configure:2918: checking for main in -lxtpp" >&5
2918 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
2919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 ac_save_LIBS="$LIBS"
2923 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2932 if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2934 eval "ac_cv_lib_$ac_lib_var=yes"
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2939 eval "ac_cv_lib_$ac_lib_var=no"
2942 LIBS="$ac_save_LIBS"
2945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2946 echo "$ac_t""yes" 1>&6
2949 cat >> confdefs.h <<\EOF
2953 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
2956 echo "$ac_t""no" 1>&6
2960 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
2961 echo "configure:2962: checking for main in -ldsap" >&5
2962 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
2963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 ac_save_LIBS="$LIBS"
2967 LIBS="-ldsap -lisode $LIBS"
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2976 if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2978 eval "ac_cv_lib_$ac_lib_var=yes"
2980 echo "configure: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2983 eval "ac_cv_lib_$ac_lib_var=no"
2986 LIBS="$ac_save_LIBS"
2989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2990 echo "$ac_t""yes" 1>&6
2993 cat >> confdefs.h <<\EOF
2997 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3000 echo "$ac_t""no" 1>&6
3004 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3005 echo "configure:3006: checking for main in -lisode" >&5
3006 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 ac_save_LIBS="$LIBS"
3011 LIBS="-lisode $LIBS"
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3020 if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3022 eval "ac_cv_lib_$ac_lib_var=yes"
3024 echo "configure: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3027 eval "ac_cv_lib_$ac_lib_var=no"
3030 LIBS="$ac_save_LIBS"
3033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3034 echo "$ac_t""yes" 1>&6
3037 cat >> confdefs.h <<\EOF
3038 #define HAVE_ISODE 1
3041 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3044 echo "$ac_t""no" 1>&6
3050 if test $ol_link_isode != no; then
3051 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3052 echo "configure:3053: checking for main in -lpp" >&5
3053 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 ac_save_LIBS="$LIBS"
3059 cat > conftest.$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3067 if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3069 eval "ac_cv_lib_$ac_lib_var=yes"
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3074 eval "ac_cv_lib_$ac_lib_var=no"
3077 LIBS="$ac_save_LIBS"
3080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3081 echo "$ac_t""yes" 1>&6
3083 cat >> confdefs.h <<\EOF
3087 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3090 echo "$ac_t""no" 1>&6
3095 # Extract the first word of "pepsy", so it can be a program name with args.
3096 set dummy pepsy; ac_word=$2
3097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3098 echo "configure:3099: checking for $ac_word" >&5
3099 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3104 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3108 for ac_dir in $PATH; do
3109 test -z "$ac_dir" && ac_dir=.
3110 if test -f $ac_dir/$ac_word; then
3111 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3119 PEPSY="$ac_cv_path_PEPSY"
3120 if test -n "$PEPSY"; then
3121 echo "$ac_t""$PEPSY" 1>&6
3123 echo "$ac_t""no" 1>&6
3130 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3131 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3135 echo "configure:3136: checking for $ac_hdr" >&5
3136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3137 echo $ac_n "(cached) $ac_c" 1>&6
3139 cat > conftest.$ac_ext <<EOF
3140 #line 3141 "configure"
3141 #include "confdefs.h"
3144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3145 { (eval echo configure:3146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3146 ac_err=`grep -v '^ *+' conftest.out`
3147 if test -z "$ac_err"; then
3149 eval "ac_cv_header_$ac_safe=yes"
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3155 eval "ac_cv_header_$ac_safe=no"
3159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3160 echo "$ac_t""yes" 1>&6
3161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3162 cat >> confdefs.h <<EOF
3163 #define $ac_tr_hdr 1
3167 echo "$ac_t""no" 1>&6
3172 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3173 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3174 echo "configure:3175: checking for main in -lkrb4" >&5
3175 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 ac_save_LIBS="$LIBS"
3180 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3189 if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3191 eval "ac_cv_lib_$ac_lib_var=yes"
3193 echo "configure: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3196 eval "ac_cv_lib_$ac_lib_var=no"
3199 LIBS="$ac_save_LIBS"
3202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3203 echo "$ac_t""yes" 1>&6
3206 echo "$ac_t""no" 1>&6
3211 if test $have_k5 = yes ; then
3212 ol_with_kerberos=found
3213 ol_link_kerberos=yes
3215 cat >> confdefs.h <<\EOF
3216 #define HAVE_KERBEROS 1
3219 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3224 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
3225 for ac_hdr in krb.h des.h
3227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3229 echo "configure:3230: checking for $ac_hdr" >&5
3230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3239 { (eval echo configure:3240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3240 ac_err=`grep -v '^ *+' conftest.out`
3241 if test -z "$ac_err"; then
3243 eval "ac_cv_header_$ac_safe=yes"
3246 echo "configure: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3249 eval "ac_cv_header_$ac_safe=no"
3253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3254 echo "$ac_t""yes" 1>&6
3255 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3256 cat >> confdefs.h <<EOF
3257 #define $ac_tr_hdr 1
3261 echo "$ac_t""no" 1>&6
3266 if test $ac_cv_header_krb_h = yes ; then
3267 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
3268 echo "configure:3269: checking for main in -lkrb" >&5
3269 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
3270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 ac_save_LIBS="$LIBS"
3274 LIBS="-lkrb -ldes $LIBS"
3275 cat > conftest.$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3283 if { (eval echo configure:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3285 eval "ac_cv_lib_$ac_lib_var=yes"
3287 echo "configure: failed program was:" >&5
3288 cat conftest.$ac_ext >&5
3290 eval "ac_cv_lib_$ac_lib_var=no"
3293 LIBS="$ac_save_LIBS"
3296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3297 echo "$ac_t""yes" 1>&6
3300 echo "$ac_t""no" 1>&6
3305 if test $have_k4 = yes ; then
3306 ol_with_kerberos=found
3307 ol_link_kerberos=yes
3309 cat >> confdefs.h <<\EOF
3310 #define HAVE_KERBEROS 1
3313 KRB_LIBS="-lkrb -ldes"
3320 if test $ol_with_threads = auto -o $ol_with_threads = yes \
3321 -o $ol_with_threads = posix ; then
3323 for ac_hdr in pthread.h sched.h
3325 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3327 echo "configure:3328: checking for $ac_hdr" >&5
3328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3331 cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3337 { (eval echo configure:3338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3338 ac_err=`grep -v '^ *+' conftest.out`
3339 if test -z "$ac_err"; then
3341 eval "ac_cv_header_$ac_safe=yes"
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3347 eval "ac_cv_header_$ac_safe=no"
3351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3352 echo "$ac_t""yes" 1>&6
3353 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3354 cat >> confdefs.h <<EOF
3355 #define $ac_tr_hdr 1
3359 echo "$ac_t""no" 1>&6
3364 if test $ac_cv_header_pthread_h = yes ; then
3365 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
3366 echo "configure:3367: checking POSIX thread version" >&5
3367 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3375 # include <pthread.h>
3376 /* this check could be improved */
3377 # ifdef PTHREAD_ONCE_INIT
3378 pthread_version_final
3382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3383 egrep "pthread_version_final" >/dev/null 2>&1; then
3385 ol_pthread_final=yes
3393 cat > conftest.$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3397 # include <pthread.h>
3398 /* this check could be improved */
3399 # ifdef pthread_once_init
3400 pthread_version_draft4
3404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3405 egrep "pthread_version_draft4" >/dev/null 2>&1; then
3407 ol_pthread_draft4=yes
3410 ol_pthread_draft4=no
3415 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
3416 ol_cv_pthread_version=final
3417 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
3418 ol_cv_pthread_version=draft4
3420 ol_cv_pthread_version=unknown
3425 echo "$ac_t""$ol_cv_pthread_version" 1>&6
3428 if test $ol_cv_pthread_version = final ; then
3429 cat >> confdefs.h <<\EOF
3430 #define HAVE_PTHREADS_FINAL 1
3433 elif test $ol_cv_pthread_version = draft4 ; then
3434 cat >> confdefs.h <<\EOF
3435 #define HAVE_PTHREADS_D4 1
3439 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
3442 # consider threads found
3443 ol_with_threads=found
3446 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
3447 echo "configure:3448: checking for LinuxThreads" >&5
3448 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3452 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
3453 if test "$res" -gt 0 ; then
3454 ol_cv_linux_threads=yes
3456 ol_cv_linux_threads=no
3461 echo "$ac_t""$ol_cv_linux_threads" 1>&6
3464 if test $ol_cv_linux_threads = yes ; then
3465 cat >> confdefs.h <<\EOF
3466 #define HAVE_LINUX_THREADS 1
3472 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
3473 echo "configure:3474: checking for pthread_create" >&5
3474 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3477 cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 /* System header to define __stub macros and hopefully few prototypes,
3481 which can conflict with char pthread_create(); below. */
3483 /* Override any gcc2 internal prototype to avoid an error. */
3484 /* We use char because int might match the return type of a gcc2
3485 builtin and then its argument prototype would still apply. */
3486 char pthread_create();
3490 /* The GNU C library defines this for functions which it implements
3491 to always fail with ENOSYS. Some functions are actually named
3492 something starting with __ and the normal name is an alias. */
3493 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
3501 if { (eval echo configure:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3503 eval "ac_cv_func_pthread_create=yes"
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3508 eval "ac_cv_func_pthread_create=no"
3513 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3517 echo "$ac_t""no" 1>&6
3521 if test $ol_link_threads = no ; then
3522 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
3523 echo "configure:3524: checking for pthread_create with -pthread" >&5
3524 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3529 LIBS="-pthread $LIBS"
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3540 if { (eval echo configure:3541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3542 ol_cv_pthread_flag=yes
3544 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3547 ol_cv_pthread_flag=no
3554 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
3556 if test $ol_cv_pthread_flag = yes ; then
3557 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
3558 ol_link_threads=posix
3562 if test $ol_link_threads = no ; then
3563 echo $ac_n "checking for pthread_create with -pthreads""... $ac_c" 1>&6
3564 echo "configure:3565: checking for pthread_create with -pthreads" >&5
3565 if eval "test \"`echo '$''{'ol_cv_pthreads_flag'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3570 LIBS="-pthreads $LIBS"
3571 cat > conftest.$ac_ext <<EOF
3572 #line 3573 "configure"
3573 #include "confdefs.h"
3581 if { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3583 ol_cv_pthreads_flag=yes
3585 echo "configure: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3588 ol_cv_pthreads_flag=no
3595 echo "$ac_t""$ol_cv_pthreads_flag" 1>&6
3597 if test $ol_cv_pthreads_flag = yes ; then
3598 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
3599 ol_link_threads=posix
3603 if test $ol_link_threads = no ; then
3604 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
3605 echo "configure:3606: checking for pthread_create with -thread" >&5
3606 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
3607 echo $ac_n "(cached) $ac_c" 1>&6
3611 LIBS="-thread $LIBS"
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3622 if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3624 ol_cv_thread_flag=yes
3626 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3629 ol_cv_thread_flag=no
3636 echo "$ac_t""$ol_cv_thread_flag" 1>&6
3638 if test $ol_cv_thread_flag = yes ; then
3639 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
3640 ol_link_threads=posix
3644 if test $ol_link_threads = no ; then
3646 echo $ac_n "checking for pthread_mutex_lock in -lpthread""... $ac_c" 1>&6
3647 echo "configure:3648: checking for pthread_mutex_lock in -lpthread" >&5
3648 ac_lib_var=`echo pthread'_'pthread_mutex_lock | sed 'y%./+-%__p_%'`
3649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 ac_save_LIBS="$LIBS"
3653 LIBS="-lpthread -lexc $LIBS"
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 /* Override any gcc2 internal prototype to avoid an error. */
3658 /* We use char because int might match the return type of a gcc2
3659 builtin and then its argument prototype would still apply. */
3660 char pthread_mutex_lock();
3663 pthread_mutex_lock()
3666 if { (eval echo configure:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3668 eval "ac_cv_lib_$ac_lib_var=yes"
3670 echo "configure: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3673 eval "ac_cv_lib_$ac_lib_var=no"
3676 LIBS="$ac_save_LIBS"
3679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3680 echo "$ac_t""yes" 1>&6
3682 ol_link_threads=posix
3683 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
3684 if test $ol_with_yielding_select = auto ; then
3685 ol_with_yielding_select=yes
3689 echo "$ac_t""no" 1>&6
3695 if test $ol_link_threads = no ; then
3697 echo $ac_n "checking for pthread_mutex_unlock in -lpthreads""... $ac_c" 1>&6
3698 echo "configure:3699: checking for pthread_mutex_unlock in -lpthreads" >&5
3699 ac_lib_var=`echo pthreads'_'pthread_mutex_unlock | sed 'y%./+-%__p_%'`
3700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 ac_save_LIBS="$LIBS"
3704 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3711 char pthread_mutex_unlock();
3714 pthread_mutex_unlock()
3717 if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3719 eval "ac_cv_lib_$ac_lib_var=yes"
3721 echo "configure: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3724 eval "ac_cv_lib_$ac_lib_var=no"
3727 LIBS="$ac_save_LIBS"
3730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3731 echo "$ac_t""yes" 1>&6
3733 ol_link_threads=posix
3734 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
3735 if test $ol_with_yielding_select = auto ; then
3736 ol_with_yielding_select=yes
3740 echo "$ac_t""no" 1>&6
3746 if test $ol_link_threads = no ; then
3748 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3749 echo "configure:3750: checking for pthread_create in -lpthread" >&5
3750 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 ac_save_LIBS="$LIBS"
3755 LIBS="-lpthread $LIBS"
3756 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3759 /* Override any gcc2 internal prototype to avoid an error. */
3760 /* We use char because int might match the return type of a gcc2
3761 builtin and then its argument prototype would still apply. */
3762 char pthread_create();
3768 if { (eval echo configure:3769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3770 eval "ac_cv_lib_$ac_lib_var=yes"
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3775 eval "ac_cv_lib_$ac_lib_var=no"
3778 LIBS="$ac_save_LIBS"
3781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3784 ol_link_threads=posix
3785 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
3787 echo "$ac_t""no" 1>&6
3793 if test $ol_link_threads = no ; then
3795 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3796 echo "configure:3797: checking for pthread_create in -lc_r" >&5
3797 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3801 ac_save_LIBS="$LIBS"
3803 cat > conftest.$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 /* Override any gcc2 internal prototype to avoid an error. */
3807 /* We use char because int might match the return type of a gcc2
3808 builtin and then its argument prototype would still apply. */
3809 char pthread_create();
3815 if { (eval echo configure:3816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3817 eval "ac_cv_lib_$ac_lib_var=yes"
3819 echo "configure: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3822 eval "ac_cv_lib_$ac_lib_var=no"
3825 LIBS="$ac_save_LIBS"
3828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3829 echo "$ac_t""yes" 1>&6
3831 ol_link_threads=posix
3832 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
3834 echo "$ac_t""no" 1>&6
3840 if test $ol_link_threads = no ; then
3842 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
3843 echo "configure:3844: checking for pthread_create in -lpthreads" >&5
3844 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
3845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 ac_save_LIBS="$LIBS"
3849 LIBS="-lpthreads $LIBS"
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3853 /* Override any gcc2 internal prototype to avoid an error. */
3854 /* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */
3856 char pthread_create();
3862 if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3864 eval "ac_cv_lib_$ac_lib_var=yes"
3866 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3869 eval "ac_cv_lib_$ac_lib_var=no"
3872 LIBS="$ac_save_LIBS"
3875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3876 echo "$ac_t""yes" 1>&6
3878 ol_link_threads=posix
3879 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
3881 echo "$ac_t""no" 1>&6
3887 if test $ol_link_threads = no ; then
3889 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
3890 echo "configure:3891: checking for pthread_join in -lpthreads" >&5
3891 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
3892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6
3895 ac_save_LIBS="$LIBS"
3896 LIBS="-lpthreads $LIBS"
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 /* Override any gcc2 internal prototype to avoid an error. */
3901 /* We use char because int might match the return type of a gcc2
3902 builtin and then its argument prototype would still apply. */
3903 char pthread_join();
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3911 eval "ac_cv_lib_$ac_lib_var=yes"
3913 echo "configure: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3916 eval "ac_cv_lib_$ac_lib_var=no"
3919 LIBS="$ac_save_LIBS"
3922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3923 echo "$ac_t""yes" 1>&6
3925 ol_link_threads=posix
3926 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
3929 echo "$ac_t""no" 1>&6
3936 if test $ol_link_threads = no; then
3938 LIBS="$LIBS -lpthread"
3939 echo $ac_n "checking for pthread_create() in HP-UX -lpthread""... $ac_c" 1>&6
3940 echo "configure:3941: checking for pthread_create() in HP-UX -lpthread" >&5
3941 ol_try_pthread_hpux_11=no
3942 if eval "test \"`echo '$''{'ol_cv_pthread_hpux_11'+set}'`\" = set"; then
3943 echo $ac_n "(cached) $ac_c" 1>&6
3946 cat > conftest.$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3950 #include <pthread.h>
3952 #ifndef ELFABI_HPUX_REL11
3957 pthread_create(NULL, NULL, NULL, NULL);
3960 if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3962 ol_try_pthread_hpux_11=yes
3963 ol_cv_pthread_hpux_11=yes
3965 echo "configure: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3968 ol_cv_pthread_hpux_11=no
3973 echo "$ac_t""yes" 1>&6
3976 if test $ol_cv_pthread_hpux_11=yes ; then
3977 ol_link_threads=posix
3978 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
3979 if test $ol_try_pthread_hpux_11=yes ; then
3980 ac_cv_func_pthread_attr_init=yes
3985 if test $ol_link_threads != no ; then
3986 cat >> confdefs.h <<\EOF
3987 #define HAVE_PTHREADS 1
3991 save_CPPFLAGS="$CPPFLAGS"
3993 LIBS="$LTHREAD_LIBS $LIBS"
3995 for ac_func in sched_yield pthread_yield
3997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3998 echo "configure:3999: checking for $ac_func" >&5
3999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4002 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4005 /* System header to define __stub macros and hopefully few prototypes,
4006 which can conflict with char $ac_func(); below. */
4008 /* Override any gcc2 internal prototype to avoid an error. */
4009 /* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4015 /* The GNU C library defines this for functions which it implements
4016 to always fail with ENOSYS. Some functions are actually named
4017 something starting with __ and the normal name is an alias. */
4018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4026 if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4028 eval "ac_cv_func_$ac_func=yes"
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4033 eval "ac_cv_func_$ac_func=no"
4038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4039 echo "$ac_t""yes" 1>&6
4040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4041 cat >> confdefs.h <<EOF
4042 #define $ac_tr_func 1
4046 echo "$ac_t""no" 1>&6
4051 if test $ac_cv_func_sched_yield = no -a \
4052 $ac_cv_func_pthread_yield = no ; then
4053 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4054 echo "configure:4055: checking for sched_yield in -lrt" >&5
4055 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4059 ac_save_LIBS="$LIBS"
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4064 /* Override any gcc2 internal prototype to avoid an error. */
4065 /* We use char because int might match the return type of a gcc2
4066 builtin and then its argument prototype would still apply. */
4073 if { (eval echo configure:4074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4075 eval "ac_cv_lib_$ac_lib_var=yes"
4077 echo "configure: failed program was:" >&5
4078 cat conftest.$ac_ext >&5
4080 eval "ac_cv_lib_$ac_lib_var=no"
4083 LIBS="$ac_save_LIBS"
4086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4087 echo "$ac_t""yes" 1>&6
4088 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
4089 cat >> confdefs.h <<\EOF
4090 #define HAVE_SCHED_YIELD 1
4093 ac_cv_func_sched_yield=yes
4095 echo "$ac_t""no" 1>&6
4096 ac_cv_func_sched_yield=no
4100 if test $ac_cv_func_sched_yield = no -a \
4101 $ac_cv_func_pthread_yield = no ; then
4102 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4103 echo "configure:4104: checking for sched_yield in -lposix4" >&5
4104 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4108 ac_save_LIBS="$LIBS"
4109 LIBS="-lposix4 $LIBS"
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 /* Override any gcc2 internal prototype to avoid an error. */
4114 /* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4122 if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4124 eval "ac_cv_lib_$ac_lib_var=yes"
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4129 eval "ac_cv_lib_$ac_lib_var=no"
4132 LIBS="$ac_save_LIBS"
4135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4136 echo "$ac_t""yes" 1>&6
4137 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
4138 cat >> confdefs.h <<\EOF
4139 #define HAVE_SCHED_YIELD 1
4142 ac_cv_func_sched_yield=yes
4144 echo "$ac_t""no" 1>&6
4145 ac_cv_func_sched_yield=no
4149 if test $ac_cv_func_sched_yield = no -a \
4150 $ac_cv_func_pthread_yield = no ; then
4151 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
4154 for ac_func in pthread_kill pthread_detach
4156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4157 echo "configure:4158: checking for $ac_func" >&5
4158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4161 cat > conftest.$ac_ext <<EOF
4162 #line 4163 "configure"
4163 #include "confdefs.h"
4164 /* System header to define __stub macros and hopefully few prototypes,
4165 which can conflict with char $ac_func(); below. */
4167 /* Override any gcc2 internal prototype to avoid an error. */
4168 /* We use char because int might match the return type of a gcc2
4169 builtin and then its argument prototype would still apply. */
4174 /* The GNU C library defines this for functions which it implements
4175 to always fail with ENOSYS. Some functions are actually named
4176 something starting with __ and the normal name is an alias. */
4177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4185 if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4187 eval "ac_cv_func_$ac_func=yes"
4189 echo "configure: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4192 eval "ac_cv_func_$ac_func=no"
4197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4198 echo "$ac_t""yes" 1>&6
4199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4200 cat >> confdefs.h <<EOF
4201 #define $ac_tr_func 1
4205 echo "$ac_t""no" 1>&6
4211 pthread_attr_create pthread_attr_init \
4212 pthread_attr_destroy pthread_attr_delete \
4213 pthread_attr_setdetachstate pthread_attr_setdetach_np \
4216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4217 echo "configure:4218: checking for $ac_func" >&5
4218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4224 /* System header to define __stub macros and hopefully few prototypes,
4225 which can conflict with char $ac_func(); below. */
4227 /* Override any gcc2 internal prototype to avoid an error. */
4228 /* We use char because int might match the return type of a gcc2
4229 builtin and then its argument prototype would still apply. */
4234 /* The GNU C library defines this for functions which it implements
4235 to always fail with ENOSYS. Some functions are actually named
4236 something starting with __ and the normal name is an alias. */
4237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4247 eval "ac_cv_func_$ac_func=yes"
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4252 eval "ac_cv_func_$ac_func=no"
4257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4258 echo "$ac_t""yes" 1>&6
4259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4260 cat >> confdefs.h <<EOF
4261 #define $ac_tr_func 1
4265 echo "$ac_t""no" 1>&6
4271 pthread_setconcurrency \
4272 thr_setconcurrency \
4275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4276 echo "configure:4277: checking for $ac_func" >&5
4277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 /* System header to define __stub macros and hopefully few prototypes,
4284 which can conflict with char $ac_func(); below. */
4286 /* Override any gcc2 internal prototype to avoid an error. */
4287 /* We use char because int might match the return type of a gcc2
4288 builtin and then its argument prototype would still apply. */
4293 /* The GNU C library defines this for functions which it implements
4294 to always fail with ENOSYS. Some functions are actually named
4295 something starting with __ and the normal name is an alias. */
4296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4304 if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4306 eval "ac_cv_func_$ac_func=yes"
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4311 eval "ac_cv_func_$ac_func=no"
4316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4317 echo "$ac_t""yes" 1>&6
4318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4319 cat >> confdefs.h <<EOF
4320 #define $ac_tr_func 1
4324 echo "$ac_t""no" 1>&6
4329 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
4330 echo "configure:4331: checking if pthread_create() works" >&5
4331 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4335 if test "$cross_compiling" = yes; then
4336 ol_cv_pthread_create_works=yes
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4342 #include <pthread.h>
4344 #define NULL (void*)0
4347 static void *task(p)
4350 return (void *) (p == NULL);
4353 int main(argc, argv)
4358 exit(pthread_create(&t, NULL, task, NULL));
4362 if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4364 ol_cv_pthread_create_works=yes
4366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4369 ol_cv_pthread_create_works=no
4376 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
4378 if test $ol_cv_pthread_create_works = no ; then
4379 { echo "configure: error: pthread.h and pthread_create are not compatible" 1>&2; exit 1; }
4382 if test $ol_with_yielding_select = auto ; then
4383 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
4384 echo "configure:4385: checking if select yields when using pthreads" >&5
4385 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4389 if test "$cross_compiling" = yes; then
4391 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
4393 cat > conftest.$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4397 #include <sys/types.h>
4398 #include <sys/time.h>
4400 #include <pthread.h>
4402 #define NULL (void*) 0
4405 static int fildes[2];
4407 static void *task(p)
4419 FD_SET(fildes[0], &rfds);
4421 /* we're not interested in any fds */
4422 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
4429 exit(0); /* if we exit here, the select blocked the whole process */
4432 int main(argc, argv)
4438 /* create a pipe to select */
4439 if(pipe(&fildes[0])) {
4444 #ifdef HAVE_PTHREAD_SETCONCURRENCY
4445 (void) pthread_setconcurrency(2);
4447 #ifdef HAVE_THR_SETCONCURRENCY
4448 /* Set Solaris LWP concurrency to 2 */
4449 thr_setconcurrency(2);
4453 pthread_create(&t, NULL, task, NULL);
4455 #if HAVE_SCHED_YIELD
4456 sched_yield(); /* make sure task runs first */
4458 #ifdef HAVE_PTHREAD_YIELD
4459 pthread_yield(); /* make sure task runs first */
4466 if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4468 ol_cv_pthread_select_yields=no
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4473 ol_cv_pthread_select_yields=yes
4480 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
4482 if test $ol_cv_pthread_select_yields = yes ; then
4483 ol_with_yielding_select=yes
4487 CPPFLAGS="$save_CPPFLAGS"
4490 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
4494 if test $ol_with_threads = posix ; then
4495 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
4499 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4500 -o $ol_with_threads = mach ; then
4502 for ac_hdr in mach/cthreads.h
4504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4506 echo "configure:4507: checking for $ac_hdr" >&5
4507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4516 { (eval echo configure:4517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4517 ac_err=`grep -v '^ *+' conftest.out`
4518 if test -z "$ac_err"; then
4520 eval "ac_cv_header_$ac_safe=yes"
4523 echo "configure: failed program was:" >&5
4524 cat conftest.$ac_ext >&5
4526 eval "ac_cv_header_$ac_safe=no"
4530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4531 echo "$ac_t""yes" 1>&6
4532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4533 cat >> confdefs.h <<EOF
4534 #define $ac_tr_hdr 1
4538 echo "$ac_t""no" 1>&6
4542 if test $ac_cv_header_mach_cthreads_h = yes ; then
4543 ol_with_threads=found
4545 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
4546 echo "configure:4547: checking for cthread_fork" >&5
4547 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
4548 echo $ac_n "(cached) $ac_c" 1>&6
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4553 /* System header to define __stub macros and hopefully few prototypes,
4554 which can conflict with char cthread_fork(); below. */
4556 /* Override any gcc2 internal prototype to avoid an error. */
4557 /* We use char because int might match the return type of a gcc2
4558 builtin and then its argument prototype would still apply. */
4559 char cthread_fork();
4563 /* The GNU C library defines this for functions which it implements
4564 to always fail with ENOSYS. Some functions are actually named
4565 something starting with __ and the normal name is an alias. */
4566 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
4574 if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4576 eval "ac_cv_func_cthread_fork=yes"
4578 echo "configure: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4581 eval "ac_cv_func_cthread_fork=no"
4586 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
4587 echo "$ac_t""yes" 1>&6
4590 echo "$ac_t""no" 1>&6
4594 if test $ol_link_threads = no ; then
4595 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
4596 echo "configure:4597: checking for cthread_fork with -all_load" >&5
4597 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4602 LIBS="-all_load $LIBS"
4603 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4606 #include <mach/cthreads.h>
4609 cthread_fork((void *)0, (void *)0);
4613 if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4615 ol_cv_cthread_all_load=yes
4617 echo "configure: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4620 ol_cv_cthread_all_load=no
4627 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
4629 if test $ol_cv_cthread_all_load = yes ; then
4630 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
4631 ol_link_threads=mach
4635 if test $ol_link_threads != no ; then
4636 : check for cthread specific functionality here
4637 cat >> confdefs.h <<\EOF
4638 #define HAVE_MACH_CTHREADS 1
4642 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
4646 if test $ol_with_threads = mach ; then
4647 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
4651 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4652 -o $ol_with_threads = lwp ; then
4654 for ac_hdr in thread.h synch.h
4656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4658 echo "configure:4659: checking for $ac_hdr" >&5
4659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4668 { (eval echo configure:4669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4669 ac_err=`grep -v '^ *+' conftest.out`
4670 if test -z "$ac_err"; then
4672 eval "ac_cv_header_$ac_safe=yes"
4675 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4678 eval "ac_cv_header_$ac_safe=no"
4682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4683 echo "$ac_t""yes" 1>&6
4684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4685 cat >> confdefs.h <<EOF
4686 #define $ac_tr_hdr 1
4690 echo "$ac_t""no" 1>&6
4694 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
4695 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
4696 echo "configure:4697: checking for thr_create in -lthread" >&5
4697 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
4698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4701 ac_save_LIBS="$LIBS"
4702 LIBS="-lthread $LIBS"
4703 cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4706 /* Override any gcc2 internal prototype to avoid an error. */
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4715 if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4717 eval "ac_cv_lib_$ac_lib_var=yes"
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4722 eval "ac_cv_lib_$ac_lib_var=no"
4725 LIBS="$ac_save_LIBS"
4728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4729 echo "$ac_t""yes" 1>&6
4732 echo "$ac_t""no" 1>&6
4737 if test $have_thr = yes ; then
4738 cat >> confdefs.h <<\EOF
4742 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
4745 if test $ol_with_yielding_select = auto ; then
4746 ol_with_yielding_select=yes
4751 for ac_hdr in lwp/lwp.h
4753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4755 echo "configure:4756: checking for $ac_hdr" >&5
4756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4765 { (eval echo configure:4766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4766 ac_err=`grep -v '^ *+' conftest.out`
4767 if test -z "$ac_err"; then
4769 eval "ac_cv_header_$ac_safe=yes"
4772 echo "configure: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4775 eval "ac_cv_header_$ac_safe=no"
4779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4781 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4782 cat >> confdefs.h <<EOF
4783 #define $ac_tr_hdr 1
4787 echo "$ac_t""no" 1>&6
4791 if test $ac_cv_header_lwp_lwp_h = yes ; then
4792 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
4793 echo "configure:4794: checking for lwp_create in -llwp" >&5
4794 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
4795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4798 ac_save_LIBS="$LIBS"
4800 cat > conftest.$ac_ext <<EOF
4801 #line 4802 "configure"
4802 #include "confdefs.h"
4803 /* Override any gcc2 internal prototype to avoid an error. */
4804 /* We use char because int might match the return type of a gcc2
4805 builtin and then its argument prototype would still apply. */
4812 if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4814 eval "ac_cv_lib_$ac_lib_var=yes"
4816 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4819 eval "ac_cv_lib_$ac_lib_var=no"
4822 LIBS="$ac_save_LIBS"
4825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4826 echo "$ac_t""yes" 1>&6
4829 echo "$ac_t""no" 1>&6
4834 if test $have_lwp = yes ; then
4835 cat >> confdefs.h <<\EOF
4839 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
4842 if test $ol_with_yielding_select = auto ; then
4843 ol_with_yielding_select=no
4849 if test $ol_with_yielding_select = yes ; then
4850 cat >> confdefs.h <<\EOF
4851 #define HAVE_YIELDING_SELECT 1
4856 if test $ol_with_threads = manual ; then
4859 echo "configure: warning: thread defines and link options must be set manually" 1>&2
4861 for ac_hdr in pthread.h sched.h
4863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4865 echo "configure:4866: checking for $ac_hdr" >&5
4866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4875 { (eval echo configure:4876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4876 ac_err=`grep -v '^ *+' conftest.out`
4877 if test -z "$ac_err"; then
4879 eval "ac_cv_header_$ac_safe=yes"
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4885 eval "ac_cv_header_$ac_safe=no"
4889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4890 echo "$ac_t""yes" 1>&6
4891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4892 cat >> confdefs.h <<EOF
4893 #define $ac_tr_hdr 1
4897 echo "$ac_t""no" 1>&6
4901 for ac_func in sched_yield pthread_yield
4903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4904 echo "configure:4905: checking for $ac_func" >&5
4905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4908 cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4911 /* System header to define __stub macros and hopefully few prototypes,
4912 which can conflict with char $ac_func(); below. */
4914 /* Override any gcc2 internal prototype to avoid an error. */
4915 /* We use char because int might match the return type of a gcc2
4916 builtin and then its argument prototype would still apply. */
4921 /* The GNU C library defines this for functions which it implements
4922 to always fail with ENOSYS. Some functions are actually named
4923 something starting with __ and the normal name is an alias. */
4924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4932 if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4934 eval "ac_cv_func_$ac_func=yes"
4936 echo "configure: failed program was:" >&5
4937 cat conftest.$ac_ext >&5
4939 eval "ac_cv_func_$ac_func=no"
4944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4945 echo "$ac_t""yes" 1>&6
4946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4947 cat >> confdefs.h <<EOF
4948 #define $ac_tr_func 1
4952 echo "$ac_t""no" 1>&6
4957 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4958 echo "configure:4959: checking for LinuxThreads" >&5
4959 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4960 echo $ac_n "(cached) $ac_c" 1>&6
4963 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4964 if test "$res" -gt 0 ; then
4965 ol_cv_linux_threads=yes
4967 ol_cv_linux_threads=no
4972 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4975 for ac_hdr in mach/cthreads.h
4977 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4979 echo "configure:4980: checking for $ac_hdr" >&5
4980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4981 echo $ac_n "(cached) $ac_c" 1>&6
4983 cat > conftest.$ac_ext <<EOF
4984 #line 4985 "configure"
4985 #include "confdefs.h"
4988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4989 { (eval echo configure:4990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4990 ac_err=`grep -v '^ *+' conftest.out`
4991 if test -z "$ac_err"; then
4993 eval "ac_cv_header_$ac_safe=yes"
4996 echo "configure: failed program was:" >&5
4997 cat conftest.$ac_ext >&5
4999 eval "ac_cv_header_$ac_safe=no"
5003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5006 cat >> confdefs.h <<EOF
5007 #define $ac_tr_hdr 1
5011 echo "$ac_t""no" 1>&6
5015 for ac_hdr in lwp/lwp.h
5017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5019 echo "configure:5020: checking for $ac_hdr" >&5
5020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5021 echo $ac_n "(cached) $ac_c" 1>&6
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5029 { (eval echo configure:5030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5030 ac_err=`grep -v '^ *+' conftest.out`
5031 if test -z "$ac_err"; then
5033 eval "ac_cv_header_$ac_safe=yes"
5036 echo "configure: failed program was:" >&5
5037 cat conftest.$ac_ext >&5
5039 eval "ac_cv_header_$ac_safe=no"
5043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5044 echo "$ac_t""yes" 1>&6
5045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5046 cat >> confdefs.h <<EOF
5047 #define $ac_tr_hdr 1
5051 echo "$ac_t""no" 1>&6
5055 for ac_hdr in thread.h synch.h
5057 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5059 echo "configure:5060: checking for $ac_hdr" >&5
5060 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5061 echo $ac_n "(cached) $ac_c" 1>&6
5063 cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure"
5065 #include "confdefs.h"
5068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5069 { (eval echo configure:5070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5070 ac_err=`grep -v '^ *+' conftest.out`
5071 if test -z "$ac_err"; then
5073 eval "ac_cv_header_$ac_safe=yes"
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5079 eval "ac_cv_header_$ac_safe=no"
5083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5084 echo "$ac_t""yes" 1>&6
5085 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5086 cat >> confdefs.h <<EOF
5087 #define $ac_tr_hdr 1
5091 echo "$ac_t""no" 1>&6
5097 if test $ol_link_threads != no ; then
5098 cat >> confdefs.h <<\EOF
5102 cat >> confdefs.h <<\EOF
5103 #define _REENTRANT 1
5106 cat >> confdefs.h <<\EOF
5107 #define THREAD_SAFE 1
5110 cat >> confdefs.h <<\EOF
5111 #define _THREAD_SAFE 1
5114 cat >> confdefs.h <<\EOF
5115 #define THREADSAFE 1
5118 cat >> confdefs.h <<\EOF
5119 #define _THREADSAFE 1
5123 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
5124 echo "configure:5125: checking for thread specific errno" >&5
5125 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5129 cat > conftest.$ac_ext <<EOF
5130 #line 5131 "configure"
5131 #include "confdefs.h"
5141 if { (eval echo configure:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5143 ol_cv_errno_thread_specific=yes
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5148 ol_cv_errno_thread_specific=no
5154 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
5156 if test $ol_cv_errno_thread_specific != yes ; then
5157 LIBS="$LTHREAD_LIBS $LIBS"
5164 if test $ol_link_threads = no ; then
5165 if test $ol_with_threads = yes ; then
5166 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
5169 if test $ol_with_threads = auto ; then
5170 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
5174 cat >> confdefs.h <<\EOF
5175 #define NO_THREADS 1
5182 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
5183 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
5184 echo "configure:5185: checking for DB2 library" >&5
5185 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6
5189 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
5190 echo "configure:5191: checking for db_open in -ldb" >&5
5191 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
5192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5195 ac_save_LIBS="$LIBS"
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200 /* Override any gcc2 internal prototype to avoid an error. */
5201 /* We use char because int might match the return type of a gcc2
5202 builtin and then its argument prototype would still apply. */
5209 if { (eval echo configure:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5211 eval "ac_cv_lib_$ac_lib_var=yes"
5213 echo "configure: failed program was:" >&5
5214 cat conftest.$ac_ext >&5
5216 eval "ac_cv_lib_$ac_lib_var=no"
5219 LIBS="$ac_save_LIBS"
5222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5223 echo "$ac_t""yes" 1>&6
5226 echo "$ac_t""no" 1>&6
5234 echo "$ac_t""$ol_cv_lib_db2" 1>&6
5238 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5239 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5240 echo "configure:5241: checking for $ac_hdr" >&5
5241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5250 { (eval echo configure:5251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5251 ac_err=`grep -v '^ *+' conftest.out`
5252 if test -z "$ac_err"; then
5254 eval "ac_cv_header_$ac_safe=yes"
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5260 eval "ac_cv_header_$ac_safe=no"
5264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5265 echo "$ac_t""yes" 1>&6
5266 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5267 cat >> confdefs.h <<EOF
5268 #define $ac_tr_hdr 1
5272 echo "$ac_t""no" 1>&6
5276 if test $ac_cv_header_db_h = yes ; then
5277 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
5278 echo "configure:5279: checking if db.h is DB2" >&5
5279 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5283 cat > conftest.$ac_ext <<EOF
5284 #line 5285 "configure"
5285 #include "confdefs.h"
5288 /* this check could be improved */
5289 # ifdef DB_VERSION_MAJOR
5290 # if DB_VERSION_MAJOR == 2
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297 egrep "__db_version_2" >/dev/null 2>&1; then
5299 ol_cv_header_db2=yes
5308 echo "$ac_t""$ol_cv_header_db2" 1>&6
5315 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
5316 echo "configure:5317: checking for Berkeley DB2" >&5
5317 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5321 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
5322 ol_cv_berkeley_db2=no
5324 ol_cv_berkeley_db2=yes
5329 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
5330 if test $ol_cv_berkeley_db2 = yes ; then
5331 cat >> confdefs.h <<\EOF
5332 #define HAVE_BERKELEY_DB2 1
5338 if test $ol_cv_berkeley_db2 = yes ; then
5340 ol_with_ldbm_api=db2
5342 if test $ol_with_ldbm_type = hash ; then
5343 cat >> confdefs.h <<\EOF
5344 #define LDBM_USE_DBHASH 1
5348 cat >> confdefs.h <<\EOF
5349 #define LDBM_USE_DBBTREE 1
5354 if test $ol_cv_lib_db2 != yes ; then
5355 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
5360 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
5361 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
5362 echo "configure:5363: checking for Berkeley DB library" >&5
5363 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5367 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
5368 echo "configure:5369: checking for dbopen" >&5
5369 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5372 cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5375 /* System header to define __stub macros and hopefully few prototypes,
5376 which can conflict with char dbopen(); below. */
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5385 /* The GNU C library defines this for functions which it implements
5386 to always fail with ENOSYS. Some functions are actually named
5387 something starting with __ and the normal name is an alias. */
5388 #if defined (__stub_dbopen) || defined (__stub___dbopen)
5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5398 eval "ac_cv_func_dbopen=yes"
5400 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5403 eval "ac_cv_func_dbopen=no"
5408 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
5409 echo "$ac_t""yes" 1>&6
5412 echo "$ac_t""no" 1>&6
5414 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
5415 echo "configure:5416: checking for dbopen in -ldb" >&5
5416 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
5417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5420 ac_save_LIBS="$LIBS"
5422 cat > conftest.$ac_ext <<EOF
5423 #line 5424 "configure"
5424 #include "confdefs.h"
5425 /* Override any gcc2 internal prototype to avoid an error. */
5426 /* We use char because int might match the return type of a gcc2
5427 builtin and then its argument prototype would still apply. */
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5436 eval "ac_cv_lib_$ac_lib_var=yes"
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5441 eval "ac_cv_lib_$ac_lib_var=no"
5444 LIBS="$ac_save_LIBS"
5447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5448 echo "$ac_t""yes" 1>&6
5451 echo "$ac_t""no" 1>&6
5462 echo "$ac_t""$ol_cv_lib_db" 1>&6
5465 for ac_hdr in db_185.h
5467 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5469 echo "configure:5470: checking for $ac_hdr" >&5
5470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5471 echo $ac_n "(cached) $ac_c" 1>&6
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5479 { (eval echo configure:5480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5480 ac_err=`grep -v '^ *+' conftest.out`
5481 if test -z "$ac_err"; then
5483 eval "ac_cv_header_$ac_safe=yes"
5486 echo "configure: failed program was:" >&5
5487 cat conftest.$ac_ext >&5
5489 eval "ac_cv_header_$ac_safe=no"
5493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5494 echo "$ac_t""yes" 1>&6
5495 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5496 cat >> confdefs.h <<EOF
5497 #define $ac_tr_hdr 1
5501 echo "$ac_t""no" 1>&6
5505 if test $ol_cv_header_db2 = yes ; then
5507 ol_cv_header_db=$ac_cv_header_db_185_h
5509 ol_cv_header_db=$ac_cv_header_db_h
5514 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
5515 echo "configure:5516: checking for Berkeley DB" >&5
5516 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
5517 echo $ac_n "(cached) $ac_c" 1>&6
5520 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
5521 ol_cv_berkeley_db=no
5523 ol_cv_berkeley_db=yes
5528 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
5529 if test $ol_cv_berkeley_db = yes ; then
5530 cat >> confdefs.h <<\EOF
5531 #define HAVE_BERKELEY_DB 1
5537 if test $ol_cv_berkeley_db = yes ; then
5541 if test $ol_with_ldbm_type = hash ; then
5542 cat >> confdefs.h <<\EOF
5543 #define LDBM_USE_DBHASH 1
5547 cat >> confdefs.h <<\EOF
5548 #define LDBM_USE_DBBTREE 1
5553 if test $ol_cv_lib_db != yes ; then
5554 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
5559 if test $ol_with_ldbm_api = manual ; then
5562 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
5564 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
5566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5568 echo "configure:5569: checking for $ac_hdr" >&5
5569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5570 echo $ac_n "(cached) $ac_c" 1>&6
5572 cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5578 { (eval echo configure:5579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5579 ac_err=`grep -v '^ *+' conftest.out`
5580 if test -z "$ac_err"; then
5582 eval "ac_cv_header_$ac_safe=yes"
5585 echo "configure: failed program was:" >&5
5586 cat conftest.$ac_ext >&5
5588 eval "ac_cv_header_$ac_safe=no"
5592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5593 echo "$ac_t""yes" 1>&6
5594 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5595 cat >> confdefs.h <<EOF
5596 #define $ac_tr_hdr 1
5600 echo "$ac_t""no" 1>&6
5606 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
5607 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
5608 ol_with_ldbm_api=none
5611 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
5612 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
5613 echo "configure:5614: checking for GDBM library" >&5
5614 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5618 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
5619 echo "configure:5620: checking for gdbm_open" >&5
5620 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5623 cat > conftest.$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5626 /* System header to define __stub macros and hopefully few prototypes,
5627 which can conflict with char gdbm_open(); below. */
5629 /* Override any gcc2 internal prototype to avoid an error. */
5630 /* We use char because int might match the return type of a gcc2
5631 builtin and then its argument prototype would still apply. */
5636 /* The GNU C library defines this for functions which it implements
5637 to always fail with ENOSYS. Some functions are actually named
5638 something starting with __ and the normal name is an alias. */
5639 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
5647 if { (eval echo configure:5648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5649 eval "ac_cv_func_gdbm_open=yes"
5651 echo "configure: failed program was:" >&5
5652 cat conftest.$ac_ext >&5
5654 eval "ac_cv_func_gdbm_open=no"
5659 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
5660 echo "$ac_t""yes" 1>&6
5663 echo "$ac_t""no" 1>&6
5665 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
5666 echo "configure:5667: checking for gdbm_open in -lgdbm" >&5
5667 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
5668 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5669 echo $ac_n "(cached) $ac_c" 1>&6
5671 ac_save_LIBS="$LIBS"
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5676 /* Override any gcc2 internal prototype to avoid an error. */
5677 /* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */
5685 if { (eval echo configure:5686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5687 eval "ac_cv_lib_$ac_lib_var=yes"
5689 echo "configure: failed program was:" >&5
5690 cat conftest.$ac_ext >&5
5692 eval "ac_cv_lib_$ac_lib_var=no"
5695 LIBS="$ac_save_LIBS"
5698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5699 echo "$ac_t""yes" 1>&6
5700 ol_cv_lib_gdbm=-lgdbm
5702 echo "$ac_t""no" 1>&6
5713 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
5716 for ac_hdr in gdbm.h
5718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5720 echo "configure:5721: checking for $ac_hdr" >&5
5721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5730 { (eval echo configure:5731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5731 ac_err=`grep -v '^ *+' conftest.out`
5732 if test -z "$ac_err"; then
5734 eval "ac_cv_header_$ac_safe=yes"
5737 echo "configure: failed program was:" >&5
5738 cat conftest.$ac_ext >&5
5740 eval "ac_cv_header_$ac_safe=no"
5744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5745 echo "$ac_t""yes" 1>&6
5746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5747 cat >> confdefs.h <<EOF
5748 #define $ac_tr_hdr 1
5752 echo "$ac_t""no" 1>&6
5756 echo $ac_n "checking for db""... $ac_c" 1>&6
5757 echo "configure:5758: checking for db" >&5
5758 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5762 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
5770 echo "$ac_t""$ol_cv_gdbm" 1>&6
5771 if test $ol_cv_gdbm = yes ; then
5772 cat >> confdefs.h <<\EOF
5779 if test $ol_cv_gdbm = yes ; then
5781 ol_with_ldbm_api=gdbm
5783 if test $ol_cv_lib_gdbm != yes ; then
5784 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
5789 if test $ol_with_ldbm_api = auto ; then
5790 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
5791 elif test $ol_with_ldbm_api = ndbm ; then
5792 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
5793 echo "configure:5794: checking for NDBM library" >&5
5794 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
5795 echo $ac_n "(cached) $ac_c" 1>&6
5798 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
5799 echo "configure:5800: checking for dbm_open" >&5
5800 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
5801 echo $ac_n "(cached) $ac_c" 1>&6
5803 cat > conftest.$ac_ext <<EOF
5804 #line 5805 "configure"
5805 #include "confdefs.h"
5806 /* System header to define __stub macros and hopefully few prototypes,
5807 which can conflict with char dbm_open(); below. */
5809 /* Override any gcc2 internal prototype to avoid an error. */
5810 /* We use char because int might match the return type of a gcc2
5811 builtin and then its argument prototype would still apply. */
5816 /* The GNU C library defines this for functions which it implements
5817 to always fail with ENOSYS. Some functions are actually named
5818 something starting with __ and the normal name is an alias. */
5819 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
5827 if { (eval echo configure:5828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5829 eval "ac_cv_func_dbm_open=yes"
5831 echo "configure: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5834 eval "ac_cv_func_dbm_open=no"
5839 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
5840 echo "$ac_t""yes" 1>&6
5843 echo "$ac_t""no" 1>&6
5845 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
5846 echo "configure:5847: checking for dbm_open in -lndbm" >&5
5847 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
5848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5851 ac_save_LIBS="$LIBS"
5853 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5856 /* Override any gcc2 internal prototype to avoid an error. */
5857 /* We use char because int might match the return type of a gcc2
5858 builtin and then its argument prototype would still apply. */
5865 if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5867 eval "ac_cv_lib_$ac_lib_var=yes"
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5872 eval "ac_cv_lib_$ac_lib_var=no"
5875 LIBS="$ac_save_LIBS"
5878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5879 echo "$ac_t""yes" 1>&6
5880 ol_cv_lib_ndbm=-lndbm
5882 echo "$ac_t""no" 1>&6
5884 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
5885 echo "configure:5886: checking for dbm_open in -ldbm" >&5
5886 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
5887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5890 ac_save_LIBS="$LIBS"
5892 cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5895 /* Override any gcc2 internal prototype to avoid an error. */
5896 /* We use char because int might match the return type of a gcc2
5897 builtin and then its argument prototype would still apply. */
5904 if { (eval echo configure:5905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5906 eval "ac_cv_lib_$ac_lib_var=yes"
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5911 eval "ac_cv_lib_$ac_lib_var=no"
5914 LIBS="$ac_save_LIBS"
5917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5918 echo "$ac_t""yes" 1>&6
5919 ol_cv_lib_ndbm=-ldbm
5921 echo "$ac_t""no" 1>&6
5934 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
5937 for ac_hdr in ndbm.h
5939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5941 echo "configure:5942: checking for $ac_hdr" >&5
5942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5951 { (eval echo configure:5952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5952 ac_err=`grep -v '^ *+' conftest.out`
5953 if test -z "$ac_err"; then
5955 eval "ac_cv_header_$ac_safe=yes"
5958 echo "configure: failed program was:" >&5
5959 cat conftest.$ac_ext >&5
5961 eval "ac_cv_header_$ac_safe=no"
5965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5966 echo "$ac_t""yes" 1>&6
5967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5968 cat >> confdefs.h <<EOF
5969 #define $ac_tr_hdr 1
5973 echo "$ac_t""no" 1>&6
5977 echo $ac_n "checking for db""... $ac_c" 1>&6
5978 echo "configure:5979: checking for db" >&5
5979 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
5980 echo $ac_n "(cached) $ac_c" 1>&6
5983 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
5991 echo "$ac_t""$ol_cv_ndbm" 1>&6
5992 if test $ol_cv_ndbm = yes ; then
5993 cat >> confdefs.h <<\EOF
6000 if test $ol_cv_ndbm = yes ; then
6002 ol_with_ldbm_api=ndbm
6004 if test $ol_cv_lib_ndbm != yes ; then
6005 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
6010 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
6011 echo "configure: warning: could not find suitable LDBM backend" 1>&2
6012 if test $ol_enable_ldbm = yes ; then
6013 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
6016 echo "configure: warning: disabling LDBM" 1>&2
6020 if test $ol_enable_wrappers != no ; then
6021 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
6022 echo "configure:6023: checking for main in -lwrap" >&5
6023 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
6024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 ac_save_LIBS="$LIBS"
6029 cat > conftest.$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6037 if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6039 eval "ac_cv_lib_$ac_lib_var=yes"
6041 echo "configure: failed program was:" >&5
6042 cat conftest.$ac_ext >&5
6044 eval "ac_cv_lib_$ac_lib_var=no"
6047 LIBS="$ac_save_LIBS"
6050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6051 echo "$ac_t""yes" 1>&6
6054 echo "$ac_t""no" 1>&6
6059 if test $have_wrappers = yes ; then
6060 cat >> confdefs.h <<\EOF
6064 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
6066 echo "configure: warning: could not find -lwrap" 1>&2
6067 if test $ol_enable_wrappers = yes ; then
6068 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
6071 echo "configure: warning: disabling wrappers support" 1>&2
6072 ol_enable_wrappers=no
6077 if test $ol_enable_syslog != no ; then
6078 echo $ac_n "checking for openlog""... $ac_c" 1>&6
6079 echo "configure:6080: checking for openlog" >&5
6080 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
6081 echo $ac_n "(cached) $ac_c" 1>&6
6083 cat > conftest.$ac_ext <<EOF
6084 #line 6085 "configure"
6085 #include "confdefs.h"
6086 /* System header to define __stub macros and hopefully few prototypes,
6087 which can conflict with char openlog(); below. */
6089 /* Override any gcc2 internal prototype to avoid an error. */
6090 /* We use char because int might match the return type of a gcc2
6091 builtin and then its argument prototype would still apply. */
6096 /* The GNU C library defines this for functions which it implements
6097 to always fail with ENOSYS. Some functions are actually named
6098 something starting with __ and the normal name is an alias. */
6099 #if defined (__stub_openlog) || defined (__stub___openlog)
6107 if { (eval echo configure:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6109 eval "ac_cv_func_openlog=yes"
6111 echo "configure: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6114 eval "ac_cv_func_openlog=no"
6119 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
6120 echo "$ac_t""yes" 1>&6
6123 echo "$ac_t""no" 1>&6
6126 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
6127 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
6129 ol_enable_syslog=$ac_cv_func_openlog
6132 if test $ol_enable_dmalloc != no ; then
6133 for ac_hdr in dmalloc.h
6135 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6137 echo "configure:6138: checking for $ac_hdr" >&5
6138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6139 echo $ac_n "(cached) $ac_c" 1>&6
6141 cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6147 { (eval echo configure:6148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6148 ac_err=`grep -v '^ *+' conftest.out`
6149 if test -z "$ac_err"; then
6151 eval "ac_cv_header_$ac_safe=yes"
6154 echo "configure: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6157 eval "ac_cv_header_$ac_safe=no"
6161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6162 echo "$ac_t""yes" 1>&6
6163 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6164 cat >> confdefs.h <<EOF
6165 #define $ac_tr_hdr 1
6169 echo "$ac_t""no" 1>&6
6173 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
6174 echo "configure:6175: checking for dmalloc_shutdown in -ldmalloc" >&5
6175 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
6176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6179 ac_save_LIBS="$LIBS"
6180 LIBS="-ldmalloc $LIBS"
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184 /* Override any gcc2 internal prototype to avoid an error. */
6185 /* We use char because int might match the return type of a gcc2
6186 builtin and then its argument prototype would still apply. */
6187 char dmalloc_shutdown();
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6195 eval "ac_cv_lib_$ac_lib_var=yes"
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 eval "ac_cv_lib_$ac_lib_var=no"
6203 LIBS="$ac_save_LIBS"
6206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6207 echo "$ac_t""yes" 1>&6
6208 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6209 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6210 cat >> confdefs.h <<EOF
6211 #define $ac_tr_lib 1
6214 LIBS="-ldmalloc $LIBS"
6217 echo "$ac_t""no" 1>&6
6222 # ud needs termcap (should insert check here)
6224 for ac_hdr in termcap.h ncurses.h
6226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6228 echo "configure:6229: checking for $ac_hdr" >&5
6229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6230 echo $ac_n "(cached) $ac_c" 1>&6
6232 cat > conftest.$ac_ext <<EOF
6233 #line 6234 "configure"
6234 #include "confdefs.h"
6237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6238 { (eval echo configure:6239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6239 ac_err=`grep -v '^ *+' conftest.out`
6240 if test -z "$ac_err"; then
6242 eval "ac_cv_header_$ac_safe=yes"
6245 echo "configure: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6248 eval "ac_cv_header_$ac_safe=no"
6252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6253 echo "$ac_t""yes" 1>&6
6254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6255 cat >> confdefs.h <<EOF
6256 #define $ac_tr_hdr 1
6260 echo "$ac_t""no" 1>&6
6265 if test $ol_link_termcap = no ; then
6266 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
6267 echo "configure:6268: checking for tputs in -ltermcap" >&5
6268 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
6269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6270 echo $ac_n "(cached) $ac_c" 1>&6
6272 ac_save_LIBS="$LIBS"
6273 LIBS="-ltermcap $LIBS"
6274 cat > conftest.$ac_ext <<EOF
6275 #line 6276 "configure"
6276 #include "confdefs.h"
6277 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6286 if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6288 eval "ac_cv_lib_$ac_lib_var=yes"
6290 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6293 eval "ac_cv_lib_$ac_lib_var=no"
6296 LIBS="$ac_save_LIBS"
6299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6300 echo "$ac_t""yes" 1>&6
6303 echo "$ac_t""no" 1>&6
6307 if test $have_termcap = yes ; then
6308 cat >> confdefs.h <<\EOF
6309 #define HAVE_TERMCAP 1
6313 TERMCAP_LIBS=-ltermcap
6317 if test $ol_link_termcap = no ; then
6318 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
6319 echo "configure:6320: checking for initscr in -lncurses" >&5
6320 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
6321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6322 echo $ac_n "(cached) $ac_c" 1>&6
6324 ac_save_LIBS="$LIBS"
6325 LIBS="-lncurses $LIBS"
6326 cat > conftest.$ac_ext <<EOF
6327 #line 6328 "configure"
6328 #include "confdefs.h"
6329 /* Override any gcc2 internal prototype to avoid an error. */
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6338 if { (eval echo configure:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6340 eval "ac_cv_lib_$ac_lib_var=yes"
6342 echo "configure: failed program was:" >&5
6343 cat conftest.$ac_ext >&5
6345 eval "ac_cv_lib_$ac_lib_var=no"
6348 LIBS="$ac_save_LIBS"
6351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6352 echo "$ac_t""yes" 1>&6
6355 echo "$ac_t""no" 1>&6
6359 if test $have_ncurses = yes ; then
6360 cat >> confdefs.h <<\EOF
6361 #define HAVE_NCURSES 1
6365 TERMCAP_LIBS=-lncurses
6369 if test $ol_link_termcap = no ; then
6370 cat >> confdefs.h <<\EOF
6371 #define NO_TERMCAP 1
6377 # FreeBSD (and others) have crypt(3) in -lcrypt
6378 if test $ol_enable_crypt != no ; then
6379 echo $ac_n "checking for crypt""... $ac_c" 1>&6
6380 echo "configure:6381: checking for crypt" >&5
6381 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
6382 echo $ac_n "(cached) $ac_c" 1>&6
6384 cat > conftest.$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6387 /* System header to define __stub macros and hopefully few prototypes,
6388 which can conflict with char crypt(); below. */
6390 /* Override any gcc2 internal prototype to avoid an error. */
6391 /* We use char because int might match the return type of a gcc2
6392 builtin and then its argument prototype would still apply. */
6397 /* The GNU C library defines this for functions which it implements
6398 to always fail with ENOSYS. Some functions are actually named
6399 something starting with __ and the normal name is an alias. */
6400 #if defined (__stub_crypt) || defined (__stub___crypt)
6408 if { (eval echo configure:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6410 eval "ac_cv_func_crypt=yes"
6412 echo "configure: failed program was:" >&5
6413 cat conftest.$ac_ext >&5
6415 eval "ac_cv_func_crypt=no"
6420 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
6421 echo "$ac_t""yes" 1>&6
6424 echo "$ac_t""no" 1>&6
6426 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6427 echo "configure:6428: checking for crypt in -lcrypt" >&5
6428 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6430 echo $ac_n "(cached) $ac_c" 1>&6
6432 ac_save_LIBS="$LIBS"
6433 LIBS="-lcrypt $LIBS"
6434 cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6437 /* Override any gcc2 internal prototype to avoid an error. */
6438 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6446 if { (eval echo configure:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6448 eval "ac_cv_lib_$ac_lib_var=yes"
6450 echo "configure: failed program was:" >&5
6451 cat conftest.$ac_ext >&5
6453 eval "ac_cv_lib_$ac_lib_var=no"
6456 LIBS="$ac_save_LIBS"
6459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6460 echo "$ac_t""yes" 1>&6
6461 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
6464 echo "$ac_t""no" 1>&6
6471 if test $have_crypt = yes ; then
6472 cat >> confdefs.h <<\EOF
6473 #define HAVE_CRYPT 1
6477 echo "configure: warning: could not find crypt" 1>&2
6478 if test $ol_enable_crypt = yes ; then
6479 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
6482 echo "configure: warning: disabling crypt support" 1>&2
6487 # FreeBSD (and others) have setproctitle(3) in -lutil
6488 if test $ol_enable_proctitle != no ; then
6489 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
6490 echo "configure:6491: checking for setproctitle" >&5
6491 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
6492 echo $ac_n "(cached) $ac_c" 1>&6
6494 cat > conftest.$ac_ext <<EOF
6495 #line 6496 "configure"
6496 #include "confdefs.h"
6497 /* System header to define __stub macros and hopefully few prototypes,
6498 which can conflict with char setproctitle(); below. */
6500 /* Override any gcc2 internal prototype to avoid an error. */
6501 /* We use char because int might match the return type of a gcc2
6502 builtin and then its argument prototype would still apply. */
6503 char setproctitle();
6507 /* The GNU C library defines this for functions which it implements
6508 to always fail with ENOSYS. Some functions are actually named
6509 something starting with __ and the normal name is an alias. */
6510 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6520 eval "ac_cv_func_setproctitle=yes"
6522 echo "configure: failed program was:" >&5
6523 cat conftest.$ac_ext >&5
6525 eval "ac_cv_func_setproctitle=no"
6530 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
6531 echo "$ac_t""yes" 1>&6
6532 have_setproctitle=yes
6534 echo "$ac_t""no" 1>&6
6536 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
6537 echo "configure:6538: checking for setproctitle in -lutil" >&5
6538 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
6539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6542 ac_save_LIBS="$LIBS"
6544 cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6547 /* Override any gcc2 internal prototype to avoid an error. */
6548 /* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */
6550 char setproctitle();
6556 if { (eval echo configure:6557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6558 eval "ac_cv_lib_$ac_lib_var=yes"
6560 echo "configure: failed program was:" >&5
6561 cat conftest.$ac_ext >&5
6563 eval "ac_cv_lib_$ac_lib_var=no"
6566 LIBS="$ac_save_LIBS"
6569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6570 echo "$ac_t""yes" 1>&6
6571 have_setproctitle=yes
6572 LUTIL_LIBS="$LUTIL_LIBS -lutil"
6574 echo "$ac_t""no" 1>&6
6575 have_setproctitle=no
6576 LIBOBJS="$LIBOBJS setproctitle.o"
6582 if test $have_setproctitle = yes ; then
6583 cat >> confdefs.h <<\EOF
6584 #define HAVE_SETPROCTITLE 1
6590 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6591 echo "configure:6592: checking for ANSI C header files" >&5
6592 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6593 echo $ac_n "(cached) $ac_c" 1>&6
6595 cat > conftest.$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6604 { (eval echo configure:6605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6605 ac_err=`grep -v '^ *+' conftest.out`
6606 if test -z "$ac_err"; then
6608 ac_cv_header_stdc=yes
6611 echo "configure: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6614 ac_cv_header_stdc=no
6618 if test $ac_cv_header_stdc = yes; then
6619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6620 cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6626 egrep "memchr" >/dev/null 2>&1; then
6630 ac_cv_header_stdc=no
6636 if test $ac_cv_header_stdc = yes; then
6637 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6638 cat > conftest.$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6644 egrep "free" >/dev/null 2>&1; then
6648 ac_cv_header_stdc=no
6654 if test $ac_cv_header_stdc = yes; then
6655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6656 if test "$cross_compiling" = yes; then
6659 cat > conftest.$ac_ext <<EOF
6660 #line 6661 "configure"
6661 #include "confdefs.h"
6663 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6664 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6666 int main () { int i; for (i = 0; i < 256; i++)
6667 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6671 if { (eval echo configure:6672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6675 echo "configure: failed program was:" >&5
6676 cat conftest.$ac_ext >&5
6678 ac_cv_header_stdc=no
6686 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6687 if test $ac_cv_header_stdc = yes; then
6688 cat >> confdefs.h <<\EOF
6689 #define STDC_HEADERS 1
6695 if test $ac_cv_header_stdc != yes; then
6696 echo "configure: warning: could not Standard C compliant headers" 1>&2
6700 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6702 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6703 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6704 echo "configure:6705: checking for $ac_hdr that defines DIR" >&5
6705 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 #include <sys/types.h>
6717 if { (eval echo configure:6718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6719 eval "ac_cv_header_dirent_$ac_safe=yes"
6721 echo "configure: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6724 eval "ac_cv_header_dirent_$ac_safe=no"
6728 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
6729 echo "$ac_t""yes" 1>&6
6730 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6731 cat >> confdefs.h <<EOF
6732 #define $ac_tr_hdr 1
6734 ac_header_dirent=$ac_hdr; break
6736 echo "$ac_t""no" 1>&6
6739 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6740 if test $ac_header_dirent = dirent.h; then
6741 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6742 echo "configure:6743: checking for opendir in -ldir" >&5
6743 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6
6747 ac_save_LIBS="$LIBS"
6749 cat > conftest.$ac_ext <<EOF
6750 #line 6751 "configure"
6751 #include "confdefs.h"
6752 /* Override any gcc2 internal prototype to avoid an error. */
6753 /* We use char because int might match the return type of a gcc2
6754 builtin and then its argument prototype would still apply. */
6761 if { (eval echo configure:6762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6763 eval "ac_cv_lib_$ac_lib_var=yes"
6765 echo "configure: failed program was:" >&5
6766 cat conftest.$ac_ext >&5
6768 eval "ac_cv_lib_$ac_lib_var=no"
6771 LIBS="$ac_save_LIBS"
6774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6775 echo "$ac_t""yes" 1>&6
6778 echo "$ac_t""no" 1>&6
6782 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6783 echo "configure:6784: checking for opendir in -lx" >&5
6784 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6788 ac_save_LIBS="$LIBS"
6790 cat > conftest.$ac_ext <<EOF
6791 #line 6792 "configure"
6792 #include "confdefs.h"
6793 /* Override any gcc2 internal prototype to avoid an error. */
6794 /* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6802 if { (eval echo configure:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6804 eval "ac_cv_lib_$ac_lib_var=yes"
6806 echo "configure: failed program was:" >&5
6807 cat conftest.$ac_ext >&5
6809 eval "ac_cv_lib_$ac_lib_var=no"
6812 LIBS="$ac_save_LIBS"
6815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6816 echo "$ac_t""yes" 1>&6
6819 echo "$ac_t""no" 1>&6
6824 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6825 echo "configure:6826: checking for sys/wait.h that is POSIX.1 compatible" >&5
6826 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 #include <sys/types.h>
6833 #include <sys/wait.h>
6835 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6838 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6843 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6846 if { (eval echo configure:6847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6848 ac_cv_header_sys_wait_h=yes
6850 echo "configure: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6853 ac_cv_header_sys_wait_h=no
6858 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
6859 if test $ac_cv_header_sys_wait_h = yes; then
6860 cat >> confdefs.h <<\EOF
6861 #define HAVE_SYS_WAIT_H 1
6866 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
6867 echo "configure:6868: checking POSIX termios" >&5
6868 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
6869 echo $ac_n "(cached) $ac_c" 1>&6
6871 cat > conftest.$ac_ext <<EOF
6872 #line 6873 "configure"
6873 #include "confdefs.h"
6874 #include <sys/types.h>
6876 #include <termios.h>
6878 /* SunOS 4.0.3 has termios.h but not the library calls. */
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6884 am_cv_sys_posix_termios=yes
6886 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6889 am_cv_sys_posix_termios=no
6894 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
6897 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
6898 echo "configure:6899: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
6899 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
6900 echo $ac_n "(cached) $ac_c" 1>&6
6902 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
6904 gwinsz_in_termios_h=no
6905 if test $am_cv_sys_posix_termios = yes; then
6906 cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6909 #include <sys/types.h>
6910 # include <termios.h>
6916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6917 egrep "yes" >/dev/null 2>&1; then
6919 gwinsz_in_termios_h=yes
6925 if test $gwinsz_in_termios_h = no; then
6926 cat > conftest.$ac_ext <<EOF
6927 #line 6928 "configure"
6928 #include "confdefs.h"
6929 #include <sys/types.h>
6930 # include <sys/ioctl.h>
6936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6937 egrep "yes" >/dev/null 2>&1; then
6939 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
6947 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
6948 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
6949 cat >> confdefs.h <<\EOF
6950 #define GWINSZ_IN_SYS_IOCTL 1
6955 if test $am_cv_sys_posix_termios = yes ; then
6956 cat >> confdefs.h <<\EOF
6957 #define HAVE_POSIX_TERMIOS 1
6995 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6997 echo "configure:6998: checking for $ac_hdr" >&5
6998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6999 echo $ac_n "(cached) $ac_c" 1>&6
7001 cat > conftest.$ac_ext <<EOF
7002 #line 7003 "configure"
7003 #include "confdefs.h"
7006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7007 { (eval echo configure:7008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7008 ac_err=`grep -v '^ *+' conftest.out`
7009 if test -z "$ac_err"; then
7011 eval "ac_cv_header_$ac_safe=yes"
7014 echo "configure: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7017 eval "ac_cv_header_$ac_safe=no"
7021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7022 echo "$ac_t""yes" 1>&6
7023 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7024 cat >> confdefs.h <<EOF
7025 #define $ac_tr_hdr 1
7029 echo "$ac_t""no" 1>&6
7034 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7035 echo "configure:7036: checking for uid_t in sys/types.h" >&5
7036 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7039 cat > conftest.$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7042 #include <sys/types.h>
7044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7045 egrep "uid_t" >/dev/null 2>&1; then
7047 ac_cv_type_uid_t=yes
7056 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7057 if test $ac_cv_type_uid_t = no; then
7058 cat >> confdefs.h <<\EOF
7062 cat >> confdefs.h <<\EOF
7068 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
7069 echo "configure:7070: checking type of array argument to getgroups" >&5
7070 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
7071 echo $ac_n "(cached) $ac_c" 1>&6
7073 if test "$cross_compiling" = yes; then
7074 ac_cv_type_getgroups=cross
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7080 /* Thanks to Mike Rendell for this test. */
7081 #include <sys/types.h>
7084 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7089 union { gid_t gval; long lval; } val;
7092 for (i = 0; i < NGID; i++)
7093 gidset[i] = val.gval;
7094 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7096 /* Exit non-zero if getgroups seems to require an array of ints. This
7097 happens when gid_t is short but getgroups modifies an array of ints. */
7098 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7104 ac_cv_type_getgroups=gid_t
7106 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7109 ac_cv_type_getgroups=int
7114 if test $ac_cv_type_getgroups = cross; then
7115 cat > conftest.$ac_ext <<EOF
7116 #line 7117 "configure"
7117 #include "confdefs.h"
7120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7121 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7123 ac_cv_type_getgroups=gid_t
7126 ac_cv_type_getgroups=int
7133 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
7134 cat >> confdefs.h <<EOF
7135 #define GETGROUPS_T $ac_cv_type_getgroups
7138 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7139 echo "configure:7140: checking for mode_t" >&5
7140 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7143 cat > conftest.$ac_ext <<EOF
7144 #line 7145 "configure"
7145 #include "confdefs.h"
7146 #include <sys/types.h>
7152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7153 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7155 ac_cv_type_mode_t=yes
7158 ac_cv_type_mode_t=no
7163 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
7164 if test $ac_cv_type_mode_t = no; then
7165 cat >> confdefs.h <<\EOF
7171 echo $ac_n "checking for off_t""... $ac_c" 1>&6
7172 echo "configure:7173: checking for off_t" >&5
7173 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7174 echo $ac_n "(cached) $ac_c" 1>&6
7176 cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7179 #include <sys/types.h>
7185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7186 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7188 ac_cv_type_off_t=yes
7196 echo "$ac_t""$ac_cv_type_off_t" 1>&6
7197 if test $ac_cv_type_off_t = no; then
7198 cat >> confdefs.h <<\EOF
7204 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7205 echo "configure:7206: checking for pid_t" >&5
7206 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7209 cat > conftest.$ac_ext <<EOF
7210 #line 7211 "configure"
7211 #include "confdefs.h"
7212 #include <sys/types.h>
7218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7219 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7221 ac_cv_type_pid_t=yes
7229 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7230 if test $ac_cv_type_pid_t = no; then
7231 cat >> confdefs.h <<\EOF
7237 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
7238 echo "configure:7239: checking for ptrdiff_t" >&5
7239 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6
7242 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7250 if { (eval echo configure:7251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7252 am_cv_type_ptrdiff_t=yes
7254 echo "configure: failed program was:" >&5
7255 cat conftest.$ac_ext >&5
7257 am_cv_type_ptrdiff_t=no
7262 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
7263 if test $am_cv_type_ptrdiff_t = yes; then
7264 cat >> confdefs.h <<\EOF
7265 #define HAVE_PTRDIFF_T 1
7270 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
7271 echo "configure:7272: checking return type of signal handlers" >&5
7272 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
7273 echo $ac_n "(cached) $ac_c" 1>&6
7275 cat > conftest.$ac_ext <<EOF
7276 #line 7277 "configure"
7277 #include "confdefs.h"
7278 #include <sys/types.h>
7284 extern "C" void (*signal (int, void (*)(int)))(int);
7286 void (*signal ()) ();
7293 if { (eval echo configure:7294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7295 ac_cv_type_signal=void
7297 echo "configure: failed program was:" >&5
7298 cat conftest.$ac_ext >&5
7300 ac_cv_type_signal=int
7305 echo "$ac_t""$ac_cv_type_signal" 1>&6
7306 cat >> confdefs.h <<EOF
7307 #define RETSIGTYPE $ac_cv_type_signal
7311 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
7312 echo "configure:7313: checking for sig_atomic_t" >&5
7313 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
7314 echo $ac_n "(cached) $ac_c" 1>&6
7316 cat > conftest.$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7321 sig_atomic_t atomic;
7324 if { (eval echo configure:7325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7326 ol_cv_type_sig_atomic_t=yes
7328 echo "configure: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7331 ol_cv_type_sig_atomic_t=no
7336 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
7337 if test $ol_cv_type_sig_atomic_t = no; then
7338 cat >> confdefs.h <<\EOF
7339 #define sig_atomic_t int
7344 echo $ac_n "checking for size_t""... $ac_c" 1>&6
7345 echo "configure:7346: checking for size_t" >&5
7346 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7347 echo $ac_n "(cached) $ac_c" 1>&6
7349 cat > conftest.$ac_ext <<EOF
7350 #line 7351 "configure"
7351 #include "confdefs.h"
7352 #include <sys/types.h>
7358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7359 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7361 ac_cv_type_size_t=yes
7364 ac_cv_type_size_t=no
7369 echo "$ac_t""$ac_cv_type_size_t" 1>&6
7370 if test $ac_cv_type_size_t = no; then
7371 cat >> confdefs.h <<\EOF
7372 #define size_t unsigned
7377 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
7378 echo "configure:7379: checking for st_blksize in struct stat" >&5
7379 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
7380 echo $ac_n "(cached) $ac_c" 1>&6
7382 cat > conftest.$ac_ext <<EOF
7383 #line 7384 "configure"
7384 #include "confdefs.h"
7385 #include <sys/types.h>
7386 #include <sys/stat.h>
7388 struct stat s; s.st_blksize;
7391 if { (eval echo configure:7392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7393 ac_cv_struct_st_blksize=yes
7395 echo "configure: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7398 ac_cv_struct_st_blksize=no
7403 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
7404 if test $ac_cv_struct_st_blksize = yes; then
7405 cat >> confdefs.h <<\EOF
7406 #define HAVE_ST_BLKSIZE 1
7411 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
7412 echo "configure:7413: checking whether time.h and sys/time.h may both be included" >&5
7413 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
7414 echo $ac_n "(cached) $ac_c" 1>&6
7416 cat > conftest.$ac_ext <<EOF
7417 #line 7418 "configure"
7418 #include "confdefs.h"
7419 #include <sys/types.h>
7420 #include <sys/time.h>
7426 if { (eval echo configure:7427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7428 ac_cv_header_time=yes
7430 echo "configure: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7433 ac_cv_header_time=no
7438 echo "$ac_t""$ac_cv_header_time" 1>&6
7439 if test $ac_cv_header_time = yes; then
7440 cat >> confdefs.h <<\EOF
7441 #define TIME_WITH_SYS_TIME 1
7446 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
7447 echo "configure:7448: checking whether struct tm is in sys/time.h or time.h" >&5
7448 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
7449 echo $ac_n "(cached) $ac_c" 1>&6
7451 cat > conftest.$ac_ext <<EOF
7452 #line 7453 "configure"
7453 #include "confdefs.h"
7454 #include <sys/types.h>
7457 struct tm *tp; tp->tm_sec;
7460 if { (eval echo configure:7461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7462 ac_cv_struct_tm=time.h
7464 echo "configure: failed program was:" >&5
7465 cat conftest.$ac_ext >&5
7467 ac_cv_struct_tm=sys/time.h
7472 echo "$ac_t""$ac_cv_struct_tm" 1>&6
7473 if test $ac_cv_struct_tm = sys/time.h; then
7474 cat >> confdefs.h <<\EOF
7475 #define TM_IN_SYS_TIME 1
7482 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
7483 echo "configure:7484: checking if toupper() requires islower()" >&5
7484 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7488 if test "$cross_compiling" = yes; then
7489 ol_cv_c_upper_lower=safe
7491 cat > conftest.$ac_ext <<EOF
7492 #line 7493 "configure"
7493 #include "confdefs.h"
7498 if ('C' == toupper('C'))
7504 if { (eval echo configure:7505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7506 ol_cv_c_upper_lower=no
7508 echo "configure: failed program was:" >&5
7509 cat conftest.$ac_ext >&5
7511 ol_cv_c_upper_lower=yes
7518 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
7519 if test $ol_cv_c_upper_lower != no ; then
7520 cat >> confdefs.h <<\EOF
7521 #define C_UPPER_LOWER 1
7526 echo $ac_n "checking for working const""... $ac_c" 1>&6
7527 echo "configure:7528: checking for working const" >&5
7528 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7529 echo $ac_n "(cached) $ac_c" 1>&6
7531 cat > conftest.$ac_ext <<EOF
7532 #line 7533 "configure"
7533 #include "confdefs.h"
7537 /* Ultrix mips cc rejects this. */
7538 typedef int charset[2]; const charset x;
7539 /* SunOS 4.1.1 cc rejects this. */
7540 char const *const *ccp;
7542 /* NEC SVR4.0.2 mips cc rejects this. */
7543 struct point {int x, y;};
7544 static struct point const zero = {0,0};
7545 /* AIX XL C 1.02.0.0 rejects this.
7546 It does not let you subtract one const X* pointer from another in an arm
7547 of an if-expression whose if-part is not a constant expression */
7548 const char *g = "string";
7549 ccp = &g + (g ? g-g : 0);
7550 /* HPUX 7.0 cc rejects these. */
7553 ccp = (char const *const *) p;
7554 { /* SCO 3.2v4 cc rejects this. */
7556 char const *s = 0 ? (char *) 0 : (char const *) 0;
7560 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7562 const int *foo = &x[0];
7565 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7566 typedef const int *iptr;
7570 { /* AIX XL C 1.02.0.0 rejects this saying
7571 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7572 struct s { int j; const int *ap[3]; };
7573 struct s *b; b->j = 5;
7575 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7581 if { (eval echo configure:7582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7585 echo "configure: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7593 echo "$ac_t""$ac_cv_c_const" 1>&6
7594 if test $ac_cv_c_const = no; then
7595 cat >> confdefs.h <<\EOF
7601 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
7602 echo "configure:7603: checking if compiler understands volatile" >&5
7603 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
7604 echo $ac_n "(cached) $ac_c" 1>&6
7606 cat > conftest.$ac_ext <<EOF
7607 #line 7608 "configure"
7608 #include "confdefs.h"
7611 volatile int a; int * volatile b = x ? &y : &z;
7612 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
7616 if { (eval echo configure:7617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7618 ol_cv_c_volatile=yes
7620 echo "configure: failed program was:" >&5
7621 cat conftest.$ac_ext >&5
7628 echo "$ac_t""$ol_cv_c_volatile" 1>&6
7629 if test $ol_cv_c_volatile = yes; then
7632 cat >> confdefs.h <<\EOF
7639 if test $cross_compiling = yes ; then
7640 cat >> confdefs.h <<\EOF
7641 #define CROSS_COMPILING 1
7645 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7646 echo "configure:7647: checking whether byte ordering is bigendian" >&5
7647 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7648 echo $ac_n "(cached) $ac_c" 1>&6
7650 ac_cv_c_bigendian=unknown
7651 # See if sys/param.h defines the BYTE_ORDER macro.
7652 cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7655 #include <sys/types.h>
7656 #include <sys/param.h>
7659 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7664 if { (eval echo configure:7665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7666 # It does; now see whether it defined to BIG_ENDIAN or not.
7667 cat > conftest.$ac_ext <<EOF
7668 #line 7669 "configure"
7669 #include "confdefs.h"
7670 #include <sys/types.h>
7671 #include <sys/param.h>
7674 #if BYTE_ORDER != BIG_ENDIAN
7679 if { (eval echo configure:7680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7681 ac_cv_c_bigendian=yes
7683 echo "configure: failed program was:" >&5
7684 cat conftest.$ac_ext >&5
7686 ac_cv_c_bigendian=no
7690 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7694 if test $ac_cv_c_bigendian = unknown; then
7695 if test "$cross_compiling" = yes; then
7696 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7698 cat > conftest.$ac_ext <<EOF
7699 #line 7700 "configure"
7700 #include "confdefs.h"
7702 /* Are we little or big endian? From Harbison&Steele. */
7706 char c[sizeof (long)];
7709 exit (u.c[sizeof (long) - 1] == 1);
7712 if { (eval echo configure:7713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7714 ac_cv_c_bigendian=no
7716 echo "configure: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7719 ac_cv_c_bigendian=yes
7727 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7728 if test $ac_cv_c_bigendian = yes; then
7729 cat >> confdefs.h <<\EOF
7730 #define WORDS_BIGENDIAN 1
7735 echo $ac_n "checking size of short""... $ac_c" 1>&6
7736 echo "configure:7737: checking size of short" >&5
7737 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7738 echo $ac_n "(cached) $ac_c" 1>&6
7740 if test "$cross_compiling" = yes; then
7741 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7743 cat > conftest.$ac_ext <<EOF
7744 #line 7745 "configure"
7745 #include "confdefs.h"
7749 FILE *f=fopen("conftestval", "w");
7751 fprintf(f, "%d\n", sizeof(short));
7755 if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7757 ac_cv_sizeof_short=`cat conftestval`
7759 echo "configure: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7762 ac_cv_sizeof_short=0
7768 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7769 cat >> confdefs.h <<EOF
7770 #define SIZEOF_SHORT $ac_cv_sizeof_short
7774 echo $ac_n "checking size of int""... $ac_c" 1>&6
7775 echo "configure:7776: checking size of int" >&5
7776 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7777 echo $ac_n "(cached) $ac_c" 1>&6
7779 if test "$cross_compiling" = yes; then
7780 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7782 cat > conftest.$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7788 FILE *f=fopen("conftestval", "w");
7790 fprintf(f, "%d\n", sizeof(int));
7794 if { (eval echo configure:7795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7796 ac_cv_sizeof_int=`cat conftestval`
7798 echo "configure: failed program was:" >&5
7799 cat conftest.$ac_ext >&5
7807 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7808 cat >> confdefs.h <<EOF
7809 #define SIZEOF_INT $ac_cv_sizeof_int
7813 echo $ac_n "checking size of long""... $ac_c" 1>&6
7814 echo "configure:7815: checking size of long" >&5
7815 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7816 echo $ac_n "(cached) $ac_c" 1>&6
7818 if test "$cross_compiling" = yes; then
7819 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7821 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure"
7823 #include "confdefs.h"
7827 FILE *f=fopen("conftestval", "w");
7829 fprintf(f, "%d\n", sizeof(long));
7833 if { (eval echo configure:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7835 ac_cv_sizeof_long=`cat conftestval`
7837 echo "configure: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7846 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
7847 cat >> confdefs.h <<EOF
7848 #define SIZEOF_LONG $ac_cv_sizeof_long
7854 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
7855 echo "configure:7856: checking for 8-bit clean memcmp" >&5
7856 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
7857 echo $ac_n "(cached) $ac_c" 1>&6
7859 if test "$cross_compiling" = yes; then
7860 ac_cv_func_memcmp_clean=no
7862 cat > conftest.$ac_ext <<EOF
7863 #line 7864 "configure"
7864 #include "confdefs.h"
7868 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
7869 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
7873 if { (eval echo configure:7874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7875 ac_cv_func_memcmp_clean=yes
7877 echo "configure: failed program was:" >&5
7878 cat conftest.$ac_ext >&5
7880 ac_cv_func_memcmp_clean=no
7887 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
7888 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
7890 echo $ac_n "checking for strftime""... $ac_c" 1>&6
7891 echo "configure:7892: checking for strftime" >&5
7892 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7895 cat > conftest.$ac_ext <<EOF
7896 #line 7897 "configure"
7897 #include "confdefs.h"
7898 /* System header to define __stub macros and hopefully few prototypes,
7899 which can conflict with char strftime(); below. */
7901 /* Override any gcc2 internal prototype to avoid an error. */
7902 /* We use char because int might match the return type of a gcc2
7903 builtin and then its argument prototype would still apply. */
7908 /* The GNU C library defines this for functions which it implements
7909 to always fail with ENOSYS. Some functions are actually named
7910 something starting with __ and the normal name is an alias. */
7911 #if defined (__stub_strftime) || defined (__stub___strftime)
7919 if { (eval echo configure:7920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7921 eval "ac_cv_func_strftime=yes"
7923 echo "configure: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7926 eval "ac_cv_func_strftime=no"
7931 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
7932 echo "$ac_t""yes" 1>&6
7933 cat >> confdefs.h <<\EOF
7934 #define HAVE_STRFTIME 1
7938 echo "$ac_t""no" 1>&6
7939 # strftime is in -lintl on SCO UNIX.
7940 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
7941 echo "configure:7942: checking for strftime in -lintl" >&5
7942 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
7943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7946 ac_save_LIBS="$LIBS"
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 /* Override any gcc2 internal prototype to avoid an error. */
7952 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7962 eval "ac_cv_lib_$ac_lib_var=yes"
7964 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7967 eval "ac_cv_lib_$ac_lib_var=no"
7970 LIBS="$ac_save_LIBS"
7973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7974 echo "$ac_t""yes" 1>&6
7975 cat >> confdefs.h <<\EOF
7976 #define HAVE_STRFTIME 1
7981 echo "$ac_t""no" 1>&6
7986 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7987 echo "configure:7988: checking for vprintf" >&5
7988 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
7989 echo $ac_n "(cached) $ac_c" 1>&6
7991 cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7994 /* System header to define __stub macros and hopefully few prototypes,
7995 which can conflict with char vprintf(); below. */
7997 /* Override any gcc2 internal prototype to avoid an error. */
7998 /* We use char because int might match the return type of a gcc2
7999 builtin and then its argument prototype would still apply. */
8004 /* The GNU C library defines this for functions which it implements
8005 to always fail with ENOSYS. Some functions are actually named
8006 something starting with __ and the normal name is an alias. */
8007 #if defined (__stub_vprintf) || defined (__stub___vprintf)
8015 if { (eval echo configure:8016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8017 eval "ac_cv_func_vprintf=yes"
8019 echo "configure: failed program was:" >&5
8020 cat conftest.$ac_ext >&5
8022 eval "ac_cv_func_vprintf=no"
8027 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8028 echo "$ac_t""yes" 1>&6
8029 cat >> confdefs.h <<\EOF
8030 #define HAVE_VPRINTF 1
8034 echo "$ac_t""no" 1>&6
8037 if test "$ac_cv_func_vprintf" != yes; then
8038 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8039 echo "configure:8040: checking for _doprnt" >&5
8040 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8041 echo $ac_n "(cached) $ac_c" 1>&6
8043 cat > conftest.$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8046 /* System header to define __stub macros and hopefully few prototypes,
8047 which can conflict with char _doprnt(); below. */
8049 /* Override any gcc2 internal prototype to avoid an error. */
8050 /* We use char because int might match the return type of a gcc2
8051 builtin and then its argument prototype would still apply. */
8056 /* The GNU C library defines this for functions which it implements
8057 to always fail with ENOSYS. Some functions are actually named
8058 something starting with __ and the normal name is an alias. */
8059 #if defined (__stub__doprnt) || defined (__stub____doprnt)
8067 if { (eval echo configure:8068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8069 eval "ac_cv_func__doprnt=yes"
8071 echo "configure: failed program was:" >&5
8072 cat conftest.$ac_ext >&5
8074 eval "ac_cv_func__doprnt=no"
8079 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8080 echo "$ac_t""yes" 1>&6
8081 cat >> confdefs.h <<\EOF
8082 #define HAVE_DOPRNT 1
8086 echo "$ac_t""no" 1>&6
8092 if test $ac_cv_func_vprintf = yes ; then
8093 for ac_func in vsnprintf vsprintf
8095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8096 echo "configure:8097: checking for $ac_func" >&5
8097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
8100 cat > conftest.$ac_ext <<EOF
8101 #line 8102 "configure"
8102 #include "confdefs.h"
8103 /* System header to define __stub macros and hopefully few prototypes,
8104 which can conflict with char $ac_func(); below. */
8106 /* Override any gcc2 internal prototype to avoid an error. */
8107 /* We use char because int might match the return type of a gcc2
8108 builtin and then its argument prototype would still apply. */
8113 /* The GNU C library defines this for functions which it implements
8114 to always fail with ENOSYS. Some functions are actually named
8115 something starting with __ and the normal name is an alias. */
8116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8124 if { (eval echo configure:8125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8126 eval "ac_cv_func_$ac_func=yes"
8128 echo "configure: failed program was:" >&5
8129 cat conftest.$ac_ext >&5
8131 eval "ac_cv_func_$ac_func=no"
8136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8137 echo "$ac_t""yes" 1>&6
8138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8139 cat >> confdefs.h <<EOF
8140 #define $ac_tr_func 1
8144 echo "$ac_t""no" 1>&6
8150 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
8151 echo "configure:8152: checking for wait3 that fills in rusage" >&5
8152 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
8153 echo $ac_n "(cached) $ac_c" 1>&6
8155 if test "$cross_compiling" = yes; then
8156 ac_cv_func_wait3_rusage=no
8158 cat > conftest.$ac_ext <<EOF
8159 #line 8160 "configure"
8160 #include "confdefs.h"
8161 #include <sys/types.h>
8162 #include <sys/time.h>
8163 #include <sys/resource.h>
8165 /* HP-UX has wait3 but does not fill in rusage at all. */
8169 /* Use a field that we can force nonzero --
8170 voluntary context switches.
8171 For systems like NeXT and OSF/1 that don't set it,
8172 also use the system CPU time. And page faults (I/O) for Linux. */
8174 r.ru_stime.tv_sec = 0;
8175 r.ru_stime.tv_usec = 0;
8176 r.ru_majflt = r.ru_minflt = 0;
8178 case 0: /* Child. */
8179 sleep(1); /* Give up the CPU. */
8181 case -1: _exit(0); /* What can we do? */
8182 default: /* Parent. */
8184 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
8185 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
8186 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
8190 if { (eval echo configure:8191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8192 ac_cv_func_wait3_rusage=yes
8194 echo "configure: failed program was:" >&5
8195 cat conftest.$ac_ext >&5
8197 ac_cv_func_wait3_rusage=no
8204 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
8205 if test $ac_cv_func_wait3_rusage = yes; then
8206 cat >> confdefs.h <<\EOF
8207 #define HAVE_WAIT3 1
8243 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8244 echo "configure:8245: checking for $ac_func" >&5
8245 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8246 echo $ac_n "(cached) $ac_c" 1>&6
8248 cat > conftest.$ac_ext <<EOF
8249 #line 8250 "configure"
8250 #include "confdefs.h"
8251 /* System header to define __stub macros and hopefully few prototypes,
8252 which can conflict with char $ac_func(); below. */
8254 /* Override any gcc2 internal prototype to avoid an error. */
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8261 /* The GNU C library defines this for functions which it implements
8262 to always fail with ENOSYS. Some functions are actually named
8263 something starting with __ and the normal name is an alias. */
8264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8272 if { (eval echo configure:8273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8274 eval "ac_cv_func_$ac_func=yes"
8276 echo "configure: failed program was:" >&5
8277 cat conftest.$ac_ext >&5
8279 eval "ac_cv_func_$ac_func=no"
8284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8285 echo "$ac_t""yes" 1>&6
8286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8287 cat >> confdefs.h <<EOF
8288 #define $ac_tr_func 1
8292 echo "$ac_t""no" 1>&6
8297 # these functions are required to build a thread_safe -lldap
8305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8306 echo "configure:8307: checking for $ac_func" >&5
8307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8308 echo $ac_n "(cached) $ac_c" 1>&6
8310 cat > conftest.$ac_ext <<EOF
8311 #line 8312 "configure"
8312 #include "confdefs.h"
8313 /* System header to define __stub macros and hopefully few prototypes,
8314 which can conflict with char $ac_func(); below. */
8316 /* Override any gcc2 internal prototype to avoid an error. */
8317 /* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8323 /* The GNU C library defines this for functions which it implements
8324 to always fail with ENOSYS. Some functions are actually named
8325 something starting with __ and the normal name is an alias. */
8326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8334 if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8336 eval "ac_cv_func_$ac_func=yes"
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8341 eval "ac_cv_func_$ac_func=no"
8346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8347 echo "$ac_t""yes" 1>&6
8348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8349 cat >> confdefs.h <<EOF
8350 #define $ac_tr_func 1
8354 echo "$ac_t""no" 1>&6
8359 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
8360 echo "configure:8361: checking number of arguments of ctime_r" >&5
8361 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
8362 echo $ac_n "(cached) $ac_c" 1>&6
8364 cat > conftest.$ac_ext <<EOF
8365 #line 8366 "configure"
8366 #include "confdefs.h"
8369 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
8372 if { (eval echo configure:8373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8374 ol_cv_func_ctime_r_nargs=3
8376 echo "configure: failed program was:" >&5
8377 cat conftest.$ac_ext >&5
8379 ol_cv_func_ctime_r_nargs=0
8382 if test $ol_cv_func_ctime_r_nargs = 0 ; then
8383 cat > conftest.$ac_ext <<EOF
8384 #line 8385 "configure"
8385 #include "confdefs.h"
8388 time_t ti; char *buffer;
8389 ctime_r(&ti,buffer);
8392 if { (eval echo configure:8393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8394 ol_cv_func_ctime_r_nargs=2
8396 echo "configure: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8399 ol_cv_func_ctime_r_nargs=0
8406 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
8407 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
8408 cat >> confdefs.h <<EOF
8409 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
8415 if test $ac_cv_func_strtok_r = yes \
8416 -a $ac_cv_func_ctime_r = yes \
8417 -a $ol_cv_func_ctime_r_nargs -ge 2 -a $ol_cv_func_ctime_r_nargs -le 3 \
8418 -a $ac_cv_func_gethostbyaddr_r = yes \
8419 -a $ac_cv_func_gethostbyname_r = yes \
8422 cat >> confdefs.h <<\EOF
8423 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
8428 if test $ol_link_threads != no ; then
8429 cat >> confdefs.h <<\EOF
8430 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
8435 for ac_func in getopt strdup tempnam
8437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8438 echo "configure:8439: checking for $ac_func" >&5
8439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8440 echo $ac_n "(cached) $ac_c" 1>&6
8442 cat > conftest.$ac_ext <<EOF
8443 #line 8444 "configure"
8444 #include "confdefs.h"
8445 /* System header to define __stub macros and hopefully few prototypes,
8446 which can conflict with char $ac_func(); below. */
8448 /* Override any gcc2 internal prototype to avoid an error. */
8449 /* We use char because int might match the return type of a gcc2
8450 builtin and then its argument prototype would still apply. */
8455 /* The GNU C library defines this for functions which it implements
8456 to always fail with ENOSYS. Some functions are actually named
8457 something starting with __ and the normal name is an alias. */
8458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8466 if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8468 eval "ac_cv_func_$ac_func=yes"
8470 echo "configure: failed program was:" >&5
8471 cat conftest.$ac_ext >&5
8473 eval "ac_cv_func_$ac_func=no"
8478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8479 echo "$ac_t""yes" 1>&6
8480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8481 cat >> confdefs.h <<EOF
8482 #define $ac_tr_func 1
8486 echo "$ac_t""no" 1>&6
8487 LIBOBJS="$LIBOBJS ${ac_func}.o"
8493 # Check Configuration
8495 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
8496 echo "configure:8497: checking declaration of sys_errlist" >&5
8497 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
8498 echo $ac_n "(cached) $ac_c" 1>&6
8501 cat > conftest.$ac_ext <<EOF
8502 #line 8503 "configure"
8503 #include "confdefs.h"
8506 #include <sys/types.h>
8509 char *c = (char *) *sys_errlist
8512 if { (eval echo configure:8513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8514 ol_cv_dcl_sys_errlist=yes
8516 echo "configure: failed program was:" >&5
8517 cat conftest.$ac_ext >&5
8519 ol_cv_dcl_sys_errlist=no
8524 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
8526 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
8527 if test $ol_cv_dcl_sys_errlist = no ; then
8528 cat >> confdefs.h <<\EOF
8529 #define DECL_SYS_ERRLIST 1
8532 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
8533 echo "configure:8534: checking existence of sys_errlist" >&5
8534 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
8535 echo $ac_n "(cached) $ac_c" 1>&6
8538 cat > conftest.$ac_ext <<EOF
8539 #line 8540 "configure"
8540 #include "confdefs.h"
8543 char *c = (char *) *sys_errlist
8546 if { (eval echo configure:8547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8548 ol_cv_have_sys_errlist=yes
8550 echo "configure: failed program was:" >&5
8551 cat conftest.$ac_ext >&5
8553 ol_cv_have_sys_errlist=no
8558 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
8563 if test "$ol_enable_debug" != no ; then
8564 cat >> confdefs.h <<\EOF
8565 #define LDAP_DEBUG 1
8569 if test "$ol_enable_syslog" = yes ; then
8570 cat >> confdefs.h <<\EOF
8571 #define LDAP_SYSLOG 1
8575 if test "$ol_enable_libui" = yes ; then
8576 cat >> confdefs.h <<\EOF
8577 #define LDAP_LIBUI 1
8581 if test "$ol_enable_cache" = no ; then
8582 cat >> confdefs.h <<\EOF
8583 #define LDAP_NOCACHE 1
8587 if test "$ol_enable_dns" != no ; then
8588 cat >> confdefs.h <<\EOF
8589 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS 1
8593 if test "$ol_enable_proctitle" != no ; then
8594 cat >> confdefs.h <<\EOF
8595 #define LDAP_PROCTITLE 1
8599 if test "$ol_enable_referrals" != no ; then
8600 cat >> confdefs.h <<\EOF
8601 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS 1
8605 if test "$ol_enable_cldap" != no ; then
8606 cat >> confdefs.h <<\EOF
8607 #define LDAP_CONNECTIONLESS 1
8612 if test "$ol_enable_aclgroups" != no ; then
8613 cat >> confdefs.h <<\EOF
8614 #define SLAPD_ACLGROUPS 1
8618 if test "$ol_enable_crypt" != no ; then
8619 cat >> confdefs.h <<\EOF
8620 #define SLAPD_CRYPT 1
8624 if test "$ol_enable_cleartext" != no ; then
8625 cat >> confdefs.h <<\EOF
8626 #define SLAPD_CLEARTEXT 1
8630 if test "$ol_enable_phonetic" != no ; then
8631 cat >> confdefs.h <<\EOF
8632 #define SLAPD_PHONETIC 1
8636 if test "$ol_enable_rlookups" != no ; then
8637 cat >> confdefs.h <<\EOF
8638 #define SLAPD_RLOOKUPS 1
8643 if test "$ol_link_ldbm" != no ; then
8644 cat >> confdefs.h <<\EOF
8645 #define SLAPD_LDBM 1
8652 if test "$ol_enable_passwd" != no ; then
8653 cat >> confdefs.h <<\EOF
8654 #define SLAPD_PASSWD 1
8661 if test "$ol_enable_shell" != no ; then
8662 cat >> confdefs.h <<\EOF
8663 #define SLAPD_SHELL 1
8670 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
8671 $BUILD_SLAPD = yes ; then
8675 if test "$ol_link_isode" != no ; then
8700 cat > confcache <<\EOF
8701 # This file is a shell script that caches the results of configure
8702 # tests run on this system so they can be shared between configure
8703 # scripts and configure runs. It is not useful on other systems.
8704 # If it contains results you don't want to keep, you may remove or edit it.
8706 # By default, configure uses ./config.cache as the cache file,
8707 # creating it if it does not exist already. You can give configure
8708 # the --cache-file=FILE option to use a different cache file; that is
8709 # what configure does when it calls configure scripts in
8710 # subdirectories, so they share the cache.
8711 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8712 # config.status only pays attention to the cache file if you give it the
8713 # --recheck option to rerun configure.
8716 # The following way of writing the cache mishandles newlines in values,
8717 # but we know of no workaround that is simple, portable, and efficient.
8718 # So, don't put newlines in cache variables' values.
8719 # Ultrix sh set writes to stderr and can't be redirected directly,
8720 # and sets the high bit in the cache file unless we assign to the vars.
8722 case `(ac_space=' '; set) 2>&1` in
8724 # `set' does not quote correctly, so add quotes (double-quote substitution
8725 # turns \\\\ into \\, and sed turns \\ into \).
8727 -e "s/'/'\\\\''/g" \
8728 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8731 # `set' quotes correctly as required by POSIX, so do not add quotes.
8732 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8735 if cmp -s $cache_file confcache; then
8738 if test -w $cache_file; then
8739 echo "updating cache $cache_file"
8740 cat confcache > $cache_file
8742 echo "not updating unwritable cache $cache_file"
8747 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8749 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8750 # Let make expand exec_prefix.
8751 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8753 # Any assignment to VPATH causes Sun make to only execute
8754 # the first set of double-colon rules, so remove it if not needed.
8755 # If there is a colon in the path, we need to keep it.
8756 if test "x$srcdir" = x.; then
8757 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8760 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8762 DEFS=-DHAVE_CONFIG_H
8764 # Without the "./", some shells look in PATH for config.status.
8765 : ${CONFIG_STATUS=./config.status}
8767 echo creating $CONFIG_STATUS
8768 rm -f $CONFIG_STATUS
8769 cat > $CONFIG_STATUS <<EOF
8771 # Generated automatically by configure.
8772 # Run this file to recreate the current configuration.
8773 # This directory was configured as follows,
8774 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8776 # $0 $ac_configure_args
8778 # Compiler output produced by configure, useful for debugging
8779 # configure, is in ./config.log if it exists.
8781 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8784 case "\$ac_option" in
8785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8786 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8787 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8788 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8789 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8791 -help | --help | --hel | --he | --h)
8792 echo "\$ac_cs_usage"; exit 0 ;;
8793 *) echo "\$ac_cs_usage"; exit 1 ;;
8797 ac_given_srcdir=$srcdir
8798 ac_given_INSTALL="$INSTALL"
8800 trap 'rm -fr `echo "\
8801 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8802 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8803 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8804 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8805 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8806 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8807 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8808 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8809 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8810 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8811 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8812 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8813 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8814 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8815 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8816 include/Makefile:build/top.mk:include/Makefile.in \
8817 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8818 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8819 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8820 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8821 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
8822 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8823 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8824 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8825 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8826 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8827 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8828 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8829 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8830 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8831 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8832 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8833 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8834 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8835 tests/Makefile:build/top.mk:tests/Makefile.in \
8836 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8838 cat >> $CONFIG_STATUS <<EOF
8840 # Protect against being on the right side of a sed subst in config.status.
8841 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8842 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8845 s%@CFLAGS@%$CFLAGS%g
8846 s%@CPPFLAGS@%$CPPFLAGS%g
8847 s%@CXXFLAGS@%$CXXFLAGS%g
8849 s%@LDFLAGS@%$LDFLAGS%g
8851 s%@exec_prefix@%$exec_prefix%g
8852 s%@prefix@%$prefix%g
8853 s%@program_transform_name@%$program_transform_name%g
8854 s%@bindir@%$bindir%g
8855 s%@sbindir@%$sbindir%g
8856 s%@libexecdir@%$libexecdir%g
8857 s%@datadir@%$datadir%g
8858 s%@sysconfdir@%$sysconfdir%g
8859 s%@sharedstatedir@%$sharedstatedir%g
8860 s%@localstatedir@%$localstatedir%g
8861 s%@libdir@%$libdir%g
8862 s%@includedir@%$includedir%g
8863 s%@oldincludedir@%$oldincludedir%g
8864 s%@infodir@%$infodir%g
8865 s%@mandir@%$mandir%g
8866 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8867 s%@INSTALL_DATA@%$INSTALL_DATA%g
8868 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8869 s%@PACKAGE@%$PACKAGE%g
8870 s%@VERSION@%$VERSION%g
8871 s%@ACLOCAL@%$ACLOCAL%g
8872 s%@AUTOCONF@%$AUTOCONF%g
8873 s%@AUTOMAKE@%$AUTOMAKE%g
8874 s%@AUTOHEADER@%$AUTOHEADER%g
8875 s%@MAKEINFO@%$MAKEINFO%g
8876 s%@SET_MAKE@%$SET_MAKE%g
8877 s%@top_builddir@%$top_builddir%g
8878 s%@ldap_subdir@%$ldap_subdir%g
8880 s%@host_alias@%$host_alias%g
8881 s%@host_cpu@%$host_cpu%g
8882 s%@host_vendor@%$host_vendor%g
8883 s%@host_os@%$host_os%g
8884 s%@RANLIB@%$RANLIB%g
8889 s%@LIBTOOL@%$LIBTOOL%g
8890 s%@SENDMAIL@%$SENDMAIL%g
8891 s%@EDITOR@%$EDITOR%g
8892 s%@FINGER@%$FINGER%g
8895 s%@LIBOBJS@%$LIBOBJS%g
8896 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
8897 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
8898 s%@BUILD_LDBM@%$BUILD_LDBM%g
8899 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
8900 s%@BUILD_SHELL@%$BUILD_SHELL%g
8901 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
8902 s%@LDAP_LIBS@%$LDAP_LIBS%g
8903 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
8904 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
8905 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
8906 s%@LDBM_LIBS@%$LDBM_LIBS%g
8907 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
8908 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
8909 s%@KRB_LIBS@%$KRB_LIBS%g
8910 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
8915 cat >> $CONFIG_STATUS <<\EOF
8917 # Split the substitutions into bite-sized pieces for seds with
8918 # small command number limits, like on Digital OSF/1 and HP-UX.
8919 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8920 ac_file=1 # Number of current file.
8921 ac_beg=1 # First line for current file.
8922 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8925 while $ac_more_lines; do
8926 if test $ac_beg -gt 1; then
8927 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8929 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8931 if test ! -s conftest.s$ac_file; then
8933 rm -f conftest.s$ac_file
8935 if test -z "$ac_sed_cmds"; then
8936 ac_sed_cmds="sed -f conftest.s$ac_file"
8938 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8940 ac_file=`expr $ac_file + 1`
8942 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8945 if test -z "$ac_sed_cmds"; then
8950 cat >> $CONFIG_STATUS <<EOF
8952 CONFIG_FILES=\${CONFIG_FILES-"\
8953 Makefile:build/top.mk:Makefile.in:build/dir.mk \
8954 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
8955 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
8956 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
8957 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
8958 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
8959 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
8960 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
8961 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
8962 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
8963 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
8964 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
8965 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
8966 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
8967 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
8968 include/Makefile:build/top.mk:include/Makefile.in \
8969 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
8970 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
8971 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
8972 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
8973 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
8974 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
8975 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
8976 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
8977 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
8978 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
8979 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
8980 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
8981 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
8982 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
8983 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
8984 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
8985 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
8986 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
8987 tests/Makefile:build/top.mk:tests/Makefile.in \
8990 cat >> $CONFIG_STATUS <<\EOF
8991 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8992 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8994 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8995 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8996 *) ac_file_in="${ac_file}.in" ;;
8999 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9001 # Remove last slash and all that follows it. Not all systems have dirname.
9002 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9003 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9004 # The file is in a subdirectory.
9005 test ! -d "$ac_dir" && mkdir "$ac_dir"
9006 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9007 # A "../" for each directory in $ac_dir_suffix.
9008 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9010 ac_dir_suffix= ac_dots=
9013 case "$ac_given_srcdir" in
9015 if test -z "$ac_dots"; then top_srcdir=.
9016 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9017 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9019 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9020 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9023 case "$ac_given_INSTALL" in
9024 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9025 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9028 echo creating "$ac_file"
9030 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9032 *Makefile*) ac_comsub="1i\\
9033 # $configure_input" ;;
9037 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9039 s%@configure_input@%$configure_input%g
9040 s%@srcdir@%$srcdir%g
9041 s%@top_srcdir@%$top_srcdir%g
9042 s%@INSTALL@%$INSTALL%g
9043 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9047 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9048 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9050 # ac_d sets the value in "#define NAME VALUE" lines.
9051 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9052 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9055 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9056 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9057 ac_uB='\([ ]\)%\1#\2define\3'
9060 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9061 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9062 ac_eB='$%\1#\2define\3'
9066 if test "${CONFIG_HEADERS+set}" != set; then
9068 cat >> $CONFIG_STATUS <<EOF
9069 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
9071 cat >> $CONFIG_STATUS <<\EOF
9073 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9076 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9077 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9078 *) ac_file_in="${ac_file}.in" ;;
9081 echo creating $ac_file
9083 rm -f conftest.frag conftest.in conftest.out
9084 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9085 cat $ac_file_inputs > conftest.in
9089 # Transform confdefs.h into a sed script conftest.vals that substitutes
9090 # the proper values into config.h.in to produce config.h. And first:
9091 # Protect against being on the right side of a sed subst in config.status.
9092 # Protect against being in an unquoted here document in config.status.
9094 cat > conftest.hdr <<\EOF
9097 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9101 sed -n -f conftest.hdr confdefs.h > conftest.vals
9104 # This sed command replaces #undef with comments. This is necessary, for
9105 # example, in the case of _POSIX_SOURCE, which is predefined and required
9106 # on some systems where configure will not decide to define it.
9107 cat >> conftest.vals <<\EOF
9108 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9111 # Break up conftest.vals because some shells have a limit on
9112 # the size of here documents, and old seds have small limits too.
9117 ac_lines=`grep -c . conftest.vals`
9118 # grep -c gives empty output for an empty file on some AIX systems.
9119 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9120 # Write a limited-size here document to conftest.frag.
9121 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9122 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9124 sed -f conftest.frag conftest.in > conftest.out
9126 mv conftest.out conftest.in
9128 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9130 mv conftest.tail conftest.vals
9134 cat >> $CONFIG_STATUS <<\EOF
9135 rm -f conftest.frag conftest.h
9136 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9137 cat conftest.in >> conftest.h
9139 if cmp -s $ac_file conftest.h 2>/dev/null; then
9140 echo "$ac_file is unchanged"
9143 # Remove last slash and all that follows it. Not all systems have dirname.
9144 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9145 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9146 # The file is in a subdirectory.
9147 test ! -d "$ac_dir" && mkdir "$ac_dir"
9150 mv conftest.h $ac_file
9155 cat >> $CONFIG_STATUS <<EOF
9158 cat >> $CONFIG_STATUS <<\EOF
9161 echo Please \"make depend\" to build dependencies
9165 chmod +x $CONFIG_STATUS
9166 rm -fr confdefs* $ac_clean_files
9167 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1