3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --with-subdir=DIR change default subdirectory used for installs"
18 --enable-debug enable debugging (yes)"
20 --enable-syslog enable syslog support (auto)"
22 --enable-proctitle enable proctitle support (yes)"
24 --enable-cache enable caching (yes)"
26 --enable-dns enable V2 DNS extension (no)"
28 --enable-referrals enable V2 Referrals extension (yes)"
30 --enable-cldap enable connectionless ldap (no)"
32 --enable-x-compile enable cross compiling (no)"
34 --enable-dmalloc enable debug malloc support (no)"
36 --with-kerberos with Kerberos support (auto)"
38 --with-readline with readline support (auto)"
40 --with-threads use threads (auto)"
42 --with-tls with TLS/SSL support (auto)"
44 --with-yielding-select with implicitly yielding select (auto)"
48 --enable-ldapd enable building ldapd (no)"
52 --enable-slapd enable building slapd (yes)"
54 --enable-aclgroups enable ACL group support (auto)"
56 --enable-cleartext enable cleartext passwords (yes)"
58 --enable-crypt enable crypt(3) passwords (auto)"
60 --enable-modules enable dynamic module support (no)"
62 --enable-phonetic enable phonetic/soundex (no)"
64 --enable-rlookups enable reverse lookups (auto)"
66 --enable-wrappers enable tcp wrapper support (no)"
68 --enable-bdb2 enable bdb2 backend (no)"
70 --enable-ldap enable ldap backend (no)"
72 --enable-ldbm enable ldbm backend (yes)"
74 --with-ldbm-api use LDBM API (auto)"
76 --with-ldbm-type use LDBM type (auto)"
78 --enable-passwd enable passwd backend (no)"
80 --enable-perl enable perl backend (no)"
82 --enable-shell enable shell backend (no)"
84 --enable-tcl enable tcl backend (no)"
88 --enable-slurpd enable building slurpd (auto)"
90 Library Generation & Linking Options"
92 --enable-static build static libraries [default=yes]
93 --enable-static=PKGS only build shared libraries if the current package
94 appears as an element in the PKGS list"
96 --enable-shared build shared libraries [default=yes]
97 --enable-shared=PKGS only build shared libraries if the current package
98 appears as an element in the PKGS list"
100 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
102 # Initialize some variables set by options.
103 # The variables have the same names as the options, with
104 # dashes changed to underlines.
106 cache_file=./config.cache
115 program_transform_name=s,x,x,
123 bindir='${exec_prefix}/bin'
124 sbindir='${exec_prefix}/sbin'
125 libexecdir='${exec_prefix}/libexec'
126 datadir='${prefix}/share'
127 sysconfdir='${prefix}/etc'
128 sharedstatedir='${prefix}/com'
129 localstatedir='${prefix}/var'
130 libdir='${exec_prefix}/lib'
131 includedir='${prefix}/include'
132 oldincludedir='/usr/include'
133 infodir='${prefix}/info'
134 mandir='${prefix}/man'
136 # Initialize some other variables.
139 SHELL=${CONFIG_SHELL-/bin/sh}
140 # Maximum number of lines to put in a shell here document.
147 # If the previous option needs an argument, assign it.
148 if test -n "$ac_prev"; then
149 eval "$ac_prev=\$ac_option"
155 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
159 # Accept the important Cygnus configure options, so we can diagnose typos.
163 -bindir | --bindir | --bindi | --bind | --bin | --bi)
165 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
166 bindir="$ac_optarg" ;;
168 -build | --build | --buil | --bui | --bu)
170 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
171 build="$ac_optarg" ;;
173 -cache-file | --cache-file | --cache-fil | --cache-fi \
174 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
175 ac_prev=cache_file ;;
176 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
177 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
178 cache_file="$ac_optarg" ;;
180 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
182 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
184 datadir="$ac_optarg" ;;
186 -disable-* | --disable-*)
187 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
188 # Reject names that are not valid shell variable names.
189 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
190 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}=no" ;;
195 -enable-* | --enable-*)
196 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
197 # Reject names that are not valid shell variable names.
198 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
199 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
206 eval "enable_${ac_feature}='$ac_optarg'" ;;
208 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
209 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
210 | --exec | --exe | --ex)
211 ac_prev=exec_prefix ;;
212 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
213 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
214 | --exec=* | --exe=* | --ex=*)
215 exec_prefix="$ac_optarg" ;;
217 -gas | --gas | --ga | --g)
218 # Obsolete; use --with-gas.
221 -help | --help | --hel | --he)
222 # Omit some internal or obsolete options to make the list less imposing.
223 # This message is too long to be a string in the A/UX 3.1 sh.
225 Usage: configure [options] [host]
226 Options: [defaults in brackets after descriptions]
228 --cache-file=FILE cache test results in FILE
229 --help print this message
230 --no-create do not create output files
231 --quiet, --silent do not print \`checking...' messages
232 --version print the version of autoconf that created configure
233 Directory and file names:
234 --prefix=PREFIX install architecture-independent files in PREFIX
236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
238 --bindir=DIR user executables in DIR [EPREFIX/bin]
239 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
240 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
241 --datadir=DIR read-only architecture-independent data in DIR
243 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
244 --sharedstatedir=DIR modifiable architecture-independent data in DIR
246 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
247 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
248 --includedir=DIR C header files in DIR [PREFIX/include]
249 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
250 --infodir=DIR info documentation in DIR [PREFIX/info]
251 --mandir=DIR man documentation in DIR [PREFIX/man]
252 --srcdir=DIR find the sources in DIR [configure dir or ..]
253 --program-prefix=PREFIX prepend PREFIX to installed program names
254 --program-suffix=SUFFIX append SUFFIX to installed program names
255 --program-transform-name=PROGRAM
256 run sed PROGRAM on installed program names
260 --build=BUILD configure for building on BUILD [BUILD=HOST]
261 --host=HOST configure for HOST [guessed]
262 --target=TARGET configure for TARGET [TARGET=HOST]
263 Features and packages:
264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
266 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
267 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
268 --x-includes=DIR X include files are in DIR
269 --x-libraries=DIR X library files are in DIR
271 if test -n "$ac_help"; then
272 echo "--enable and --with options recognized:$ac_help"
276 -host | --host | --hos | --ho)
278 -host=* | --host=* | --hos=* | --ho=*)
281 -includedir | --includedir | --includedi | --included | --include \
282 | --includ | --inclu | --incl | --inc)
283 ac_prev=includedir ;;
284 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
285 | --includ=* | --inclu=* | --incl=* | --inc=*)
286 includedir="$ac_optarg" ;;
288 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
291 infodir="$ac_optarg" ;;
293 -libdir | --libdir | --libdi | --libd)
295 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 libdir="$ac_optarg" ;;
298 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
299 | --libexe | --libex | --libe)
300 ac_prev=libexecdir ;;
301 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
302 | --libexe=* | --libex=* | --libe=*)
303 libexecdir="$ac_optarg" ;;
305 -localstatedir | --localstatedir | --localstatedi | --localstated \
306 | --localstate | --localstat | --localsta | --localst \
307 | --locals | --local | --loca | --loc | --lo)
308 ac_prev=localstatedir ;;
309 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
310 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
311 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
312 localstatedir="$ac_optarg" ;;
314 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
317 mandir="$ac_optarg" ;;
320 # Obsolete; use --without-fp.
323 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
327 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
328 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
331 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
332 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
333 | --oldin | --oldi | --old | --ol | --o)
334 ac_prev=oldincludedir ;;
335 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
336 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
337 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
338 oldincludedir="$ac_optarg" ;;
340 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 prefix="$ac_optarg" ;;
345 -program-prefix | --program-prefix | --program-prefi | --program-pref \
346 | --program-pre | --program-pr | --program-p)
347 ac_prev=program_prefix ;;
348 -program-prefix=* | --program-prefix=* | --program-prefi=* \
349 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
350 program_prefix="$ac_optarg" ;;
352 -program-suffix | --program-suffix | --program-suffi | --program-suff \
353 | --program-suf | --program-su | --program-s)
354 ac_prev=program_suffix ;;
355 -program-suffix=* | --program-suffix=* | --program-suffi=* \
356 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
357 program_suffix="$ac_optarg" ;;
359 -program-transform-name | --program-transform-name \
360 | --program-transform-nam | --program-transform-na \
361 | --program-transform-n | --program-transform- \
362 | --program-transform | --program-transfor \
363 | --program-transfo | --program-transf \
364 | --program-trans | --program-tran \
365 | --progr-tra | --program-tr | --program-t)
366 ac_prev=program_transform_name ;;
367 -program-transform-name=* | --program-transform-name=* \
368 | --program-transform-nam=* | --program-transform-na=* \
369 | --program-transform-n=* | --program-transform-=* \
370 | --program-transform=* | --program-transfor=* \
371 | --program-transfo=* | --program-transf=* \
372 | --program-trans=* | --program-tran=* \
373 | --progr-tra=* | --program-tr=* | --program-t=*)
374 program_transform_name="$ac_optarg" ;;
376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
377 | -silent | --silent | --silen | --sile | --sil)
380 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 sbindir="$ac_optarg" ;;
386 -sharedstatedir | --sharedstatedir | --sharedstatedi \
387 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
388 | --sharedst | --shareds | --shared | --share | --shar \
390 ac_prev=sharedstatedir ;;
391 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
392 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
393 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 sharedstatedir="$ac_optarg" ;;
397 -site | --site | --sit)
399 -site=* | --site=* | --sit=*)
402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 srcdir="$ac_optarg" ;;
407 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
408 | --syscon | --sysco | --sysc | --sys | --sy)
409 ac_prev=sysconfdir ;;
410 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
411 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
412 sysconfdir="$ac_optarg" ;;
414 -target | --target | --targe | --targ | --tar | --ta | --t)
416 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
417 target="$ac_optarg" ;;
419 -v | -verbose | --verbose | --verbos | --verbo | --verb)
422 -version | --version | --versio | --versi | --vers)
423 echo "configure generated by autoconf version 2.13"
427 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
437 eval "with_${ac_package}='$ac_optarg'" ;;
439 -without-* | --without-*)
440 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}=no" ;;
449 # Obsolete; use --with-x.
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev=x_includes ;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
457 x_includes="$ac_optarg" ;;
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev=x_libraries ;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
464 x_libraries="$ac_optarg" ;;
466 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
470 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
471 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 if test "x$nonopt" != xNONE; then
474 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
482 if test -n "$ac_prev"; then
483 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488 # File descriptor usage:
491 # 2 errors and warnings
492 # 3 some systems may open it to /dev/tty
493 # 4 used on the Kubota Titan
494 # 6 checking for... messages and results
495 # 5 compiler messages saved in config.log
496 if test "$silent" = yes; then
504 This file contains any messages produced by compilers while
505 running configure, to aid debugging if configure makes a mistake.
508 # Strip out --no-create and --no-recursion so they do not pile up.
509 # Also quote any args containing shell metacharacters.
514 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
515 | --no-cr | --no-c) ;;
516 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
517 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
518 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
519 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
520 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
525 # Only set these to C if already set. These must not be set unconditionally
526 # because not all systems understand e.g. LANG=C (notably SCO).
527 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
528 # Non-C LC_CTYPE values break the ctype check.
529 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
530 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
531 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
532 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
535 rm -rf conftest* confdefs.h
536 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
539 # A filename unique to this package, relative to the directory that
540 # configure is in, which we can look for to find out if srcdir is correct.
541 ac_unique_file=build/version
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted=yes
546 # Try the directory containing this script, then its parent.
548 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
551 if test ! -r $srcdir/$ac_unique_file; then
555 ac_srcdir_defaulted=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
561 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
564 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566 # Prefer explicitly selected file to automatically selected ones.
567 if test -z "$CONFIG_SITE"; then
568 if test "x$prefix" != xNONE; then
569 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
571 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
574 for ac_site_file in $CONFIG_SITE; do
575 if test -r "$ac_site_file"; then
576 echo "loading site script $ac_site_file"
583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
584 ac_cpp='$CPP $CPPFLAGS'
585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
587 cross_compiling=$ac_cv_prog_cc_cross
591 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
592 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
593 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
600 ac_n= ac_c='\c' ac_t=
604 for ac_dir in build $srcdir/build; do
605 if test -f $ac_dir/install-sh; then
607 ac_install_sh="$ac_aux_dir/install-sh -c"
609 elif test -f $ac_dir/install.sh; then
611 ac_install_sh="$ac_aux_dir/install.sh -c"
615 if test -z "$ac_aux_dir"; then
616 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 OL_VERSION=`cat $ac_aux_dir/version`
623 if test -z "$OL_VERSION"; then
624 { echo "configure: error: could not determine version" 1>&2; exit 1; }
628 # Do some error checking and defaulting for the host and target type.
630 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
633 # 1. You are not allowed to specify --host, --target, and nonopt at the
635 # 2. Host defaults to nonopt.
636 # 3. If nonopt is not specified, then host defaults to the current host,
637 # as determined by config.guess.
638 # 4. Target and build default to nonopt.
639 # 5. If nonopt is not specified, then target and build default to host.
641 # The aliases save the names the user supplied, while $host etc.
642 # will get canonicalized.
643 case $host---$target---$nonopt in
644 NONE---*---* | *---NONE---* | *---*---NONE) ;;
645 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
649 # Make sure we can run config.sub.
650 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
651 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
654 echo $ac_n "checking host system type""... $ac_c" 1>&6
655 echo "configure:656: checking host system type" >&5
658 case "$host_alias" in
662 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
663 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
665 *) host_alias=$nonopt ;;
669 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
670 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
673 echo "$ac_t""$host" 1>&6
675 echo $ac_n "checking target system type""... $ac_c" 1>&6
676 echo "configure:677: checking target system type" >&5
679 case "$target_alias" in
682 NONE) target_alias=$host_alias ;;
683 *) target_alias=$nonopt ;;
687 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
688 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
689 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
690 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
691 echo "$ac_t""$target" 1>&6
693 echo $ac_n "checking build system type""... $ac_c" 1>&6
694 echo "configure:695: checking build system type" >&5
697 case "$build_alias" in
700 NONE) build_alias=$host_alias ;;
701 *) build_alias=$nonopt ;;
705 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
706 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
709 echo "$ac_t""$build" 1>&6
711 test "$host_alias" != "$target_alias" &&
712 test "$program_prefix$program_suffix$program_transform_name" = \
714 program_prefix=${target_alias}-
717 # Find a good install program. We prefer a C program (faster),
718 # so one script is as good as another. But avoid the broken or
719 # incompatible versions:
720 # SysV /etc/install, /usr/sbin/install
721 # SunOS /usr/etc/install
724 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
725 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
726 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
727 # ./install, which can be erroneously created by make from ./install.sh.
728 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
729 echo "configure:730: checking for a BSD compatible install" >&5
730 if test -z "$INSTALL"; then
731 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
735 for ac_dir in $PATH; do
736 # Account for people who put trailing slashes in PATH elements.
738 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
740 # OSF1 and SCO ODT 3.0 have their own names for install.
741 # Don't use installbsd from OSF since it installs stuff as root
743 for ac_prog in ginstall scoinst install; do
744 if test -f $ac_dir/$ac_prog; then
745 if test $ac_prog = install &&
746 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
747 # AIX install. It has an incompatible calling convention.
750 ac_cv_path_install="$ac_dir/$ac_prog -c"
761 if test "${ac_cv_path_install+set}" = set; then
762 INSTALL="$ac_cv_path_install"
764 # As a last resort, use the slow shell script. We don't cache a
765 # path for INSTALL within a source directory, because that will
766 # break other packages using the cache if that directory is
767 # removed, or if the path is relative.
768 INSTALL="$ac_install_sh"
771 echo "$ac_t""$INSTALL" 1>&6
773 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
774 # It thinks the first close brace ends the variable substitution.
775 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
777 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
779 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
781 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
782 echo "configure:783: checking whether build environment is sane" >&5
785 echo timestamp > conftestfile
786 # Do `set' in a subshell so we don't clobber the current shell's
787 # arguments. Must try -L first in case configure is actually a
788 # symlink; some systems play weird games with the mod time of symlinks
789 # (eg FreeBSD returns the mod time of the symlink's containing
792 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
793 if test "$*" = "X"; then
795 set X `ls -t $srcdir/configure conftestfile`
797 if test "$*" != "X $srcdir/configure conftestfile" \
798 && test "$*" != "X conftestfile $srcdir/configure"; then
800 # If neither matched, then we have a broken ls. This can happen
801 # if, for instance, CONFIG_SHELL is bash and it inherits a
802 # broken ls alias from the environment. This has actually
803 # happened. Such a system could not be considered "sane".
804 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
805 alias in your environment" 1>&2; exit 1; }
808 test "$2" = conftestfile
814 { echo "configure: error: newly created file is older than distributed files!
815 Check your system clock" 1>&2; exit 1; }
818 echo "$ac_t""yes" 1>&6
819 if test "$program_transform_name" = s,x,x,; then
820 program_transform_name=
822 # Double any \ or $. echo might interpret backslashes.
823 cat <<\EOF_SED > conftestsed
824 s,\\,\\\\,g; s,\$,$$,g
826 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
829 test "$program_prefix" != NONE &&
830 program_transform_name="s,^,${program_prefix},; $program_transform_name"
831 # Use a double $ so make ignores it.
832 test "$program_suffix" != NONE &&
833 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
835 # sed with no file args requires a program.
836 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
838 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
839 echo "configure:840: checking whether ${MAKE-make} sets \${MAKE}" >&5
840 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
841 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
844 cat > conftestmake <<\EOF
846 @echo 'ac_maketemp="${MAKE}"'
848 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
849 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
850 if test -n "$ac_maketemp"; then
851 eval ac_cv_prog_make_${ac_make}_set=yes
853 eval ac_cv_prog_make_${ac_make}_set=no
857 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
858 echo "$ac_t""yes" 1>&6
861 echo "$ac_t""no" 1>&6
862 SET_MAKE="MAKE=${MAKE-make}"
870 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
871 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
876 missing_dir=`cd $ac_aux_dir && pwd`
877 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
878 echo "configure:879: checking for working aclocal" >&5
879 # Run test in a subshell; some versions of sh will print an error if
880 # an executable is not found, even if stderr is redirected.
881 # Redirect stdin to placate older versions of autoconf. Sigh.
882 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
884 echo "$ac_t""found" 1>&6
886 ACLOCAL="$missing_dir/missing aclocal"
887 echo "$ac_t""missing" 1>&6
890 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
891 echo "configure:892: checking for working autoconf" >&5
892 # Run test in a subshell; some versions of sh will print an error if
893 # an executable is not found, even if stderr is redirected.
894 # Redirect stdin to placate older versions of autoconf. Sigh.
895 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
897 echo "$ac_t""found" 1>&6
899 AUTOCONF="$missing_dir/missing autoconf"
900 echo "$ac_t""missing" 1>&6
903 echo $ac_n "checking for working automake""... $ac_c" 1>&6
904 echo "configure:905: checking for working automake" >&5
905 # Run test in a subshell; some versions of sh will print an error if
906 # an executable is not found, even if stderr is redirected.
907 # Redirect stdin to placate older versions of autoconf. Sigh.
908 if (automake --version) < /dev/null > /dev/null 2>&1; then
910 echo "$ac_t""found" 1>&6
912 AUTOMAKE="$missing_dir/missing automake"
913 echo "$ac_t""missing" 1>&6
916 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
917 echo "configure:918: checking for working autoheader" >&5
918 # Run test in a subshell; some versions of sh will print an error if
919 # an executable is not found, even if stderr is redirected.
920 # Redirect stdin to placate older versions of autoconf. Sigh.
921 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
922 AUTOHEADER=autoheader
923 echo "$ac_t""found" 1>&6
925 AUTOHEADER="$missing_dir/missing autoheader"
926 echo "$ac_t""missing" 1>&6
929 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
930 echo "configure:931: checking for working makeinfo" >&5
931 # Run test in a subshell; some versions of sh will print an error if
932 # an executable is not found, even if stderr is redirected.
933 # Redirect stdin to placate older versions of autoconf. Sigh.
934 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
936 echo "$ac_t""found" 1>&6
938 MAKEINFO="$missing_dir/missing makeinfo"
939 echo "$ac_t""missing" 1>&6
944 cat >> confdefs.h <<EOF
945 #define OPENLDAP_PACKAGE "$PACKAGE"
948 cat >> confdefs.h <<EOF
949 #define OPENLDAP_VERSION "$VERSION"
955 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
956 echo "configure:957: checking configure arguments" >&5
961 cat >> confdefs.h <<\EOF
962 #define HAVE_MKVERSION 1
966 ldap_subdir="openldap"
968 # Check whether --with-subdir or --without-subdir was given.
969 if test "${with_subdir+set}" = set; then
970 withval="$with_subdir"
972 if test "$withval" = "no"; then
974 elif test "$withval" != "yes"; then
975 ldap_subdir="$withval"
981 # OpenLDAP --enable-debug
982 # Check whether --enable-debug or --disable-debug was given.
983 if test "${enable_debug+set}" = set; then
984 enableval="$enable_debug"
987 for ol_val in auto yes no ; do
988 if test "$enableval" = "$ol_val" ; then
992 if test "$ol_arg" = "invalid" ; then
993 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
995 ol_enable_debug="$ol_arg"
998 ol_enable_debug="yes"
1000 # end --enable-debug
1001 # OpenLDAP --enable-syslog
1002 # Check whether --enable-syslog or --disable-syslog was given.
1003 if test "${enable_syslog+set}" = set; then
1004 enableval="$enable_syslog"
1007 for ol_val in auto yes no ; do
1008 if test "$enableval" = "$ol_val" ; then
1012 if test "$ol_arg" = "invalid" ; then
1013 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1015 ol_enable_syslog="$ol_arg"
1018 ol_enable_syslog="auto"
1020 # end --enable-syslog
1021 # OpenLDAP --enable-proctitle
1022 # Check whether --enable-proctitle or --disable-proctitle was given.
1023 if test "${enable_proctitle+set}" = set; then
1024 enableval="$enable_proctitle"
1027 for ol_val in auto yes no ; do
1028 if test "$enableval" = "$ol_val" ; then
1032 if test "$ol_arg" = "invalid" ; then
1033 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1035 ol_enable_proctitle="$ol_arg"
1038 ol_enable_proctitle="yes"
1040 # end --enable-proctitle
1041 # OpenLDAP --enable-cache
1042 # Check whether --enable-cache or --disable-cache was given.
1043 if test "${enable_cache+set}" = set; then
1044 enableval="$enable_cache"
1047 for ol_val in auto yes no ; do
1048 if test "$enableval" = "$ol_val" ; then
1052 if test "$ol_arg" = "invalid" ; then
1053 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1055 ol_enable_cache="$ol_arg"
1058 ol_enable_cache="yes"
1060 # end --enable-cache
1061 # OpenLDAP --enable-dns
1062 # Check whether --enable-dns or --disable-dns was given.
1063 if test "${enable_dns+set}" = set; then
1064 enableval="$enable_dns"
1067 for ol_val in auto yes no ; do
1068 if test "$enableval" = "$ol_val" ; then
1072 if test "$ol_arg" = "invalid" ; then
1073 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1075 ol_enable_dns="$ol_arg"
1081 # OpenLDAP --enable-referrals
1082 # Check whether --enable-referrals or --disable-referrals was given.
1083 if test "${enable_referrals+set}" = set; then
1084 enableval="$enable_referrals"
1087 for ol_val in auto yes no ; do
1088 if test "$enableval" = "$ol_val" ; then
1092 if test "$ol_arg" = "invalid" ; then
1093 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1095 ol_enable_referrals="$ol_arg"
1098 ol_enable_referrals="yes"
1100 # end --enable-referrals
1101 # OpenLDAP --enable-cldap
1102 # Check whether --enable-cldap or --disable-cldap was given.
1103 if test "${enable_cldap+set}" = set; then
1104 enableval="$enable_cldap"
1107 for ol_val in auto yes no ; do
1108 if test "$enableval" = "$ol_val" ; then
1112 if test "$ol_arg" = "invalid" ; then
1113 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1115 ol_enable_cldap="$ol_arg"
1118 ol_enable_cldap="no"
1120 # end --enable-cldap
1121 # OpenLDAP --enable-x_compile
1122 # Check whether --enable-x_compile or --disable-x_compile was given.
1123 if test "${enable_x_compile+set}" = set; then
1124 enableval="$enable_x_compile"
1127 for ol_val in yes no ; do
1128 if test "$enableval" = "$ol_val" ; then
1132 if test "$ol_arg" = "invalid" ; then
1133 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1135 ol_enable_x_compile="$ol_arg"
1138 ol_enable_x_compile="no"
1140 # end --enable-x_compile
1142 # OpenLDAP --enable-dmalloc
1143 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1144 if test "${enable_dmalloc+set}" = set; then
1145 enableval="$enable_dmalloc"
1148 for ol_val in auto yes no ; do
1149 if test "$enableval" = "$ol_val" ; then
1153 if test "$ol_arg" = "invalid" ; then
1154 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1156 ol_enable_dmalloc="$ol_arg"
1159 ol_enable_dmalloc="no"
1161 # end --enable-dmalloc
1163 # OpenLDAP --with-kerberos
1164 # Check whether --with-kerberos or --without-kerberos was given.
1165 if test "${with_kerberos+set}" = set; then
1166 withval="$with_kerberos"
1169 for ol_val in auto k5 k4 afs yes no ; do
1170 if test "$withval" = "$ol_val" ; then
1174 if test "$ol_arg" = "invalid" ; then
1175 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1177 ol_with_kerberos="$ol_arg"
1180 ol_with_kerberos="auto"
1182 # end --with-kerberos
1184 # OpenLDAP --with-readline
1185 # Check whether --with-readline or --without-readline was given.
1186 if test "${with_readline+set}" = set; then
1187 withval="$with_readline"
1190 for ol_val in auto yes no ; do
1191 if test "$withval" = "$ol_val" ; then
1195 if test "$ol_arg" = "invalid" ; then
1196 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1198 ol_with_readline="$ol_arg"
1201 ol_with_readline="auto"
1203 # end --with-readline
1205 # OpenLDAP --with-threads
1206 # Check whether --with-threads or --without-threads was given.
1207 if test "${with_threads+set}" = set; then
1208 withval="$with_threads"
1211 for ol_val in auto posix mach lwp yes no manual ; do
1212 if test "$withval" = "$ol_val" ; then
1216 if test "$ol_arg" = "invalid" ; then
1217 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1219 ol_with_threads="$ol_arg"
1222 ol_with_threads="auto"
1224 # end --with-threads
1226 # OpenLDAP --with-tls
1227 # Check whether --with-tls or --without-tls was given.
1228 if test "${with_tls+set}" = set; then
1232 for ol_val in auto ssleay openssl yes no ; do
1233 if test "$withval" = "$ol_val" ; then
1237 if test "$ol_arg" = "invalid" ; then
1238 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1240 ol_with_tls="$ol_arg"
1247 # OpenLDAP --with-yielding_select
1248 # Check whether --with-yielding_select or --without-yielding_select was given.
1249 if test "${with_yielding_select+set}" = set; then
1250 withval="$with_yielding_select"
1253 for ol_val in auto yes no manual ; do
1254 if test "$withval" = "$ol_val" ; then
1258 if test "$ol_arg" = "invalid" ; then
1259 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1261 ol_with_yielding_select="$ol_arg"
1264 ol_with_yielding_select="auto"
1266 # end --with-yielding_select
1270 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1271 if test "${with_xxldapdoptions+set}" = set; then
1272 withval="$with_xxldapdoptions"
1276 # OpenLDAP --enable-ldapd
1277 # Check whether --enable-ldapd or --disable-ldapd was given.
1278 if test "${enable_ldapd+set}" = set; then
1279 enableval="$enable_ldapd"
1282 for ol_val in auto yes no ; do
1283 if test "$enableval" = "$ol_val" ; then
1287 if test "$ol_arg" = "invalid" ; then
1288 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1290 ol_enable_ldapd="$ol_arg"
1293 ol_enable_ldapd="no"
1295 # end --enable-ldapd
1297 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1298 if test "${with_xxslapdoptions+set}" = set; then
1299 withval="$with_xxslapdoptions"
1303 # OpenLDAP --enable-slapd
1304 # Check whether --enable-slapd or --disable-slapd was given.
1305 if test "${enable_slapd+set}" = set; then
1306 enableval="$enable_slapd"
1309 for ol_val in auto yes no ; do
1310 if test "$enableval" = "$ol_val" ; then
1314 if test "$ol_arg" = "invalid" ; then
1315 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1317 ol_enable_slapd="$ol_arg"
1320 ol_enable_slapd="yes"
1322 # end --enable-slapd
1323 # OpenLDAP --enable-aclgroups
1324 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1325 if test "${enable_aclgroups+set}" = set; then
1326 enableval="$enable_aclgroups"
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-aclgroups" 1>&2; exit 1; }
1337 ol_enable_aclgroups="$ol_arg"
1340 ol_enable_aclgroups="auto"
1342 # end --enable-aclgroups
1343 # OpenLDAP --enable-cleartext
1344 # Check whether --enable-cleartext or --disable-cleartext was given.
1345 if test "${enable_cleartext+set}" = set; then
1346 enableval="$enable_cleartext"
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-cleartext" 1>&2; exit 1; }
1357 ol_enable_cleartext="$ol_arg"
1360 ol_enable_cleartext="yes"
1362 # end --enable-cleartext
1363 # OpenLDAP --enable-crypt
1364 # Check whether --enable-crypt or --disable-crypt was given.
1365 if test "${enable_crypt+set}" = set; then
1366 enableval="$enable_crypt"
1369 for ol_val in auto yes no ; do
1370 if test "$enableval" = "$ol_val" ; then
1374 if test "$ol_arg" = "invalid" ; then
1375 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1377 ol_enable_crypt="$ol_arg"
1380 ol_enable_crypt="auto"
1382 # end --enable-crypt
1383 # OpenLDAP --enable-modules
1384 # Check whether --enable-modules or --disable-modules was given.
1385 if test "${enable_modules+set}" = set; then
1386 enableval="$enable_modules"
1389 for ol_val in auto yes no ; do
1390 if test "$enableval" = "$ol_val" ; then
1394 if test "$ol_arg" = "invalid" ; then
1395 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1397 ol_enable_modules="$ol_arg"
1400 ol_enable_modules="no"
1402 # end --enable-modules
1403 # OpenLDAP --enable-phonetic
1404 # Check whether --enable-phonetic or --disable-phonetic was given.
1405 if test "${enable_phonetic+set}" = set; then
1406 enableval="$enable_phonetic"
1409 for ol_val in auto yes no ; do
1410 if test "$enableval" = "$ol_val" ; then
1414 if test "$ol_arg" = "invalid" ; then
1415 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1417 ol_enable_phonetic="$ol_arg"
1420 ol_enable_phonetic="no"
1422 # end --enable-phonetic
1423 # OpenLDAP --enable-rlookups
1424 # Check whether --enable-rlookups or --disable-rlookups was given.
1425 if test "${enable_rlookups+set}" = set; then
1426 enableval="$enable_rlookups"
1429 for ol_val in auto yes no ; do
1430 if test "$enableval" = "$ol_val" ; then
1434 if test "$ol_arg" = "invalid" ; then
1435 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1437 ol_enable_rlookups="$ol_arg"
1440 ol_enable_rlookups="auto"
1442 # end --enable-rlookups
1443 # OpenLDAP --enable-wrappers
1444 # Check whether --enable-wrappers or --disable-wrappers was given.
1445 if test "${enable_wrappers+set}" = set; then
1446 enableval="$enable_wrappers"
1449 for ol_val in auto yes no ; do
1450 if test "$enableval" = "$ol_val" ; then
1454 if test "$ol_arg" = "invalid" ; then
1455 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1457 ol_enable_wrappers="$ol_arg"
1460 ol_enable_wrappers="no"
1462 # end --enable-wrappers
1464 # OpenLDAP --enable-bdb2
1465 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1466 if test "${enable_bdb2+set}" = set; then
1467 enableval="$enable_bdb2"
1470 for ol_val in auto yes no ; do
1471 if test "$enableval" = "$ol_val" ; then
1475 if test "$ol_arg" = "invalid" ; then
1476 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1478 ol_enable_bdb2="$ol_arg"
1484 # OpenLDAP --enable-ldap
1485 # Check whether --enable-ldap or --disable-ldap was given.
1486 if test "${enable_ldap+set}" = set; then
1487 enableval="$enable_ldap"
1490 for ol_val in auto yes no ; do
1491 if test "$enableval" = "$ol_val" ; then
1495 if test "$ol_arg" = "invalid" ; then
1496 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1498 ol_enable_ldap="$ol_arg"
1504 # OpenLDAP --enable-ldbm
1505 # Check whether --enable-ldbm or --disable-ldbm was given.
1506 if test "${enable_ldbm+set}" = set; then
1507 enableval="$enable_ldbm"
1510 for ol_val in auto yes no ; do
1511 if test "$enableval" = "$ol_val" ; then
1515 if test "$ol_arg" = "invalid" ; then
1516 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1518 ol_enable_ldbm="$ol_arg"
1521 ol_enable_ldbm="yes"
1524 # OpenLDAP --with-ldbm_api
1525 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1526 if test "${with_ldbm_api+set}" = set; then
1527 withval="$with_ldbm_api"
1530 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1531 if test "$withval" = "$ol_val" ; then
1535 if test "$ol_arg" = "invalid" ; then
1536 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1538 ol_with_ldbm_api="$ol_arg"
1541 ol_with_ldbm_api="auto"
1543 # end --with-ldbm_api
1545 # OpenLDAP --with-ldbm_type
1546 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1547 if test "${with_ldbm_type+set}" = set; then
1548 withval="$with_ldbm_type"
1551 for ol_val in auto btree hash ; do
1552 if test "$withval" = "$ol_val" ; then
1556 if test "$ol_arg" = "invalid" ; then
1557 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1559 ol_with_ldbm_type="$ol_arg"
1562 ol_with_ldbm_type="auto"
1564 # end --with-ldbm_type
1567 # OpenLDAP --enable-passwd
1568 # Check whether --enable-passwd or --disable-passwd was given.
1569 if test "${enable_passwd+set}" = set; then
1570 enableval="$enable_passwd"
1573 for ol_val in auto yes no ; do
1574 if test "$enableval" = "$ol_val" ; then
1578 if test "$ol_arg" = "invalid" ; then
1579 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1581 ol_enable_passwd="$ol_arg"
1584 ol_enable_passwd="no"
1586 # end --enable-passwd
1587 # OpenLDAP --enable-perl
1588 # Check whether --enable-perl or --disable-perl was given.
1589 if test "${enable_perl+set}" = set; then
1590 enableval="$enable_perl"
1593 for ol_val in auto yes no ; do
1594 if test "$enableval" = "$ol_val" ; then
1598 if test "$ol_arg" = "invalid" ; then
1599 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1601 ol_enable_perl="$ol_arg"
1607 # OpenLDAP --enable-shell
1608 # Check whether --enable-shell or --disable-shell was given.
1609 if test "${enable_shell+set}" = set; then
1610 enableval="$enable_shell"
1613 for ol_val in auto yes no ; do
1614 if test "$enableval" = "$ol_val" ; then
1618 if test "$ol_arg" = "invalid" ; then
1619 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1621 ol_enable_shell="$ol_arg"
1624 ol_enable_shell="no"
1626 # end --enable-shell
1627 # OpenLDAP --enable-tcl
1628 # Check whether --enable-tcl or --disable-tcl was given.
1629 if test "${enable_tcl+set}" = set; then
1630 enableval="$enable_tcl"
1633 for ol_val in auto yes no ; do
1634 if test "$enableval" = "$ol_val" ; then
1638 if test "$ol_arg" = "invalid" ; then
1639 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1641 ol_enable_tcl="$ol_arg"
1648 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1649 if test "${with_xxslurpdoptions+set}" = set; then
1650 withval="$with_xxslurpdoptions"
1654 # OpenLDAP --enable-slurpd
1655 # Check whether --enable-slurpd or --disable-slurpd was given.
1656 if test "${enable_slurpd+set}" = set; then
1657 enableval="$enable_slurpd"
1660 for ol_val in auto yes no ; do
1661 if test "$enableval" = "$ol_val" ; then
1665 if test "$ol_arg" = "invalid" ; then
1666 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1668 ol_enable_slurpd="$ol_arg"
1671 ol_enable_slurpd="auto"
1673 # end --enable-slurpd
1675 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1676 if test "${with_xxliboptions+set}" = set; then
1677 withval="$with_xxliboptions"
1681 # Check whether --enable-static or --disable-static was given.
1682 if test "${enable_static+set}" = set; then
1683 enableval="$enable_static"
1684 p=${PACKAGE-default}
1685 case "$enableval" in
1686 yes) enable_static=yes ;;
1687 no) enable_static=no ;;
1690 # Look at the argument we got. We use all the common list separators.
1691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1692 for pkg in $enableval; do
1693 if test "X$pkg" = "X$p"; then
1704 # Check whether --enable-shared or --disable-shared was given.
1705 if test "${enable_shared+set}" = set; then
1706 enableval="$enable_shared"
1707 p=${PACKAGE-default}
1708 case "$enableval" in
1709 yes) enable_shared=yes ;;
1710 no) enable_shared=no ;;
1713 # Look at the argument we got. We use all the common list separators.
1714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1715 for pkg in $enableval; do
1716 if test "X$pkg" = "X$p"; then
1729 if test $ol_enable_dns = yes ; then
1730 if test $ol_enable_referrals = no ; then
1731 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1733 if test $ol_enable_referrals = auto ; then
1734 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1735 ol_enable_referrals=yes
1739 if test $ol_enable_slapd = no ; then
1740 if test $ol_enable_bdb2 = yes ; then
1741 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
1743 if test $ol_enable_ldap = yes ; then
1744 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
1746 if test $ol_enable_ldbm = yes ; then
1747 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
1749 if test $ol_enable_passwd = yes ; then
1750 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
1752 if test $ol_enable_perl = yes ; then
1753 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
1755 if test $ol_enable_shell = yes ; then
1756 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
1758 if test $ol_enable_tcl = yes ; then
1759 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
1761 if test $ol_enable_aclgroups = yes ; then
1762 echo "configure: warning: slapd disabled, ignoring --enable-aclgroups argument" 1>&2
1764 if test $ol_enable_modules = yes ; then
1765 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
1767 if test $ol_enable_wrappers = yes ; then
1768 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
1770 if test $ol_enable_phonetic = yes ; then
1771 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
1773 if test $ol_enable_rlookups = yes ; then
1774 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
1776 if test $ol_with_ldbm_api != auto ; then
1777 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
1779 if test $ol_with_ldbm_type != auto ; then
1780 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
1782 if test $ol_enable_slurpd = yes ; then
1783 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1786 # force settings to no
1795 ol_enable_aclgroups=no
1796 ol_enable_modules=no
1797 ol_enable_phonetic=no
1798 ol_enable_rlookups=no
1799 ol_enable_wrappers=no
1802 ol_with_ldbm_type=no
1806 elif test $ol_enable_ldbm = no ; then
1808 if test $ol_with_ldbm_api != auto ; then
1809 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
1812 if test $ol_with_ldbm_type != auto ; then
1813 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
1816 if test $ol_enable_bdb2 = yes ; then
1817 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1820 if test $ol_enable_modules != yes -a \
1821 $ol_enable_ldap = no -a \
1822 $ol_enable_passwd = no -a \
1823 $ol_enable_perl = no -a \
1824 $ol_enable_shell = no -a \
1825 $ol_enable_tcl = no ; then
1826 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1830 ol_with_ldbm_type=no
1832 elif test $ol_enable_bdb2 = yes ; then
1834 if test $ol_with_ldbm_api != auto -a \
1835 $ol_with_ldbm_api != db2 ; then
1836 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1839 ol_with_ldbm_api=db2
1843 if test $ol_enable_bdb2 != no ; then
1844 if test $ol_with_ldbm_api != auto -a \
1845 $ol_with_ldbm_api != db2 ; then
1846 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1851 if test $ol_with_ldbm_api = gdbm -a \
1852 $ol_with_ldbm_type = btree ; then
1853 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1855 if test $ol_with_ldbm_api = mdbm -a \
1856 $ol_with_ldbm_type = btree ; then
1857 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1859 if test $ol_with_ldbm_api = ndbm -a \
1860 $ol_with_ldbm_type = btree ; then
1861 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1865 if test $ol_enable_slurpd = yes ; then
1866 if test $ol_with_threads = no ; then
1867 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1871 echo "$ac_t""done" 1>&6
1896 SLAPD_MODULES_LDFLAGS=
1897 SLAPD_MODULES_CPPFLAGS=
1900 SLAPD_PERL_CPPFLAGS=
1912 *-*-aix*) if test -z "CC" ; then
1913 case "$ol_with_threads" in
1914 auto | yes | posix) ol_aix_threads=yes ;;
1920 if test $ol_aix_threads = yes ; then
1921 if test -z "${CC}" ; then
1922 for ac_prog in cc_r xlc_r cc
1924 # Extract the first word of "$ac_prog", so it can be a program name with args.
1925 set dummy $ac_prog; ac_word=$2
1926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1927 echo "configure:1928: checking for $ac_word" >&5
1928 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 if test -n "$CC"; then
1932 ac_cv_prog_CC="$CC" # Let the user override the test.
1934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1936 for ac_dir in $ac_dummy; do
1937 test -z "$ac_dir" && ac_dir=.
1938 if test -f $ac_dir/$ac_word; then
1939 ac_cv_prog_CC="$ac_prog"
1947 if test -n "$CC"; then
1948 echo "$ac_t""$CC" 1>&6
1950 echo "$ac_t""no" 1>&6
1953 test -n "$CC" && break
1957 if test "$CC" = cc ; then
1958 if test $ol_with_threads != auto ; then
1959 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
1961 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
1967 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
1968 ol_with_threads=posix
1969 ol_cv_pthread_create=yes
1973 if test -z "${CC}"; then
1976 # Extract the first word of "$ac_prog", so it can be a program name with args.
1977 set dummy $ac_prog; ac_word=$2
1978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1979 echo "configure:1980: checking for $ac_word" >&5
1980 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1988 for ac_dir in $ac_dummy; do
1989 test -z "$ac_dir" && ac_dir=.
1990 if test -f $ac_dir/$ac_word; then
1991 ac_cv_prog_CC="$ac_prog"
1999 if test -n "$CC"; then
2000 echo "$ac_t""$CC" 1>&6
2002 echo "$ac_t""no" 1>&6
2005 test -n "$CC" && break
2011 # Extract the first word of "ranlib", so it can be a program name with args.
2012 set dummy ranlib; ac_word=$2
2013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2014 echo "configure:2015: checking for $ac_word" >&5
2015 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2018 if test -n "$RANLIB"; then
2019 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2023 for ac_dir in $ac_dummy; do
2024 test -z "$ac_dir" && ac_dir=.
2025 if test -f $ac_dir/$ac_word; then
2026 ac_cv_prog_RANLIB="ranlib"
2031 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2034 RANLIB="$ac_cv_prog_RANLIB"
2035 if test -n "$RANLIB"; then
2036 echo "$ac_t""$RANLIB" 1>&6
2038 echo "$ac_t""no" 1>&6
2041 # Extract the first word of "gcc", so it can be a program name with args.
2042 set dummy gcc; ac_word=$2
2043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2044 echo "configure:2045: checking for $ac_word" >&5
2045 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2048 if test -n "$CC"; then
2049 ac_cv_prog_CC="$CC" # Let the user override the test.
2051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2053 for ac_dir in $ac_dummy; do
2054 test -z "$ac_dir" && ac_dir=.
2055 if test -f $ac_dir/$ac_word; then
2064 if test -n "$CC"; then
2065 echo "$ac_t""$CC" 1>&6
2067 echo "$ac_t""no" 1>&6
2070 if test -z "$CC"; then
2071 # Extract the first word of "cc", so it can be a program name with args.
2072 set dummy cc; ac_word=$2
2073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_word" >&5
2075 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 if test -n "$CC"; then
2079 ac_cv_prog_CC="$CC" # Let the user override the test.
2081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2084 for ac_dir in $ac_dummy; do
2085 test -z "$ac_dir" && ac_dir=.
2086 if test -f $ac_dir/$ac_word; then
2087 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2088 ac_prog_rejected=yes
2096 if test $ac_prog_rejected = yes; then
2097 # We found a bogon in the path, so make sure we never use it.
2098 set dummy $ac_cv_prog_CC
2100 if test $# -gt 0; then
2101 # We chose a different compiler from the bogus one.
2102 # However, it has the same basename, so the bogon will be chosen
2103 # first if we set CC to just the basename; use the full file name.
2105 set dummy "$ac_dir/$ac_word" "$@"
2113 if test -n "$CC"; then
2114 echo "$ac_t""$CC" 1>&6
2116 echo "$ac_t""no" 1>&6
2119 if test -z "$CC"; then
2120 case "`uname -s`" in
2122 # Extract the first word of "cl", so it can be a program name with args.
2123 set dummy cl; ac_word=$2
2124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_word" >&5
2126 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 if test -n "$CC"; then
2130 ac_cv_prog_CC="$CC" # Let the user override the test.
2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2134 for ac_dir in $ac_dummy; do
2135 test -z "$ac_dir" && ac_dir=.
2136 if test -f $ac_dir/$ac_word; then
2145 if test -n "$CC"; then
2146 echo "$ac_t""$CC" 1>&6
2148 echo "$ac_t""no" 1>&6
2153 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2156 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2157 echo "configure:2158: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2161 ac_cpp='$CPP $CPPFLAGS'
2162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2164 cross_compiling=$ac_cv_prog_cc_cross
2166 cat > conftest.$ac_ext << EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2173 if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2174 ac_cv_prog_cc_works=yes
2175 # If we can't run a trivial program, we are probably using a cross compiler.
2176 if (./conftest; exit) 2>/dev/null; then
2177 ac_cv_prog_cc_cross=no
2179 ac_cv_prog_cc_cross=yes
2182 echo "configure: failed program was:" >&5
2183 cat conftest.$ac_ext >&5
2184 ac_cv_prog_cc_works=no
2188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2192 cross_compiling=$ac_cv_prog_cc_cross
2194 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2195 if test $ac_cv_prog_cc_works = no; then
2196 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2198 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2199 echo "configure:2200: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2200 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2201 cross_compiling=$ac_cv_prog_cc_cross
2203 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2204 echo "configure:2205: checking whether we are using GNU C" >&5
2205 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2208 cat > conftest.c <<EOF
2213 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2220 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2222 if test $ac_cv_prog_gcc = yes; then
2228 ac_test_CFLAGS="${CFLAGS+set}"
2229 ac_save_CFLAGS="$CFLAGS"
2231 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2232 echo "configure:2233: checking whether ${CC-cc} accepts -g" >&5
2233 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 echo 'void f(){}' > conftest.c
2237 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2246 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2247 if test "$ac_test_CFLAGS" = set; then
2248 CFLAGS="$ac_save_CFLAGS"
2249 elif test $ac_cv_prog_cc_g = yes; then
2250 if test "$GCC" = yes; then
2256 if test "$GCC" = yes; then
2263 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2264 if test "${with_gnu_ld+set}" = set; then
2265 withval="$with_gnu_ld"
2266 test "$withval" = no || with_gnu_ld=yes
2273 if test "$ac_cv_prog_gcc" = yes; then
2274 # Check if gcc -print-prog-name=ld gives a path.
2275 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2276 echo "configure:2277: checking for ld used by GCC" >&5
2277 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2279 # Accept absolute paths.
2281 test -z "$LD" && LD="$ac_prog"
2284 # If it fails, then pretend we aren't using GCC.
2288 # If it is relative, then search for the first ld in PATH.
2292 elif test "$with_gnu_ld" = yes; then
2293 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2294 echo "configure:2295: checking for GNU ld" >&5
2296 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2297 echo "configure:2298: checking for non-GNU ld" >&5
2299 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2302 if test -z "$LD"; then
2303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2304 for ac_dir in $PATH; do
2305 test -z "$ac_dir" && ac_dir=.
2306 if test -f "$ac_dir/$ac_prog"; then
2307 ac_cv_path_LD="$ac_dir/$ac_prog"
2308 # Check to see if the program is GNU ld. I'd rather use --version,
2309 # but apparently some GNU ld's only accept -v.
2310 # Break only if it was the GNU/non-GNU ld that we prefer.
2311 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2312 test "$with_gnu_ld" != no && break
2314 test "$with_gnu_ld" != yes && break
2320 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2325 if test -n "$LD"; then
2326 echo "$ac_t""$LD" 1>&6
2328 echo "$ac_t""no" 1>&6
2330 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2332 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2333 echo "configure:2334: checking if the linker ($LD) is GNU ld" >&5
2334 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2337 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2338 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2339 ac_cv_prog_gnu_ld=yes
2341 ac_cv_prog_gnu_ld=no
2345 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2348 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2349 echo "configure:2350: checking for BSD-compatible nm" >&5
2350 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2355 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2359 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2360 test -z "$ac_dir" && ac_dir=.
2361 if test -f $ac_dir/nm; then
2362 # Check to see if the nm accepts a BSD-compat flag.
2363 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2364 # nm: unknown option "B" ignored
2365 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2366 ac_cv_path_NM="$ac_dir/nm -B"
2367 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2368 ac_cv_path_NM="$ac_dir/nm -p"
2370 ac_cv_path_NM="$ac_dir/nm"
2376 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2382 echo "$ac_t""$NM" 1>&6
2385 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2386 echo "configure:2387: checking whether ln -s works" >&5
2387 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2391 if ln -s X conftestdata 2>/dev/null
2394 ac_cv_prog_LN_S="ln -s"
2399 LN_S="$ac_cv_prog_LN_S"
2400 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2401 echo "$ac_t""yes" 1>&6
2403 echo "$ac_t""no" 1>&6
2406 # Always use our own libtool.
2407 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2409 # Check for any special flags to pass to ltconfig.
2411 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2412 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2413 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2414 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2415 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2417 # Some flags need to be propagated to the compiler or linker for good
2421 # Find out which ABI we are using.
2422 echo '#line 2423 "configure"' > conftest.$ac_ext
2423 if { (eval echo configure:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2424 case "`/usr/bin/file conftest.o`" in
2440 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2441 CFLAGS="$CFLAGS -belf"
2445 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2446 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2447 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2448 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2449 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2450 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2453 for ac_prog in mawk gawk nawk awk
2455 # Extract the first word of "$ac_prog", so it can be a program name with args.
2456 set dummy $ac_prog; ac_word=$2
2457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_word" >&5
2459 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 if test -n "$AWK"; then
2463 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2467 for ac_dir in $ac_dummy; do
2468 test -z "$ac_dir" && ac_dir=.
2469 if test -f $ac_dir/$ac_word; then
2470 ac_cv_prog_AWK="$ac_prog"
2477 AWK="$ac_cv_prog_AWK"
2478 if test -n "$AWK"; then
2479 echo "$ac_t""$AWK" 1>&6
2481 echo "$ac_t""no" 1>&6
2484 test -n "$AWK" && break
2487 # test for ln hardlink support
2488 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2489 echo "configure:2490: checking whether ln works" >&5
2490 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2493 rm -f conftest.src conftest.dst
2494 echo "conftest" > conftest.src
2495 if ln conftest.src conftest.dst 2>/dev/null
2497 ol_cv_prog_LN_H="ln"
2499 ol_cv_prog_LN_H="cp"
2501 rm -f conftest.src conftest.dst
2504 LN_H="$ol_cv_prog_LN_H"
2505 if test "$ol_cv_prog_LN_H" = "ln"; then
2506 echo "$ac_t""yes" 1>&6
2508 echo "$ac_t""no" 1>&6
2511 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2512 echo "configure:2513: checking whether ln -s works" >&5
2513 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2517 if ln -s X conftestdata 2>/dev/null
2520 ac_cv_prog_LN_S="ln -s"
2525 LN_S="$ac_cv_prog_LN_S"
2526 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2527 echo "$ac_t""yes" 1>&6
2529 echo "$ac_t""no" 1>&6
2533 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2537 # Extract the first word of "sendmail", so it can be a program name with args.
2538 set dummy sendmail; ac_word=$2
2539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_word" >&5
2541 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2546 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2549 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2553 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2554 for ac_dir in $ac_dummy; do
2555 test -z "$ac_dir" && ac_dir=.
2556 if test -f $ac_dir/$ac_word; then
2557 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2562 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2566 SENDMAIL="$ac_cv_path_SENDMAIL"
2567 if test -n "$SENDMAIL"; then
2568 echo "$ac_t""$SENDMAIL" 1>&6
2570 echo "$ac_t""no" 1>&6
2573 # Extract the first word of "vi", so it can be a program name with args.
2574 set dummy vi; ac_word=$2
2575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2576 echo "configure:2577: checking for $ac_word" >&5
2577 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2582 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2585 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2589 ac_dummy="$PATH:/usr/ucb"
2590 for ac_dir in $ac_dummy; do
2591 test -z "$ac_dir" && ac_dir=.
2592 if test -f $ac_dir/$ac_word; then
2593 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2598 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2602 EDITOR="$ac_cv_path_EDITOR"
2603 if test -n "$EDITOR"; then
2604 echo "$ac_t""$EDITOR" 1>&6
2606 echo "$ac_t""no" 1>&6
2609 # Extract the first word of "finger", so it can be a program name with args.
2610 set dummy finger; ac_word=$2
2611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2612 echo "configure:2613: checking for $ac_word" >&5
2613 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2618 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2621 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2625 ac_dummy="$PATH:/usr/ucb"
2626 for ac_dir in $ac_dummy; do
2627 test -z "$ac_dir" && ac_dir=.
2628 if test -f $ac_dir/$ac_word; then
2629 ac_cv_path_FINGER="$ac_dir/$ac_word"
2634 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2638 FINGER="$ac_cv_path_FINGER"
2639 if test -n "$FINGER"; then
2640 echo "$ac_t""$FINGER" 1>&6
2642 echo "$ac_t""no" 1>&6
2647 if test $ol_enable_modules != no ; then
2648 # Extract the first word of "glib-config", so it can be a program name with args.
2649 set dummy glib-config; ac_word=$2
2650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2651 echo "configure:2652: checking for $ac_word" >&5
2652 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 case "$GLIBCONFIG" in
2657 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2660 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2665 for ac_dir in $ac_dummy; do
2666 test -z "$ac_dir" && ac_dir=.
2667 if test -f $ac_dir/$ac_word; then
2668 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2676 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2677 if test -n "$GLIBCONFIG"; then
2678 echo "$ac_t""$GLIBCONFIG" 1>&6
2680 echo "$ac_t""no" 1>&6
2684 if test "no$GLIBCONFIG" = "no" ; then
2685 if test $ol_enable_modules = yes ; then
2686 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2690 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2691 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2692 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2699 if test $ol_enable_perl != no ; then
2700 # Extract the first word of "perl", so it can be a program name with args.
2701 set dummy perl; ac_word=$2
2702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2703 echo "configure:2704: checking for $ac_word" >&5
2704 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2709 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2712 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2717 for ac_dir in $ac_dummy; do
2718 test -z "$ac_dir" && ac_dir=.
2719 if test -f $ac_dir/$ac_word; then
2720 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2725 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2729 PERLBIN="$ac_cv_path_PERLBIN"
2730 if test -n "$PERLBIN"; then
2731 echo "$ac_t""$PERLBIN" 1>&6
2733 echo "$ac_t""no" 1>&6
2737 if test "no$PERLBIN" = "no" ; then
2738 if test $ol_enable_perl = yes ; then
2739 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2743 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2744 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2750 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2751 echo "configure:2752: checking how to run the C preprocessor" >&5
2752 # On Suns, sometimes $CPP names a directory.
2753 if test -n "$CPP" && test -d "$CPP"; then
2756 if test -z "$CPP"; then
2757 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 # This must be in double quotes, not single quotes, because CPP may get
2761 # substituted into the Makefile and "${CC-cc}" will confuse make.
2763 # On the NeXT, cc -E runs the code through the compiler's parser,
2764 # not just through cpp.
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2772 { (eval echo configure:2773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2774 if test -z "$ac_err"; then
2778 echo "configure: failed program was:" >&5
2779 cat conftest.$ac_ext >&5
2781 CPP="${CC-cc} -E -traditional-cpp"
2782 cat > conftest.$ac_ext <<EOF
2783 #line 2784 "configure"
2784 #include "confdefs.h"
2788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2789 { (eval echo configure:2790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2791 if test -z "$ac_err"; then
2795 echo "configure: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2798 CPP="${CC-cc} -nologo -E"
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2806 { (eval echo configure:2807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2808 if test -z "$ac_err"; then
2812 echo "configure: failed program was:" >&5
2813 cat conftest.$ac_ext >&5
2822 ac_cv_prog_CPP="$CPP"
2824 CPP="$ac_cv_prog_CPP"
2826 ac_cv_prog_CPP="$CPP"
2828 echo "$ac_t""$CPP" 1>&6
2831 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2832 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2834 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2835 echo "configure: warning: programs compiled here do run here..." 1>&2
2836 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2838 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2839 echo "configure: warning: programs compiled here do not run here..." 1>&2
2840 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2843 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2844 echo "configure:2845: checking for AIX" >&5
2845 cat > conftest.$ac_ext <<EOF
2846 #line 2847 "configure"
2847 #include "confdefs.h"
2853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2854 egrep "yes" >/dev/null 2>&1; then
2856 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2857 #define _ALL_SOURCE 1
2862 echo "$ac_t""no" 1>&6
2867 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2868 echo "configure:2869: checking for POSIXized ISC" >&5
2869 if test -d /etc/conf/kconfig.d &&
2870 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2872 echo "$ac_t""yes" 1>&6
2873 ISC=yes # If later tests want to check for ISC.
2874 cat >> confdefs.h <<\EOF
2875 #define _POSIX_SOURCE 1
2878 if test "$GCC" = yes; then
2884 echo "$ac_t""no" 1>&6
2888 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2889 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2890 echo "configure:2891: checking for minix/config.h" >&5
2891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 cat > conftest.$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2897 #include <minix/config.h>
2899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2900 { (eval echo configure:2901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2902 if test -z "$ac_err"; then
2904 eval "ac_cv_header_$ac_safe=yes"
2907 echo "configure: failed program was:" >&5
2908 cat conftest.$ac_ext >&5
2910 eval "ac_cv_header_$ac_safe=no"
2914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2915 echo "$ac_t""yes" 1>&6
2918 echo "$ac_t""no" 1>&6
2922 if test "$MINIX" = yes; then
2923 cat >> confdefs.h <<\EOF
2924 #define _POSIX_SOURCE 1
2927 cat >> confdefs.h <<\EOF
2928 #define _POSIX_1_SOURCE 2
2931 cat >> confdefs.h <<\EOF
2938 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2939 echo "configure:2940: checking for be_app in -lbe" >&5
2940 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2944 ac_save_LIBS="$LIBS"
2945 LIBS="-lbe -lroot -lnet $LIBS"
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 /* Override any gcc2 internal prototype to avoid an error. */
2950 /* We use char because int might match the return type of a gcc2
2951 builtin and then its argument prototype would still apply. */
2958 if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2960 eval "ac_cv_lib_$ac_lib_var=yes"
2962 echo "configure: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2965 eval "ac_cv_lib_$ac_lib_var=no"
2968 LIBS="$ac_save_LIBS"
2971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2972 echo "$ac_t""yes" 1>&6
2973 LIBS="$LIBS -lbe -lroot -lnet"
2975 echo "$ac_t""no" 1>&6
2980 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2981 echo "configure:2982: checking for Cygwin environment" >&5
2982 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2992 #define __CYGWIN__ __CYGWIN32__
2997 if { (eval echo configure:2998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3010 echo "$ac_t""$ac_cv_cygwin" 1>&6
3012 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3013 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3014 echo "configure:3015: checking for mingw32 environment" >&5
3015 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3026 if { (eval echo configure:3027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3030 echo "configure: failed program was:" >&5
3031 cat conftest.$ac_ext >&5
3039 echo "$ac_t""$ac_cv_mingw32" 1>&6
3041 test "$ac_cv_mingw32" = yes && MINGW32=yes
3044 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3045 echo "configure:3046: checking for executable suffix" >&5
3046 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3053 echo 'int main () { return 0; }' > conftest.$ac_ext
3055 if { (eval echo configure:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3056 for file in conftest.*; do
3058 *.c | *.o | *.obj) ;;
3059 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3063 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3066 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3071 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3072 echo "$ac_t""${ac_cv_exeext}" 1>&6
3075 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3076 echo "configure:3077: checking for object suffix" >&5
3077 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3081 echo 'int i = 1;' > conftest.$ac_ext
3082 if { (eval echo configure:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3083 for ac_file in conftest.*; do
3086 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3090 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3095 echo "$ac_t""$ac_cv_objext" 1>&6
3096 OBJEXT=$ac_cv_objext
3097 ac_objext=$ac_cv_objext
3100 cat >> confdefs.h <<EOF
3101 #define EXEEXT "${EXEEXT}"
3108 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3109 echo "configure:3110: checking for ${CC-cc} option to accept ANSI C" >&5
3110 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 am_cv_prog_cc_stdc=no
3115 # Don't try gcc -ansi; that turns off useful extensions and
3116 # breaks some systems' header files.
3117 # AIX -qlanglvl=ansi
3118 # Ultrix and OSF/1 -std1
3119 # HP-UX -Aa -D_HPUX_SOURCE
3120 # SVR4 -Xc -D__EXTENSIONS__
3121 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3123 CC="$ac_save_CC $ac_arg"
3124 cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3129 #include <sys/types.h>
3130 #include <sys/stat.h>
3131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3132 struct buf { int x; };
3133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3134 static char *e (p, i)
3140 static char *f (char * (*g) (char **, int), char **p, ...)
3145 s = g (p, va_arg (v,int));
3149 int test (int i, double x);
3150 struct s1 {int (*f) (int a);};
3151 struct s2 {int (*f) (double a);};
3152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3162 if { (eval echo configure:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3164 am_cv_prog_cc_stdc="$ac_arg"; break
3166 echo "configure: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3175 if test -z "$am_cv_prog_cc_stdc"; then
3176 echo "$ac_t""none needed" 1>&6
3178 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3180 case "x$am_cv_prog_cc_stdc" in
3182 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3185 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3186 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3190 # test for make depend flag
3193 if test -z "${MKDEP}"; then
3195 if test -z "${MKDEP_FLAGS}"; then
3196 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3197 echo "configure:3198: checking for ${OL_MKDEP} depend flag" >&5
3198 if eval "test \"`echo '$''{'ol_cv_mkdep'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3203 for flag in "-M" "-xM"; do
3204 cat > conftest.c <<EOF
3207 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3208 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3210 if test ! -f conftest."${ac_object}" ; then
3212 OL_MKDEP_FLAGS="$flag"
3221 echo "$ac_t""$ol_cv_mkdep" 1>&6
3224 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3229 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3234 if test "${ol_cv_mkdep}" = no ; then
3235 # this will soon become an error
3236 echo "configure: warning: do not know how to generate dependencies" 1>&2
3241 echo $ac_n "checking for socket""... $ac_c" 1>&6
3242 echo "configure:3243: checking for socket" >&5
3243 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 /* System header to define __stub macros and hopefully few prototypes,
3250 which can conflict with char socket(); below. */
3252 /* Override any gcc2 internal prototype to avoid an error. */
3253 /* We use char because int might match the return type of a gcc2
3254 builtin and then its argument prototype would still apply. */
3259 /* The GNU C library defines this for functions which it implements
3260 to always fail with ENOSYS. Some functions are actually named
3261 something starting with __ and the normal name is an alias. */
3262 #if defined (__stub_socket) || defined (__stub___socket)
3270 if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3272 eval "ac_cv_func_socket=yes"
3274 echo "configure: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3277 eval "ac_cv_func_socket=no"
3282 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3283 echo "$ac_t""yes" 1>&6
3286 echo "$ac_t""no" 1>&6
3288 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3289 echo "configure:3290: checking for main in -lsocket" >&5
3290 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 ac_save_LIBS="$LIBS"
3295 LIBS="-lsocket $LIBS"
3296 cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3304 if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3306 eval "ac_cv_lib_$ac_lib_var=yes"
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3311 eval "ac_cv_lib_$ac_lib_var=no"
3314 LIBS="$ac_save_LIBS"
3317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3318 echo "$ac_t""yes" 1>&6
3319 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3320 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3321 cat >> confdefs.h <<EOF
3322 #define $ac_tr_lib 1
3325 LIBS="-lsocket $LIBS"
3328 echo "$ac_t""no" 1>&6
3331 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3332 echo "configure:3333: checking for main in -lnet" >&5
3333 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 ac_save_LIBS="$LIBS"
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3347 if { (eval echo configure:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3349 eval "ac_cv_lib_$ac_lib_var=yes"
3351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3354 eval "ac_cv_lib_$ac_lib_var=no"
3357 LIBS="$ac_save_LIBS"
3360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3361 echo "$ac_t""yes" 1>&6
3362 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3364 cat >> confdefs.h <<EOF
3365 #define $ac_tr_lib 1
3371 echo "$ac_t""no" 1>&6
3374 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3375 echo "configure:3376: checking for socket in -lnet" >&5
3376 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3380 ac_save_LIBS="$LIBS"
3382 cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 /* Override any gcc2 internal prototype to avoid an error. */
3386 /* We use char because int might match the return type of a gcc2
3387 builtin and then its argument prototype would still apply. */
3394 if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3396 eval "ac_cv_lib_$ac_lib_var=yes"
3398 echo "configure: failed program was:" >&5
3399 cat conftest.$ac_ext >&5
3401 eval "ac_cv_lib_$ac_lib_var=no"
3404 LIBS="$ac_save_LIBS"
3407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3408 echo "$ac_t""yes" 1>&6
3409 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3410 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3411 cat >> confdefs.h <<EOF
3412 #define $ac_tr_lib 1
3418 echo "$ac_t""no" 1>&6
3421 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3422 echo "configure:3423: checking for main in -lnsl_s" >&5
3423 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3427 ac_save_LIBS="$LIBS"
3428 LIBS="-lnsl_s $LIBS"
3429 cat > conftest.$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3437 if { (eval echo configure:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3439 eval "ac_cv_lib_$ac_lib_var=yes"
3441 echo "configure: failed program was:" >&5
3442 cat conftest.$ac_ext >&5
3444 eval "ac_cv_lib_$ac_lib_var=no"
3447 LIBS="$ac_save_LIBS"
3450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3451 echo "$ac_t""yes" 1>&6
3452 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3453 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3454 cat >> confdefs.h <<EOF
3455 #define $ac_tr_lib 1
3458 LIBS="-lnsl_s $LIBS"
3461 echo "$ac_t""no" 1>&6
3464 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3465 echo "configure:3466: checking for main in -lnsl" >&5
3466 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 ac_save_LIBS="$LIBS"
3472 cat > conftest.$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3480 if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3482 eval "ac_cv_lib_$ac_lib_var=yes"
3484 echo "configure: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3487 eval "ac_cv_lib_$ac_lib_var=no"
3490 LIBS="$ac_save_LIBS"
3493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3495 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3497 cat >> confdefs.h <<EOF
3498 #define $ac_tr_lib 1
3504 echo "$ac_t""no" 1>&6
3507 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3508 echo "configure:3509: checking for socket in -linet" >&5
3509 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 ac_save_LIBS="$LIBS"
3515 cat > conftest.$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3518 /* Override any gcc2 internal prototype to avoid an error. */
3519 /* We use char because int might match the return type of a gcc2
3520 builtin and then its argument prototype would still apply. */
3527 if { (eval echo configure:3528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3529 eval "ac_cv_lib_$ac_lib_var=yes"
3531 echo "configure: failed program was:" >&5
3532 cat conftest.$ac_ext >&5
3534 eval "ac_cv_lib_$ac_lib_var=no"
3537 LIBS="$ac_save_LIBS"
3540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3541 echo "$ac_t""yes" 1>&6
3542 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3543 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3544 cat >> confdefs.h <<EOF
3545 #define $ac_tr_lib 1
3551 echo "$ac_t""no" 1>&6
3554 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3555 echo "configure:3556: checking for main in -lgen" >&5
3556 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 ac_save_LIBS="$LIBS"
3562 cat > conftest.$ac_ext <<EOF
3563 #line 3564 "configure"
3564 #include "confdefs.h"
3570 if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3572 eval "ac_cv_lib_$ac_lib_var=yes"
3574 echo "configure: failed program was:" >&5
3575 cat conftest.$ac_ext >&5
3577 eval "ac_cv_lib_$ac_lib_var=no"
3580 LIBS="$ac_save_LIBS"
3583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3584 echo "$ac_t""yes" 1>&6
3585 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3586 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3587 cat >> confdefs.h <<EOF
3588 #define $ac_tr_lib 1
3594 echo "$ac_t""no" 1>&6
3601 for ac_func in res_search
3603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3604 echo "configure:3605: checking for $ac_func" >&5
3605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3608 cat > conftest.$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3611 /* System header to define __stub macros and hopefully few prototypes,
3612 which can conflict with char $ac_func(); below. */
3614 /* Override any gcc2 internal prototype to avoid an error. */
3615 /* We use char because int might match the return type of a gcc2
3616 builtin and then its argument prototype would still apply. */
3621 /* The GNU C library defines this for functions which it implements
3622 to always fail with ENOSYS. Some functions are actually named
3623 something starting with __ and the normal name is an alias. */
3624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3632 if { (eval echo configure:3633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3634 eval "ac_cv_func_$ac_func=yes"
3636 echo "configure: failed program was:" >&5
3637 cat conftest.$ac_ext >&5
3639 eval "ac_cv_func_$ac_func=no"
3644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3645 echo "$ac_t""yes" 1>&6
3646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3647 cat >> confdefs.h <<EOF
3648 #define $ac_tr_func 1
3652 echo "$ac_t""no" 1>&6
3656 if test $ac_cv_func_res_search = "no" ; then
3657 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3658 echo "configure:3659: checking for res_search in -lbind" >&5
3659 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 ac_save_LIBS="$LIBS"
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 /* Override any gcc2 internal prototype to avoid an error. */
3669 /* We use char because int might match the return type of a gcc2
3670 builtin and then its argument prototype would still apply. */
3677 if { (eval echo configure:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3679 eval "ac_cv_lib_$ac_lib_var=yes"
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3684 eval "ac_cv_lib_$ac_lib_var=no"
3687 LIBS="$ac_save_LIBS"
3690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3691 echo "$ac_t""yes" 1>&6
3692 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3693 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3694 cat >> confdefs.h <<EOF
3695 #define $ac_tr_lib 1
3701 echo "$ac_t""no" 1>&6
3704 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3705 cat >> confdefs.h <<\EOF
3706 #define HAVE_RES_SEARCH 1
3710 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3711 echo "configure:3712: checking for res_search in -lresolv" >&5
3712 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3716 ac_save_LIBS="$LIBS"
3717 LIBS="-lresolv $LIBS"
3718 cat > conftest.$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3721 /* Override any gcc2 internal prototype to avoid an error. */
3722 /* We use char because int might match the return type of a gcc2
3723 builtin and then its argument prototype would still apply. */
3730 if { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3732 eval "ac_cv_lib_$ac_lib_var=yes"
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3737 eval "ac_cv_lib_$ac_lib_var=no"
3740 LIBS="$ac_save_LIBS"
3743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3744 echo "$ac_t""yes" 1>&6
3745 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3746 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3747 cat >> confdefs.h <<EOF
3748 #define $ac_tr_lib 1
3751 LIBS="-lresolv $LIBS"
3754 echo "$ac_t""no" 1>&6
3757 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3758 cat >> confdefs.h <<\EOF
3759 #define HAVE_RES_SEARCH 1
3766 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3767 echo "configure:3768: checking for sigset in -lV3" >&5
3768 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3769 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3772 ac_save_LIBS="$LIBS"
3774 cat > conftest.$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 /* Override any gcc2 internal prototype to avoid an error. */
3778 /* We use char because int might match the return type of a gcc2
3779 builtin and then its argument prototype would still apply. */
3786 if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3788 eval "ac_cv_lib_$ac_lib_var=yes"
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3793 eval "ac_cv_lib_$ac_lib_var=no"
3796 LIBS="$ac_save_LIBS"
3799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3800 echo "$ac_t""yes" 1>&6
3801 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3802 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3803 cat >> confdefs.h <<EOF
3804 #define $ac_tr_lib 1
3810 echo "$ac_t""no" 1>&6
3814 for ac_hdr in regex.h
3816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3818 echo "configure:3819: checking for $ac_hdr" >&5
3819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3828 { (eval echo configure:3829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3830 if test -z "$ac_err"; then
3832 eval "ac_cv_header_$ac_safe=yes"
3835 echo "configure: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3838 eval "ac_cv_header_$ac_safe=no"
3842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3843 echo "$ac_t""yes" 1>&6
3844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3845 cat >> confdefs.h <<EOF
3846 #define $ac_tr_hdr 1
3850 echo "$ac_t""no" 1>&6
3854 if test "$ac_cv_header_regex_h" != yes ; then
3855 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
3857 echo $ac_n "checking for regfree""... $ac_c" 1>&6
3858 echo "configure:3859: checking for regfree" >&5
3859 if eval "test \"`echo '$''{'ac_cv_func_regfree'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3865 /* System header to define __stub macros and hopefully few prototypes,
3866 which can conflict with char regfree(); below. */
3868 /* Override any gcc2 internal prototype to avoid an error. */
3869 /* We use char because int might match the return type of a gcc2
3870 builtin and then its argument prototype would still apply. */
3875 /* The GNU C library defines this for functions which it implements
3876 to always fail with ENOSYS. Some functions are actually named
3877 something starting with __ and the normal name is an alias. */
3878 #if defined (__stub_regfree) || defined (__stub___regfree)
3886 if { (eval echo configure:3887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3888 eval "ac_cv_func_regfree=yes"
3890 echo "configure: failed program was:" >&5
3891 cat conftest.$ac_ext >&5
3893 eval "ac_cv_func_regfree=no"
3898 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
3899 echo "$ac_t""yes" 1>&6
3902 echo "$ac_t""no" 1>&6
3903 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
3908 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
3909 echo "configure:3910: checking for compatible POSIX regex" >&5
3910 if eval "test \"`echo '$''{'ol_cv_c_posix_regex'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3914 if test "$cross_compiling" = yes; then
3915 ol_cv_c_posix_regex=cross
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3921 #include <sys/types.h>
3923 static char *pattern, *string;
3931 if(regcomp(&re, pattern, 0)) {
3935 string = "ALL MATCH";
3937 rc = regexec(&re, string, 0, (void*)0, 0);
3944 if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3946 ol_cv_c_posix_regex=yes
3948 echo "configure: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3951 ol_cv_c_posix_regex=no
3958 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
3960 if test "$ol_cv_c_posix_regex" = no ; then
3961 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
3964 echo $ac_n "checking for select""... $ac_c" 1>&6
3965 echo "configure:3966: checking for select" >&5
3966 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 /* System header to define __stub macros and hopefully few prototypes,
3973 which can conflict with char select(); below. */
3975 /* Override any gcc2 internal prototype to avoid an error. */
3976 /* We use char because int might match the return type of a gcc2
3977 builtin and then its argument prototype would still apply. */
3982 /* The GNU C library defines this for functions which it implements
3983 to always fail with ENOSYS. Some functions are actually named
3984 something starting with __ and the normal name is an alias. */
3985 #if defined (__stub_select) || defined (__stub___select)
3993 if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3995 eval "ac_cv_func_select=yes"
3997 echo "configure: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
4000 eval "ac_cv_func_select=no"
4005 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4006 echo "$ac_t""yes" 1>&6
4009 echo "$ac_t""no" 1>&6
4010 { echo "configure: error: select() required." 1>&2; exit 1; }
4014 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4015 echo "configure:4016: checking types of arguments for select()" >&5
4016 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4019 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4022 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4026 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4027 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4028 cat > conftest.$ac_ext <<EOF
4029 #line 4030 "configure"
4030 #include "confdefs.h"
4031 #ifdef HAVE_SYS_TYPES_H
4032 #include <sys/types.h>
4034 #ifdef HAVE_SYS_TIME_H
4035 #include <sys/time.h>
4037 #ifdef HAVE_SYS_SELECT_H
4038 #include <sys/select.h>
4040 #ifdef HAVE_SYS_SOCKET_H
4041 #include <sys/socket.h>
4043 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
4048 if { (eval echo configure:4049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4050 ac_not_found=no ; break 3
4052 echo "configure: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4067 if test "$ac_not_found" = yes; then
4068 ac_cv_func_select_arg1=int
4069 ac_cv_func_select_arg234='int *'
4070 ac_cv_func_select_arg5='struct timeval *'
4072 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4073 cat >> confdefs.h <<EOF
4074 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4077 cat >> confdefs.h <<EOF
4078 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4081 cat >> confdefs.h <<EOF
4082 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4089 if test $ol_enable_ldapd != no ; then
4090 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
4092 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
4093 echo "configure:4094: checking for main in -lxtpp" >&5
4094 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
4095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 ac_save_LIBS="$LIBS"
4099 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
4100 cat > conftest.$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4108 if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4110 eval "ac_cv_lib_$ac_lib_var=yes"
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4115 eval "ac_cv_lib_$ac_lib_var=no"
4118 LIBS="$ac_save_LIBS"
4121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4122 echo "$ac_t""yes" 1>&6
4125 cat >> confdefs.h <<\EOF
4129 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
4132 echo "$ac_t""no" 1>&6
4136 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
4137 echo "configure:4138: checking for main in -ldsap" >&5
4138 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
4139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6
4142 ac_save_LIBS="$LIBS"
4143 LIBS="-ldsap -lisode $LIBS"
4144 cat > conftest.$ac_ext <<EOF
4145 #line 4146 "configure"
4146 #include "confdefs.h"
4152 if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4154 eval "ac_cv_lib_$ac_lib_var=yes"
4156 echo "configure: failed program was:" >&5
4157 cat conftest.$ac_ext >&5
4159 eval "ac_cv_lib_$ac_lib_var=no"
4162 LIBS="$ac_save_LIBS"
4165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4166 echo "$ac_t""yes" 1>&6
4169 cat >> confdefs.h <<\EOF
4173 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
4176 echo "$ac_t""no" 1>&6
4180 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
4181 echo "configure:4182: checking for main in -lisode" >&5
4182 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
4183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4186 ac_save_LIBS="$LIBS"
4187 LIBS="-lisode $LIBS"
4188 cat > conftest.$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4196 if { (eval echo configure:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4198 eval "ac_cv_lib_$ac_lib_var=yes"
4200 echo "configure: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4203 eval "ac_cv_lib_$ac_lib_var=no"
4206 LIBS="$ac_save_LIBS"
4209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4210 echo "$ac_t""yes" 1>&6
4213 cat >> confdefs.h <<\EOF
4214 #define HAVE_ISODE 1
4217 LDAPD_LIBS="$LDAPD_LIBS -lisode"
4220 echo "$ac_t""no" 1>&6
4226 if test $ol_link_isode != no; then
4227 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
4228 echo "configure:4229: checking for main in -lpp" >&5
4229 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
4230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4231 echo $ac_n "(cached) $ac_c" 1>&6
4233 ac_save_LIBS="$LIBS"
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4243 if { (eval echo configure:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4245 eval "ac_cv_lib_$ac_lib_var=yes"
4247 echo "configure: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4250 eval "ac_cv_lib_$ac_lib_var=no"
4253 LIBS="$ac_save_LIBS"
4256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4257 echo "$ac_t""yes" 1>&6
4259 cat >> confdefs.h <<\EOF
4263 LDAPD_LIBS="-lpp $LDAPD_LIBS"
4266 echo "$ac_t""no" 1>&6
4271 # Extract the first word of "pepsy", so it can be a program name with args.
4272 set dummy pepsy; ac_word=$2
4273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4274 echo "configure:4275: checking for $ac_word" >&5
4275 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4280 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
4283 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
4286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4288 for ac_dir in $ac_dummy; do
4289 test -z "$ac_dir" && ac_dir=.
4290 if test -f $ac_dir/$ac_word; then
4291 ac_cv_path_PEPSY="$ac_dir/$ac_word"
4299 PEPSY="$ac_cv_path_PEPSY"
4300 if test -n "$PEPSY"; then
4301 echo "$ac_t""$PEPSY" 1>&6
4303 echo "$ac_t""no" 1>&6
4310 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
4311 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
4313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4315 echo "configure:4316: checking for $ac_hdr" >&5
4316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4319 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4325 { (eval echo configure:4326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4327 if test -z "$ac_err"; then
4329 eval "ac_cv_header_$ac_safe=yes"
4332 echo "configure: failed program was:" >&5
4333 cat conftest.$ac_ext >&5
4335 eval "ac_cv_header_$ac_safe=no"
4339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4340 echo "$ac_t""yes" 1>&6
4341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4342 cat >> confdefs.h <<EOF
4343 #define $ac_tr_hdr 1
4347 echo "$ac_t""no" 1>&6
4352 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4353 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4354 echo "configure:4355: checking for main in -lkrb4" >&5
4355 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
4356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4359 ac_save_LIBS="$LIBS"
4360 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4361 cat > conftest.$ac_ext <<EOF
4362 #line 4363 "configure"
4363 #include "confdefs.h"
4369 if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4371 eval "ac_cv_lib_$ac_lib_var=yes"
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 eval "ac_cv_lib_$ac_lib_var=no"
4379 LIBS="$ac_save_LIBS"
4382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4383 echo "$ac_t""yes" 1>&6
4386 echo "$ac_t""no" 1>&6
4391 if test $have_k5 = yes ; then
4392 ol_with_kerberos=found
4393 ol_link_kerberos=yes
4395 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4397 LIBS="$KRB_LIBS $LIBS"
4399 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4400 echo "configure:4401: checking for des_debug in Kerberos libraries" >&5
4401 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4406 LIBS="$KRB_LIBS $LIBS"
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4411 #include <kerberosIV/krb.h>
4412 #include <kerberosIV/des.h>
4413 extern int des_debug;
4421 if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4423 ol_cv_var_des_debug=yes
4425 echo "configure: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4428 ol_cv_var_des_debug=no
4435 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4437 if test $ol_cv_var_des_debug = yes ; then
4438 cat >> confdefs.h <<\EOF
4439 #define HAVE_DES_DEBUG 1
4449 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4450 for ac_hdr in krb.h des.h
4452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_hdr" >&5
4455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4464 { (eval echo configure:4465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4466 if test -z "$ac_err"; then
4468 eval "ac_cv_header_$ac_safe=yes"
4471 echo "configure: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4474 eval "ac_cv_header_$ac_safe=no"
4478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4481 cat >> confdefs.h <<EOF
4482 #define $ac_tr_hdr 1
4486 echo "$ac_t""no" 1>&6
4491 if test $ac_cv_header_krb_h = yes ; then
4492 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4493 echo "configure:4494: checking for main in -lkrb" >&5
4494 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 ac_save_LIBS="$LIBS"
4499 LIBS="-lkrb -ldes $LIBS"
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4508 if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4510 eval "ac_cv_lib_$ac_lib_var=yes"
4512 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4515 eval "ac_cv_lib_$ac_lib_var=no"
4518 LIBS="$ac_save_LIBS"
4521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4525 echo "$ac_t""no" 1>&6
4530 if test $have_k4 = yes ; then
4531 ol_with_kerberos=found
4532 ol_link_kerberos=yes
4534 KRB_LIBS="-lkrb -ldes"
4539 if test $ol_link_kerberos = yes ; then
4540 cat >> confdefs.h <<\EOF
4541 #define HAVE_KERBEROS 1
4547 if test $ol_with_tls != no ; then
4551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4553 echo "configure:4554: checking for $ac_hdr" >&5
4554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4555 echo $ac_n "(cached) $ac_c" 1>&6
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4563 { (eval echo configure:4564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4565 if test -z "$ac_err"; then
4567 eval "ac_cv_header_$ac_safe=yes"
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4573 eval "ac_cv_header_$ac_safe=no"
4577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4578 echo "$ac_t""yes" 1>&6
4579 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4580 cat >> confdefs.h <<EOF
4581 #define $ac_tr_hdr 1
4585 echo "$ac_t""no" 1>&6
4590 if test $ac_cv_header_ssl_h = yes ; then
4591 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4592 echo "configure:4593: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4593 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4597 ac_save_LIBS="$LIBS"
4598 LIBS="-lssl -lcrypto $LIBS"
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4602 /* Override any gcc2 internal prototype to avoid an error. */
4603 /* We use char because int might match the return type of a gcc2
4604 builtin and then its argument prototype would still apply. */
4605 char SSLeay_add_ssl_algorithms();
4608 SSLeay_add_ssl_algorithms()
4611 if { (eval echo configure:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4613 eval "ac_cv_lib_$ac_lib_var=yes"
4615 echo "configure: failed program was:" >&5
4616 cat conftest.$ac_ext >&5
4618 eval "ac_cv_lib_$ac_lib_var=no"
4621 LIBS="$ac_save_LIBS"
4624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4625 echo "$ac_t""yes" 1>&6
4629 echo "$ac_t""no" 1>&6
4634 if test $have_ssleay = no ; then
4635 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4636 echo "configure:4637: checking for ssl3_accept in -lssl" >&5
4637 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4641 ac_save_LIBS="$LIBS"
4642 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 /* Override any gcc2 internal prototype to avoid an error. */
4647 /* We use char because int might match the return type of a gcc2
4648 builtin and then its argument prototype would still apply. */
4655 if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4657 eval "ac_cv_lib_$ac_lib_var=yes"
4659 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4662 eval "ac_cv_lib_$ac_lib_var=no"
4665 LIBS="$ac_save_LIBS"
4668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6
4673 echo "$ac_t""no" 1>&6
4679 if test $have_ssleay = yes ; then
4683 cat >> confdefs.h <<\EOF
4684 #define HAVE_SSLEAY 1
4688 if test $need_rsaref = yes; then
4689 cat >> confdefs.h <<\EOF
4690 #define HAVE_RSAREF 1
4694 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4696 TLS_LIBS="-lssl -lcrypto"
4702 if test $ol_link_tls = yes ; then
4703 cat >> confdefs.h <<\EOF
4711 gethostbyname_r gethostbyaddr_r \
4714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4715 echo "configure:4716: checking for $ac_func" >&5
4716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4722 /* System header to define __stub macros and hopefully few prototypes,
4723 which can conflict with char $ac_func(); below. */
4725 /* Override any gcc2 internal prototype to avoid an error. */
4726 /* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */
4732 /* The GNU C library defines this for functions which it implements
4733 to always fail with ENOSYS. Some functions are actually named
4734 something starting with __ and the normal name is an alias. */
4735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4743 if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4745 eval "ac_cv_func_$ac_func=yes"
4747 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4750 eval "ac_cv_func_$ac_func=no"
4755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4756 echo "$ac_t""yes" 1>&6
4757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4758 cat >> confdefs.h <<EOF
4759 #define $ac_tr_func 1
4763 echo "$ac_t""no" 1>&6
4768 if test "$ac_cv_func_ctime_r" = no ; then
4769 ol_cv_func_ctime_r_nargs=0
4771 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4772 echo "configure:4773: checking number of arguments of ctime_r" >&5
4773 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4781 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4784 if { (eval echo configure:4785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4786 ol_cv_func_ctime_r_nargs=3
4788 echo "configure: failed program was:" >&5
4789 cat conftest.$ac_ext >&5
4791 cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4796 time_t ti; char *buffer; ctime_r(&ti,buffer);
4799 if { (eval echo configure:4800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4801 ol_cv_func_ctime_r_nargs=2
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4806 ol_cv_func_ctime_r_nargs=0
4813 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4814 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4815 cat >> confdefs.h <<EOF
4816 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4823 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4824 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4825 echo "configure:4826: checking number of arguments of gethostbyname_r" >&5
4826 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4829 cat > conftest.$ac_ext <<EOF
4830 #line 4831 "configure"
4831 #include "confdefs.h"
4832 #include <sys/types.h>
4833 #include <sys/socket.h>
4834 #include <netinet/in.h>
4836 #define BUFSIZE (sizeof(struct hostent)+10)
4838 struct hostent hent; char buffer[BUFSIZE];
4839 int bufsize=BUFSIZE;int h_errno;
4840 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4841 buffer, bufsize, &h_errno);
4844 if { (eval echo configure:4845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4846 ol_cv_func_gethostbyname_r_nargs=5
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4854 #include <sys/types.h>
4855 #include <sys/socket.h>
4856 #include <netinet/in.h>
4858 #define BUFSIZE (sizeof(struct hostent)+10)
4860 struct hostent hent;struct hostent *rhent;
4861 char buffer[BUFSIZE];
4862 int bufsize=BUFSIZE;int h_errno;
4863 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4867 if { (eval echo configure:4868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4869 ol_cv_func_gethostbyname_r_nargs=6
4871 echo "configure: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4874 ol_cv_func_gethostbyname_r_nargs=0
4881 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4882 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4883 cat >> confdefs.h <<EOF
4884 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4890 ol_cv_func_gethostbyname_r_nargs=0
4893 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4894 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4895 echo "configure:4896: checking number of arguments of gethostbyaddr_r" >&5
4896 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4899 cat > conftest.$ac_ext <<EOF
4900 #line 4901 "configure"
4901 #include "confdefs.h"
4902 #include <sys/types.h>
4903 #include <sys/socket.h>
4904 #include <netinet/in.h>
4906 #define BUFSIZE (sizeof(struct hostent)+10)
4908 struct hostent hent; char buffer[BUFSIZE];
4910 size_t alen=sizeof(struct in_addr);
4911 int bufsize=BUFSIZE;int h_errno;
4912 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4913 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4916 if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4918 ol_cv_func_gethostbyaddr_r_nargs=7
4920 echo "configure: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4926 #include <sys/types.h>
4927 #include <sys/socket.h>
4928 #include <netinet/in.h>
4930 #define BUFSIZE (sizeof(struct hostent)+10)
4932 struct hostent hent;
4933 struct hostent *rhent; char buffer[BUFSIZE];
4935 size_t alen=sizeof(struct in_addr);
4936 int bufsize=BUFSIZE;int h_errno;
4937 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4938 alen, AF_INET, &hent, buffer, bufsize,
4942 if { (eval echo configure:4943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4944 ol_cv_func_gethostbyaddr_r_nargs=8
4946 echo "configure: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4949 ol_cv_func_gethostbyaddr_r_nargs=0
4956 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4957 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4958 cat >> confdefs.h <<EOF
4959 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4965 ol_cv_func_gethostbyaddr_r_nargs=0
4968 if test "$ac_cv_func_ctime_r" = yes \
4969 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4970 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4971 -a "$ac_cv_func_gethostbyname_r" = yes \
4972 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4973 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4974 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4975 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4976 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4979 cat >> confdefs.h <<\EOF
4980 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4986 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4987 -o $ol_with_threads = posix ; then
4989 for ac_hdr in pthread.h sched.h
4991 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4992 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4993 echo "configure:4994: checking for $ac_hdr" >&5
4994 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4997 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5003 { (eval echo configure:5004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5005 if test -z "$ac_err"; then
5007 eval "ac_cv_header_$ac_safe=yes"
5010 echo "configure: failed program was:" >&5
5011 cat conftest.$ac_ext >&5
5013 eval "ac_cv_header_$ac_safe=no"
5017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5018 echo "$ac_t""yes" 1>&6
5019 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5020 cat >> confdefs.h <<EOF
5021 #define $ac_tr_hdr 1
5025 echo "$ac_t""no" 1>&6
5030 if test $ac_cv_header_pthread_h = yes ; then
5031 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
5032 echo "configure:5033: checking POSIX thread version" >&5
5033 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5037 cat > conftest.$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5041 # include <pthread.h>
5042 /* this check could be improved */
5043 # ifdef PTHREAD_ONCE_INIT
5044 pthread_version_final
5048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5049 egrep "pthread_version_final" >/dev/null 2>&1; then
5051 ol_pthread_final=yes
5059 cat > conftest.$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5063 # include <pthread.h>
5064 /* this check could be improved */
5065 # ifdef pthread_once_init
5066 pthread_version_draft4
5070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5071 egrep "pthread_version_draft4" >/dev/null 2>&1; then
5073 ol_pthread_draft4=yes
5076 ol_pthread_draft4=no
5081 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
5082 ol_cv_pthread_version=final
5083 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
5084 ol_cv_pthread_version=draft4
5086 ol_cv_pthread_version=unknown
5091 echo "$ac_t""$ol_cv_pthread_version" 1>&6
5094 if test $ol_cv_pthread_version = final ; then
5095 cat >> confdefs.h <<\EOF
5096 #define HAVE_PTHREADS_FINAL 1
5099 elif test $ol_cv_pthread_version = draft4 ; then
5100 cat >> confdefs.h <<\EOF
5101 #define HAVE_PTHREADS_D4 1
5105 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
5108 # consider threads found
5109 ol_with_threads=found
5112 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
5113 echo "configure:5114: checking for LinuxThreads pthread.h" >&5
5114 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5117 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5120 #include <pthread.h>
5122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5123 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
5125 ol_cv_header_linux_threads=yes
5128 ol_cv_header_linux_threads=no
5135 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
5136 if test $ol_cv_header_linux_threads = yes; then
5137 cat >> confdefs.h <<\EOF
5138 #define HAVE_LINUX_THREADS 1
5145 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
5146 echo "configure:5147: checking for pthread_create in default libraries" >&5
5147 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
5148 echo $ac_n "(cached) $ac_c" 1>&6
5151 if test "$cross_compiling" = yes; then
5152 ol_cv_pthread_create=yes
5154 cat > conftest.$ac_ext <<EOF
5155 #line 5156 "configure"
5156 #include "confdefs.h"
5158 #include <pthread.h>
5160 #define NULL (void*)0
5163 static void *task(p)
5166 return (void *) (p == NULL);
5169 int main(argc, argv)
5176 /* make sure pthread_create() isn't just a stub */
5177 #if HAVE_PTHREADS_D4
5178 status = pthread_create(&t, pthread_attr_default, task, NULL);
5180 status = pthread_create(&t, NULL, task, NULL);
5183 if( status ) return status;
5185 /* make sure pthread_detach() isn't just a stub */
5186 #if HAVE_PTHREADS_D4
5187 status = pthread_detach( &t );
5189 status = pthread_detach( t );
5192 if( status ) return status;
5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5200 ol_cv_pthread_create=yes
5202 echo "configure: failed program was:" >&5
5203 cat conftest.$ac_ext >&5
5205 ol_cv_pthread_create=no
5212 echo "$ac_t""$ol_cv_pthread_create" 1>&6
5214 if test $ol_cv_pthread_create != no ; then
5215 ol_link_threads=posix
5219 # Pthread try link: -mt (ol_cv_pthread_mt)
5220 if test "$ol_link_threads" = no ; then
5222 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
5223 echo "configure:5224: checking for pthread link with -mt" >&5
5224 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5232 cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5236 #include <pthread.h>
5238 #define NULL (void*)0
5245 #if HAVE_PTHREADS_D4
5246 pthread_create(&t, pthread_attr_default, NULL, NULL);
5247 pthread_detach( &t );
5249 pthread_create(&t, NULL, NULL, NULL);
5250 pthread_detach( t );
5252 #ifdef HAVE_LINUX_THREADS
5253 pthread_kill_other_threads_np();
5258 if { (eval echo configure:5259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5260 ol_cv_pthread_mt=yes
5262 echo "configure: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5274 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
5276 if test $ol_cv_pthread_mt = yes ; then
5277 ol_link_pthreads="-mt"
5278 ol_link_threads=posix
5282 # Pthread try link: -kthread (ol_cv_pthread_kthread)
5283 if test "$ol_link_threads" = no ; then
5285 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
5286 echo "configure:5287: checking for pthread link with -kthread" >&5
5287 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5293 LIBS="-kthread $LIBS"
5295 cat > conftest.$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5299 #include <pthread.h>
5301 #define NULL (void*)0
5308 #if HAVE_PTHREADS_D4
5309 pthread_create(&t, pthread_attr_default, NULL, NULL);
5310 pthread_detach( &t );
5312 pthread_create(&t, NULL, NULL, NULL);
5313 pthread_detach( t );
5315 #ifdef HAVE_LINUX_THREADS
5316 pthread_kill_other_threads_np();
5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5323 ol_cv_pthread_kthread=yes
5325 echo "configure: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5328 ol_cv_pthread_kthread=no
5337 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5339 if test $ol_cv_pthread_kthread = yes ; then
5340 ol_link_pthreads="-kthread"
5341 ol_link_threads=posix
5345 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5346 if test "$ol_link_threads" = no ; then
5348 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5349 echo "configure:5350: checking for pthread link with -pthread" >&5
5350 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5356 LIBS="-pthread $LIBS"
5358 cat > conftest.$ac_ext <<EOF
5359 #line 5360 "configure"
5360 #include "confdefs.h"
5362 #include <pthread.h>
5364 #define NULL (void*)0
5371 #if HAVE_PTHREADS_D4
5372 pthread_create(&t, pthread_attr_default, NULL, NULL);
5373 pthread_detach( &t );
5375 pthread_create(&t, NULL, NULL, NULL);
5376 pthread_detach( t );
5378 #ifdef HAVE_LINUX_THREADS
5379 pthread_kill_other_threads_np();
5384 if { (eval echo configure:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5386 ol_cv_pthread_pthread=yes
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5391 ol_cv_pthread_pthread=no
5400 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5402 if test $ol_cv_pthread_pthread = yes ; then
5403 ol_link_pthreads="-pthread"
5404 ol_link_threads=posix
5408 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5409 if test "$ol_link_threads" = no ; then
5411 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5412 echo "configure:5413: checking for pthread link with -pthreads" >&5
5413 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5414 echo $ac_n "(cached) $ac_c" 1>&6
5419 LIBS="-pthreads $LIBS"
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5425 #include <pthread.h>
5427 #define NULL (void*)0
5434 #if HAVE_PTHREADS_D4
5435 pthread_create(&t, pthread_attr_default, NULL, NULL);
5436 pthread_detach( &t );
5438 pthread_create(&t, NULL, NULL, NULL);
5439 pthread_detach( t );
5441 #ifdef HAVE_LINUX_THREADS
5442 pthread_kill_other_threads_np();
5447 if { (eval echo configure:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5449 ol_cv_pthread_pthreads=yes
5451 echo "configure: failed program was:" >&5
5452 cat conftest.$ac_ext >&5
5454 ol_cv_pthread_pthreads=no
5463 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5465 if test $ol_cv_pthread_pthreads = yes ; then
5466 ol_link_pthreads="-pthreads"
5467 ol_link_threads=posix
5471 # Pthread try link: -thread (ol_cv_pthread_thread)
5472 if test "$ol_link_threads" = no ; then
5474 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5475 echo "configure:5476: checking for pthread link with -thread" >&5
5476 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5477 echo $ac_n "(cached) $ac_c" 1>&6
5482 LIBS="-thread $LIBS"
5484 cat > conftest.$ac_ext <<EOF
5485 #line 5486 "configure"
5486 #include "confdefs.h"
5488 #include <pthread.h>
5490 #define NULL (void*)0
5497 #if HAVE_PTHREADS_D4
5498 pthread_create(&t, pthread_attr_default, NULL, NULL);
5499 pthread_detach( &t );
5501 pthread_create(&t, NULL, NULL, NULL);
5502 pthread_detach( t );
5504 #ifdef HAVE_LINUX_THREADS
5505 pthread_kill_other_threads_np();
5510 if { (eval echo configure:5511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5512 ol_cv_pthread_thread=yes
5514 echo "configure: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5517 ol_cv_pthread_thread=no
5526 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5528 if test $ol_cv_pthread_thread = yes ; then
5529 ol_link_pthreads="-thread"
5530 ol_link_threads=posix
5535 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5536 if test "$ol_link_threads" = no ; then
5537 # try -lpthread -lmach -lexc -lc_r
5538 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5539 echo "configure:5540: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5540 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5541 echo $ac_n "(cached) $ac_c" 1>&6
5546 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5548 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5552 #include <pthread.h>
5554 #define NULL (void*)0
5561 #if HAVE_PTHREADS_D4
5562 pthread_create(&t, pthread_attr_default, NULL, NULL);
5563 pthread_detach( &t );
5565 pthread_create(&t, NULL, NULL, NULL);
5566 pthread_detach( t );
5568 #ifdef HAVE_LINUX_THREADS
5569 pthread_kill_other_threads_np();
5574 if { (eval echo configure:5575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5576 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5578 echo "configure: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5581 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5590 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5592 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5593 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5594 ol_link_threads=posix
5598 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5599 if test "$ol_link_threads" = no ; then
5600 # try -lpthread -lmach -lexc
5601 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5602 echo "configure:5603: checking for pthread link with -lpthread -lmach -lexc" >&5
5603 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5604 echo $ac_n "(cached) $ac_c" 1>&6
5609 LIBS="-lpthread -lmach -lexc $LIBS"
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5615 #include <pthread.h>
5617 #define NULL (void*)0
5624 #if HAVE_PTHREADS_D4
5625 pthread_create(&t, pthread_attr_default, NULL, NULL);
5626 pthread_detach( &t );
5628 pthread_create(&t, NULL, NULL, NULL);
5629 pthread_detach( t );
5631 #ifdef HAVE_LINUX_THREADS
5632 pthread_kill_other_threads_np();
5637 if { (eval echo configure:5638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5639 ol_cv_pthread_lpthread_lmach_lexc=yes
5641 echo "configure: failed program was:" >&5
5642 cat conftest.$ac_ext >&5
5644 ol_cv_pthread_lpthread_lmach_lexc=no
5653 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5655 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5656 ol_link_pthreads="-lpthread -lmach -lexc"
5657 ol_link_threads=posix
5662 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5663 if test "$ol_link_threads" = no ; then
5664 # try -lpthread -Wl,-woff,85
5665 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5666 echo "configure:5667: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5667 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5673 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5679 #include <pthread.h>
5681 #define NULL (void*)0
5688 #if HAVE_PTHREADS_D4
5689 pthread_create(&t, pthread_attr_default, NULL, NULL);
5690 pthread_detach( &t );
5692 pthread_create(&t, NULL, NULL, NULL);
5693 pthread_detach( t );
5695 #ifdef HAVE_LINUX_THREADS
5696 pthread_kill_other_threads_np();
5701 if { (eval echo configure:5702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5703 ol_cv_pthread_lib_lpthread_woff=yes
5705 echo "configure: failed program was:" >&5
5706 cat conftest.$ac_ext >&5
5708 ol_cv_pthread_lib_lpthread_woff=no
5717 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5719 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5720 ol_link_pthreads="-lpthread -Wl,-woff,85"
5721 ol_link_threads=posix
5726 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5727 if test "$ol_link_threads" = no ; then
5729 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5730 echo "configure:5731: checking for pthread link with -lpthread" >&5
5731 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5737 LIBS="-lpthread $LIBS"
5739 cat > conftest.$ac_ext <<EOF
5740 #line 5741 "configure"
5741 #include "confdefs.h"
5743 #include <pthread.h>
5745 #define NULL (void*)0
5752 #if HAVE_PTHREADS_D4
5753 pthread_create(&t, pthread_attr_default, NULL, NULL);
5754 pthread_detach( &t );
5756 pthread_create(&t, NULL, NULL, NULL);
5757 pthread_detach( t );
5759 #ifdef HAVE_LINUX_THREADS
5760 pthread_kill_other_threads_np();
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5767 ol_cv_pthread_lpthread=yes
5769 echo "configure: failed program was:" >&5
5770 cat conftest.$ac_ext >&5
5772 ol_cv_pthread_lpthread=no
5781 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5783 if test $ol_cv_pthread_lpthread = yes ; then
5784 ol_link_pthreads="-lpthread"
5785 ol_link_threads=posix
5789 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5790 if test "$ol_link_threads" = no ; then
5792 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5793 echo "configure:5794: checking for pthread link with -lc_r" >&5
5794 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5795 echo $ac_n "(cached) $ac_c" 1>&6
5802 cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5806 #include <pthread.h>
5808 #define NULL (void*)0
5815 #if HAVE_PTHREADS_D4
5816 pthread_create(&t, pthread_attr_default, NULL, NULL);
5817 pthread_detach( &t );
5819 pthread_create(&t, NULL, NULL, NULL);
5820 pthread_detach( t );
5822 #ifdef HAVE_LINUX_THREADS
5823 pthread_kill_other_threads_np();
5828 if { (eval echo configure:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5830 ol_cv_pthread_lc_r=yes
5832 echo "configure: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5835 ol_cv_pthread_lc_r=no
5844 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5846 if test $ol_cv_pthread_lc_r = yes ; then
5847 ol_link_pthreads="-lc_r"
5848 ol_link_threads=posix
5853 # Pthread try link: -threads (ol_cv_pthread_threads)
5854 if test "$ol_link_threads" = no ; then
5856 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5857 echo "configure:5858: checking for pthread link with -threads" >&5
5858 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5859 echo $ac_n "(cached) $ac_c" 1>&6
5864 LIBS="-threads $LIBS"
5866 cat > conftest.$ac_ext <<EOF
5867 #line 5868 "configure"
5868 #include "confdefs.h"
5870 #include <pthread.h>
5872 #define NULL (void*)0
5879 #if HAVE_PTHREADS_D4
5880 pthread_create(&t, pthread_attr_default, NULL, NULL);
5881 pthread_detach( &t );
5883 pthread_create(&t, NULL, NULL, NULL);
5884 pthread_detach( t );
5886 #ifdef HAVE_LINUX_THREADS
5887 pthread_kill_other_threads_np();
5892 if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5894 ol_cv_pthread_threads=yes
5896 echo "configure: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5899 ol_cv_pthread_threads=no
5908 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5910 if test $ol_cv_pthread_threads = yes ; then
5911 ol_link_pthreads="-threads"
5912 ol_link_threads=posix
5917 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5918 if test "$ol_link_threads" = no ; then
5919 # try -lpthreads -lmach -lexc -lc_r
5920 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5921 echo "configure:5922: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5922 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5923 echo $ac_n "(cached) $ac_c" 1>&6
5928 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5930 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5934 #include <pthread.h>
5936 #define NULL (void*)0
5943 #if HAVE_PTHREADS_D4
5944 pthread_create(&t, pthread_attr_default, NULL, NULL);
5945 pthread_detach( &t );
5947 pthread_create(&t, NULL, NULL, NULL);
5948 pthread_detach( t );
5950 #ifdef HAVE_LINUX_THREADS
5951 pthread_kill_other_threads_np();
5956 if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5958 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5960 echo "configure: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5963 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5972 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5974 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5975 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5976 ol_link_threads=posix
5980 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5981 if test "$ol_link_threads" = no ; then
5982 # try -lpthreads -lmach -lexc
5983 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5984 echo "configure:5985: checking for pthread link with -lpthreads -lmach -lexc" >&5
5985 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5986 echo $ac_n "(cached) $ac_c" 1>&6
5991 LIBS="-lpthreads -lmach -lexc $LIBS"
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5997 #include <pthread.h>
5999 #define NULL (void*)0
6006 #if HAVE_PTHREADS_D4
6007 pthread_create(&t, pthread_attr_default, NULL, NULL);
6008 pthread_detach( &t );
6010 pthread_create(&t, NULL, NULL, NULL);
6011 pthread_detach( t );
6013 #ifdef HAVE_LINUX_THREADS
6014 pthread_kill_other_threads_np();
6019 if { (eval echo configure:6020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6021 ol_cv_pthread_lpthreads_lmach_lexc=yes
6023 echo "configure: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6026 ol_cv_pthread_lpthreads_lmach_lexc=no
6035 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
6037 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
6038 ol_link_pthreads="-lpthreads -lmach -lexc"
6039 ol_link_threads=posix
6043 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
6044 if test "$ol_link_threads" = no ; then
6045 # try -lpthreads -lexc
6046 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
6047 echo "configure:6048: checking for pthread link with -lpthreads -lexc" >&5
6048 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
6049 echo $ac_n "(cached) $ac_c" 1>&6
6054 LIBS="-lpthreads -lexc $LIBS"
6056 cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6060 #include <pthread.h>
6062 #define NULL (void*)0
6069 #if HAVE_PTHREADS_D4
6070 pthread_create(&t, pthread_attr_default, NULL, NULL);
6071 pthread_detach( &t );
6073 pthread_create(&t, NULL, NULL, NULL);
6074 pthread_detach( t );
6076 #ifdef HAVE_LINUX_THREADS
6077 pthread_kill_other_threads_np();
6082 if { (eval echo configure:6083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6084 ol_cv_pthread_lpthreads_lexc=yes
6086 echo "configure: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6089 ol_cv_pthread_lpthreads_lexc=no
6098 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
6100 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
6101 ol_link_pthreads="-lpthreads -lexc"
6102 ol_link_threads=posix
6107 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
6108 if test "$ol_link_threads" = no ; then
6110 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
6111 echo "configure:6112: checking for pthread link with -lpthreads" >&5
6112 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
6113 echo $ac_n "(cached) $ac_c" 1>&6
6118 LIBS="-lpthreads $LIBS"
6120 cat > conftest.$ac_ext <<EOF
6121 #line 6122 "configure"
6122 #include "confdefs.h"
6124 #include <pthread.h>
6126 #define NULL (void*)0
6133 #if HAVE_PTHREADS_D4
6134 pthread_create(&t, pthread_attr_default, NULL, NULL);
6135 pthread_detach( &t );
6137 pthread_create(&t, NULL, NULL, NULL);
6138 pthread_detach( t );
6140 #ifdef HAVE_LINUX_THREADS
6141 pthread_kill_other_threads_np();
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6148 ol_cv_pthread_lib_lpthreads=yes
6150 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6153 ol_cv_pthread_lib_lpthreads=no
6162 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
6164 if test $ol_cv_pthread_lib_lpthreads = yes ; then
6165 ol_link_pthreads="-lpthreads"
6166 ol_link_threads=posix
6171 if test $ol_link_threads != no ; then
6172 cat >> confdefs.h <<\EOF
6173 #define HAVE_PTHREADS 1
6177 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
6179 save_CPPFLAGS="$CPPFLAGS"
6181 LIBS="$LTHREAD_LIBS $LIBS"
6183 for ac_func in sched_yield pthread_yield
6185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6186 echo "configure:6187: checking for $ac_func" >&5
6187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6188 echo $ac_n "(cached) $ac_c" 1>&6
6190 cat > conftest.$ac_ext <<EOF
6191 #line 6192 "configure"
6192 #include "confdefs.h"
6193 /* System header to define __stub macros and hopefully few prototypes,
6194 which can conflict with char $ac_func(); below. */
6196 /* Override any gcc2 internal prototype to avoid an error. */
6197 /* We use char because int might match the return type of a gcc2
6198 builtin and then its argument prototype would still apply. */
6203 /* The GNU C library defines this for functions which it implements
6204 to always fail with ENOSYS. Some functions are actually named
6205 something starting with __ and the normal name is an alias. */
6206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6214 if { (eval echo configure:6215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6216 eval "ac_cv_func_$ac_func=yes"
6218 echo "configure: failed program was:" >&5
6219 cat conftest.$ac_ext >&5
6221 eval "ac_cv_func_$ac_func=no"
6226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6227 echo "$ac_t""yes" 1>&6
6228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6229 cat >> confdefs.h <<EOF
6230 #define $ac_tr_func 1
6234 echo "$ac_t""no" 1>&6
6239 if test $ac_cv_func_sched_yield = no -a \
6240 $ac_cv_func_pthread_yield = no ; then
6241 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
6242 echo "configure:6243: checking for sched_yield in -lrt" >&5
6243 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6245 echo $ac_n "(cached) $ac_c" 1>&6
6247 ac_save_LIBS="$LIBS"
6249 cat > conftest.$ac_ext <<EOF
6250 #line 6251 "configure"
6251 #include "confdefs.h"
6252 /* Override any gcc2 internal prototype to avoid an error. */
6253 /* We use char because int might match the return type of a gcc2
6254 builtin and then its argument prototype would still apply. */
6261 if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6263 eval "ac_cv_lib_$ac_lib_var=yes"
6265 echo "configure: failed program was:" >&5
6266 cat conftest.$ac_ext >&5
6268 eval "ac_cv_lib_$ac_lib_var=no"
6271 LIBS="$ac_save_LIBS"
6274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6275 echo "$ac_t""yes" 1>&6
6276 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
6277 cat >> confdefs.h <<\EOF
6278 #define HAVE_SCHED_YIELD 1
6281 ac_cv_func_sched_yield=yes
6283 echo "$ac_t""no" 1>&6
6284 ac_cv_func_sched_yield=no
6288 if test $ac_cv_func_sched_yield = no -a \
6289 $ac_cv_func_pthread_yield = no ; then
6290 for ac_func in thr_yield
6292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6293 echo "configure:6294: checking for $ac_func" >&5
6294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6295 echo $ac_n "(cached) $ac_c" 1>&6
6297 cat > conftest.$ac_ext <<EOF
6298 #line 6299 "configure"
6299 #include "confdefs.h"
6300 /* System header to define __stub macros and hopefully few prototypes,
6301 which can conflict with char $ac_func(); below. */
6303 /* Override any gcc2 internal prototype to avoid an error. */
6304 /* We use char because int might match the return type of a gcc2
6305 builtin and then its argument prototype would still apply. */
6310 /* The GNU C library defines this for functions which it implements
6311 to always fail with ENOSYS. Some functions are actually named
6312 something starting with __ and the normal name is an alias. */
6313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6321 if { (eval echo configure:6322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6323 eval "ac_cv_func_$ac_func=yes"
6325 echo "configure: failed program was:" >&5
6326 cat conftest.$ac_ext >&5
6328 eval "ac_cv_func_$ac_func=no"
6333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6334 echo "$ac_t""yes" 1>&6
6335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6336 cat >> confdefs.h <<EOF
6337 #define $ac_tr_func 1
6341 echo "$ac_t""no" 1>&6
6346 if test $ac_cv_func_sched_yield = no -a \
6347 $ac_cv_func_pthread_yield = no -a \
6348 "$ac_cv_func_thr_yield" = no ; then
6349 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6352 for ac_func in pthread_kill
6354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6355 echo "configure:6356: checking for $ac_func" >&5
6356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6357 echo $ac_n "(cached) $ac_c" 1>&6
6359 cat > conftest.$ac_ext <<EOF
6360 #line 6361 "configure"
6361 #include "confdefs.h"
6362 /* System header to define __stub macros and hopefully few prototypes,
6363 which can conflict with char $ac_func(); below. */
6365 /* Override any gcc2 internal prototype to avoid an error. */
6366 /* We use char because int might match the return type of a gcc2
6367 builtin and then its argument prototype would still apply. */
6372 /* The GNU C library defines this for functions which it implements
6373 to always fail with ENOSYS. Some functions are actually named
6374 something starting with __ and the normal name is an alias. */
6375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6383 if { (eval echo configure:6384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6385 eval "ac_cv_func_$ac_func=yes"
6387 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6390 eval "ac_cv_func_$ac_func=no"
6395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6396 echo "$ac_t""yes" 1>&6
6397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6398 cat >> confdefs.h <<EOF
6399 #define $ac_tr_func 1
6403 echo "$ac_t""no" 1>&6
6408 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6409 echo "configure:6410: checking for pthread_detach with <pthread.h>" >&5
6410 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6411 echo $ac_n "(cached) $ac_c" 1>&6
6414 cat > conftest.$ac_ext <<EOF
6415 #line 6416 "configure"
6416 #include "confdefs.h"
6418 #include <pthread.h>
6420 #define NULL (void*)0
6424 pthread_detach(NULL);
6427 if { (eval echo configure:6428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6429 ol_cv_func_pthread_detach=yes
6431 echo "configure: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6434 ol_cv_func_pthread_detach=no
6440 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6442 if test $ol_cv_func_pthread_detach = no ; then
6443 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6446 cat >> confdefs.h <<\EOF
6447 #define HAVE_PTHREAD_DETACH 1
6452 pthread_setconcurrency \
6453 pthread_getconcurrency \
6454 thr_setconcurrency \
6455 thr_getconcurrency \
6458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6459 echo "configure:6460: checking for $ac_func" >&5
6460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6461 echo $ac_n "(cached) $ac_c" 1>&6
6463 cat > conftest.$ac_ext <<EOF
6464 #line 6465 "configure"
6465 #include "confdefs.h"
6466 /* System header to define __stub macros and hopefully few prototypes,
6467 which can conflict with char $ac_func(); below. */
6469 /* Override any gcc2 internal prototype to avoid an error. */
6470 /* We use char because int might match the return type of a gcc2
6471 builtin and then its argument prototype would still apply. */
6476 /* The GNU C library defines this for functions which it implements
6477 to always fail with ENOSYS. Some functions are actually named
6478 something starting with __ and the normal name is an alias. */
6479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6487 if { (eval echo configure:6488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6489 eval "ac_cv_func_$ac_func=yes"
6491 echo "configure: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6494 eval "ac_cv_func_$ac_func=no"
6499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6500 echo "$ac_t""yes" 1>&6
6501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6502 cat >> confdefs.h <<EOF
6503 #define $ac_tr_func 1
6507 echo "$ac_t""no" 1>&6
6513 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6514 echo "configure:6515: checking for pthread_kill_other_threads_np" >&5
6515 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6516 echo $ac_n "(cached) $ac_c" 1>&6
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6521 /* System header to define __stub macros and hopefully few prototypes,
6522 which can conflict with char pthread_kill_other_threads_np(); below. */
6524 /* Override any gcc2 internal prototype to avoid an error. */
6525 /* We use char because int might match the return type of a gcc2
6526 builtin and then its argument prototype would still apply. */
6527 char pthread_kill_other_threads_np();
6531 /* The GNU C library defines this for functions which it implements
6532 to always fail with ENOSYS. Some functions are actually named
6533 something starting with __ and the normal name is an alias. */
6534 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6537 pthread_kill_other_threads_np();
6542 if { (eval echo configure:6543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6544 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6546 echo "configure: failed program was:" >&5
6547 cat conftest.$ac_ext >&5
6549 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6554 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6555 echo "$ac_t""yes" 1>&6
6558 echo "$ac_t""no" 1>&6
6561 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6562 echo "configure:6563: checking for LinuxThreads implementation" >&5
6563 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6566 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6569 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6574 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6575 echo "configure:6576: checking for LinuxThreads consistency" >&5
6576 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6577 echo $ac_n "(cached) $ac_c" 1>&6
6580 if test $ol_cv_header_linux_threads = yes -a \
6581 $ol_cv_sys_linux_threads = yes; then
6582 ol_cv_linux_threads=yes
6583 elif test $ol_cv_header_linux_threads = no -a \
6584 $ol_cv_sys_linux_threads = no; then
6585 ol_cv_linux_threads=no
6587 ol_cv_linux_threads=error
6592 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6595 if test $ol_cv_linux_threads = error; then
6596 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6599 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6600 echo "configure:6601: checking if pthread_create() works" >&5
6601 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6602 echo $ac_n "(cached) $ac_c" 1>&6
6605 if test "$cross_compiling" = yes; then
6606 ol_cv_pthread_create_works=yes
6608 cat > conftest.$ac_ext <<EOF
6609 #line 6610 "configure"
6610 #include "confdefs.h"
6612 #include <pthread.h>
6614 #define NULL (void*)0
6617 static void *task(p)
6620 return (void *) (p == NULL);
6623 int main(argc, argv)
6628 #if HAVE_PTHREADS_D4
6629 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6631 exit(pthread_create(&t, NULL, task, NULL));
6636 if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6638 ol_cv_pthread_create_works=yes
6640 echo "configure: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6643 ol_cv_pthread_create_works=no
6650 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6652 if test $ol_cv_pthread_create_works = no ; then
6653 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6656 if test $ol_with_yielding_select = auto ; then
6657 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6658 echo "configure:6659: checking if select yields when using pthreads" >&5
6659 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6660 echo $ac_n "(cached) $ac_c" 1>&6
6663 if test "$cross_compiling" = yes; then
6665 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6671 #include <sys/types.h>
6672 #include <sys/time.h>
6674 #include <pthread.h>
6676 #define NULL (void*) 0
6679 static int fildes[2];
6681 static void *task(p)
6693 FD_SET(fildes[0], &rfds);
6695 /* we're not interested in any fds */
6696 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6703 exit(0); /* if we exit here, the select blocked the whole process */
6706 int main(argc, argv)
6712 /* create a pipe to select */
6713 if(pipe(&fildes[0])) {
6718 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6719 (void) pthread_setconcurrency(2);
6721 #ifdef HAVE_THR_SETCONCURRENCY
6722 /* Set Solaris LWP concurrency to 2 */
6723 thr_setconcurrency(2);
6727 #if HAVE_PTHREADS_D4
6728 pthread_create(&t, pthread_attr_default, task, NULL);
6730 pthread_create(&t, NULL, task, NULL);
6733 #if HAVE_SCHED_YIELD
6734 sched_yield(); /* make sure task runs first */
6736 #ifdef HAVE_PTHREAD_YIELD
6737 pthread_yield(); /* make sure task runs first */
6744 if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6746 ol_cv_pthread_select_yields=no
6748 echo "configure: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6751 ol_cv_pthread_select_yields=yes
6758 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6760 if test $ol_cv_pthread_select_yields = yes ; then
6761 ol_with_yielding_select=yes
6765 CPPFLAGS="$save_CPPFLAGS"
6768 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6772 if test $ol_with_threads = posix ; then
6773 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6777 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6778 -o $ol_with_threads = mach ; then
6780 for ac_hdr in mach/cthreads.h
6782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6784 echo "configure:6785: checking for $ac_hdr" >&5
6785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6786 echo $ac_n "(cached) $ac_c" 1>&6
6788 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6794 { (eval echo configure:6795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6796 if test -z "$ac_err"; then
6798 eval "ac_cv_header_$ac_safe=yes"
6801 echo "configure: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6804 eval "ac_cv_header_$ac_safe=no"
6808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6809 echo "$ac_t""yes" 1>&6
6810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6811 cat >> confdefs.h <<EOF
6812 #define $ac_tr_hdr 1
6816 echo "$ac_t""no" 1>&6
6820 if test $ac_cv_header_mach_cthreads_h = yes ; then
6821 ol_with_threads=found
6823 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6824 echo "configure:6825: checking for cthread_fork" >&5
6825 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831 /* System header to define __stub macros and hopefully few prototypes,
6832 which can conflict with char cthread_fork(); below. */
6834 /* Override any gcc2 internal prototype to avoid an error. */
6835 /* We use char because int might match the return type of a gcc2
6836 builtin and then its argument prototype would still apply. */
6837 char cthread_fork();
6841 /* The GNU C library defines this for functions which it implements
6842 to always fail with ENOSYS. Some functions are actually named
6843 something starting with __ and the normal name is an alias. */
6844 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6852 if { (eval echo configure:6853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6854 eval "ac_cv_func_cthread_fork=yes"
6856 echo "configure: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6859 eval "ac_cv_func_cthread_fork=no"
6864 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6865 echo "$ac_t""yes" 1>&6
6868 echo "$ac_t""no" 1>&6
6872 if test $ol_link_threads = no ; then
6873 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6874 echo "configure:6875: checking for cthread_fork with -all_load" >&5
6875 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6880 LIBS="-all_load $LIBS"
6881 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6884 #include <mach/cthreads.h>
6887 cthread_fork((void *)0, (void *)0);
6891 if { (eval echo configure:6892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6893 ol_cv_cthread_all_load=yes
6895 echo "configure: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6898 ol_cv_cthread_all_load=no
6905 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6907 if test $ol_cv_cthread_all_load = yes ; then
6908 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6909 ol_link_threads=mach
6913 if test $ol_link_threads != no ; then
6914 : check for cthread specific functionality here
6915 cat >> confdefs.h <<\EOF
6916 #define HAVE_MACH_CTHREADS 1
6920 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6924 if test $ol_with_threads = mach ; then
6925 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6929 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6930 -o $ol_with_threads = lwp ; then
6932 for ac_hdr in thread.h synch.h
6934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6936 echo "configure:6937: checking for $ac_hdr" >&5
6937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6938 echo $ac_n "(cached) $ac_c" 1>&6
6940 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6946 { (eval echo configure:6947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6948 if test -z "$ac_err"; then
6950 eval "ac_cv_header_$ac_safe=yes"
6953 echo "configure: failed program was:" >&5
6954 cat conftest.$ac_ext >&5
6956 eval "ac_cv_header_$ac_safe=no"
6960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6961 echo "$ac_t""yes" 1>&6
6962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6963 cat >> confdefs.h <<EOF
6964 #define $ac_tr_hdr 1
6968 echo "$ac_t""no" 1>&6
6972 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6973 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6974 echo "configure:6975: checking for thr_create in -lthread" >&5
6975 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6979 ac_save_LIBS="$LIBS"
6980 LIBS="-lthread $LIBS"
6981 cat > conftest.$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6984 /* Override any gcc2 internal prototype to avoid an error. */
6985 /* We use char because int might match the return type of a gcc2
6986 builtin and then its argument prototype would still apply. */
6993 if { (eval echo configure:6994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6995 eval "ac_cv_lib_$ac_lib_var=yes"
6997 echo "configure: failed program was:" >&5
6998 cat conftest.$ac_ext >&5
7000 eval "ac_cv_lib_$ac_lib_var=no"
7003 LIBS="$ac_save_LIBS"
7006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7007 echo "$ac_t""yes" 1>&6
7010 echo "$ac_t""no" 1>&6
7015 if test $have_thr = yes ; then
7016 cat >> confdefs.h <<\EOF
7020 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
7023 if test $ol_with_yielding_select = auto ; then
7024 ol_with_yielding_select=yes
7028 thr_setconcurrency \
7029 thr_getconcurrency \
7032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7033 echo "configure:7034: checking for $ac_func" >&5
7034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7035 echo $ac_n "(cached) $ac_c" 1>&6
7037 cat > conftest.$ac_ext <<EOF
7038 #line 7039 "configure"
7039 #include "confdefs.h"
7040 /* System header to define __stub macros and hopefully few prototypes,
7041 which can conflict with char $ac_func(); below. */
7043 /* Override any gcc2 internal prototype to avoid an error. */
7044 /* We use char because int might match the return type of a gcc2
7045 builtin and then its argument prototype would still apply. */
7050 /* The GNU C library defines this for functions which it implements
7051 to always fail with ENOSYS. Some functions are actually named
7052 something starting with __ and the normal name is an alias. */
7053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7061 if { (eval echo configure:7062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7063 eval "ac_cv_func_$ac_func=yes"
7065 echo "configure: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7068 eval "ac_cv_func_$ac_func=no"
7073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7074 echo "$ac_t""yes" 1>&6
7075 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7076 cat >> confdefs.h <<EOF
7077 #define $ac_tr_func 1
7081 echo "$ac_t""no" 1>&6
7088 for ac_hdr in lwp/lwp.h
7090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7092 echo "configure:7093: checking for $ac_hdr" >&5
7093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7096 cat > conftest.$ac_ext <<EOF
7097 #line 7098 "configure"
7098 #include "confdefs.h"
7101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7102 { (eval echo configure:7103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7104 if test -z "$ac_err"; then
7106 eval "ac_cv_header_$ac_safe=yes"
7109 echo "configure: failed program was:" >&5
7110 cat conftest.$ac_ext >&5
7112 eval "ac_cv_header_$ac_safe=no"
7116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7117 echo "$ac_t""yes" 1>&6
7118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7119 cat >> confdefs.h <<EOF
7120 #define $ac_tr_hdr 1
7124 echo "$ac_t""no" 1>&6
7128 if test $ac_cv_header_lwp_lwp_h = yes ; then
7129 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
7130 echo "configure:7131: checking for lwp_create in -llwp" >&5
7131 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
7132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7133 echo $ac_n "(cached) $ac_c" 1>&6
7135 ac_save_LIBS="$LIBS"
7137 cat > conftest.$ac_ext <<EOF
7138 #line 7139 "configure"
7139 #include "confdefs.h"
7140 /* Override any gcc2 internal prototype to avoid an error. */
7141 /* We use char because int might match the return type of a gcc2
7142 builtin and then its argument prototype would still apply. */
7149 if { (eval echo configure:7150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7151 eval "ac_cv_lib_$ac_lib_var=yes"
7153 echo "configure: failed program was:" >&5
7154 cat conftest.$ac_ext >&5
7156 eval "ac_cv_lib_$ac_lib_var=no"
7159 LIBS="$ac_save_LIBS"
7162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7163 echo "$ac_t""yes" 1>&6
7166 echo "$ac_t""no" 1>&6
7171 if test $have_lwp = yes ; then
7172 cat >> confdefs.h <<\EOF
7176 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
7179 if test $ol_with_yielding_select = auto ; then
7180 ol_with_yielding_select=no
7186 if test $ol_with_yielding_select = yes ; then
7187 cat >> confdefs.h <<\EOF
7188 #define HAVE_YIELDING_SELECT 1
7193 if test $ol_with_threads = manual ; then
7196 echo "configure: warning: thread defines and link options must be set manually" 1>&2
7198 for ac_hdr in pthread.h sched.h
7200 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7201 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7202 echo "configure:7203: checking for $ac_hdr" >&5
7203 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7204 echo $ac_n "(cached) $ac_c" 1>&6
7206 cat > conftest.$ac_ext <<EOF
7207 #line 7208 "configure"
7208 #include "confdefs.h"
7211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7212 { (eval echo configure:7213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7214 if test -z "$ac_err"; then
7216 eval "ac_cv_header_$ac_safe=yes"
7219 echo "configure: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7222 eval "ac_cv_header_$ac_safe=no"
7226 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7227 echo "$ac_t""yes" 1>&6
7228 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7229 cat >> confdefs.h <<EOF
7230 #define $ac_tr_hdr 1
7234 echo "$ac_t""no" 1>&6
7238 for ac_func in sched_yield pthread_yield
7240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7241 echo "configure:7242: checking for $ac_func" >&5
7242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7243 echo $ac_n "(cached) $ac_c" 1>&6
7245 cat > conftest.$ac_ext <<EOF
7246 #line 7247 "configure"
7247 #include "confdefs.h"
7248 /* System header to define __stub macros and hopefully few prototypes,
7249 which can conflict with char $ac_func(); below. */
7251 /* Override any gcc2 internal prototype to avoid an error. */
7252 /* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */
7258 /* The GNU C library defines this for functions which it implements
7259 to always fail with ENOSYS. Some functions are actually named
7260 something starting with __ and the normal name is an alias. */
7261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7269 if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7271 eval "ac_cv_func_$ac_func=yes"
7273 echo "configure: failed program was:" >&5
7274 cat conftest.$ac_ext >&5
7276 eval "ac_cv_func_$ac_func=no"
7281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7282 echo "$ac_t""yes" 1>&6
7283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7284 cat >> confdefs.h <<EOF
7285 #define $ac_tr_func 1
7289 echo "$ac_t""no" 1>&6
7294 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7295 echo "configure:7296: checking for LinuxThreads pthread.h" >&5
7296 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7299 cat > conftest.$ac_ext <<EOF
7300 #line 7301 "configure"
7301 #include "confdefs.h"
7302 #include <pthread.h>
7304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7305 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7307 ol_cv_header_linux_threads=yes
7310 ol_cv_header_linux_threads=no
7317 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7318 if test $ol_cv_header_linux_threads = yes; then
7319 cat >> confdefs.h <<\EOF
7320 #define HAVE_LINUX_THREADS 1
7326 for ac_hdr in mach/cthreads.h
7328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7330 echo "configure:7331: checking for $ac_hdr" >&5
7331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7332 echo $ac_n "(cached) $ac_c" 1>&6
7334 cat > conftest.$ac_ext <<EOF
7335 #line 7336 "configure"
7336 #include "confdefs.h"
7339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7340 { (eval echo configure:7341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7342 if test -z "$ac_err"; then
7344 eval "ac_cv_header_$ac_safe=yes"
7347 echo "configure: failed program was:" >&5
7348 cat conftest.$ac_ext >&5
7350 eval "ac_cv_header_$ac_safe=no"
7354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7355 echo "$ac_t""yes" 1>&6
7356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7357 cat >> confdefs.h <<EOF
7358 #define $ac_tr_hdr 1
7362 echo "$ac_t""no" 1>&6
7366 for ac_hdr in lwp/lwp.h
7368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7370 echo "configure:7371: checking for $ac_hdr" >&5
7371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7372 echo $ac_n "(cached) $ac_c" 1>&6
7374 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7380 { (eval echo configure:7381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7382 if test -z "$ac_err"; then
7384 eval "ac_cv_header_$ac_safe=yes"
7387 echo "configure: failed program was:" >&5
7388 cat conftest.$ac_ext >&5
7390 eval "ac_cv_header_$ac_safe=no"
7394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7395 echo "$ac_t""yes" 1>&6
7396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7397 cat >> confdefs.h <<EOF
7398 #define $ac_tr_hdr 1
7402 echo "$ac_t""no" 1>&6
7406 for ac_hdr in thread.h synch.h
7408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7410 echo "configure:7411: checking for $ac_hdr" >&5
7411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7412 echo $ac_n "(cached) $ac_c" 1>&6
7414 cat > conftest.$ac_ext <<EOF
7415 #line 7416 "configure"
7416 #include "confdefs.h"
7419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7420 { (eval echo configure:7421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7422 if test -z "$ac_err"; then
7424 eval "ac_cv_header_$ac_safe=yes"
7427 echo "configure: failed program was:" >&5
7428 cat conftest.$ac_ext >&5
7430 eval "ac_cv_header_$ac_safe=no"
7434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7435 echo "$ac_t""yes" 1>&6
7436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7437 cat >> confdefs.h <<EOF
7438 #define $ac_tr_hdr 1
7442 echo "$ac_t""no" 1>&6
7448 if test $ol_link_threads != no ; then
7449 cat >> confdefs.h <<\EOF
7453 cat >> confdefs.h <<\EOF
7454 #define _REENTRANT 1
7457 cat >> confdefs.h <<\EOF
7458 #define THREAD_SAFE 1
7461 cat >> confdefs.h <<\EOF
7462 #define _THREAD_SAFE 1
7465 cat >> confdefs.h <<\EOF
7466 #define THREADSAFE 1
7469 cat >> confdefs.h <<\EOF
7470 #define _THREADSAFE 1
7473 cat >> confdefs.h <<\EOF
7474 #define _SGI_MP_SOURCE 1
7478 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7479 echo "configure:7480: checking for thread specific errno" >&5
7480 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7481 echo $ac_n "(cached) $ac_c" 1>&6
7484 cat > conftest.$ac_ext <<EOF
7485 #line 7486 "configure"
7486 #include "confdefs.h"
7492 if { (eval echo configure:7493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7494 ol_cv_errno_thread_specific=yes
7496 echo "configure: failed program was:" >&5
7497 cat conftest.$ac_ext >&5
7499 ol_cv_errno_thread_specific=no
7505 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7507 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
7508 echo "configure:7509: checking for thread specific h_errno" >&5
7509 if eval "test \"`echo '$''{'ol_cv_h_errno_thread_specific'+set}'`\" = set"; then
7510 echo $ac_n "(cached) $ac_c" 1>&6
7513 cat > conftest.$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7521 if { (eval echo configure:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7523 ol_cv_h_errno_thread_specific=yes
7525 echo "configure: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7528 ol_cv_h_errno_thread_specific=no
7534 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
7536 if test $ol_cv_errno_thread_specific != yes \
7537 -o $ol_cv_h_errno_thread_specific != yes ; then
7538 LIBS="$LTHREAD_LIBS $LIBS"
7544 if test $ol_link_threads = no ; then
7545 if test $ol_with_threads = yes ; then
7546 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7549 if test $ol_with_threads = auto ; then
7550 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7554 cat >> confdefs.h <<\EOF
7555 #define NO_THREADS 1
7561 if test $ol_link_threads != no ; then
7562 cat >> confdefs.h <<\EOF
7563 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7570 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7571 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7572 echo "configure:7573: checking for DB2 library" >&5
7573 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7574 echo $ac_n "(cached) $ac_c" 1>&6
7577 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7578 echo "configure:7579: checking for db_open in -ldb" >&5
7579 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7581 echo $ac_n "(cached) $ac_c" 1>&6
7583 ac_save_LIBS="$LIBS"
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588 /* Override any gcc2 internal prototype to avoid an error. */
7589 /* We use char because int might match the return type of a gcc2
7590 builtin and then its argument prototype would still apply. */
7597 if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7599 eval "ac_cv_lib_$ac_lib_var=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7604 eval "ac_cv_lib_$ac_lib_var=no"
7607 LIBS="$ac_save_LIBS"
7610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7611 echo "$ac_t""yes" 1>&6
7614 echo "$ac_t""no" 1>&6
7622 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7628 echo "configure:7629: checking for $ac_hdr" >&5
7629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7630 echo $ac_n "(cached) $ac_c" 1>&6
7632 cat > conftest.$ac_ext <<EOF
7633 #line 7634 "configure"
7634 #include "confdefs.h"
7637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7638 { (eval echo configure:7639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7640 if test -z "$ac_err"; then
7642 eval "ac_cv_header_$ac_safe=yes"
7645 echo "configure: failed program was:" >&5
7646 cat conftest.$ac_ext >&5
7648 eval "ac_cv_header_$ac_safe=no"
7652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7653 echo "$ac_t""yes" 1>&6
7654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7655 cat >> confdefs.h <<EOF
7656 #define $ac_tr_hdr 1
7660 echo "$ac_t""no" 1>&6
7664 if test $ac_cv_header_db_h = yes ; then
7665 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7666 echo "configure:7667: checking if db.h is DB2" >&5
7667 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7676 /* this check could be improved */
7677 # ifdef DB_VERSION_MAJOR
7678 # if DB_VERSION_MAJOR == 2
7684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7685 egrep "__db_version_2" >/dev/null 2>&1; then
7687 ol_cv_header_db2=yes
7696 echo "$ac_t""$ol_cv_header_db2" 1>&6
7703 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7704 echo "configure:7705: checking for Berkeley DB2" >&5
7705 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7706 echo $ac_n "(cached) $ac_c" 1>&6
7709 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7710 ol_cv_berkeley_db2=no
7712 ol_cv_berkeley_db2=yes
7717 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7718 if test $ol_cv_berkeley_db2 = yes ; then
7719 cat >> confdefs.h <<\EOF
7720 #define HAVE_BERKELEY_DB2 1
7726 if test $ol_cv_berkeley_db2 = yes ; then
7728 ol_with_ldbm_api=db2
7730 if test $ol_with_ldbm_type = hash ; then
7731 cat >> confdefs.h <<\EOF
7732 #define LDBM_USE_DBHASH 1
7736 cat >> confdefs.h <<\EOF
7737 #define LDBM_USE_DBBTREE 1
7742 if test $ol_cv_lib_db2 != yes ; then
7743 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7749 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7753 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7754 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7755 echo "configure:7756: checking for Berkeley DB library" >&5
7756 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7757 echo $ac_n "(cached) $ac_c" 1>&6
7760 for ac_hdr in db1/db.h
7762 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7763 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7764 echo "configure:7765: checking for $ac_hdr" >&5
7765 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7766 echo $ac_n "(cached) $ac_c" 1>&6
7768 cat > conftest.$ac_ext <<EOF
7769 #line 7770 "configure"
7770 #include "confdefs.h"
7773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7774 { (eval echo configure:7775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7776 if test -z "$ac_err"; then
7778 eval "ac_cv_header_$ac_safe=yes"
7781 echo "configure: failed program was:" >&5
7782 cat conftest.$ac_ext >&5
7784 eval "ac_cv_header_$ac_safe=no"
7788 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7789 echo "$ac_t""yes" 1>&6
7790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7791 cat >> confdefs.h <<EOF
7792 #define $ac_tr_hdr 1
7796 echo "$ac_t""no" 1>&6
7801 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7802 echo "configure:7803: checking for dbopen" >&5
7803 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7804 echo $ac_n "(cached) $ac_c" 1>&6
7806 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7809 /* System header to define __stub macros and hopefully few prototypes,
7810 which can conflict with char dbopen(); below. */
7812 /* Override any gcc2 internal prototype to avoid an error. */
7813 /* We use char because int might match the return type of a gcc2
7814 builtin and then its argument prototype would still apply. */
7819 /* The GNU C library defines this for functions which it implements
7820 to always fail with ENOSYS. Some functions are actually named
7821 something starting with __ and the normal name is an alias. */
7822 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7830 if { (eval echo configure:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7832 eval "ac_cv_func_dbopen=yes"
7834 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7837 eval "ac_cv_func_dbopen=no"
7842 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7843 echo "$ac_t""yes" 1>&6
7846 echo "$ac_t""no" 1>&6
7848 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
7849 echo "configure:7850: checking for dbopen in -ldb1" >&5
7850 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
7851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
7854 ac_save_LIBS="$LIBS"
7856 cat > conftest.$ac_ext <<EOF
7857 #line 7858 "configure"
7858 #include "confdefs.h"
7859 /* Override any gcc2 internal prototype to avoid an error. */
7860 /* We use char because int might match the return type of a gcc2
7861 builtin and then its argument prototype would still apply. */
7868 if { (eval echo configure:7869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7870 eval "ac_cv_lib_$ac_lib_var=yes"
7872 echo "configure: failed program was:" >&5
7873 cat conftest.$ac_ext >&5
7875 eval "ac_cv_lib_$ac_lib_var=no"
7878 LIBS="$ac_save_LIBS"
7881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7882 echo "$ac_t""yes" 1>&6
7885 echo "$ac_t""no" 1>&6
7887 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7888 echo "configure:7889: checking for dbopen in -ldb" >&5
7889 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7890 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7891 echo $ac_n "(cached) $ac_c" 1>&6
7893 ac_save_LIBS="$LIBS"
7895 cat > conftest.$ac_ext <<EOF
7896 #line 7897 "configure"
7897 #include "confdefs.h"
7898 /* Override any gcc2 internal prototype to avoid an error. */
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7907 if { (eval echo configure:7908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7909 eval "ac_cv_lib_$ac_lib_var=yes"
7911 echo "configure: failed program was:" >&5
7912 cat conftest.$ac_ext >&5
7914 eval "ac_cv_lib_$ac_lib_var=no"
7917 LIBS="$ac_save_LIBS"
7920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7921 echo "$ac_t""yes" 1>&6
7924 echo "$ac_t""no" 1>&6
7938 echo "$ac_t""$ol_cv_lib_db" 1>&6
7941 for ac_hdr in db_185.h
7943 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7944 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7945 echo "configure:7946: checking for $ac_hdr" >&5
7946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7947 echo $ac_n "(cached) $ac_c" 1>&6
7949 cat > conftest.$ac_ext <<EOF
7950 #line 7951 "configure"
7951 #include "confdefs.h"
7954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7955 { (eval echo configure:7956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7957 if test -z "$ac_err"; then
7959 eval "ac_cv_header_$ac_safe=yes"
7962 echo "configure: failed program was:" >&5
7963 cat conftest.$ac_ext >&5
7965 eval "ac_cv_header_$ac_safe=no"
7969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7970 echo "$ac_t""yes" 1>&6
7971 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7972 cat >> confdefs.h <<EOF
7973 #define $ac_tr_hdr 1
7977 echo "$ac_t""no" 1>&6
7981 if test "$ol_cv_header_db2" = yes ; then
7983 ol_cv_header_db=$ac_cv_header_db_185_h
7985 ol_cv_header_db=$ac_cv_header_db_h
7990 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7991 echo "configure:7992: checking for Berkeley DB" >&5
7992 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7993 echo $ac_n "(cached) $ac_c" 1>&6
7996 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7997 ol_cv_berkeley_db=no
7999 ol_cv_berkeley_db=yes
8004 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
8005 if test $ol_cv_berkeley_db = yes ; then
8006 cat >> confdefs.h <<\EOF
8007 #define HAVE_BERKELEY_DB 1
8013 if test $ol_cv_berkeley_db = yes ; then
8017 if test $ol_with_ldbm_type = hash ; then
8018 cat >> confdefs.h <<\EOF
8019 #define LDBM_USE_DBHASH 1
8023 cat >> confdefs.h <<\EOF
8024 #define LDBM_USE_DBBTREE 1
8029 if test $ol_cv_lib_db != yes ; then
8030 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
8035 if test $ol_with_ldbm_api = manual ; then
8038 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
8040 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
8042 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8044 echo "configure:8045: checking for $ac_hdr" >&5
8045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8046 echo $ac_n "(cached) $ac_c" 1>&6
8048 cat > conftest.$ac_ext <<EOF
8049 #line 8050 "configure"
8050 #include "confdefs.h"
8053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8054 { (eval echo configure:8055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8056 if test -z "$ac_err"; then
8058 eval "ac_cv_header_$ac_safe=yes"
8061 echo "configure: failed program was:" >&5
8062 cat conftest.$ac_ext >&5
8064 eval "ac_cv_header_$ac_safe=no"
8068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8069 echo "$ac_t""yes" 1>&6
8070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8071 cat >> confdefs.h <<EOF
8072 #define $ac_tr_hdr 1
8076 echo "$ac_t""no" 1>&6
8082 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
8083 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
8084 ol_with_ldbm_api=none
8087 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
8088 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
8089 echo "configure:8090: checking for MDBM library" >&5
8090 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
8091 echo $ac_n "(cached) $ac_c" 1>&6
8094 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
8095 echo "configure:8096: checking for mdbm_set_chain" >&5
8096 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
8097 echo $ac_n "(cached) $ac_c" 1>&6
8099 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8102 /* System header to define __stub macros and hopefully few prototypes,
8103 which can conflict with char mdbm_set_chain(); below. */
8105 /* Override any gcc2 internal prototype to avoid an error. */
8106 /* We use char because int might match the return type of a gcc2
8107 builtin and then its argument prototype would still apply. */
8108 char mdbm_set_chain();
8112 /* The GNU C library defines this for functions which it implements
8113 to always fail with ENOSYS. Some functions are actually named
8114 something starting with __ and the normal name is an alias. */
8115 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
8123 if { (eval echo configure:8124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8125 eval "ac_cv_func_mdbm_set_chain=yes"
8127 echo "configure: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8130 eval "ac_cv_func_mdbm_set_chain=no"
8135 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
8136 echo "$ac_t""yes" 1>&6
8139 echo "$ac_t""no" 1>&6
8141 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
8142 echo "configure:8143: checking for mdbm_set_chain in -lmdbm" >&5
8143 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
8144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8145 echo $ac_n "(cached) $ac_c" 1>&6
8147 ac_save_LIBS="$LIBS"
8149 cat > conftest.$ac_ext <<EOF
8150 #line 8151 "configure"
8151 #include "confdefs.h"
8152 /* Override any gcc2 internal prototype to avoid an error. */
8153 /* We use char because int might match the return type of a gcc2
8154 builtin and then its argument prototype would still apply. */
8155 char mdbm_set_chain();
8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8163 eval "ac_cv_lib_$ac_lib_var=yes"
8165 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8168 eval "ac_cv_lib_$ac_lib_var=no"
8171 LIBS="$ac_save_LIBS"
8174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8175 echo "$ac_t""yes" 1>&6
8176 ol_cv_lib_mdbm=-lmdbm
8178 echo "$ac_t""no" 1>&6
8189 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
8192 for ac_hdr in mdbm.h
8194 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8196 echo "configure:8197: checking for $ac_hdr" >&5
8197 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8198 echo $ac_n "(cached) $ac_c" 1>&6
8200 cat > conftest.$ac_ext <<EOF
8201 #line 8202 "configure"
8202 #include "confdefs.h"
8205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8206 { (eval echo configure:8207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8208 if test -z "$ac_err"; then
8210 eval "ac_cv_header_$ac_safe=yes"
8213 echo "configure: failed program was:" >&5
8214 cat conftest.$ac_ext >&5
8216 eval "ac_cv_header_$ac_safe=no"
8220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8221 echo "$ac_t""yes" 1>&6
8222 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8223 cat >> confdefs.h <<EOF
8224 #define $ac_tr_hdr 1
8228 echo "$ac_t""no" 1>&6
8232 echo $ac_n "checking for db""... $ac_c" 1>&6
8233 echo "configure:8234: checking for db" >&5
8234 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
8235 echo $ac_n "(cached) $ac_c" 1>&6
8238 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
8246 echo "$ac_t""$ol_cv_mdbm" 1>&6
8247 if test $ol_cv_mdbm = yes ; then
8248 cat >> confdefs.h <<\EOF
8255 if test $ol_cv_mdbm = yes ; then
8257 ol_with_ldbm_api=mdbm
8258 if test $ol_cv_lib_mdbm != yes ; then
8259 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
8264 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
8265 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
8266 echo "configure:8267: checking for GDBM library" >&5
8267 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
8268 echo $ac_n "(cached) $ac_c" 1>&6
8271 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
8272 echo "configure:8273: checking for gdbm_open" >&5
8273 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
8274 echo $ac_n "(cached) $ac_c" 1>&6
8276 cat > conftest.$ac_ext <<EOF
8277 #line 8278 "configure"
8278 #include "confdefs.h"
8279 /* System header to define __stub macros and hopefully few prototypes,
8280 which can conflict with char gdbm_open(); below. */
8282 /* Override any gcc2 internal prototype to avoid an error. */
8283 /* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */
8289 /* The GNU C library defines this for functions which it implements
8290 to always fail with ENOSYS. Some functions are actually named
8291 something starting with __ and the normal name is an alias. */
8292 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
8300 if { (eval echo configure:8301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8302 eval "ac_cv_func_gdbm_open=yes"
8304 echo "configure: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8307 eval "ac_cv_func_gdbm_open=no"
8312 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
8313 echo "$ac_t""yes" 1>&6
8316 echo "$ac_t""no" 1>&6
8318 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
8319 echo "configure:8320: checking for gdbm_open in -lgdbm" >&5
8320 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
8321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8322 echo $ac_n "(cached) $ac_c" 1>&6
8324 ac_save_LIBS="$LIBS"
8326 cat > conftest.$ac_ext <<EOF
8327 #line 8328 "configure"
8328 #include "confdefs.h"
8329 /* Override any gcc2 internal prototype to avoid an error. */
8330 /* We use char because int might match the return type of a gcc2
8331 builtin and then its argument prototype would still apply. */
8338 if { (eval echo configure:8339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8340 eval "ac_cv_lib_$ac_lib_var=yes"
8342 echo "configure: failed program was:" >&5
8343 cat conftest.$ac_ext >&5
8345 eval "ac_cv_lib_$ac_lib_var=no"
8348 LIBS="$ac_save_LIBS"
8351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8352 echo "$ac_t""yes" 1>&6
8353 ol_cv_lib_gdbm=-lgdbm
8355 echo "$ac_t""no" 1>&6
8366 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8369 for ac_hdr in gdbm.h
8371 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8372 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8373 echo "configure:8374: checking for $ac_hdr" >&5
8374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8375 echo $ac_n "(cached) $ac_c" 1>&6
8377 cat > conftest.$ac_ext <<EOF
8378 #line 8379 "configure"
8379 #include "confdefs.h"
8382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8383 { (eval echo configure:8384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8385 if test -z "$ac_err"; then
8387 eval "ac_cv_header_$ac_safe=yes"
8390 echo "configure: failed program was:" >&5
8391 cat conftest.$ac_ext >&5
8393 eval "ac_cv_header_$ac_safe=no"
8397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8398 echo "$ac_t""yes" 1>&6
8399 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8400 cat >> confdefs.h <<EOF
8401 #define $ac_tr_hdr 1
8405 echo "$ac_t""no" 1>&6
8409 echo $ac_n "checking for db""... $ac_c" 1>&6
8410 echo "configure:8411: checking for db" >&5
8411 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
8412 echo $ac_n "(cached) $ac_c" 1>&6
8415 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8423 echo "$ac_t""$ol_cv_gdbm" 1>&6
8424 if test $ol_cv_gdbm = yes ; then
8425 cat >> confdefs.h <<\EOF
8432 if test $ol_cv_gdbm = yes ; then
8434 ol_with_ldbm_api=gdbm
8436 if test $ol_cv_lib_gdbm != yes ; then
8437 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8442 if test $ol_with_ldbm_api = auto ; then
8443 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8444 elif test $ol_with_ldbm_api = ndbm ; then
8445 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8446 echo "configure:8447: checking for NDBM library" >&5
8447 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
8448 echo $ac_n "(cached) $ac_c" 1>&6
8451 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8452 echo "configure:8453: checking for dbm_open" >&5
8453 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
8454 echo $ac_n "(cached) $ac_c" 1>&6
8456 cat > conftest.$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8459 /* System header to define __stub macros and hopefully few prototypes,
8460 which can conflict with char dbm_open(); below. */
8462 /* Override any gcc2 internal prototype to avoid an error. */
8463 /* We use char because int might match the return type of a gcc2
8464 builtin and then its argument prototype would still apply. */
8469 /* The GNU C library defines this for functions which it implements
8470 to always fail with ENOSYS. Some functions are actually named
8471 something starting with __ and the normal name is an alias. */
8472 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8480 if { (eval echo configure:8481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8482 eval "ac_cv_func_dbm_open=yes"
8484 echo "configure: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8487 eval "ac_cv_func_dbm_open=no"
8492 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8493 echo "$ac_t""yes" 1>&6
8496 echo "$ac_t""no" 1>&6
8498 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8499 echo "configure:8500: checking for dbm_open in -lndbm" >&5
8500 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8502 echo $ac_n "(cached) $ac_c" 1>&6
8504 ac_save_LIBS="$LIBS"
8506 cat > conftest.$ac_ext <<EOF
8507 #line 8508 "configure"
8508 #include "confdefs.h"
8509 /* Override any gcc2 internal prototype to avoid an error. */
8510 /* We use char because int might match the return type of a gcc2
8511 builtin and then its argument prototype would still apply. */
8518 if { (eval echo configure:8519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8520 eval "ac_cv_lib_$ac_lib_var=yes"
8522 echo "configure: failed program was:" >&5
8523 cat conftest.$ac_ext >&5
8525 eval "ac_cv_lib_$ac_lib_var=no"
8528 LIBS="$ac_save_LIBS"
8531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8532 echo "$ac_t""yes" 1>&6
8533 ol_cv_lib_ndbm=-lndbm
8535 echo "$ac_t""no" 1>&6
8537 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8538 echo "configure:8539: checking for dbm_open in -ldbm" >&5
8539 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8541 echo $ac_n "(cached) $ac_c" 1>&6
8543 ac_save_LIBS="$LIBS"
8545 cat > conftest.$ac_ext <<EOF
8546 #line 8547 "configure"
8547 #include "confdefs.h"
8548 /* Override any gcc2 internal prototype to avoid an error. */
8549 /* We use char because int might match the return type of a gcc2
8550 builtin and then its argument prototype would still apply. */
8557 if { (eval echo configure:8558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8559 eval "ac_cv_lib_$ac_lib_var=yes"
8561 echo "configure: failed program was:" >&5
8562 cat conftest.$ac_ext >&5
8564 eval "ac_cv_lib_$ac_lib_var=no"
8567 LIBS="$ac_save_LIBS"
8570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8571 echo "$ac_t""yes" 1>&6
8572 ol_cv_lib_ndbm=-ldbm
8574 echo "$ac_t""no" 1>&6
8587 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8590 for ac_hdr in ndbm.h
8592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8594 echo "configure:8595: checking for $ac_hdr" >&5
8595 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8596 echo $ac_n "(cached) $ac_c" 1>&6
8598 cat > conftest.$ac_ext <<EOF
8599 #line 8600 "configure"
8600 #include "confdefs.h"
8603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8604 { (eval echo configure:8605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8606 if test -z "$ac_err"; then
8608 eval "ac_cv_header_$ac_safe=yes"
8611 echo "configure: failed program was:" >&5
8612 cat conftest.$ac_ext >&5
8614 eval "ac_cv_header_$ac_safe=no"
8618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8619 echo "$ac_t""yes" 1>&6
8620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8621 cat >> confdefs.h <<EOF
8622 #define $ac_tr_hdr 1
8626 echo "$ac_t""no" 1>&6
8630 echo $ac_n "checking for db""... $ac_c" 1>&6
8631 echo "configure:8632: checking for db" >&5
8632 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8633 echo $ac_n "(cached) $ac_c" 1>&6
8636 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8644 echo "$ac_t""$ol_cv_ndbm" 1>&6
8645 if test $ol_cv_ndbm = yes ; then
8646 cat >> confdefs.h <<\EOF
8653 if test $ol_cv_ndbm = yes ; then
8655 ol_with_ldbm_api=ndbm
8657 if test $ol_cv_lib_ndbm != yes ; then
8658 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8663 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8664 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8665 if test $ol_enable_ldbm = yes ; then
8666 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8669 echo "configure: warning: disabling LDBM" 1>&2
8673 if test $ol_enable_wrappers != no ; then
8674 for ac_hdr in tcpd.h
8676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8678 echo "configure:8679: checking for $ac_hdr" >&5
8679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8680 echo $ac_n "(cached) $ac_c" 1>&6
8682 cat > conftest.$ac_ext <<EOF
8683 #line 8684 "configure"
8684 #include "confdefs.h"
8687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8688 { (eval echo configure:8689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8690 if test -z "$ac_err"; then
8692 eval "ac_cv_header_$ac_safe=yes"
8695 echo "configure: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8698 eval "ac_cv_header_$ac_safe=no"
8702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8703 echo "$ac_t""yes" 1>&6
8704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8705 cat >> confdefs.h <<EOF
8706 #define $ac_tr_hdr 1
8710 echo "$ac_t""no" 1>&6
8715 if test $ac_cv_header_tcpd_h != yes ; then
8718 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8719 echo "configure:8720: checking for main in -lwrap" >&5
8720 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8722 echo $ac_n "(cached) $ac_c" 1>&6
8724 ac_save_LIBS="$LIBS"
8726 cat > conftest.$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8734 if { (eval echo configure:8735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8736 eval "ac_cv_lib_$ac_lib_var=yes"
8738 echo "configure: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8741 eval "ac_cv_lib_$ac_lib_var=no"
8744 LIBS="$ac_save_LIBS"
8747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8748 echo "$ac_t""yes" 1>&6
8751 echo "$ac_t""no" 1>&6
8757 if test $have_wrappers = yes ; then
8758 cat >> confdefs.h <<\EOF
8762 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8764 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8765 echo "configure:8766: checking for main in -lnsl" >&5
8766 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8768 echo $ac_n "(cached) $ac_c" 1>&6
8770 ac_save_LIBS="$LIBS"
8772 cat > conftest.$ac_ext <<EOF
8773 #line 8774 "configure"
8774 #include "confdefs.h"
8780 if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8782 eval "ac_cv_lib_$ac_lib_var=yes"
8784 echo "configure: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8787 eval "ac_cv_lib_$ac_lib_var=no"
8790 LIBS="$ac_save_LIBS"
8793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8794 echo "$ac_t""yes" 1>&6
8795 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8796 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8797 cat >> confdefs.h <<EOF
8798 #define $ac_tr_lib 1
8804 echo "$ac_t""no" 1>&6
8808 echo "configure: warning: could not find -lwrap" 1>&2
8809 if test $ol_enable_wrappers = yes ; then
8810 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8813 echo "configure: warning: disabling wrappers support" 1>&2
8814 ol_enable_wrappers=no
8818 if test $ol_enable_syslog != no ; then
8819 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8820 echo "configure:8821: checking for openlog" >&5
8821 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8822 echo $ac_n "(cached) $ac_c" 1>&6
8824 cat > conftest.$ac_ext <<EOF
8825 #line 8826 "configure"
8826 #include "confdefs.h"
8827 /* System header to define __stub macros and hopefully few prototypes,
8828 which can conflict with char openlog(); below. */
8830 /* Override any gcc2 internal prototype to avoid an error. */
8831 /* We use char because int might match the return type of a gcc2
8832 builtin and then its argument prototype would still apply. */
8837 /* The GNU C library defines this for functions which it implements
8838 to always fail with ENOSYS. Some functions are actually named
8839 something starting with __ and the normal name is an alias. */
8840 #if defined (__stub_openlog) || defined (__stub___openlog)
8848 if { (eval echo configure:8849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8850 eval "ac_cv_func_openlog=yes"
8852 echo "configure: failed program was:" >&5
8853 cat conftest.$ac_ext >&5
8855 eval "ac_cv_func_openlog=no"
8860 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8861 echo "$ac_t""yes" 1>&6
8864 echo "$ac_t""no" 1>&6
8867 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8868 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8870 ol_enable_syslog=$ac_cv_func_openlog
8873 if test $ol_enable_dmalloc != no ; then
8874 for ac_hdr in dmalloc.h
8876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8878 echo "configure:8879: checking for $ac_hdr" >&5
8879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8880 echo $ac_n "(cached) $ac_c" 1>&6
8882 cat > conftest.$ac_ext <<EOF
8883 #line 8884 "configure"
8884 #include "confdefs.h"
8887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8888 { (eval echo configure:8889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8890 if test -z "$ac_err"; then
8892 eval "ac_cv_header_$ac_safe=yes"
8895 echo "configure: failed program was:" >&5
8896 cat conftest.$ac_ext >&5
8898 eval "ac_cv_header_$ac_safe=no"
8902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8903 echo "$ac_t""yes" 1>&6
8904 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8905 cat >> confdefs.h <<EOF
8906 #define $ac_tr_hdr 1
8910 echo "$ac_t""no" 1>&6
8914 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8915 echo "configure:8916: checking for dmalloc_shutdown in -ldmalloc" >&5
8916 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8918 echo $ac_n "(cached) $ac_c" 1>&6
8920 ac_save_LIBS="$LIBS"
8921 LIBS="-ldmalloc $LIBS"
8922 cat > conftest.$ac_ext <<EOF
8923 #line 8924 "configure"
8924 #include "confdefs.h"
8925 /* Override any gcc2 internal prototype to avoid an error. */
8926 /* We use char because int might match the return type of a gcc2
8927 builtin and then its argument prototype would still apply. */
8928 char dmalloc_shutdown();
8934 if { (eval echo configure:8935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8936 eval "ac_cv_lib_$ac_lib_var=yes"
8938 echo "configure: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8941 eval "ac_cv_lib_$ac_lib_var=no"
8944 LIBS="$ac_save_LIBS"
8947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8948 echo "$ac_t""yes" 1>&6
8949 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8950 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8951 cat >> confdefs.h <<EOF
8952 #define $ac_tr_lib 1
8955 LIBS="-ldmalloc $LIBS"
8958 echo "$ac_t""no" 1>&6
8963 if test $ol_enable_tcl != no ; then
8966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8968 echo "configure:8969: checking for $ac_hdr" >&5
8969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8970 echo $ac_n "(cached) $ac_c" 1>&6
8972 cat > conftest.$ac_ext <<EOF
8973 #line 8974 "configure"
8974 #include "confdefs.h"
8977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8978 { (eval echo configure:8979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8980 if test -z "$ac_err"; then
8982 eval "ac_cv_header_$ac_safe=yes"
8985 echo "configure: failed program was:" >&5
8986 cat conftest.$ac_ext >&5
8988 eval "ac_cv_header_$ac_safe=no"
8992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8993 echo "$ac_t""yes" 1>&6
8994 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8995 cat >> confdefs.h <<EOF
8996 #define $ac_tr_hdr 1
9000 echo "$ac_t""no" 1>&6
9005 if test $ac_cv_header_tcl_h != yes ; then
9008 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
9009 echo "configure:9010: checking for main in -ltcl" >&5
9010 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
9011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9012 echo $ac_n "(cached) $ac_c" 1>&6
9014 ac_save_LIBS="$LIBS"
9016 cat > conftest.$ac_ext <<EOF
9017 #line 9018 "configure"
9018 #include "confdefs.h"
9024 if { (eval echo configure:9025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9026 eval "ac_cv_lib_$ac_lib_var=yes"
9028 echo "configure: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9031 eval "ac_cv_lib_$ac_lib_var=no"
9034 LIBS="$ac_save_LIBS"
9037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9038 echo "$ac_t""yes" 1>&6
9039 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
9041 echo "$ac_t""no" 1>&6
9046 if test $have_tcl != yes; then
9047 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
9048 echo "configure:9049: checking for main in -ltcl7.6" >&5
9049 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
9050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9051 echo $ac_n "(cached) $ac_c" 1>&6
9053 ac_save_LIBS="$LIBS"
9054 LIBS="-ltcl7.6 $LIBS"
9055 cat > conftest.$ac_ext <<EOF
9056 #line 9057 "configure"
9057 #include "confdefs.h"
9063 if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9065 eval "ac_cv_lib_$ac_lib_var=yes"
9067 echo "configure: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9070 eval "ac_cv_lib_$ac_lib_var=no"
9073 LIBS="$ac_save_LIBS"
9076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9077 echo "$ac_t""yes" 1>&6
9078 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
9080 echo "$ac_t""no" 1>&6
9086 if test $have_tcl != yes; then
9087 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
9088 echo "configure:9089: checking for main in -ltcl8.0" >&5
9089 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
9090 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9093 ac_save_LIBS="$LIBS"
9094 LIBS="-ltcl8.0 $LIBS"
9095 cat > conftest.$ac_ext <<EOF
9096 #line 9097 "configure"
9097 #include "confdefs.h"
9103 if { (eval echo configure:9104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9105 eval "ac_cv_lib_$ac_lib_var=yes"
9107 echo "configure: failed program was:" >&5
9108 cat conftest.$ac_ext >&5
9110 eval "ac_cv_lib_$ac_lib_var=no"
9113 LIBS="$ac_save_LIBS"
9116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9117 echo "$ac_t""yes" 1>&6
9118 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
9120 echo "$ac_t""no" 1>&6
9127 if test $have_tcl != yes ; then
9128 echo "configure: warning: could not find -ltcl" 1>&2
9129 if test $ol_enable_tcl = yes ; then
9130 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
9137 # ud needs termcap (should insert check here)
9139 for ac_hdr in termcap.h ncurses.h
9141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9143 echo "configure:9144: checking for $ac_hdr" >&5
9144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9145 echo $ac_n "(cached) $ac_c" 1>&6
9147 cat > conftest.$ac_ext <<EOF
9148 #line 9149 "configure"
9149 #include "confdefs.h"
9152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9153 { (eval echo configure:9154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9155 if test -z "$ac_err"; then
9157 eval "ac_cv_header_$ac_safe=yes"
9160 echo "configure: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9163 eval "ac_cv_header_$ac_safe=no"
9167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9168 echo "$ac_t""yes" 1>&6
9169 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9170 cat >> confdefs.h <<EOF
9171 #define $ac_tr_hdr 1
9175 echo "$ac_t""no" 1>&6
9180 if test $ol_link_termcap = no ; then
9181 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
9182 echo "configure:9183: checking for tputs in -ltermcap" >&5
9183 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
9184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9185 echo $ac_n "(cached) $ac_c" 1>&6
9187 ac_save_LIBS="$LIBS"
9188 LIBS="-ltermcap $LIBS"
9189 cat > conftest.$ac_ext <<EOF
9190 #line 9191 "configure"
9191 #include "confdefs.h"
9192 /* Override any gcc2 internal prototype to avoid an error. */
9193 /* We use char because int might match the return type of a gcc2
9194 builtin and then its argument prototype would still apply. */
9201 if { (eval echo configure:9202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9203 eval "ac_cv_lib_$ac_lib_var=yes"
9205 echo "configure: failed program was:" >&5
9206 cat conftest.$ac_ext >&5
9208 eval "ac_cv_lib_$ac_lib_var=no"
9211 LIBS="$ac_save_LIBS"
9214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9215 echo "$ac_t""yes" 1>&6
9218 echo "$ac_t""no" 1>&6
9222 if test $have_termcap = yes ; then
9223 cat >> confdefs.h <<\EOF
9224 #define HAVE_TERMCAP 1
9228 TERMCAP_LIBS=-ltermcap
9232 if test $ol_link_termcap = no ; then
9233 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
9234 echo "configure:9235: checking for initscr in -lncurses" >&5
9235 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
9236 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9237 echo $ac_n "(cached) $ac_c" 1>&6
9239 ac_save_LIBS="$LIBS"
9240 LIBS="-lncurses $LIBS"
9241 cat > conftest.$ac_ext <<EOF
9242 #line 9243 "configure"
9243 #include "confdefs.h"
9244 /* Override any gcc2 internal prototype to avoid an error. */
9245 /* We use char because int might match the return type of a gcc2
9246 builtin and then its argument prototype would still apply. */
9253 if { (eval echo configure:9254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9255 eval "ac_cv_lib_$ac_lib_var=yes"
9257 echo "configure: failed program was:" >&5
9258 cat conftest.$ac_ext >&5
9260 eval "ac_cv_lib_$ac_lib_var=no"
9263 LIBS="$ac_save_LIBS"
9266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9267 echo "$ac_t""yes" 1>&6
9270 echo "$ac_t""no" 1>&6
9274 if test $have_ncurses = yes ; then
9275 cat >> confdefs.h <<\EOF
9276 #define HAVE_NCURSES 1
9280 TERMCAP_LIBS=-lncurses
9284 if test $ol_link_termcap = no ; then
9285 cat >> confdefs.h <<\EOF
9286 #define NO_TERMCAP 1
9293 if test $ol_with_readline != no ; then
9294 for ac_hdr in readline/readline.h readline/history.h
9296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9298 echo "configure:9299: checking for $ac_hdr" >&5
9299 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9300 echo $ac_n "(cached) $ac_c" 1>&6
9302 cat > conftest.$ac_ext <<EOF
9303 #line 9304 "configure"
9304 #include "confdefs.h"
9307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9308 { (eval echo configure:9309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9310 if test -z "$ac_err"; then
9312 eval "ac_cv_header_$ac_safe=yes"
9315 echo "configure: failed program was:" >&5
9316 cat conftest.$ac_ext >&5
9318 eval "ac_cv_header_$ac_safe=no"
9322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9323 echo "$ac_t""yes" 1>&6
9324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9325 cat >> confdefs.h <<EOF
9326 #define $ac_tr_hdr 1
9330 echo "$ac_t""no" 1>&6
9335 if test $ac_cv_header_readline_readline_h = yes ; then
9337 LIBS="$TERMCAP_LIBS $LIBS"
9338 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
9339 echo "configure:9340: checking for readline in -lreadline" >&5
9340 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
9341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9342 echo $ac_n "(cached) $ac_c" 1>&6
9344 ac_save_LIBS="$LIBS"
9345 LIBS="-lreadline $LIBS"
9346 cat > conftest.$ac_ext <<EOF
9347 #line 9348 "configure"
9348 #include "confdefs.h"
9349 /* Override any gcc2 internal prototype to avoid an error. */
9350 /* We use char because int might match the return type of a gcc2
9351 builtin and then its argument prototype would still apply. */
9358 if { (eval echo configure:9359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9360 eval "ac_cv_lib_$ac_lib_var=yes"
9362 echo "configure: failed program was:" >&5
9363 cat conftest.$ac_ext >&5
9365 eval "ac_cv_lib_$ac_lib_var=no"
9368 LIBS="$ac_save_LIBS"
9371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9372 echo "$ac_t""yes" 1>&6
9375 echo "$ac_t""no" 1>&6
9381 if test $have_readline = yes ; then
9382 ol_with_readline=found
9383 ol_link_readline=yes
9385 READLINE_LIBS="-lreadline"
9390 if test $ol_link_readline = yes ; then
9391 cat >> confdefs.h <<\EOF
9392 #define HAVE_READLINE 1
9398 # FreeBSD (and others) have crypt(3) in -lcrypt
9399 if test $ol_enable_crypt != no ; then
9400 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9401 echo "configure:9402: checking for crypt" >&5
9402 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
9403 echo $ac_n "(cached) $ac_c" 1>&6
9405 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9408 /* System header to define __stub macros and hopefully few prototypes,
9409 which can conflict with char crypt(); below. */
9411 /* Override any gcc2 internal prototype to avoid an error. */
9412 /* We use char because int might match the return type of a gcc2
9413 builtin and then its argument prototype would still apply. */
9418 /* The GNU C library defines this for functions which it implements
9419 to always fail with ENOSYS. Some functions are actually named
9420 something starting with __ and the normal name is an alias. */
9421 #if defined (__stub_crypt) || defined (__stub___crypt)
9429 if { (eval echo configure:9430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9431 eval "ac_cv_func_crypt=yes"
9433 echo "configure: failed program was:" >&5
9434 cat conftest.$ac_ext >&5
9436 eval "ac_cv_func_crypt=no"
9441 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9442 echo "$ac_t""yes" 1>&6
9445 echo "$ac_t""no" 1>&6
9447 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9448 echo "configure:9449: checking for crypt in -lcrypt" >&5
9449 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9451 echo $ac_n "(cached) $ac_c" 1>&6
9453 ac_save_LIBS="$LIBS"
9454 LIBS="-lcrypt $LIBS"
9455 cat > conftest.$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9458 /* Override any gcc2 internal prototype to avoid an error. */
9459 /* We use char because int might match the return type of a gcc2
9460 builtin and then its argument prototype would still apply. */
9467 if { (eval echo configure:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9469 eval "ac_cv_lib_$ac_lib_var=yes"
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9474 eval "ac_cv_lib_$ac_lib_var=no"
9477 LIBS="$ac_save_LIBS"
9480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9481 echo "$ac_t""yes" 1>&6
9482 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9485 echo "$ac_t""no" 1>&6
9492 if test $have_crypt = yes ; then
9493 cat >> confdefs.h <<\EOF
9494 #define HAVE_CRYPT 1
9498 echo "configure: warning: could not find crypt" 1>&2
9499 if test $ol_enable_crypt = yes ; then
9500 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9503 echo "configure: warning: disabling crypt support" 1>&2
9508 # FreeBSD (and others) have setproctitle(3) in -lutil
9509 if test $ol_enable_proctitle != no ; then
9510 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9511 echo "configure:9512: checking for setproctitle" >&5
9512 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
9513 echo $ac_n "(cached) $ac_c" 1>&6
9515 cat > conftest.$ac_ext <<EOF
9516 #line 9517 "configure"
9517 #include "confdefs.h"
9518 /* System header to define __stub macros and hopefully few prototypes,
9519 which can conflict with char setproctitle(); below. */
9521 /* Override any gcc2 internal prototype to avoid an error. */
9522 /* We use char because int might match the return type of a gcc2
9523 builtin and then its argument prototype would still apply. */
9524 char setproctitle();
9528 /* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9539 if { (eval echo configure:9540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9541 eval "ac_cv_func_setproctitle=yes"
9543 echo "configure: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9546 eval "ac_cv_func_setproctitle=no"
9551 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9552 echo "$ac_t""yes" 1>&6
9553 have_setproctitle=yes
9555 echo "$ac_t""no" 1>&6
9557 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9558 echo "configure:9559: checking for setproctitle in -lutil" >&5
9559 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9561 echo $ac_n "(cached) $ac_c" 1>&6
9563 ac_save_LIBS="$LIBS"
9565 cat > conftest.$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9568 /* Override any gcc2 internal prototype to avoid an error. */
9569 /* We use char because int might match the return type of a gcc2
9570 builtin and then its argument prototype would still apply. */
9571 char setproctitle();
9577 if { (eval echo configure:9578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9579 eval "ac_cv_lib_$ac_lib_var=yes"
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9584 eval "ac_cv_lib_$ac_lib_var=no"
9587 LIBS="$ac_save_LIBS"
9590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9591 echo "$ac_t""yes" 1>&6
9592 have_setproctitle=yes
9593 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9595 echo "$ac_t""no" 1>&6
9596 have_setproctitle=no
9597 LIBOBJS="$LIBOBJS setproctitle.o"
9603 if test $have_setproctitle = yes ; then
9604 cat >> confdefs.h <<\EOF
9605 #define HAVE_SETPROCTITLE 1
9612 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9613 echo "configure:9614: checking for EBCDIC" >&5
9614 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9615 echo $ac_n "(cached) $ac_c" 1>&6
9618 cat > conftest.$ac_ext <<EOF
9619 #line 9620 "configure"
9620 #include "confdefs.h"
9623 #include <__ASCII__/generate_error.h>
9627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9628 { (eval echo configure:9629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9630 if test -z "$ac_err"; then
9632 ol_cv_cpp_ebcdic=yes
9635 echo "configure: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9643 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9644 if test $ol_cv_cpp_ebcdic = yes ; then
9645 cat >> confdefs.h <<\EOF
9646 #define HAVE_EBCDIC 1
9651 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9652 echo "configure:9653: checking for ANSI C header files" >&5
9653 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
9656 cat > conftest.$ac_ext <<EOF
9657 #line 9658 "configure"
9658 #include "confdefs.h"
9664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9665 { (eval echo configure:9666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9667 if test -z "$ac_err"; then
9669 ol_cv_header_stdc=yes
9672 echo "configure: failed program was:" >&5
9673 cat conftest.$ac_ext >&5
9675 ol_cv_header_stdc=no
9679 if test $ol_cv_header_stdc = yes; then
9680 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9681 cat > conftest.$ac_ext <<EOF
9682 #line 9683 "configure"
9683 #include "confdefs.h"
9686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9687 egrep "memchr" >/dev/null 2>&1; then
9691 ol_cv_header_stdc=no
9697 if test $ol_cv_header_stdc = yes; then
9698 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9699 cat > conftest.$ac_ext <<EOF
9700 #line 9701 "configure"
9701 #include "confdefs.h"
9704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9705 egrep "free" >/dev/null 2>&1; then
9709 ol_cv_header_stdc=no
9715 if test $ol_cv_header_stdc = yes; then
9716 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9717 if test "$cross_compiling" = yes; then
9720 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9725 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9726 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9728 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9729 || ('j' <= (c) && (c) <= 'r') \
9730 || ('s' <= (c) && (c) <= 'z'))
9731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9734 int main () { int i; for (i = 0; i < 256; i++)
9735 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9739 if { (eval echo configure:9740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9746 ol_cv_header_stdc=no
9754 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9755 if test $ol_cv_header_stdc = yes; then
9756 cat >> confdefs.h <<\EOF
9757 #define STDC_HEADERS 1
9761 ac_cv_header_stdc=disable
9764 if test $ol_cv_header_stdc != yes; then
9765 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9769 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9772 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9773 echo "configure:9774: checking for $ac_hdr that defines DIR" >&5
9774 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9775 echo $ac_n "(cached) $ac_c" 1>&6
9777 cat > conftest.$ac_ext <<EOF
9778 #line 9779 "configure"
9779 #include "confdefs.h"
9780 #include <sys/types.h>
9786 if { (eval echo configure:9787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9788 eval "ac_cv_header_dirent_$ac_safe=yes"
9790 echo "configure: failed program was:" >&5
9791 cat conftest.$ac_ext >&5
9793 eval "ac_cv_header_dirent_$ac_safe=no"
9797 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9798 echo "$ac_t""yes" 1>&6
9799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9800 cat >> confdefs.h <<EOF
9801 #define $ac_tr_hdr 1
9803 ac_header_dirent=$ac_hdr; break
9805 echo "$ac_t""no" 1>&6
9808 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9809 if test $ac_header_dirent = dirent.h; then
9810 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9811 echo "configure:9812: checking for opendir in -ldir" >&5
9812 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9814 echo $ac_n "(cached) $ac_c" 1>&6
9816 ac_save_LIBS="$LIBS"
9818 cat > conftest.$ac_ext <<EOF
9819 #line 9820 "configure"
9820 #include "confdefs.h"
9821 /* Override any gcc2 internal prototype to avoid an error. */
9822 /* We use char because int might match the return type of a gcc2
9823 builtin and then its argument prototype would still apply. */
9830 if { (eval echo configure:9831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9832 eval "ac_cv_lib_$ac_lib_var=yes"
9834 echo "configure: failed program was:" >&5
9835 cat conftest.$ac_ext >&5
9837 eval "ac_cv_lib_$ac_lib_var=no"
9840 LIBS="$ac_save_LIBS"
9843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9844 echo "$ac_t""yes" 1>&6
9847 echo "$ac_t""no" 1>&6
9851 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9852 echo "configure:9853: checking for opendir in -lx" >&5
9853 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9855 echo $ac_n "(cached) $ac_c" 1>&6
9857 ac_save_LIBS="$LIBS"
9859 cat > conftest.$ac_ext <<EOF
9860 #line 9861 "configure"
9861 #include "confdefs.h"
9862 /* Override any gcc2 internal prototype to avoid an error. */
9863 /* We use char because int might match the return type of a gcc2
9864 builtin and then its argument prototype would still apply. */
9871 if { (eval echo configure:9872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9873 eval "ac_cv_lib_$ac_lib_var=yes"
9875 echo "configure: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9878 eval "ac_cv_lib_$ac_lib_var=no"
9881 LIBS="$ac_save_LIBS"
9884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9885 echo "$ac_t""yes" 1>&6
9888 echo "$ac_t""no" 1>&6
9893 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9894 echo "configure:9895: checking for sys/wait.h that is POSIX.1 compatible" >&5
9895 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9896 echo $ac_n "(cached) $ac_c" 1>&6
9898 cat > conftest.$ac_ext <<EOF
9899 #line 9900 "configure"
9900 #include "confdefs.h"
9901 #include <sys/types.h>
9902 #include <sys/wait.h>
9904 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9907 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9912 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9915 if { (eval echo configure:9916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9917 ac_cv_header_sys_wait_h=yes
9919 echo "configure: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
9922 ac_cv_header_sys_wait_h=no
9927 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9928 if test $ac_cv_header_sys_wait_h = yes; then
9929 cat >> confdefs.h <<\EOF
9930 #define HAVE_SYS_WAIT_H 1
9935 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9936 echo "configure:9937: checking POSIX termios" >&5
9937 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9938 echo $ac_n "(cached) $ac_c" 1>&6
9940 cat > conftest.$ac_ext <<EOF
9941 #line 9942 "configure"
9942 #include "confdefs.h"
9943 #include <sys/types.h>
9945 #include <termios.h>
9947 /* SunOS 4.0.3 has termios.h but not the library calls. */
9951 if { (eval echo configure:9952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9953 am_cv_sys_posix_termios=yes
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9958 am_cv_sys_posix_termios=no
9963 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9966 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9967 echo "configure:9968: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9968 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9971 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9973 gwinsz_in_termios_h=no
9974 if test $am_cv_sys_posix_termios = yes; then
9975 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 #include <sys/types.h>
9979 # include <termios.h>
9985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9986 egrep "yes" >/dev/null 2>&1; then
9988 gwinsz_in_termios_h=yes
9994 if test $gwinsz_in_termios_h = no; then
9995 cat > conftest.$ac_ext <<EOF
9996 #line 9997 "configure"
9997 #include "confdefs.h"
9998 #include <sys/types.h>
9999 # include <sys/ioctl.h>
10005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10006 egrep "yes" >/dev/null 2>&1; then
10008 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
10016 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
10017 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
10018 cat >> confdefs.h <<\EOF
10019 #define GWINSZ_IN_SYS_IOCTL 1
10024 if test $am_cv_sys_posix_termios = yes ; then
10025 cat >> confdefs.h <<\EOF
10026 #define HAVE_POSIX_TERMIOS 1
10071 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10072 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10073 echo "configure:10074: checking for $ac_hdr" >&5
10074 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10075 echo $ac_n "(cached) $ac_c" 1>&6
10077 cat > conftest.$ac_ext <<EOF
10078 #line 10079 "configure"
10079 #include "confdefs.h"
10082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10083 { (eval echo configure:10084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10084 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10085 if test -z "$ac_err"; then
10087 eval "ac_cv_header_$ac_safe=yes"
10090 echo "configure: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10093 eval "ac_cv_header_$ac_safe=no"
10097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10098 echo "$ac_t""yes" 1>&6
10099 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10100 cat >> confdefs.h <<EOF
10101 #define $ac_tr_hdr 1
10105 echo "$ac_t""no" 1>&6
10110 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10111 echo "configure:10112: checking for uid_t in sys/types.h" >&5
10112 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
10113 echo $ac_n "(cached) $ac_c" 1>&6
10115 cat > conftest.$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10118 #include <sys/types.h>
10120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10121 egrep "uid_t" >/dev/null 2>&1; then
10123 ac_cv_type_uid_t=yes
10126 ac_cv_type_uid_t=no
10132 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10133 if test $ac_cv_type_uid_t = no; then
10134 cat >> confdefs.h <<\EOF
10138 cat >> confdefs.h <<\EOF
10144 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
10145 echo "configure:10146: checking type of array argument to getgroups" >&5
10146 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
10147 echo $ac_n "(cached) $ac_c" 1>&6
10149 if test "$cross_compiling" = yes; then
10150 ac_cv_type_getgroups=cross
10152 cat > conftest.$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10156 /* Thanks to Mike Rendell for this test. */
10157 #include <sys/types.h>
10160 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10163 gid_t gidset[NGID];
10165 union { gid_t gval; long lval; } val;
10168 for (i = 0; i < NGID; i++)
10169 gidset[i] = val.gval;
10170 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10172 /* Exit non-zero if getgroups seems to require an array of ints. This
10173 happens when gid_t is short but getgroups modifies an array of ints. */
10174 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10178 if { (eval echo configure:10179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10180 ac_cv_type_getgroups=gid_t
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10185 ac_cv_type_getgroups=int
10190 if test $ac_cv_type_getgroups = cross; then
10191 cat > conftest.$ac_ext <<EOF
10192 #line 10193 "configure"
10193 #include "confdefs.h"
10194 #include <unistd.h>
10196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10197 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10199 ac_cv_type_getgroups=gid_t
10202 ac_cv_type_getgroups=int
10209 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
10210 cat >> confdefs.h <<EOF
10211 #define GETGROUPS_T $ac_cv_type_getgroups
10214 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10215 echo "configure:10216: checking for ANSI C header files" >&5
10216 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10217 echo $ac_n "(cached) $ac_c" 1>&6
10219 cat > conftest.$ac_ext <<EOF
10220 #line 10221 "configure"
10221 #include "confdefs.h"
10222 #include <stdlib.h>
10223 #include <stdarg.h>
10224 #include <string.h>
10227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10228 { (eval echo configure:10229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10230 if test -z "$ac_err"; then
10232 ac_cv_header_stdc=yes
10235 echo "configure: failed program was:" >&5
10236 cat conftest.$ac_ext >&5
10238 ac_cv_header_stdc=no
10242 if test $ac_cv_header_stdc = yes; then
10243 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10244 cat > conftest.$ac_ext <<EOF
10245 #line 10246 "configure"
10246 #include "confdefs.h"
10247 #include <string.h>
10249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10250 egrep "memchr" >/dev/null 2>&1; then
10254 ac_cv_header_stdc=no
10260 if test $ac_cv_header_stdc = yes; then
10261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10262 cat > conftest.$ac_ext <<EOF
10263 #line 10264 "configure"
10264 #include "confdefs.h"
10265 #include <stdlib.h>
10267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10268 egrep "free" >/dev/null 2>&1; then
10272 ac_cv_header_stdc=no
10278 if test $ac_cv_header_stdc = yes; then
10279 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10280 if test "$cross_compiling" = yes; then
10283 cat > conftest.$ac_ext <<EOF
10284 #line 10285 "configure"
10285 #include "confdefs.h"
10287 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10288 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10290 int main () { int i; for (i = 0; i < 256; i++)
10291 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10295 if { (eval echo configure:10296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10299 echo "configure: failed program was:" >&5
10300 cat conftest.$ac_ext >&5
10302 ac_cv_header_stdc=no
10310 echo "$ac_t""$ac_cv_header_stdc" 1>&6
10311 if test $ac_cv_header_stdc = yes; then
10312 cat >> confdefs.h <<\EOF
10313 #define STDC_HEADERS 1
10318 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10319 echo "configure:10320: checking for mode_t" >&5
10320 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
10321 echo $ac_n "(cached) $ac_c" 1>&6
10323 cat > conftest.$ac_ext <<EOF
10324 #line 10325 "configure"
10325 #include "confdefs.h"
10326 #include <sys/types.h>
10328 #include <stdlib.h>
10329 #include <stddef.h>
10332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10333 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10335 ac_cv_type_mode_t=yes
10338 ac_cv_type_mode_t=no
10343 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
10344 if test $ac_cv_type_mode_t = no; then
10345 cat >> confdefs.h <<\EOF
10351 echo $ac_n "checking for off_t""... $ac_c" 1>&6
10352 echo "configure:10353: checking for off_t" >&5
10353 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
10356 cat > conftest.$ac_ext <<EOF
10357 #line 10358 "configure"
10358 #include "confdefs.h"
10359 #include <sys/types.h>
10361 #include <stdlib.h>
10362 #include <stddef.h>
10365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10366 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10368 ac_cv_type_off_t=yes
10371 ac_cv_type_off_t=no
10376 echo "$ac_t""$ac_cv_type_off_t" 1>&6
10377 if test $ac_cv_type_off_t = no; then
10378 cat >> confdefs.h <<\EOF
10384 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10385 echo "configure:10386: checking for pid_t" >&5
10386 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
10387 echo $ac_n "(cached) $ac_c" 1>&6
10389 cat > conftest.$ac_ext <<EOF
10390 #line 10391 "configure"
10391 #include "confdefs.h"
10392 #include <sys/types.h>
10394 #include <stdlib.h>
10395 #include <stddef.h>
10398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10399 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10401 ac_cv_type_pid_t=yes
10404 ac_cv_type_pid_t=no
10409 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10410 if test $ac_cv_type_pid_t = no; then
10411 cat >> confdefs.h <<\EOF
10417 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10418 echo "configure:10419: checking for ptrdiff_t" >&5
10419 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
10420 echo $ac_n "(cached) $ac_c" 1>&6
10422 cat > conftest.$ac_ext <<EOF
10423 #line 10424 "configure"
10424 #include "confdefs.h"
10425 #include <stddef.h>
10430 if { (eval echo configure:10431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10432 am_cv_type_ptrdiff_t=yes
10434 echo "configure: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
10437 am_cv_type_ptrdiff_t=no
10442 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10443 if test $am_cv_type_ptrdiff_t = yes; then
10444 cat >> confdefs.h <<\EOF
10445 #define HAVE_PTRDIFF_T 1
10450 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10451 echo "configure:10452: checking return type of signal handlers" >&5
10452 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10453 echo $ac_n "(cached) $ac_c" 1>&6
10455 cat > conftest.$ac_ext <<EOF
10456 #line 10457 "configure"
10457 #include "confdefs.h"
10458 #include <sys/types.h>
10459 #include <signal.h>
10464 extern "C" void (*signal (int, void (*)(int)))(int);
10466 void (*signal ()) ();
10473 if { (eval echo configure:10474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10475 ac_cv_type_signal=void
10477 echo "configure: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10480 ac_cv_type_signal=int
10485 echo "$ac_t""$ac_cv_type_signal" 1>&6
10486 cat >> confdefs.h <<EOF
10487 #define RETSIGTYPE $ac_cv_type_signal
10491 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10492 echo "configure:10493: checking for sig_atomic_t" >&5
10493 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
10494 echo $ac_n "(cached) $ac_c" 1>&6
10496 cat > conftest.$ac_ext <<EOF
10497 #line 10498 "configure"
10498 #include "confdefs.h"
10499 #include <signal.h>
10501 sig_atomic_t atomic;
10504 if { (eval echo configure:10505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10506 ol_cv_type_sig_atomic_t=yes
10508 echo "configure: failed program was:" >&5
10509 cat conftest.$ac_ext >&5
10511 ol_cv_type_sig_atomic_t=no
10516 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10517 if test $ol_cv_type_sig_atomic_t = no; then
10518 cat >> confdefs.h <<\EOF
10519 #define sig_atomic_t int
10524 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10525 echo "configure:10526: checking for size_t" >&5
10526 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10527 echo $ac_n "(cached) $ac_c" 1>&6
10529 cat > conftest.$ac_ext <<EOF
10530 #line 10531 "configure"
10531 #include "confdefs.h"
10532 #include <sys/types.h>
10534 #include <stdlib.h>
10535 #include <stddef.h>
10538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10539 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10541 ac_cv_type_size_t=yes
10544 ac_cv_type_size_t=no
10549 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10550 if test $ac_cv_type_size_t = no; then
10551 cat >> confdefs.h <<\EOF
10552 #define size_t unsigned
10557 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10558 echo "configure:10559: checking for st_blksize in struct stat" >&5
10559 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10560 echo $ac_n "(cached) $ac_c" 1>&6
10562 cat > conftest.$ac_ext <<EOF
10563 #line 10564 "configure"
10564 #include "confdefs.h"
10565 #include <sys/types.h>
10566 #include <sys/stat.h>
10568 struct stat s; s.st_blksize;
10571 if { (eval echo configure:10572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10573 ac_cv_struct_st_blksize=yes
10575 echo "configure: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10578 ac_cv_struct_st_blksize=no
10583 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10584 if test $ac_cv_struct_st_blksize = yes; then
10585 cat >> confdefs.h <<\EOF
10586 #define HAVE_ST_BLKSIZE 1
10591 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10592 echo "configure:10593: checking whether time.h and sys/time.h may both be included" >&5
10593 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10594 echo $ac_n "(cached) $ac_c" 1>&6
10596 cat > conftest.$ac_ext <<EOF
10597 #line 10598 "configure"
10598 #include "confdefs.h"
10599 #include <sys/types.h>
10600 #include <sys/time.h>
10606 if { (eval echo configure:10607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10608 ac_cv_header_time=yes
10610 echo "configure: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10613 ac_cv_header_time=no
10618 echo "$ac_t""$ac_cv_header_time" 1>&6
10619 if test $ac_cv_header_time = yes; then
10620 cat >> confdefs.h <<\EOF
10621 #define TIME_WITH_SYS_TIME 1
10626 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10627 echo "configure:10628: checking whether struct tm is in sys/time.h or time.h" >&5
10628 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10629 echo $ac_n "(cached) $ac_c" 1>&6
10631 cat > conftest.$ac_ext <<EOF
10632 #line 10633 "configure"
10633 #include "confdefs.h"
10634 #include <sys/types.h>
10637 struct tm *tp; tp->tm_sec;
10640 if { (eval echo configure:10641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10642 ac_cv_struct_tm=time.h
10644 echo "configure: failed program was:" >&5
10645 cat conftest.$ac_ext >&5
10647 ac_cv_struct_tm=sys/time.h
10652 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10653 if test $ac_cv_struct_tm = sys/time.h; then
10654 cat >> confdefs.h <<\EOF
10655 #define TM_IN_SYS_TIME 1
10660 # test for pw_gecos in struct passwd
10661 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10662 echo "configure:10663: checking struct passwd for pw_gecos" >&5
10663 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10664 echo $ac_n "(cached) $ac_c" 1>&6
10667 cat > conftest.$ac_ext <<EOF
10668 #line 10669 "configure"
10669 #include "confdefs.h"
10674 pwd.pw_gecos = pwd.pw_name;
10678 if { (eval echo configure:10679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10680 ol_cv_struct_passwd_pw_gecos=yes
10682 echo "configure: failed program was:" >&5
10683 cat conftest.$ac_ext >&5
10685 ol_cv_struct_passwd_pw_gecos=no
10690 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10691 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10692 cat >> confdefs.h <<\EOF
10693 #define HAVE_PW_GECOS 1
10700 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10701 echo "configure:10702: checking if toupper() requires islower()" >&5
10702 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10703 echo $ac_n "(cached) $ac_c" 1>&6
10706 if test "$cross_compiling" = yes; then
10707 ol_cv_c_upper_lower=safe
10709 cat > conftest.$ac_ext <<EOF
10710 #line 10711 "configure"
10711 #include "confdefs.h"
10716 if ('C' == toupper('C'))
10722 if { (eval echo configure:10723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10724 ol_cv_c_upper_lower=no
10726 echo "configure: failed program was:" >&5
10727 cat conftest.$ac_ext >&5
10729 ol_cv_c_upper_lower=yes
10736 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10737 if test $ol_cv_c_upper_lower != no ; then
10738 cat >> confdefs.h <<\EOF
10739 #define C_UPPER_LOWER 1
10744 echo $ac_n "checking for working const""... $ac_c" 1>&6
10745 echo "configure:10746: checking for working const" >&5
10746 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10747 echo $ac_n "(cached) $ac_c" 1>&6
10749 cat > conftest.$ac_ext <<EOF
10750 #line 10751 "configure"
10751 #include "confdefs.h"
10755 /* Ultrix mips cc rejects this. */
10756 typedef int charset[2]; const charset x;
10757 /* SunOS 4.1.1 cc rejects this. */
10758 char const *const *ccp;
10760 /* NEC SVR4.0.2 mips cc rejects this. */
10761 struct point {int x, y;};
10762 static struct point const zero = {0,0};
10763 /* AIX XL C 1.02.0.0 rejects this.
10764 It does not let you subtract one const X* pointer from another in an arm
10765 of an if-expression whose if-part is not a constant expression */
10766 const char *g = "string";
10767 ccp = &g + (g ? g-g : 0);
10768 /* HPUX 7.0 cc rejects these. */
10771 ccp = (char const *const *) p;
10772 { /* SCO 3.2v4 cc rejects this. */
10774 char const *s = 0 ? (char *) 0 : (char const *) 0;
10778 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10779 int x[] = {25, 17};
10780 const int *foo = &x[0];
10783 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10784 typedef const int *iptr;
10788 { /* AIX XL C 1.02.0.0 rejects this saying
10789 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10790 struct s { int j; const int *ap[3]; };
10791 struct s *b; b->j = 5;
10793 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10794 const int foo = 10;
10799 if { (eval echo configure:10800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10803 echo "configure: failed program was:" >&5
10804 cat conftest.$ac_ext >&5
10811 echo "$ac_t""$ac_cv_c_const" 1>&6
10812 if test $ac_cv_c_const = no; then
10813 cat >> confdefs.h <<\EOF
10819 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10820 echo "configure:10821: checking if compiler understands volatile" >&5
10821 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10822 echo $ac_n "(cached) $ac_c" 1>&6
10824 cat > conftest.$ac_ext <<EOF
10825 #line 10826 "configure"
10826 #include "confdefs.h"
10829 volatile int a; int * volatile b = x ? &y : &z;
10830 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10834 if { (eval echo configure:10835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10836 ol_cv_c_volatile=yes
10838 echo "configure: failed program was:" >&5
10839 cat conftest.$ac_ext >&5
10841 ol_cv_c_volatile=no
10846 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10847 if test $ol_cv_c_volatile = yes; then
10850 cat >> confdefs.h <<\EOF
10857 if test $cross_compiling = yes ; then
10858 cat >> confdefs.h <<\EOF
10859 #define CROSS_COMPILING 1
10863 cat >> confdefs.h <<\EOF
10864 #define LBER_INT_T long
10867 cat >> confdefs.h <<\EOF
10868 #define LBER_TAG_T long
10871 cat >> confdefs.h <<\EOF
10872 #define LBER_SOCKET_T int
10877 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10878 echo "configure:10879: checking whether byte ordering is bigendian" >&5
10879 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10880 echo $ac_n "(cached) $ac_c" 1>&6
10882 ac_cv_c_bigendian=unknown
10883 # See if sys/param.h defines the BYTE_ORDER macro.
10884 cat > conftest.$ac_ext <<EOF
10885 #line 10886 "configure"
10886 #include "confdefs.h"
10887 #include <sys/types.h>
10888 #include <sys/param.h>
10891 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10892 bogus endian macros
10896 if { (eval echo configure:10897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10898 # It does; now see whether it defined to BIG_ENDIAN or not.
10899 cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure"
10901 #include "confdefs.h"
10902 #include <sys/types.h>
10903 #include <sys/param.h>
10906 #if BYTE_ORDER != BIG_ENDIAN
10911 if { (eval echo configure:10912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10913 ac_cv_c_bigendian=yes
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10918 ac_cv_c_bigendian=no
10922 echo "configure: failed program was:" >&5
10923 cat conftest.$ac_ext >&5
10926 if test $ac_cv_c_bigendian = unknown; then
10927 if test "$cross_compiling" = yes; then
10928 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10930 cat > conftest.$ac_ext <<EOF
10931 #line 10932 "configure"
10932 #include "confdefs.h"
10934 /* Are we little or big endian? From Harbison&Steele. */
10938 char c[sizeof (long)];
10941 exit (u.c[sizeof (long) - 1] == 1);
10944 if { (eval echo configure:10945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10946 ac_cv_c_bigendian=no
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10951 ac_cv_c_bigendian=yes
10959 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10960 if test $ac_cv_c_bigendian = yes; then
10961 cat >> confdefs.h <<\EOF
10962 #define WORDS_BIGENDIAN 1
10967 echo $ac_n "checking size of short""... $ac_c" 1>&6
10968 echo "configure:10969: checking size of short" >&5
10969 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10970 echo $ac_n "(cached) $ac_c" 1>&6
10972 if test "$cross_compiling" = yes; then
10973 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10975 cat > conftest.$ac_ext <<EOF
10976 #line 10977 "configure"
10977 #include "confdefs.h"
10981 FILE *f=fopen("conftestval", "w");
10983 fprintf(f, "%d\n", sizeof(short));
10987 if { (eval echo configure:10988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10989 ac_cv_sizeof_short=`cat conftestval`
10991 echo "configure: failed program was:" >&5
10992 cat conftest.$ac_ext >&5
10994 ac_cv_sizeof_short=0
11000 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11001 cat >> confdefs.h <<EOF
11002 #define SIZEOF_SHORT $ac_cv_sizeof_short
11006 echo $ac_n "checking size of int""... $ac_c" 1>&6
11007 echo "configure:11008: checking size of int" >&5
11008 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11009 echo $ac_n "(cached) $ac_c" 1>&6
11011 if test "$cross_compiling" = yes; then
11012 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11014 cat > conftest.$ac_ext <<EOF
11015 #line 11016 "configure"
11016 #include "confdefs.h"
11020 FILE *f=fopen("conftestval", "w");
11022 fprintf(f, "%d\n", sizeof(int));
11026 if { (eval echo configure:11027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11028 ac_cv_sizeof_int=`cat conftestval`
11030 echo "configure: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11039 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11040 cat >> confdefs.h <<EOF
11041 #define SIZEOF_INT $ac_cv_sizeof_int
11045 echo $ac_n "checking size of long""... $ac_c" 1>&6
11046 echo "configure:11047: checking size of long" >&5
11047 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11050 if test "$cross_compiling" = yes; then
11051 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11053 cat > conftest.$ac_ext <<EOF
11054 #line 11055 "configure"
11055 #include "confdefs.h"
11059 FILE *f=fopen("conftestval", "w");
11061 fprintf(f, "%d\n", sizeof(long));
11065 if { (eval echo configure:11066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11067 ac_cv_sizeof_long=`cat conftestval`
11069 echo "configure: failed program was:" >&5
11070 cat conftest.$ac_ext >&5
11072 ac_cv_sizeof_long=0
11078 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11079 cat >> confdefs.h <<EOF
11080 #define SIZEOF_LONG $ac_cv_sizeof_long
11085 if test "$ac_cv_sizeof_int" -lt 4 ; then
11086 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
11088 cat >> confdefs.h <<\EOF
11089 #define LBER_INT_T long
11092 cat >> confdefs.h <<\EOF
11093 #define LBER_TAG_T long
11096 cat >> confdefs.h <<\EOF
11097 #define LBER_SOCKET_T int
11101 cat >> confdefs.h <<\EOF
11102 #define LBER_INT_T int
11105 cat >> confdefs.h <<\EOF
11106 #define LBER_TAG_T long
11109 cat >> confdefs.h <<\EOF
11110 #define LBER_SOCKET_T int
11116 cat >> confdefs.h <<\EOF
11117 #define LBER_LEN_T long
11121 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
11122 echo "configure:11123: checking for 8-bit clean memcmp" >&5
11123 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
11124 echo $ac_n "(cached) $ac_c" 1>&6
11126 if test "$cross_compiling" = yes; then
11127 ac_cv_func_memcmp_clean=no
11129 cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure"
11131 #include "confdefs.h"
11135 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11136 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
11140 if { (eval echo configure:11141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11142 ac_cv_func_memcmp_clean=yes
11144 echo "configure: failed program was:" >&5
11145 cat conftest.$ac_ext >&5
11147 ac_cv_func_memcmp_clean=no
11154 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
11155 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
11157 echo $ac_n "checking for strftime""... $ac_c" 1>&6
11158 echo "configure:11159: checking for strftime" >&5
11159 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
11160 echo $ac_n "(cached) $ac_c" 1>&6
11162 cat > conftest.$ac_ext <<EOF
11163 #line 11164 "configure"
11164 #include "confdefs.h"
11165 /* System header to define __stub macros and hopefully few prototypes,
11166 which can conflict with char strftime(); below. */
11167 #include <assert.h>
11168 /* Override any gcc2 internal prototype to avoid an error. */
11169 /* We use char because int might match the return type of a gcc2
11170 builtin and then its argument prototype would still apply. */
11175 /* The GNU C library defines this for functions which it implements
11176 to always fail with ENOSYS. Some functions are actually named
11177 something starting with __ and the normal name is an alias. */
11178 #if defined (__stub_strftime) || defined (__stub___strftime)
11186 if { (eval echo configure:11187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11188 eval "ac_cv_func_strftime=yes"
11190 echo "configure: failed program was:" >&5
11191 cat conftest.$ac_ext >&5
11193 eval "ac_cv_func_strftime=no"
11198 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
11199 echo "$ac_t""yes" 1>&6
11200 cat >> confdefs.h <<\EOF
11201 #define HAVE_STRFTIME 1
11205 echo "$ac_t""no" 1>&6
11206 # strftime is in -lintl on SCO UNIX.
11207 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
11208 echo "configure:11209: checking for strftime in -lintl" >&5
11209 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
11210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11211 echo $ac_n "(cached) $ac_c" 1>&6
11213 ac_save_LIBS="$LIBS"
11214 LIBS="-lintl $LIBS"
11215 cat > conftest.$ac_ext <<EOF
11216 #line 11217 "configure"
11217 #include "confdefs.h"
11218 /* Override any gcc2 internal prototype to avoid an error. */
11219 /* We use char because int might match the return type of a gcc2
11220 builtin and then its argument prototype would still apply. */
11227 if { (eval echo configure:11228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11229 eval "ac_cv_lib_$ac_lib_var=yes"
11231 echo "configure: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11234 eval "ac_cv_lib_$ac_lib_var=no"
11237 LIBS="$ac_save_LIBS"
11240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11241 echo "$ac_t""yes" 1>&6
11242 cat >> confdefs.h <<\EOF
11243 #define HAVE_STRFTIME 1
11246 LIBS="-lintl $LIBS"
11248 echo "$ac_t""no" 1>&6
11254 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
11255 echo "configure:11256: checking for vprintf" >&5
11256 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
11257 echo $ac_n "(cached) $ac_c" 1>&6
11259 cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure"
11261 #include "confdefs.h"
11262 /* System header to define __stub macros and hopefully few prototypes,
11263 which can conflict with char vprintf(); below. */
11264 #include <assert.h>
11265 /* Override any gcc2 internal prototype to avoid an error. */
11266 /* We use char because int might match the return type of a gcc2
11267 builtin and then its argument prototype would still apply. */
11272 /* The GNU C library defines this for functions which it implements
11273 to always fail with ENOSYS. Some functions are actually named
11274 something starting with __ and the normal name is an alias. */
11275 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11283 if { (eval echo configure:11284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11285 eval "ac_cv_func_vprintf=yes"
11287 echo "configure: failed program was:" >&5
11288 cat conftest.$ac_ext >&5
11290 eval "ac_cv_func_vprintf=no"
11295 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
11296 echo "$ac_t""yes" 1>&6
11297 cat >> confdefs.h <<\EOF
11298 #define HAVE_VPRINTF 1
11302 echo "$ac_t""no" 1>&6
11305 if test "$ac_cv_func_vprintf" != yes; then
11306 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11307 echo "configure:11308: checking for _doprnt" >&5
11308 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
11309 echo $ac_n "(cached) $ac_c" 1>&6
11311 cat > conftest.$ac_ext <<EOF
11312 #line 11313 "configure"
11313 #include "confdefs.h"
11314 /* System header to define __stub macros and hopefully few prototypes,
11315 which can conflict with char _doprnt(); below. */
11316 #include <assert.h>
11317 /* Override any gcc2 internal prototype to avoid an error. */
11318 /* We use char because int might match the return type of a gcc2
11319 builtin and then its argument prototype would still apply. */
11324 /* The GNU C library defines this for functions which it implements
11325 to always fail with ENOSYS. Some functions are actually named
11326 something starting with __ and the normal name is an alias. */
11327 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11335 if { (eval echo configure:11336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11337 eval "ac_cv_func__doprnt=yes"
11339 echo "configure: failed program was:" >&5
11340 cat conftest.$ac_ext >&5
11342 eval "ac_cv_func__doprnt=no"
11347 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11348 echo "$ac_t""yes" 1>&6
11349 cat >> confdefs.h <<\EOF
11350 #define HAVE_DOPRNT 1
11354 echo "$ac_t""no" 1>&6
11360 if test $ac_cv_func_vprintf = yes ; then
11361 for ac_func in vsnprintf vsprintf
11363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11364 echo "configure:11365: checking for $ac_func" >&5
11365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11366 echo $ac_n "(cached) $ac_c" 1>&6
11368 cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11371 /* System header to define __stub macros and hopefully few prototypes,
11372 which can conflict with char $ac_func(); below. */
11373 #include <assert.h>
11374 /* Override any gcc2 internal prototype to avoid an error. */
11375 /* We use char because int might match the return type of a gcc2
11376 builtin and then its argument prototype would still apply. */
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11392 if { (eval echo configure:11393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11394 eval "ac_cv_func_$ac_func=yes"
11396 echo "configure: failed program was:" >&5
11397 cat conftest.$ac_ext >&5
11399 eval "ac_cv_func_$ac_func=no"
11404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11405 echo "$ac_t""yes" 1>&6
11406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11407 cat >> confdefs.h <<EOF
11408 #define $ac_tr_func 1
11412 echo "$ac_t""no" 1>&6
11460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11461 echo "configure:11462: checking for $ac_func" >&5
11462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11463 echo $ac_n "(cached) $ac_c" 1>&6
11465 cat > conftest.$ac_ext <<EOF
11466 #line 11467 "configure"
11467 #include "confdefs.h"
11468 /* System header to define __stub macros and hopefully few prototypes,
11469 which can conflict with char $ac_func(); below. */
11470 #include <assert.h>
11471 /* Override any gcc2 internal prototype to avoid an error. */
11472 /* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */
11478 /* The GNU C library defines this for functions which it implements
11479 to always fail with ENOSYS. Some functions are actually named
11480 something starting with __ and the normal name is an alias. */
11481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11489 if { (eval echo configure:11490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11491 eval "ac_cv_func_$ac_func=yes"
11493 echo "configure: failed program was:" >&5
11494 cat conftest.$ac_ext >&5
11496 eval "ac_cv_func_$ac_func=no"
11501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11502 echo "$ac_t""yes" 1>&6
11503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11504 cat >> confdefs.h <<EOF
11505 #define $ac_tr_func 1
11509 echo "$ac_t""no" 1>&6
11514 for ac_func in getopt tempnam
11516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11517 echo "configure:11518: checking for $ac_func" >&5
11518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11521 cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11524 /* System header to define __stub macros and hopefully few prototypes,
11525 which can conflict with char $ac_func(); below. */
11526 #include <assert.h>
11527 /* Override any gcc2 internal prototype to avoid an error. */
11528 /* We use char because int might match the return type of a gcc2
11529 builtin and then its argument prototype would still apply. */
11534 /* The GNU C library defines this for functions which it implements
11535 to always fail with ENOSYS. Some functions are actually named
11536 something starting with __ and the normal name is an alias. */
11537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11545 if { (eval echo configure:11546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11547 eval "ac_cv_func_$ac_func=yes"
11549 echo "configure: failed program was:" >&5
11550 cat conftest.$ac_ext >&5
11552 eval "ac_cv_func_$ac_func=no"
11557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11558 echo "$ac_t""yes" 1>&6
11559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11560 cat >> confdefs.h <<EOF
11561 #define $ac_tr_func 1
11565 echo "$ac_t""no" 1>&6
11566 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11572 # Check Configuration
11574 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11575 echo "configure:11576: checking declaration of sys_errlist" >&5
11576 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11577 echo $ac_n "(cached) $ac_c" 1>&6
11580 cat > conftest.$ac_ext <<EOF
11581 #line 11582 "configure"
11582 #include "confdefs.h"
11585 #include <sys/types.h>
11588 char *c = (char *) *sys_errlist
11591 if { (eval echo configure:11592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11593 ol_cv_dcl_sys_errlist=yes
11595 echo "configure: failed program was:" >&5
11596 cat conftest.$ac_ext >&5
11598 ol_cv_dcl_sys_errlist=no
11603 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11604 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11605 if test $ol_cv_dcl_sys_errlist = no ; then
11606 cat >> confdefs.h <<\EOF
11607 #define DECL_SYS_ERRLIST 1
11610 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11611 echo "configure:11612: checking existence of sys_errlist" >&5
11612 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11613 echo $ac_n "(cached) $ac_c" 1>&6
11616 cat > conftest.$ac_ext <<EOF
11617 #line 11618 "configure"
11618 #include "confdefs.h"
11621 char *c = (char *) *sys_errlist
11624 if { (eval echo configure:11625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11626 ol_cv_have_sys_errlist=yes
11628 echo "configure: failed program was:" >&5
11629 cat conftest.$ac_ext >&5
11631 ol_cv_have_sys_errlist=no
11636 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11637 if test $ol_cv_have_sys_errlist = yes ; then
11638 cat >> confdefs.h <<\EOF
11639 #define HAVE_SYS_ERRLIST 1
11647 if test "$ol_enable_debug" != no ; then
11648 cat >> confdefs.h <<\EOF
11649 #define LDAP_DEBUG 1
11653 if test "$ol_enable_syslog" = yes ; then
11654 cat >> confdefs.h <<\EOF
11655 #define LDAP_SYSLOG 1
11659 if test "$ol_enable_libui" = yes ; then
11660 cat >> confdefs.h <<\EOF
11661 #define LDAP_LIBUI 1
11665 if test "$ol_enable_cache" = no ; then
11666 cat >> confdefs.h <<\EOF
11667 #define LDAP_NOCACHE 1
11671 if test "$ol_enable_dns" != no ; then
11672 cat >> confdefs.h <<\EOF
11673 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11677 if test "$ol_enable_proctitle" != no ; then
11678 cat >> confdefs.h <<\EOF
11679 #define LDAP_PROCTITLE 1
11683 if test "$ol_enable_referrals" != no ; then
11684 cat >> confdefs.h <<\EOF
11685 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11689 if test "$ol_enable_cldap" != no ; then
11690 cat >> confdefs.h <<\EOF
11691 #define LDAP_CONNECTIONLESS 1
11696 if test "$ol_enable_aclgroups" != no ; then
11697 cat >> confdefs.h <<\EOF
11698 #define SLAPD_ACLGROUPS 1
11702 if test "$ol_enable_crypt" != no ; then
11703 cat >> confdefs.h <<\EOF
11704 #define SLAPD_CRYPT 1
11708 if test "$ol_enable_cleartext" != no ; then
11709 cat >> confdefs.h <<\EOF
11710 #define SLAPD_CLEARTEXT 1
11714 if test "$ol_enable_phonetic" != no ; then
11715 cat >> confdefs.h <<\EOF
11716 #define SLAPD_PHONETIC 1
11720 if test "$ol_enable_rlookups" != no ; then
11721 cat >> confdefs.h <<\EOF
11722 #define SLAPD_RLOOKUPS 1
11727 if test "$ol_link_modules" != no ; then
11728 cat >> confdefs.h <<\EOF
11729 #define SLAPD_MODULES 1
11735 if test "$ol_link_bdb2" != no ; then
11736 cat >> confdefs.h <<\EOF
11737 #define SLAPD_BDB2 1
11744 if test "$ol_enable_ldap" != no ; then
11745 cat >> confdefs.h <<\EOF
11746 #define SLAPD_LDAP 1
11753 if test "$ol_link_ldbm" != no ; then
11754 cat >> confdefs.h <<\EOF
11755 #define SLAPD_LDBM 1
11762 if test "$ol_enable_passwd" != no ; then
11763 cat >> confdefs.h <<\EOF
11764 #define SLAPD_PASSWD 1
11771 if test "$ol_link_perl" != no ; then
11772 cat >> confdefs.h <<\EOF
11773 #define SLAPD_PERL 1
11780 if test "$ol_enable_shell" != no ; then
11781 cat >> confdefs.h <<\EOF
11782 #define SLAPD_SHELL 1
11789 if test "$ol_enable_tcl" != no ; then
11790 cat >> confdefs.h <<\EOF
11791 #define SLAPD_TCL 1
11798 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11799 $BUILD_SLAPD = yes ; then
11803 if test "$ol_link_isode" != no ; then
11841 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11843 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11844 # Let make expand exec_prefix.
11845 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11847 # Any assignment to VPATH causes Sun make to only execute
11848 # the first set of double-colon rules, so remove it if not needed.
11849 # If there is a colon in the path, we need to keep it.
11850 if test "x$srcdir" = x.; then
11851 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11854 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11856 DEFS=-DHAVE_CONFIG_H
11858 # Without the "./", some shells look in PATH for config.status.
11859 : ${CONFIG_STATUS=./config.status}
11861 echo creating $CONFIG_STATUS
11862 rm -f $CONFIG_STATUS
11863 cat > $CONFIG_STATUS <<EOF
11865 # Generated automatically by configure.
11866 # Run this file to recreate the current configuration.
11867 # This directory was configured as follows,
11868 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11870 # $0 $ac_configure_args
11872 # Compiler output produced by configure, useful for debugging
11873 # configure, is in ./config.log if it exists.
11875 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11878 case "\$ac_option" in
11879 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11880 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11881 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11882 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11883 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11885 -help | --help | --hel | --he | --h)
11886 echo "\$ac_cs_usage"; exit 0 ;;
11887 *) echo "\$ac_cs_usage"; exit 1 ;;
11891 ac_given_srcdir=$srcdir
11892 ac_given_INSTALL="$INSTALL"
11894 trap 'rm -fr `echo "\
11895 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11896 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11897 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11898 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11899 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11900 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11901 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11902 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11903 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11904 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11905 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11906 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11907 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11908 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11909 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11910 include/Makefile:build/top.mk:include/Makefile.in \
11911 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11912 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11913 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11914 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11915 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11916 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11917 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11918 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11919 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11920 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11921 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11922 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11923 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
11924 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11925 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11926 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11927 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11928 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11929 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11930 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11931 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11932 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11933 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11934 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11935 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11936 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11937 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11939 cat >> $CONFIG_STATUS <<EOF
11941 # Protect against being on the right side of a sed subst in config.status.
11942 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11943 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11947 s%@CFLAGS@%$CFLAGS%g
11948 s%@CPPFLAGS@%$CPPFLAGS%g
11949 s%@CXXFLAGS@%$CXXFLAGS%g
11950 s%@FFLAGS@%$FFLAGS%g
11952 s%@LDFLAGS@%$LDFLAGS%g
11954 s%@exec_prefix@%$exec_prefix%g
11955 s%@prefix@%$prefix%g
11956 s%@program_transform_name@%$program_transform_name%g
11957 s%@bindir@%$bindir%g
11958 s%@sbindir@%$sbindir%g
11959 s%@libexecdir@%$libexecdir%g
11960 s%@datadir@%$datadir%g
11961 s%@sysconfdir@%$sysconfdir%g
11962 s%@sharedstatedir@%$sharedstatedir%g
11963 s%@localstatedir@%$localstatedir%g
11964 s%@libdir@%$libdir%g
11965 s%@includedir@%$includedir%g
11966 s%@oldincludedir@%$oldincludedir%g
11967 s%@infodir@%$infodir%g
11968 s%@mandir@%$mandir%g
11970 s%@host_alias@%$host_alias%g
11971 s%@host_cpu@%$host_cpu%g
11972 s%@host_vendor@%$host_vendor%g
11973 s%@host_os@%$host_os%g
11974 s%@target@%$target%g
11975 s%@target_alias@%$target_alias%g
11976 s%@target_cpu@%$target_cpu%g
11977 s%@target_vendor@%$target_vendor%g
11978 s%@target_os@%$target_os%g
11980 s%@build_alias@%$build_alias%g
11981 s%@build_cpu@%$build_cpu%g
11982 s%@build_vendor@%$build_vendor%g
11983 s%@build_os@%$build_os%g
11984 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11985 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11986 s%@INSTALL_DATA@%$INSTALL_DATA%g
11987 s%@PACKAGE@%$PACKAGE%g
11988 s%@VERSION@%$VERSION%g
11989 s%@ACLOCAL@%$ACLOCAL%g
11990 s%@AUTOCONF@%$AUTOCONF%g
11991 s%@AUTOMAKE@%$AUTOMAKE%g
11992 s%@AUTOHEADER@%$AUTOHEADER%g
11993 s%@MAKEINFO@%$MAKEINFO%g
11994 s%@SET_MAKE@%$SET_MAKE%g
11995 s%@top_builddir@%$top_builddir%g
11996 s%@ldap_subdir@%$ldap_subdir%g
11998 s%@RANLIB@%$RANLIB%g
12002 s%@LIBTOOL@%$LIBTOOL%g
12005 s%@SENDMAIL@%$SENDMAIL%g
12006 s%@EDITOR@%$EDITOR%g
12007 s%@FINGER@%$FINGER%g
12008 s%@GLIBCONFIG@%$GLIBCONFIG%g
12009 s%@PERLBIN@%$PERLBIN%g
12011 s%@EXEEXT@%$EXEEXT%g
12012 s%@OBJEXT@%$OBJEXT%g
12013 s%@OL_MKDEP@%$OL_MKDEP%g
12014 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
12016 s%@LIBOBJS@%$LIBOBJS%g
12017 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
12018 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
12019 s%@BUILD_BDB2@%$BUILD_BDB2%g
12020 s%@BUILD_LDAP@%$BUILD_LDAP%g
12021 s%@BUILD_LDBM@%$BUILD_LDBM%g
12022 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
12023 s%@BUILD_PERL@%$BUILD_PERL%g
12024 s%@BUILD_SHELL@%$BUILD_SHELL%g
12025 s%@BUILD_TCL@%$BUILD_TCL%g
12026 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
12027 s%@LDAP_LIBS@%$LDAP_LIBS%g
12028 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
12029 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
12030 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
12031 s%@LDBM_LIBS@%$LDBM_LIBS%g
12032 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
12033 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
12034 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
12035 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
12036 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
12037 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
12038 s%@KRB_LIBS@%$KRB_LIBS%g
12039 s%@READLINE_LIBS@%$READLINE_LIBS%g
12040 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
12041 s%@TLS_LIBS@%$TLS_LIBS%g
12046 cat >> $CONFIG_STATUS <<\EOF
12048 # Split the substitutions into bite-sized pieces for seds with
12049 # small command number limits, like on Digital OSF/1 and HP-UX.
12050 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12051 ac_file=1 # Number of current file.
12052 ac_beg=1 # First line for current file.
12053 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12056 while $ac_more_lines; do
12057 if test $ac_beg -gt 1; then
12058 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12060 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12062 if test ! -s conftest.s$ac_file; then
12063 ac_more_lines=false
12064 rm -f conftest.s$ac_file
12066 if test -z "$ac_sed_cmds"; then
12067 ac_sed_cmds="sed -f conftest.s$ac_file"
12069 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12071 ac_file=`expr $ac_file + 1`
12073 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12076 if test -z "$ac_sed_cmds"; then
12081 cat >> $CONFIG_STATUS <<EOF
12083 CONFIG_FILES=\${CONFIG_FILES-"\
12084 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12085 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12086 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12087 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12088 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12089 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12090 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12091 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12092 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12093 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12094 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12095 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12096 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12097 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12098 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12099 include/Makefile:build/top.mk:include/Makefile.in \
12100 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12101 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12102 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12103 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12104 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12105 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12106 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12107 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12108 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12109 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12110 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12111 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12112 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12113 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12114 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12115 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12116 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12117 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12118 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12119 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12120 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12121 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12122 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12123 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12124 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12125 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12128 cat >> $CONFIG_STATUS <<\EOF
12129 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12132 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12133 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12134 *) ac_file_in="${ac_file}.in" ;;
12137 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12139 # Remove last slash and all that follows it. Not all systems have dirname.
12140 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12141 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12142 # The file is in a subdirectory.
12143 test ! -d "$ac_dir" && mkdir "$ac_dir"
12144 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12145 # A "../" for each directory in $ac_dir_suffix.
12146 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12148 ac_dir_suffix= ac_dots=
12151 case "$ac_given_srcdir" in
12153 if test -z "$ac_dots"; then top_srcdir=.
12154 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12155 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12156 *) # Relative path.
12157 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12158 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12161 case "$ac_given_INSTALL" in
12162 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12163 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12166 echo creating "$ac_file"
12168 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12170 *Makefile*) ac_comsub="1i\\
12171 # $configure_input" ;;
12175 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12177 s%@configure_input@%$configure_input%g
12178 s%@srcdir@%$srcdir%g
12179 s%@top_srcdir@%$top_srcdir%g
12180 s%@INSTALL@%$INSTALL%g
12181 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12185 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12186 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12188 # ac_d sets the value in "#define NAME VALUE" lines.
12189 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12190 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12193 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12194 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12195 ac_uB='\([ ]\)%\1#\2define\3'
12198 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12199 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12200 ac_eB='$%\1#\2define\3'
12204 if test "${CONFIG_HEADERS+set}" != set; then
12206 cat >> $CONFIG_STATUS <<EOF
12207 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
12209 cat >> $CONFIG_STATUS <<\EOF
12211 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12212 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12214 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12215 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12216 *) ac_file_in="${ac_file}.in" ;;
12219 echo creating $ac_file
12221 rm -f conftest.frag conftest.in conftest.out
12222 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12223 cat $ac_file_inputs > conftest.in
12227 # Transform confdefs.h into a sed script conftest.vals that substitutes
12228 # the proper values into config.h.in to produce config.h. And first:
12229 # Protect against being on the right side of a sed subst in config.status.
12230 # Protect against being in an unquoted here document in config.status.
12231 rm -f conftest.vals
12232 cat > conftest.hdr <<\EOF
12235 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12239 sed -n -f conftest.hdr confdefs.h > conftest.vals
12242 # This sed command replaces #undef with comments. This is necessary, for
12243 # example, in the case of _POSIX_SOURCE, which is predefined and required
12244 # on some systems where configure will not decide to define it.
12245 cat >> conftest.vals <<\EOF
12246 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12249 # Break up conftest.vals because some shells have a limit on
12250 # the size of here documents, and old seds have small limits too.
12252 rm -f conftest.tail
12255 ac_lines=`grep -c . conftest.vals`
12256 # grep -c gives empty output for an empty file on some AIX systems.
12257 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12258 # Write a limited-size here document to conftest.frag.
12259 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12260 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12262 sed -f conftest.frag conftest.in > conftest.out
12264 mv conftest.out conftest.in
12265 ' >> $CONFIG_STATUS
12266 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12267 rm -f conftest.vals
12268 mv conftest.tail conftest.vals
12270 rm -f conftest.vals
12272 cat >> $CONFIG_STATUS <<\EOF
12273 rm -f conftest.frag conftest.h
12274 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12275 cat conftest.in >> conftest.h
12277 if cmp -s $ac_file conftest.h 2>/dev/null; then
12278 echo "$ac_file is unchanged"
12281 # Remove last slash and all that follows it. Not all systems have dirname.
12282 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12283 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12284 # The file is in a subdirectory.
12285 test ! -d "$ac_dir" && mkdir "$ac_dir"
12288 mv conftest.h $ac_file
12293 cat >> $CONFIG_STATUS <<EOF
12296 cat >> $CONFIG_STATUS <<\EOF
12299 echo Please \"make depend\" to build dependencies
12303 chmod +x $CONFIG_STATUS
12304 rm -fr confdefs* $ac_clean_files
12305 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1