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-ldbm enable ldbm backend (yes)"
72 --with-ldbm-api use LDBM API (auto)"
74 --with-ldbm-type use LDBM type (auto)"
76 --enable-passwd enable passwd backend (no)"
78 --enable-perl enable perl backend (no)"
80 --enable-shell enable shell backend (no)"
82 --enable-tcl enable tcl backend (no)"
86 --enable-slurpd enable building slurpd (auto)"
88 Library Generation & Linking Options"
90 --enable-static build static libraries [default=yes]
91 --enable-static=PKGS only build shared libraries if the current package
92 appears as an element in the PKGS list"
94 --enable-shared build shared libraries [default=yes]
95 --enable-shared=PKGS only build shared libraries if the current package
96 appears as an element in the PKGS list"
98 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
100 # Initialize some variables set by options.
101 # The variables have the same names as the options, with
102 # dashes changed to underlines.
104 cache_file=./config.cache
113 program_transform_name=s,x,x,
121 bindir='${exec_prefix}/bin'
122 sbindir='${exec_prefix}/sbin'
123 libexecdir='${exec_prefix}/libexec'
124 datadir='${prefix}/share'
125 sysconfdir='${prefix}/etc'
126 sharedstatedir='${prefix}/com'
127 localstatedir='${prefix}/var'
128 libdir='${exec_prefix}/lib'
129 includedir='${prefix}/include'
130 oldincludedir='/usr/include'
131 infodir='${prefix}/info'
132 mandir='${prefix}/man'
134 # Initialize some other variables.
137 SHELL=${CONFIG_SHELL-/bin/sh}
138 # Maximum number of lines to put in a shell here document.
145 # If the previous option needs an argument, assign it.
146 if test -n "$ac_prev"; then
147 eval "$ac_prev=\$ac_option"
153 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
157 # Accept the important Cygnus configure options, so we can diagnose typos.
161 -bindir | --bindir | --bindi | --bind | --bin | --bi)
163 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
164 bindir="$ac_optarg" ;;
166 -build | --build | --buil | --bui | --bu)
168 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
169 build="$ac_optarg" ;;
171 -cache-file | --cache-file | --cache-fil | --cache-fi \
172 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
173 ac_prev=cache_file ;;
174 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
175 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
176 cache_file="$ac_optarg" ;;
178 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
180 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
182 datadir="$ac_optarg" ;;
184 -disable-* | --disable-*)
185 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
186 # Reject names that are not valid shell variable names.
187 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
188 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}=no" ;;
193 -enable-* | --enable-*)
194 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
195 # Reject names that are not valid shell variable names.
196 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
197 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
199 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
204 eval "enable_${ac_feature}='$ac_optarg'" ;;
206 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
207 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
208 | --exec | --exe | --ex)
209 ac_prev=exec_prefix ;;
210 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
211 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
212 | --exec=* | --exe=* | --ex=*)
213 exec_prefix="$ac_optarg" ;;
215 -gas | --gas | --ga | --g)
216 # Obsolete; use --with-gas.
219 -help | --help | --hel | --he)
220 # Omit some internal or obsolete options to make the list less imposing.
221 # This message is too long to be a string in the A/UX 3.1 sh.
223 Usage: configure [options] [host]
224 Options: [defaults in brackets after descriptions]
226 --cache-file=FILE cache test results in FILE
227 --help print this message
228 --no-create do not create output files
229 --quiet, --silent do not print \`checking...' messages
230 --version print the version of autoconf that created configure
231 Directory and file names:
232 --prefix=PREFIX install architecture-independent files in PREFIX
234 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
236 --bindir=DIR user executables in DIR [EPREFIX/bin]
237 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
238 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
239 --datadir=DIR read-only architecture-independent data in DIR
241 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
242 --sharedstatedir=DIR modifiable architecture-independent data in DIR
244 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
245 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
246 --includedir=DIR C header files in DIR [PREFIX/include]
247 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
248 --infodir=DIR info documentation in DIR [PREFIX/info]
249 --mandir=DIR man documentation in DIR [PREFIX/man]
250 --srcdir=DIR find the sources in DIR [configure dir or ..]
251 --program-prefix=PREFIX prepend PREFIX to installed program names
252 --program-suffix=SUFFIX append SUFFIX to installed program names
253 --program-transform-name=PROGRAM
254 run sed PROGRAM on installed program names
258 --build=BUILD configure for building on BUILD [BUILD=HOST]
259 --host=HOST configure for HOST [guessed]
260 --target=TARGET configure for TARGET [TARGET=HOST]
261 Features and packages:
262 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
263 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
264 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
265 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
266 --x-includes=DIR X include files are in DIR
267 --x-libraries=DIR X library files are in DIR
269 if test -n "$ac_help"; then
270 echo "--enable and --with options recognized:$ac_help"
274 -host | --host | --hos | --ho)
276 -host=* | --host=* | --hos=* | --ho=*)
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir="$ac_optarg" ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir="$ac_optarg" ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir="$ac_optarg" ;;
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir="$ac_optarg" ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir="$ac_optarg" ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir="$ac_optarg" ;;
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir="$ac_optarg" ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix="$ac_optarg" ;;
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix="$ac_optarg" ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix="$ac_optarg" ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name="$ac_optarg" ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir="$ac_optarg" ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir="$ac_optarg" ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir="$ac_optarg" ;;
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir="$ac_optarg" ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target="$ac_optarg" ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers)
421 echo "configure generated by autoconf version 2.13"
425 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
435 eval "with_${ac_package}='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
439 # Reject names that are not valid shell variable names.
440 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
441 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
443 ac_package=`echo $ac_package| sed 's/-/_/g'`
444 eval "with_${ac_package}=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes="$ac_optarg" ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries="$ac_optarg" ;;
464 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
468 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
469 echo "configure: warning: $ac_option: invalid host type" 1>&2
471 if test "x$nonopt" != xNONE; then
472 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
480 if test -n "$ac_prev"; then
481 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
484 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
486 # File descriptor usage:
489 # 2 errors and warnings
490 # 3 some systems may open it to /dev/tty
491 # 4 used on the Kubota Titan
492 # 6 checking for... messages and results
493 # 5 compiler messages saved in config.log
494 if test "$silent" = yes; then
502 This file contains any messages produced by compilers while
503 running configure, to aid debugging if configure makes a mistake.
506 # Strip out --no-create and --no-recursion so they do not pile up.
507 # Also quote any args containing shell metacharacters.
512 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
513 | --no-cr | --no-c) ;;
514 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
515 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
516 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
517 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
518 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
523 # Only set these to C if already set. These must not be set unconditionally
524 # because not all systems understand e.g. LANG=C (notably SCO).
525 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
526 # Non-C LC_CTYPE values break the ctype check.
527 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
528 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
529 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
530 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
533 rm -rf conftest* confdefs.h
534 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
537 # A filename unique to this package, relative to the directory that
538 # configure is in, which we can look for to find out if srcdir is correct.
539 ac_unique_file=include/ldap.h
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
559 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
562 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
564 # Prefer explicitly selected file to automatically selected ones.
565 if test -z "$CONFIG_SITE"; then
566 if test "x$prefix" != xNONE; then
567 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
569 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
572 for ac_site_file in $CONFIG_SITE; do
573 if test -r "$ac_site_file"; then
574 echo "loading site script $ac_site_file"
581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
582 ac_cpp='$CPP $CPPFLAGS'
583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
585 cross_compiling=$ac_cv_prog_cc_cross
589 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
590 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
591 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
598 ac_n= ac_c='\c' ac_t=
602 for ac_dir in build $srcdir/build; do
603 if test -f $ac_dir/install-sh; then
605 ac_install_sh="$ac_aux_dir/install-sh -c"
607 elif test -f $ac_dir/install.sh; then
609 ac_install_sh="$ac_aux_dir/install.sh -c"
613 if test -z "$ac_aux_dir"; then
614 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
616 ac_config_guess=$ac_aux_dir/config.guess
617 ac_config_sub=$ac_aux_dir/config.sub
618 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
619 # Find a good install program. We prefer a C program (faster),
620 # so one script is as good as another. But avoid the broken or
621 # incompatible versions:
622 # SysV /etc/install, /usr/sbin/install
623 # SunOS /usr/etc/install
626 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
627 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
628 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
629 # ./install, which can be erroneously created by make from ./install.sh.
630 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
631 echo "configure:632: checking for a BSD compatible install" >&5
632 if test -z "$INSTALL"; then
633 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
634 echo $ac_n "(cached) $ac_c" 1>&6
636 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
637 for ac_dir in $PATH; do
638 # Account for people who put trailing slashes in PATH elements.
640 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
642 # OSF1 and SCO ODT 3.0 have their own names for install.
643 # Don't use installbsd from OSF since it installs stuff as root
645 for ac_prog in ginstall scoinst install; do
646 if test -f $ac_dir/$ac_prog; then
647 if test $ac_prog = install &&
648 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
649 # AIX install. It has an incompatible calling convention.
652 ac_cv_path_install="$ac_dir/$ac_prog -c"
663 if test "${ac_cv_path_install+set}" = set; then
664 INSTALL="$ac_cv_path_install"
666 # As a last resort, use the slow shell script. We don't cache a
667 # path for INSTALL within a source directory, because that will
668 # break other packages using the cache if that directory is
669 # removed, or if the path is relative.
670 INSTALL="$ac_install_sh"
673 echo "$ac_t""$INSTALL" 1>&6
675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
676 # It thinks the first close brace ends the variable substitution.
677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
683 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
684 echo "configure:685: checking whether build environment is sane" >&5
687 echo timestamp > conftestfile
688 # Do `set' in a subshell so we don't clobber the current shell's
689 # arguments. Must try -L first in case configure is actually a
690 # symlink; some systems play weird games with the mod time of symlinks
691 # (eg FreeBSD returns the mod time of the symlink's containing
694 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
695 if test "$*" = "X"; then
697 set X `ls -t $srcdir/configure conftestfile`
699 if test "$*" != "X $srcdir/configure conftestfile" \
700 && test "$*" != "X conftestfile $srcdir/configure"; then
702 # If neither matched, then we have a broken ls. This can happen
703 # if, for instance, CONFIG_SHELL is bash and it inherits a
704 # broken ls alias from the environment. This has actually
705 # happened. Such a system could not be considered "sane".
706 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
707 alias in your environment" 1>&2; exit 1; }
710 test "$2" = conftestfile
716 { echo "configure: error: newly created file is older than distributed files!
717 Check your system clock" 1>&2; exit 1; }
720 echo "$ac_t""yes" 1>&6
721 if test "$program_transform_name" = s,x,x,; then
722 program_transform_name=
724 # Double any \ or $. echo might interpret backslashes.
725 cat <<\EOF_SED > conftestsed
726 s,\\,\\\\,g; s,\$,$$,g
728 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
731 test "$program_prefix" != NONE &&
732 program_transform_name="s,^,${program_prefix},; $program_transform_name"
733 # Use a double $ so make ignores it.
734 test "$program_suffix" != NONE &&
735 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
737 # sed with no file args requires a program.
738 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
740 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
741 echo "configure:742: checking whether ${MAKE-make} sets \${MAKE}" >&5
742 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
743 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 cat > conftestmake <<\EOF
748 @echo 'ac_maketemp="${MAKE}"'
750 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
751 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
752 if test -n "$ac_maketemp"; then
753 eval ac_cv_prog_make_${ac_make}_set=yes
755 eval ac_cv_prog_make_${ac_make}_set=no
759 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
760 echo "$ac_t""yes" 1>&6
763 echo "$ac_t""no" 1>&6
764 SET_MAKE="MAKE=${MAKE-make}"
772 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
773 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
778 missing_dir=`cd $ac_aux_dir && pwd`
779 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
780 echo "configure:781: checking for working aclocal" >&5
781 # Run test in a subshell; some versions of sh will print an error if
782 # an executable is not found, even if stderr is redirected.
783 # Redirect stdin to placate older versions of autoconf. Sigh.
784 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
786 echo "$ac_t""found" 1>&6
788 ACLOCAL="$missing_dir/missing aclocal"
789 echo "$ac_t""missing" 1>&6
792 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
793 echo "configure:794: checking for working autoconf" >&5
794 # Run test in a subshell; some versions of sh will print an error if
795 # an executable is not found, even if stderr is redirected.
796 # Redirect stdin to placate older versions of autoconf. Sigh.
797 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
799 echo "$ac_t""found" 1>&6
801 AUTOCONF="$missing_dir/missing autoconf"
802 echo "$ac_t""missing" 1>&6
805 echo $ac_n "checking for working automake""... $ac_c" 1>&6
806 echo "configure:807: checking for working automake" >&5
807 # Run test in a subshell; some versions of sh will print an error if
808 # an executable is not found, even if stderr is redirected.
809 # Redirect stdin to placate older versions of autoconf. Sigh.
810 if (automake --version) < /dev/null > /dev/null 2>&1; then
812 echo "$ac_t""found" 1>&6
814 AUTOMAKE="$missing_dir/missing automake"
815 echo "$ac_t""missing" 1>&6
818 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
819 echo "configure:820: checking for working autoheader" >&5
820 # Run test in a subshell; some versions of sh will print an error if
821 # an executable is not found, even if stderr is redirected.
822 # Redirect stdin to placate older versions of autoconf. Sigh.
823 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
824 AUTOHEADER=autoheader
825 echo "$ac_t""found" 1>&6
827 AUTOHEADER="$missing_dir/missing autoheader"
828 echo "$ac_t""missing" 1>&6
831 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
832 echo "configure:833: checking for working makeinfo" >&5
833 # Run test in a subshell; some versions of sh will print an error if
834 # an executable is not found, even if stderr is redirected.
835 # Redirect stdin to placate older versions of autoconf. Sigh.
836 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
838 echo "$ac_t""found" 1>&6
840 MAKEINFO="$missing_dir/missing makeinfo"
841 echo "$ac_t""missing" 1>&6
847 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
848 echo "configure:849: checking configure arguments" >&5
853 ldap_subdir="openldap"
855 # Check whether --with-subdir or --without-subdir was given.
856 if test "${with_subdir+set}" = set; then
857 withval="$with_subdir"
859 if test "$withval" = "no"; then
861 elif test "$withval" != "yes"; then
862 ldap_subdir="$withval"
868 # OpenLDAP --enable-debug
869 # Check whether --enable-debug or --disable-debug was given.
870 if test "${enable_debug+set}" = set; then
871 enableval="$enable_debug"
874 for ol_val in auto yes no ; do
875 if test "$enableval" = "$ol_val" ; then
879 if test "$ol_arg" = "invalid" ; then
880 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
882 ol_enable_debug="$ol_arg"
885 ol_enable_debug="yes"
888 # OpenLDAP --enable-syslog
889 # Check whether --enable-syslog or --disable-syslog was given.
890 if test "${enable_syslog+set}" = set; then
891 enableval="$enable_syslog"
894 for ol_val in auto yes no ; do
895 if test "$enableval" = "$ol_val" ; then
899 if test "$ol_arg" = "invalid" ; then
900 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
902 ol_enable_syslog="$ol_arg"
905 ol_enable_syslog="auto"
907 # end --enable-syslog
908 # OpenLDAP --enable-proctitle
909 # Check whether --enable-proctitle or --disable-proctitle was given.
910 if test "${enable_proctitle+set}" = set; then
911 enableval="$enable_proctitle"
914 for ol_val in auto yes no ; do
915 if test "$enableval" = "$ol_val" ; then
919 if test "$ol_arg" = "invalid" ; then
920 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
922 ol_enable_proctitle="$ol_arg"
925 ol_enable_proctitle="yes"
927 # end --enable-proctitle
928 # OpenLDAP --enable-cache
929 # Check whether --enable-cache or --disable-cache was given.
930 if test "${enable_cache+set}" = set; then
931 enableval="$enable_cache"
934 for ol_val in auto yes no ; do
935 if test "$enableval" = "$ol_val" ; then
939 if test "$ol_arg" = "invalid" ; then
940 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
942 ol_enable_cache="$ol_arg"
945 ol_enable_cache="yes"
948 # OpenLDAP --enable-dns
949 # Check whether --enable-dns or --disable-dns was given.
950 if test "${enable_dns+set}" = set; then
951 enableval="$enable_dns"
954 for ol_val in auto yes no ; do
955 if test "$enableval" = "$ol_val" ; then
959 if test "$ol_arg" = "invalid" ; then
960 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
962 ol_enable_dns="$ol_arg"
968 # OpenLDAP --enable-referrals
969 # Check whether --enable-referrals or --disable-referrals was given.
970 if test "${enable_referrals+set}" = set; then
971 enableval="$enable_referrals"
974 for ol_val in auto yes no ; do
975 if test "$enableval" = "$ol_val" ; then
979 if test "$ol_arg" = "invalid" ; then
980 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
982 ol_enable_referrals="$ol_arg"
985 ol_enable_referrals="yes"
987 # end --enable-referrals
988 # OpenLDAP --enable-cldap
989 # Check whether --enable-cldap or --disable-cldap was given.
990 if test "${enable_cldap+set}" = set; then
991 enableval="$enable_cldap"
994 for ol_val in auto yes no ; do
995 if test "$enableval" = "$ol_val" ; then
999 if test "$ol_arg" = "invalid" ; then
1000 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1002 ol_enable_cldap="$ol_arg"
1005 ol_enable_cldap="no"
1007 # end --enable-cldap
1008 # OpenLDAP --enable-x_compile
1009 # Check whether --enable-x_compile or --disable-x_compile was given.
1010 if test "${enable_x_compile+set}" = set; then
1011 enableval="$enable_x_compile"
1014 for ol_val in yes no ; do
1015 if test "$enableval" = "$ol_val" ; then
1019 if test "$ol_arg" = "invalid" ; then
1020 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1022 ol_enable_x_compile="$ol_arg"
1025 ol_enable_x_compile="no"
1027 # end --enable-x_compile
1029 # OpenLDAP --enable-dmalloc
1030 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1031 if test "${enable_dmalloc+set}" = set; then
1032 enableval="$enable_dmalloc"
1035 for ol_val in auto yes no ; do
1036 if test "$enableval" = "$ol_val" ; then
1040 if test "$ol_arg" = "invalid" ; then
1041 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1043 ol_enable_dmalloc="$ol_arg"
1046 ol_enable_dmalloc="no"
1048 # end --enable-dmalloc
1050 # OpenLDAP --with-kerberos
1051 # Check whether --with-kerberos or --without-kerberos was given.
1052 if test "${with_kerberos+set}" = set; then
1053 withval="$with_kerberos"
1056 for ol_val in auto k5 k4 afs yes no ; do
1057 if test "$withval" = "$ol_val" ; then
1061 if test "$ol_arg" = "invalid" ; then
1062 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1064 ol_with_kerberos="$ol_arg"
1067 ol_with_kerberos="auto"
1069 # end --with-kerberos
1071 # OpenLDAP --with-readline
1072 # Check whether --with-readline or --without-readline was given.
1073 if test "${with_readline+set}" = set; then
1074 withval="$with_readline"
1077 for ol_val in auto yes no ; do
1078 if test "$withval" = "$ol_val" ; then
1082 if test "$ol_arg" = "invalid" ; then
1083 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1085 ol_with_readline="$ol_arg"
1088 ol_with_readline="auto"
1090 # end --with-readline
1092 # OpenLDAP --with-threads
1093 # Check whether --with-threads or --without-threads was given.
1094 if test "${with_threads+set}" = set; then
1095 withval="$with_threads"
1098 for ol_val in auto posix mach lwp yes no manual ; do
1099 if test "$withval" = "$ol_val" ; then
1103 if test "$ol_arg" = "invalid" ; then
1104 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1106 ol_with_threads="$ol_arg"
1109 ol_with_threads="auto"
1111 # end --with-threads
1113 # OpenLDAP --with-tls
1114 # Check whether --with-tls or --without-tls was given.
1115 if test "${with_tls+set}" = set; then
1119 for ol_val in auto ssleay openssl yes no ; do
1120 if test "$withval" = "$ol_val" ; then
1124 if test "$ol_arg" = "invalid" ; then
1125 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1127 ol_with_tls="$ol_arg"
1134 # OpenLDAP --with-yielding_select
1135 # Check whether --with-yielding_select or --without-yielding_select was given.
1136 if test "${with_yielding_select+set}" = set; then
1137 withval="$with_yielding_select"
1140 for ol_val in auto yes no manual ; do
1141 if test "$withval" = "$ol_val" ; then
1145 if test "$ol_arg" = "invalid" ; then
1146 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1148 ol_with_yielding_select="$ol_arg"
1151 ol_with_yielding_select="auto"
1153 # end --with-yielding_select
1157 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1158 if test "${with_xxldapdoptions+set}" = set; then
1159 withval="$with_xxldapdoptions"
1163 # OpenLDAP --enable-ldapd
1164 # Check whether --enable-ldapd or --disable-ldapd was given.
1165 if test "${enable_ldapd+set}" = set; then
1166 enableval="$enable_ldapd"
1169 for ol_val in auto yes no ; do
1170 if test "$enableval" = "$ol_val" ; then
1174 if test "$ol_arg" = "invalid" ; then
1175 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1177 ol_enable_ldapd="$ol_arg"
1180 ol_enable_ldapd="no"
1182 # end --enable-ldapd
1184 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1185 if test "${with_xxslapdoptions+set}" = set; then
1186 withval="$with_xxslapdoptions"
1190 # OpenLDAP --enable-slapd
1191 # Check whether --enable-slapd or --disable-slapd was given.
1192 if test "${enable_slapd+set}" = set; then
1193 enableval="$enable_slapd"
1196 for ol_val in auto yes no ; do
1197 if test "$enableval" = "$ol_val" ; then
1201 if test "$ol_arg" = "invalid" ; then
1202 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1204 ol_enable_slapd="$ol_arg"
1207 ol_enable_slapd="yes"
1209 # end --enable-slapd
1210 # OpenLDAP --enable-aclgroups
1211 # Check whether --enable-aclgroups or --disable-aclgroups was given.
1212 if test "${enable_aclgroups+set}" = set; then
1213 enableval="$enable_aclgroups"
1216 for ol_val in auto yes no ; do
1217 if test "$enableval" = "$ol_val" ; then
1221 if test "$ol_arg" = "invalid" ; then
1222 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
1224 ol_enable_aclgroups="$ol_arg"
1227 ol_enable_aclgroups="auto"
1229 # end --enable-aclgroups
1230 # OpenLDAP --enable-cleartext
1231 # Check whether --enable-cleartext or --disable-cleartext was given.
1232 if test "${enable_cleartext+set}" = set; then
1233 enableval="$enable_cleartext"
1236 for ol_val in auto yes no ; do
1237 if test "$enableval" = "$ol_val" ; then
1241 if test "$ol_arg" = "invalid" ; then
1242 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1244 ol_enable_cleartext="$ol_arg"
1247 ol_enable_cleartext="yes"
1249 # end --enable-cleartext
1250 # OpenLDAP --enable-crypt
1251 # Check whether --enable-crypt or --disable-crypt was given.
1252 if test "${enable_crypt+set}" = set; then
1253 enableval="$enable_crypt"
1256 for ol_val in auto yes no ; do
1257 if test "$enableval" = "$ol_val" ; then
1261 if test "$ol_arg" = "invalid" ; then
1262 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1264 ol_enable_crypt="$ol_arg"
1267 ol_enable_crypt="auto"
1269 # end --enable-crypt
1270 # OpenLDAP --enable-modules
1271 # Check whether --enable-modules or --disable-modules was given.
1272 if test "${enable_modules+set}" = set; then
1273 enableval="$enable_modules"
1276 for ol_val in auto yes no ; do
1277 if test "$enableval" = "$ol_val" ; then
1281 if test "$ol_arg" = "invalid" ; then
1282 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1284 ol_enable_modules="$ol_arg"
1287 ol_enable_modules="no"
1289 # end --enable-modules
1290 # OpenLDAP --enable-phonetic
1291 # Check whether --enable-phonetic or --disable-phonetic was given.
1292 if test "${enable_phonetic+set}" = set; then
1293 enableval="$enable_phonetic"
1296 for ol_val in auto yes no ; do
1297 if test "$enableval" = "$ol_val" ; then
1301 if test "$ol_arg" = "invalid" ; then
1302 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1304 ol_enable_phonetic="$ol_arg"
1307 ol_enable_phonetic="no"
1309 # end --enable-phonetic
1310 # OpenLDAP --enable-rlookups
1311 # Check whether --enable-rlookups or --disable-rlookups was given.
1312 if test "${enable_rlookups+set}" = set; then
1313 enableval="$enable_rlookups"
1316 for ol_val in auto yes no ; do
1317 if test "$enableval" = "$ol_val" ; then
1321 if test "$ol_arg" = "invalid" ; then
1322 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1324 ol_enable_rlookups="$ol_arg"
1327 ol_enable_rlookups="auto"
1329 # end --enable-rlookups
1330 # OpenLDAP --enable-wrappers
1331 # Check whether --enable-wrappers or --disable-wrappers was given.
1332 if test "${enable_wrappers+set}" = set; then
1333 enableval="$enable_wrappers"
1336 for ol_val in auto yes no ; do
1337 if test "$enableval" = "$ol_val" ; then
1341 if test "$ol_arg" = "invalid" ; then
1342 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1344 ol_enable_wrappers="$ol_arg"
1347 ol_enable_wrappers="no"
1349 # end --enable-wrappers
1351 # OpenLDAP --enable-bdb2
1352 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1353 if test "${enable_bdb2+set}" = set; then
1354 enableval="$enable_bdb2"
1357 for ol_val in auto yes no ; do
1358 if test "$enableval" = "$ol_val" ; then
1362 if test "$ol_arg" = "invalid" ; then
1363 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1365 ol_enable_bdb2="$ol_arg"
1371 # OpenLDAP --enable-ldbm
1372 # Check whether --enable-ldbm or --disable-ldbm was given.
1373 if test "${enable_ldbm+set}" = set; then
1374 enableval="$enable_ldbm"
1377 for ol_val in auto yes no ; do
1378 if test "$enableval" = "$ol_val" ; then
1382 if test "$ol_arg" = "invalid" ; then
1383 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1385 ol_enable_ldbm="$ol_arg"
1388 ol_enable_ldbm="yes"
1391 # OpenLDAP --with-ldbm_api
1392 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1393 if test "${with_ldbm_api+set}" = set; then
1394 withval="$with_ldbm_api"
1397 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1398 if test "$withval" = "$ol_val" ; then
1402 if test "$ol_arg" = "invalid" ; then
1403 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1405 ol_with_ldbm_api="$ol_arg"
1408 ol_with_ldbm_api="auto"
1410 # end --with-ldbm_api
1412 # OpenLDAP --with-ldbm_type
1413 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1414 if test "${with_ldbm_type+set}" = set; then
1415 withval="$with_ldbm_type"
1418 for ol_val in auto btree hash ; do
1419 if test "$withval" = "$ol_val" ; then
1423 if test "$ol_arg" = "invalid" ; then
1424 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1426 ol_with_ldbm_type="$ol_arg"
1429 ol_with_ldbm_type="auto"
1431 # end --with-ldbm_type
1434 # OpenLDAP --enable-passwd
1435 # Check whether --enable-passwd or --disable-passwd was given.
1436 if test "${enable_passwd+set}" = set; then
1437 enableval="$enable_passwd"
1440 for ol_val in auto yes no ; do
1441 if test "$enableval" = "$ol_val" ; then
1445 if test "$ol_arg" = "invalid" ; then
1446 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1448 ol_enable_passwd="$ol_arg"
1451 ol_enable_passwd="no"
1453 # end --enable-passwd
1454 # OpenLDAP --enable-perl
1455 # Check whether --enable-perl or --disable-perl was given.
1456 if test "${enable_perl+set}" = set; then
1457 enableval="$enable_perl"
1460 for ol_val in auto yes no ; do
1461 if test "$enableval" = "$ol_val" ; then
1465 if test "$ol_arg" = "invalid" ; then
1466 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1468 ol_enable_perl="$ol_arg"
1474 # OpenLDAP --enable-shell
1475 # Check whether --enable-shell or --disable-shell was given.
1476 if test "${enable_shell+set}" = set; then
1477 enableval="$enable_shell"
1480 for ol_val in auto yes no ; do
1481 if test "$enableval" = "$ol_val" ; then
1485 if test "$ol_arg" = "invalid" ; then
1486 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1488 ol_enable_shell="$ol_arg"
1491 ol_enable_shell="no"
1493 # end --enable-shell
1494 # OpenLDAP --enable-tcl
1495 # Check whether --enable-tcl or --disable-tcl was given.
1496 if test "${enable_tcl+set}" = set; then
1497 enableval="$enable_tcl"
1500 for ol_val in auto yes no ; do
1501 if test "$enableval" = "$ol_val" ; then
1505 if test "$ol_arg" = "invalid" ; then
1506 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1508 ol_enable_tcl="$ol_arg"
1515 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1516 if test "${with_xxslurpdoptions+set}" = set; then
1517 withval="$with_xxslurpdoptions"
1521 # OpenLDAP --enable-slurpd
1522 # Check whether --enable-slurpd or --disable-slurpd was given.
1523 if test "${enable_slurpd+set}" = set; then
1524 enableval="$enable_slurpd"
1527 for ol_val in auto yes no ; do
1528 if test "$enableval" = "$ol_val" ; then
1532 if test "$ol_arg" = "invalid" ; then
1533 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1535 ol_enable_slurpd="$ol_arg"
1538 ol_enable_slurpd="auto"
1540 # end --enable-slurpd
1542 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1543 if test "${with_xxliboptions+set}" = set; then
1544 withval="$with_xxliboptions"
1548 # Check whether --enable-static or --disable-static was given.
1549 if test "${enable_static+set}" = set; then
1550 enableval="$enable_static"
1551 p=${PACKAGE-default}
1552 case "$enableval" in
1553 yes) enable_static=yes ;;
1554 no) enable_static=no ;;
1557 # Look at the argument we got. We use all the common list separators.
1558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1559 for pkg in $enableval; do
1560 if test "X$pkg" = "X$p"; then
1571 # Check whether --enable-shared or --disable-shared was given.
1572 if test "${enable_shared+set}" = set; then
1573 enableval="$enable_shared"
1574 p=${PACKAGE-default}
1575 case "$enableval" in
1576 yes) enable_shared=yes ;;
1577 no) enable_shared=no ;;
1580 # Look at the argument we got. We use all the common list separators.
1581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1582 for pkg in $enableval; do
1583 if test "X$pkg" = "X$p"; then
1596 if test $ol_enable_dns = yes ; then
1597 if test $ol_enable_referrals = no ; then
1598 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1600 if test $ol_enable_referrals = auto ; then
1601 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1602 ol_enable_referrals=yes
1606 if test $ol_enable_slapd = no ; then
1607 if test $ol_enable_bdb2 = yes ; then
1608 echo "configure: warning: slapd disabled, ignoring --enable_bdb2 argument" 1>&2
1610 if test $ol_enable_ldbm = yes ; then
1611 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1613 if test $ol_enable_passwd = yes ; then
1614 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1616 if test $ol_enable_perl = yes ; then
1617 echo "configure: warning: slapd disabled, ignoring --enable_perl argument" 1>&2
1619 if test $ol_enable_shell = yes ; then
1620 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1622 if test $ol_enable_tcl = yes ; then
1623 echo "configure: warning: slapd disabled, ignoring --enable_tcl argument" 1>&2
1625 if test $ol_enable_aclgroups = yes ; then
1626 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1628 if test $ol_enable_modules = yes ; then
1629 echo "configure: warning: slapd disabled, ignoring --enable_modules argument" 1>&2
1631 if test $ol_enable_wrappers = yes ; then
1632 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1634 if test $ol_enable_phonetic = yes ; then
1635 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1637 if test $ol_enable_rlookups = yes ; then
1638 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1640 if test $ol_with_ldbm_api != auto ; then
1641 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1643 if test $ol_with_ldbm_type != auto ; then
1644 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1646 if test $ol_enable_slurpd = yes ; then
1647 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1650 # force settings to no
1658 ol_enable_aclgroups=no
1659 ol_enable_modules=no
1660 ol_enable_phonetic=no
1661 ol_enable_rlookups=no
1662 ol_enable_wrappers=no
1665 ol_with_ldbm_type=no
1669 elif test $ol_enable_ldbm = no ; then
1671 if test $ol_with_ldbm_api != auto ; then
1672 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1675 if test $ol_with_ldbm_type != auto ; then
1676 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1679 if test $ol_enable_bdb2 = yes ; then
1680 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1683 if test $ol_enable_modules != yes -a \
1684 $ol_enable_passwd = no -a \
1685 $ol_enable_perl = no -a \
1686 $ol_enable_shell = no -a \
1687 $ol_enable_tcl = no ; then
1688 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1692 ol_with_ldbm_type=no
1694 elif test $ol_enable_bdb2 = yes ; then
1696 if test $ol_with_ldbm_api != auto -a \
1697 $ol_with_ldbm_api != db2 ; then
1698 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
1701 ol_with_ldbm_api=db2
1705 if test $ol_enable_bdb2 != no ; then
1706 if test $ol_with_ldbm_api != auto -a \
1707 $ol_with_ldbm_api != db2 ; then
1708 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
1713 if test $ol_with_ldbm_api = gdbm -a \
1714 $ol_with_ldbm_type = btree ; then
1715 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1717 if test $ol_with_ldbm_api = mdbm -a \
1718 $ol_with_ldbm_type = btree ; then
1719 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
1721 if test $ol_with_ldbm_api = ndbm -a \
1722 $ol_with_ldbm_type = btree ; then
1723 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1727 if test $ol_enable_slurpd = yes ; then
1728 if test $ol_with_threads = no ; then
1729 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1733 echo "$ac_t""done" 1>&6
1757 SLAPD_MODULES_LDFLAGS=
1758 SLAPD_MODULES_CPPFLAGS=
1761 SLAPD_PERL_CPPFLAGS=
1769 # Find a good install program. We prefer a C program (faster),
1770 # so one script is as good as another. But avoid the broken or
1771 # incompatible versions:
1772 # SysV /etc/install, /usr/sbin/install
1773 # SunOS /usr/etc/install
1774 # IRIX /sbin/install
1776 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1777 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1778 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1779 # ./install, which can be erroneously created by make from ./install.sh.
1780 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1781 echo "configure:1782: checking for a BSD compatible install" >&5
1782 if test -z "$INSTALL"; then
1783 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1786 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1787 for ac_dir in $PATH; do
1788 # Account for people who put trailing slashes in PATH elements.
1790 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1792 # OSF1 and SCO ODT 3.0 have their own names for install.
1793 # Don't use installbsd from OSF since it installs stuff as root
1795 for ac_prog in ginstall scoinst install; do
1796 if test -f $ac_dir/$ac_prog; then
1797 if test $ac_prog = install &&
1798 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1799 # AIX install. It has an incompatible calling convention.
1802 ac_cv_path_install="$ac_dir/$ac_prog -c"
1813 if test "${ac_cv_path_install+set}" = set; then
1814 INSTALL="$ac_cv_path_install"
1816 # As a last resort, use the slow shell script. We don't cache a
1817 # path for INSTALL within a source directory, because that will
1818 # break other packages using the cache if that directory is
1819 # removed, or if the path is relative.
1820 INSTALL="$ac_install_sh"
1823 echo "$ac_t""$INSTALL" 1>&6
1825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1826 # It thinks the first close brace ends the variable substitution.
1827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1837 # Make sure we can run config.sub.
1838 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1839 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1842 echo $ac_n "checking host system type""... $ac_c" 1>&6
1843 echo "configure:1844: checking host system type" >&5
1846 case "$host_alias" in
1850 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1851 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1853 *) host_alias=$nonopt ;;
1857 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1858 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1859 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1860 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1861 echo "$ac_t""$host" 1>&6
1863 # Extract the first word of "ranlib", so it can be a program name with args.
1864 set dummy ranlib; ac_word=$2
1865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $ac_word" >&5
1867 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 if test -n "$RANLIB"; then
1871 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1875 for ac_dir in $ac_dummy; do
1876 test -z "$ac_dir" && ac_dir=.
1877 if test -f $ac_dir/$ac_word; then
1878 ac_cv_prog_RANLIB="ranlib"
1883 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1886 RANLIB="$ac_cv_prog_RANLIB"
1887 if test -n "$RANLIB"; then
1888 echo "$ac_t""$RANLIB" 1>&6
1890 echo "$ac_t""no" 1>&6
1893 # Extract the first word of "gcc", so it can be a program name with args.
1894 set dummy gcc; ac_word=$2
1895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1896 echo "configure:1897: checking for $ac_word" >&5
1897 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 if test -n "$CC"; then
1901 ac_cv_prog_CC="$CC" # Let the user override the test.
1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1905 for ac_dir in $ac_dummy; do
1906 test -z "$ac_dir" && ac_dir=.
1907 if test -f $ac_dir/$ac_word; then
1916 if test -n "$CC"; then
1917 echo "$ac_t""$CC" 1>&6
1919 echo "$ac_t""no" 1>&6
1922 if test -z "$CC"; then
1923 # Extract the first word of "cc", so it can be a program name with args.
1924 set dummy cc; ac_word=$2
1925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1926 echo "configure:1927: checking for $ac_word" >&5
1927 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1930 if test -n "$CC"; then
1931 ac_cv_prog_CC="$CC" # Let the user override the test.
1933 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 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1940 ac_prog_rejected=yes
1948 if test $ac_prog_rejected = yes; then
1949 # We found a bogon in the path, so make sure we never use it.
1950 set dummy $ac_cv_prog_CC
1952 if test $# -gt 0; then
1953 # We chose a different compiler from the bogus one.
1954 # However, it has the same basename, so the bogon will be chosen
1955 # first if we set CC to just the basename; use the full file name.
1957 set dummy "$ac_dir/$ac_word" "$@"
1965 if test -n "$CC"; then
1966 echo "$ac_t""$CC" 1>&6
1968 echo "$ac_t""no" 1>&6
1971 if test -z "$CC"; then
1972 case "`uname -s`" in
1974 # Extract the first word of "cl", so it can be a program name with args.
1975 set dummy cl; ac_word=$2
1976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1977 echo "configure:1978: checking for $ac_word" >&5
1978 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1981 if test -n "$CC"; then
1982 ac_cv_prog_CC="$CC" # Let the user override the test.
1984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1986 for ac_dir in $ac_dummy; do
1987 test -z "$ac_dir" && ac_dir=.
1988 if test -f $ac_dir/$ac_word; then
1997 if test -n "$CC"; then
1998 echo "$ac_t""$CC" 1>&6
2000 echo "$ac_t""no" 1>&6
2005 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2008 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2009 echo "configure:2010: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2012 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2013 ac_cpp='$CPP $CPPFLAGS'
2014 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2015 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2016 cross_compiling=$ac_cv_prog_cc_cross
2018 cat > conftest.$ac_ext << EOF
2020 #line 2021 "configure"
2021 #include "confdefs.h"
2025 if { (eval echo configure:2026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2026 ac_cv_prog_cc_works=yes
2027 # If we can't run a trivial program, we are probably using a cross compiler.
2028 if (./conftest; exit) 2>/dev/null; then
2029 ac_cv_prog_cc_cross=no
2031 ac_cv_prog_cc_cross=yes
2034 echo "configure: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2036 ac_cv_prog_cc_works=no
2040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2041 ac_cpp='$CPP $CPPFLAGS'
2042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2044 cross_compiling=$ac_cv_prog_cc_cross
2046 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2047 if test $ac_cv_prog_cc_works = no; then
2048 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2050 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2051 echo "configure:2052: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2052 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2053 cross_compiling=$ac_cv_prog_cc_cross
2055 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2056 echo "configure:2057: checking whether we are using GNU C" >&5
2057 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 cat > conftest.c <<EOF
2065 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2072 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2074 if test $ac_cv_prog_gcc = yes; then
2080 ac_test_CFLAGS="${CFLAGS+set}"
2081 ac_save_CFLAGS="$CFLAGS"
2083 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2084 echo "configure:2085: checking whether ${CC-cc} accepts -g" >&5
2085 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 echo 'void f(){}' > conftest.c
2089 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2098 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2099 if test "$ac_test_CFLAGS" = set; then
2100 CFLAGS="$ac_save_CFLAGS"
2101 elif test $ac_cv_prog_cc_g = yes; then
2102 if test "$GCC" = yes; then
2108 if test "$GCC" = yes; then
2115 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2116 if test "${with_gnu_ld+set}" = set; then
2117 withval="$with_gnu_ld"
2118 test "$withval" = no || with_gnu_ld=yes
2125 if test "$ac_cv_prog_gcc" = yes; then
2126 # Check if gcc -print-prog-name=ld gives a path.
2127 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2128 echo "configure:2129: checking for ld used by GCC" >&5
2129 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2131 # Accept absolute paths.
2133 test -z "$LD" && LD="$ac_prog"
2136 # If it fails, then pretend we aren't using GCC.
2140 # If it is relative, then search for the first ld in PATH.
2144 elif test "$with_gnu_ld" = yes; then
2145 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2146 echo "configure:2147: checking for GNU ld" >&5
2148 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2149 echo "configure:2150: checking for non-GNU ld" >&5
2151 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 if test -z "$LD"; then
2155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2156 for ac_dir in $PATH; do
2157 test -z "$ac_dir" && ac_dir=.
2158 if test -f "$ac_dir/$ac_prog"; then
2159 ac_cv_path_LD="$ac_dir/$ac_prog"
2160 # Check to see if the program is GNU ld. I'd rather use --version,
2161 # but apparently some GNU ld's only accept -v.
2162 # Break only if it was the GNU/non-GNU ld that we prefer.
2163 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2164 test "$with_gnu_ld" != no && break
2166 test "$with_gnu_ld" != yes && break
2172 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2177 if test -n "$LD"; then
2178 echo "$ac_t""$LD" 1>&6
2180 echo "$ac_t""no" 1>&6
2182 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2184 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2185 echo "configure:2186: checking if the linker ($LD) is GNU ld" >&5
2186 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2189 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2190 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2191 ac_cv_prog_gnu_ld=yes
2193 ac_cv_prog_gnu_ld=no
2197 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2200 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2201 echo "configure:2202: checking for BSD-compatible nm" >&5
2202 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2207 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2211 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2212 test -z "$ac_dir" && ac_dir=.
2213 if test -f $ac_dir/nm; then
2214 # Check to see if the nm accepts a BSD-compat flag.
2215 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2216 # nm: unknown option "B" ignored
2217 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2218 ac_cv_path_NM="$ac_dir/nm -B"
2219 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2220 ac_cv_path_NM="$ac_dir/nm -p"
2222 ac_cv_path_NM="$ac_dir/nm"
2228 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2234 echo "$ac_t""$NM" 1>&6
2237 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2238 echo "configure:2239: checking whether ln -s works" >&5
2239 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2243 if ln -s X conftestdata 2>/dev/null
2246 ac_cv_prog_LN_S="ln -s"
2251 LN_S="$ac_cv_prog_LN_S"
2252 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2253 echo "$ac_t""yes" 1>&6
2255 echo "$ac_t""no" 1>&6
2258 # Always use our own libtool.
2259 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2261 # Check for any special flags to pass to ltconfig.
2263 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2264 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2265 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2266 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2267 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2269 # Some flags need to be propagated to the compiler or linker for good
2273 # Find out which ABI we are using.
2274 echo '#line 2275 "configure"' > conftest.$ac_ext
2275 if { (eval echo configure:2276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2276 case "`/usr/bin/file conftest.o`" in
2292 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2293 CFLAGS="$CFLAGS -belf"
2297 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2298 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2299 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2300 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2301 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2302 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2305 for ac_prog in mawk gawk nawk awk
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy $ac_prog; ac_word=$2
2309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2310 echo "configure:2311: checking for $ac_word" >&5
2311 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2314 if test -n "$AWK"; then
2315 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2319 for ac_dir in $ac_dummy; do
2320 test -z "$ac_dir" && ac_dir=.
2321 if test -f $ac_dir/$ac_word; then
2322 ac_cv_prog_AWK="$ac_prog"
2329 AWK="$ac_cv_prog_AWK"
2330 if test -n "$AWK"; then
2331 echo "$ac_t""$AWK" 1>&6
2333 echo "$ac_t""no" 1>&6
2336 test -n "$AWK" && break
2339 # test for ln hardlink support
2340 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2341 echo "configure:2342: checking whether ln works" >&5
2342 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2345 rm -f conftest.src conftest.dst
2346 echo "conftest" > conftest.src
2347 if ln conftest.src conftest.dst 2>/dev/null
2349 ol_cv_prog_LN_H="ln"
2351 ol_cv_prog_LN_H="cp"
2353 rm -f conftest.src conftest.dst
2356 LN_H="$ol_cv_prog_LN_H"
2357 if test "$ol_cv_prog_LN_H" = "ln"; then
2358 echo "$ac_t""yes" 1>&6
2360 echo "$ac_t""no" 1>&6
2363 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2364 echo "configure:2365: checking whether ln -s works" >&5
2365 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2369 if ln -s X conftestdata 2>/dev/null
2372 ac_cv_prog_LN_S="ln -s"
2377 LN_S="$ac_cv_prog_LN_S"
2378 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2379 echo "$ac_t""yes" 1>&6
2381 echo "$ac_t""no" 1>&6
2385 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2389 # Extract the first word of "sendmail", so it can be a program name with args.
2390 set dummy sendmail; ac_word=$2
2391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2392 echo "configure:2393: checking for $ac_word" >&5
2393 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2398 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2401 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2405 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2406 for ac_dir in $ac_dummy; do
2407 test -z "$ac_dir" && ac_dir=.
2408 if test -f $ac_dir/$ac_word; then
2409 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2414 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2418 SENDMAIL="$ac_cv_path_SENDMAIL"
2419 if test -n "$SENDMAIL"; then
2420 echo "$ac_t""$SENDMAIL" 1>&6
2422 echo "$ac_t""no" 1>&6
2425 # Extract the first word of "vi", so it can be a program name with args.
2426 set dummy vi; ac_word=$2
2427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2428 echo "configure:2429: checking for $ac_word" >&5
2429 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2434 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2437 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2441 ac_dummy="$PATH:/usr/ucb"
2442 for ac_dir in $ac_dummy; do
2443 test -z "$ac_dir" && ac_dir=.
2444 if test -f $ac_dir/$ac_word; then
2445 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2450 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2454 EDITOR="$ac_cv_path_EDITOR"
2455 if test -n "$EDITOR"; then
2456 echo "$ac_t""$EDITOR" 1>&6
2458 echo "$ac_t""no" 1>&6
2461 # Extract the first word of "finger", so it can be a program name with args.
2462 set dummy finger; ac_word=$2
2463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_word" >&5
2465 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2470 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2473 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2477 ac_dummy="$PATH:/usr/ucb"
2478 for ac_dir in $ac_dummy; do
2479 test -z "$ac_dir" && ac_dir=.
2480 if test -f $ac_dir/$ac_word; then
2481 ac_cv_path_FINGER="$ac_dir/$ac_word"
2486 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2490 FINGER="$ac_cv_path_FINGER"
2491 if test -n "$FINGER"; then
2492 echo "$ac_t""$FINGER" 1>&6
2494 echo "$ac_t""no" 1>&6
2499 if test $ol_enable_modules != no ; then
2500 # Extract the first word of "glib-config", so it can be a program name with args.
2501 set dummy glib-config; ac_word=$2
2502 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_word" >&5
2504 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 case "$GLIBCONFIG" in
2509 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2512 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2517 for ac_dir in $ac_dummy; do
2518 test -z "$ac_dir" && ac_dir=.
2519 if test -f $ac_dir/$ac_word; then
2520 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2528 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2529 if test -n "$GLIBCONFIG"; then
2530 echo "$ac_t""$GLIBCONFIG" 1>&6
2532 echo "$ac_t""no" 1>&6
2536 if test "no$GLIBCONFIG" = "no" ; then
2537 if test $ol_enable_modules = yes ; then
2538 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2542 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2543 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2544 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2551 if test $ol_enable_perl != no ; then
2552 # Extract the first word of "perl", so it can be a program name with args.
2553 set dummy perl; ac_word=$2
2554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2555 echo "configure:2556: checking for $ac_word" >&5
2556 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2557 echo $ac_n "(cached) $ac_c" 1>&6
2561 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2564 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2569 for ac_dir in $ac_dummy; do
2570 test -z "$ac_dir" && ac_dir=.
2571 if test -f $ac_dir/$ac_word; then
2572 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2577 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2581 PERLBIN="$ac_cv_path_PERLBIN"
2582 if test -n "$PERLBIN"; then
2583 echo "$ac_t""$PERLBIN" 1>&6
2585 echo "$ac_t""no" 1>&6
2589 if test "no$PERLBIN" = "no" ; then
2590 if test $ol_enable_perl = yes ; then
2591 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2595 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2596 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2602 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2603 echo "configure:2604: checking how to run the C preprocessor" >&5
2604 # On Suns, sometimes $CPP names a directory.
2605 if test -n "$CPP" && test -d "$CPP"; then
2608 if test -z "$CPP"; then
2609 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2612 # This must be in double quotes, not single quotes, because CPP may get
2613 # substituted into the Makefile and "${CC-cc}" will confuse make.
2615 # On the NeXT, cc -E runs the code through the compiler's parser,
2616 # not just through cpp.
2617 cat > conftest.$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2624 { (eval echo configure:2625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2626 if test -z "$ac_err"; then
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2633 CPP="${CC-cc} -E -traditional-cpp"
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2641 { (eval echo configure:2642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2643 if test -z "$ac_err"; then
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2650 CPP="${CC-cc} -nologo -E"
2651 cat > conftest.$ac_ext <<EOF
2652 #line 2653 "configure"
2653 #include "confdefs.h"
2657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2658 { (eval echo configure:2659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2660 if test -z "$ac_err"; then
2664 echo "configure: failed program was:" >&5
2665 cat conftest.$ac_ext >&5
2674 ac_cv_prog_CPP="$CPP"
2676 CPP="$ac_cv_prog_CPP"
2678 ac_cv_prog_CPP="$CPP"
2680 echo "$ac_t""$CPP" 1>&6
2683 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
2684 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
2686 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
2687 echo "configure: warning: programs compiled here do run here..." 1>&2
2688 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
2690 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
2691 echo "configure: warning: programs compiled here do not run here..." 1>&2
2692 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
2695 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2696 echo "configure:2697: checking for AIX" >&5
2697 cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2706 egrep "yes" >/dev/null 2>&1; then
2708 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2709 #define _ALL_SOURCE 1
2714 echo "$ac_t""no" 1>&6
2719 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2720 echo "configure:2721: checking for POSIXized ISC" >&5
2721 if test -d /etc/conf/kconfig.d &&
2722 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2724 echo "$ac_t""yes" 1>&6
2725 ISC=yes # If later tests want to check for ISC.
2726 cat >> confdefs.h <<\EOF
2727 #define _POSIX_SOURCE 1
2730 if test "$GCC" = yes; then
2736 echo "$ac_t""no" 1>&6
2740 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
2741 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
2742 echo "configure:2743: checking for minix/config.h" >&5
2743 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2749 #include <minix/config.h>
2751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2752 { (eval echo configure:2753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2754 if test -z "$ac_err"; then
2756 eval "ac_cv_header_$ac_safe=yes"
2759 echo "configure: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2762 eval "ac_cv_header_$ac_safe=no"
2766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2767 echo "$ac_t""yes" 1>&6
2770 echo "$ac_t""no" 1>&6
2774 if test "$MINIX" = yes; then
2775 cat >> confdefs.h <<\EOF
2776 #define _POSIX_SOURCE 1
2779 cat >> confdefs.h <<\EOF
2780 #define _POSIX_1_SOURCE 2
2783 cat >> confdefs.h <<\EOF
2790 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
2791 echo "configure:2792: checking for be_app in -lbe" >&5
2792 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
2793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 ac_save_LIBS="$LIBS"
2797 LIBS="-lbe -lroot $LIBS"
2798 cat > conftest.$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2801 /* Override any gcc2 internal prototype to avoid an error. */
2802 /* We use char because int might match the return type of a gcc2
2803 builtin and then its argument prototype would still apply. */
2810 if { (eval echo configure:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2812 eval "ac_cv_lib_$ac_lib_var=yes"
2814 echo "configure: failed program was:" >&5
2815 cat conftest.$ac_ext >&5
2817 eval "ac_cv_lib_$ac_lib_var=no"
2820 LIBS="$ac_save_LIBS"
2823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2824 echo "$ac_t""yes" 1>&6
2825 LIBS="$LIBS -lbe -lroot"
2827 echo "$ac_t""no" 1>&6
2832 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2833 echo "configure:2834: checking for Cygwin environment" >&5
2834 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 cat > conftest.$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2844 #define __CYGWIN__ __CYGWIN32__
2849 if { (eval echo configure:2850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2853 echo "configure: failed program was:" >&5
2854 cat conftest.$ac_ext >&5
2862 echo "$ac_t""$ac_cv_cygwin" 1>&6
2864 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2865 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2866 echo "configure:2867: checking for mingw32 environment" >&5
2867 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2870 cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2878 if { (eval echo configure:2879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2882 echo "configure: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2891 echo "$ac_t""$ac_cv_mingw32" 1>&6
2893 test "$ac_cv_mingw32" = yes && MINGW32=yes
2896 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2897 echo "configure:2898: checking for executable suffix" >&5
2898 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2901 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2905 echo 'int main () { return 0; }' > conftest.$ac_ext
2907 if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2908 for file in conftest.*; do
2910 *.c | *.o | *.obj) ;;
2911 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2915 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2918 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2923 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2924 echo "$ac_t""${ac_cv_exeext}" 1>&6
2927 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2928 echo "configure:2929: checking for object suffix" >&5
2929 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2933 echo 'int i = 1;' > conftest.$ac_ext
2934 if { (eval echo configure:2935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2935 for ac_file in conftest.*; do
2938 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2942 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2947 echo "$ac_t""$ac_cv_objext" 1>&6
2948 OBJEXT=$ac_cv_objext
2949 ac_objext=$ac_cv_objext
2955 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2956 echo "configure:2957: checking for ${CC-cc} option to accept ANSI C" >&5
2957 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 am_cv_prog_cc_stdc=no
2962 # Don't try gcc -ansi; that turns off useful extensions and
2963 # breaks some systems' header files.
2964 # AIX -qlanglvl=ansi
2965 # Ultrix and OSF/1 -std1
2966 # HP-UX -Aa -D_HPUX_SOURCE
2967 # SVR4 -Xc -D__EXTENSIONS__
2968 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2970 CC="$ac_save_CC $ac_arg"
2971 cat > conftest.$ac_ext <<EOF
2972 #line 2973 "configure"
2973 #include "confdefs.h"
2976 #include <sys/types.h>
2977 #include <sys/stat.h>
2978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2979 struct buf { int x; };
2980 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2981 static char *e (p, i)
2987 static char *f (char * (*g) (char **, int), char **p, ...)
2992 s = g (p, va_arg (v,int));
2996 int test (int i, double x);
2997 struct s1 {int (*f) (int a);};
2998 struct s2 {int (*f) (double a);};
2999 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3005 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3009 if { (eval echo configure:3010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3011 am_cv_prog_cc_stdc="$ac_arg"; break
3013 echo "configure: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3022 if test -z "$am_cv_prog_cc_stdc"; then
3023 echo "$ac_t""none needed" 1>&6
3025 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3027 case "x$am_cv_prog_cc_stdc" in
3029 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3032 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3033 { echo "configure: error: OpenLDAP requires compiler to support STDC prototypes." 1>&2; exit 1; }
3039 echo $ac_n "checking for socket""... $ac_c" 1>&6
3040 echo "configure:3041: checking for socket" >&5
3041 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 cat > conftest.$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3047 /* System header to define __stub macros and hopefully few prototypes,
3048 which can conflict with char socket(); below. */
3050 /* Override any gcc2 internal prototype to avoid an error. */
3051 /* We use char because int might match the return type of a gcc2
3052 builtin and then its argument prototype would still apply. */
3057 /* The GNU C library defines this for functions which it implements
3058 to always fail with ENOSYS. Some functions are actually named
3059 something starting with __ and the normal name is an alias. */
3060 #if defined (__stub_socket) || defined (__stub___socket)
3068 if { (eval echo configure:3069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3070 eval "ac_cv_func_socket=yes"
3072 echo "configure: failed program was:" >&5
3073 cat conftest.$ac_ext >&5
3075 eval "ac_cv_func_socket=no"
3080 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3081 echo "$ac_t""yes" 1>&6
3084 echo "$ac_t""no" 1>&6
3086 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3087 echo "configure:3088: checking for main in -lsocket" >&5
3088 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 ac_save_LIBS="$LIBS"
3093 LIBS="-lsocket $LIBS"
3094 cat > conftest.$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3102 if { (eval echo configure:3103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3104 eval "ac_cv_lib_$ac_lib_var=yes"
3106 echo "configure: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3109 eval "ac_cv_lib_$ac_lib_var=no"
3112 LIBS="$ac_save_LIBS"
3115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3116 echo "$ac_t""yes" 1>&6
3117 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3118 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3119 cat >> confdefs.h <<EOF
3120 #define $ac_tr_lib 1
3123 LIBS="-lsocket $LIBS"
3126 echo "$ac_t""no" 1>&6
3129 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3130 echo "configure:3131: checking for main in -lnet" >&5
3131 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3135 ac_save_LIBS="$LIBS"
3137 cat > conftest.$ac_ext <<EOF
3138 #line 3139 "configure"
3139 #include "confdefs.h"
3145 if { (eval echo configure:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3147 eval "ac_cv_lib_$ac_lib_var=yes"
3149 echo "configure: failed program was:" >&5
3150 cat conftest.$ac_ext >&5
3152 eval "ac_cv_lib_$ac_lib_var=no"
3155 LIBS="$ac_save_LIBS"
3158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3159 echo "$ac_t""yes" 1>&6
3160 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3162 cat >> confdefs.h <<EOF
3163 #define $ac_tr_lib 1
3169 echo "$ac_t""no" 1>&6
3172 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3173 echo "configure:3174: checking for main in -lnsl_s" >&5
3174 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 ac_save_LIBS="$LIBS"
3179 LIBS="-lnsl_s $LIBS"
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3188 if { (eval echo configure:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3190 eval "ac_cv_lib_$ac_lib_var=yes"
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3195 eval "ac_cv_lib_$ac_lib_var=no"
3198 LIBS="$ac_save_LIBS"
3201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3202 echo "$ac_t""yes" 1>&6
3203 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3204 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3205 cat >> confdefs.h <<EOF
3206 #define $ac_tr_lib 1
3209 LIBS="-lnsl_s $LIBS"
3212 echo "$ac_t""no" 1>&6
3215 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3216 echo "configure:3217: checking for main in -lnsl" >&5
3217 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 ac_save_LIBS="$LIBS"
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3231 if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3233 eval "ac_cv_lib_$ac_lib_var=yes"
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3238 eval "ac_cv_lib_$ac_lib_var=no"
3241 LIBS="$ac_save_LIBS"
3244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3245 echo "$ac_t""yes" 1>&6
3246 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3247 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3248 cat >> confdefs.h <<EOF
3249 #define $ac_tr_lib 1
3255 echo "$ac_t""no" 1>&6
3258 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3259 echo "configure:3260: checking for socket in -linet" >&5
3260 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3264 ac_save_LIBS="$LIBS"
3266 cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 /* Override any gcc2 internal prototype to avoid an error. */
3270 /* We use char because int might match the return type of a gcc2
3271 builtin and then its argument prototype would still apply. */
3278 if { (eval echo configure:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3280 eval "ac_cv_lib_$ac_lib_var=yes"
3282 echo "configure: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3285 eval "ac_cv_lib_$ac_lib_var=no"
3288 LIBS="$ac_save_LIBS"
3291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3292 echo "$ac_t""yes" 1>&6
3293 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3294 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3295 cat >> confdefs.h <<EOF
3296 #define $ac_tr_lib 1
3302 echo "$ac_t""no" 1>&6
3305 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3306 echo "configure:3307: checking for main in -lgen" >&5
3307 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 ac_save_LIBS="$LIBS"
3313 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3321 if { (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3323 eval "ac_cv_lib_$ac_lib_var=yes"
3325 echo "configure: failed program was:" >&5
3326 cat conftest.$ac_ext >&5
3328 eval "ac_cv_lib_$ac_lib_var=no"
3331 LIBS="$ac_save_LIBS"
3334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3335 echo "$ac_t""yes" 1>&6
3336 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3337 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3338 cat >> confdefs.h <<EOF
3339 #define $ac_tr_lib 1
3345 echo "$ac_t""no" 1>&6
3352 for ac_func in res_search
3354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3355 echo "configure:3356: checking for $ac_func" >&5
3356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 /* System header to define __stub macros and hopefully few prototypes,
3363 which can conflict with char $ac_func(); below. */
3365 /* Override any gcc2 internal prototype to avoid an error. */
3366 /* We use char because int might match the return type of a gcc2
3367 builtin and then its argument prototype would still apply. */
3372 /* The GNU C library defines this for functions which it implements
3373 to always fail with ENOSYS. Some functions are actually named
3374 something starting with __ and the normal name is an alias. */
3375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3383 if { (eval echo configure:3384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3385 eval "ac_cv_func_$ac_func=yes"
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3390 eval "ac_cv_func_$ac_func=no"
3395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3396 echo "$ac_t""yes" 1>&6
3397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3398 cat >> confdefs.h <<EOF
3399 #define $ac_tr_func 1
3403 echo "$ac_t""no" 1>&6
3407 if test $ac_cv_func_res_search = "no" ; then
3408 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3409 echo "configure:3410: checking for res_search in -lbind" >&5
3410 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 ac_save_LIBS="$LIBS"
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 /* Override any gcc2 internal prototype to avoid an error. */
3420 /* We use char because int might match the return type of a gcc2
3421 builtin and then its argument prototype would still apply. */
3428 if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3430 eval "ac_cv_lib_$ac_lib_var=yes"
3432 echo "configure: failed program was:" >&5
3433 cat conftest.$ac_ext >&5
3435 eval "ac_cv_lib_$ac_lib_var=no"
3438 LIBS="$ac_save_LIBS"
3441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3442 echo "$ac_t""yes" 1>&6
3443 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3444 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3445 cat >> confdefs.h <<EOF
3446 #define $ac_tr_lib 1
3452 echo "$ac_t""no" 1>&6
3455 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3456 cat >> confdefs.h <<\EOF
3457 #define HAVE_RES_SEARCH 1
3461 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3462 echo "configure:3463: checking for res_search in -lresolv" >&5
3463 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3467 ac_save_LIBS="$LIBS"
3468 LIBS="-lresolv $LIBS"
3469 cat > conftest.$ac_ext <<EOF
3470 #line 3471 "configure"
3471 #include "confdefs.h"
3472 /* Override any gcc2 internal prototype to avoid an error. */
3473 /* We use char because int might match the return type of a gcc2
3474 builtin and then its argument prototype would still apply. */
3481 if { (eval echo configure:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3483 eval "ac_cv_lib_$ac_lib_var=yes"
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3488 eval "ac_cv_lib_$ac_lib_var=no"
3491 LIBS="$ac_save_LIBS"
3494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3495 echo "$ac_t""yes" 1>&6
3496 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3497 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3498 cat >> confdefs.h <<EOF
3499 #define $ac_tr_lib 1
3502 LIBS="-lresolv $LIBS"
3505 echo "$ac_t""no" 1>&6
3508 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3509 cat >> confdefs.h <<\EOF
3510 #define HAVE_RES_SEARCH 1
3517 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3518 echo "configure:3519: checking for sigset in -lV3" >&5
3519 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 ac_save_LIBS="$LIBS"
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 /* Override any gcc2 internal prototype to avoid an error. */
3529 /* We use char because int might match the return type of a gcc2
3530 builtin and then its argument prototype would still apply. */
3537 if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3539 eval "ac_cv_lib_$ac_lib_var=yes"
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3544 eval "ac_cv_lib_$ac_lib_var=no"
3547 LIBS="$ac_save_LIBS"
3550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3551 echo "$ac_t""yes" 1>&6
3552 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3553 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3554 cat >> confdefs.h <<EOF
3555 #define $ac_tr_lib 1
3561 echo "$ac_t""no" 1>&6
3565 echo $ac_n "checking for select""... $ac_c" 1>&6
3566 echo "configure:3567: checking for select" >&5
3567 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 /* System header to define __stub macros and hopefully few prototypes,
3574 which can conflict with char select(); below. */
3576 /* Override any gcc2 internal prototype to avoid an error. */
3577 /* We use char because int might match the return type of a gcc2
3578 builtin and then its argument prototype would still apply. */
3583 /* The GNU C library defines this for functions which it implements
3584 to always fail with ENOSYS. Some functions are actually named
3585 something starting with __ and the normal name is an alias. */
3586 #if defined (__stub_select) || defined (__stub___select)
3594 if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3596 eval "ac_cv_func_select=yes"
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3601 eval "ac_cv_func_select=no"
3606 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3610 echo "$ac_t""no" 1>&6
3611 { echo "configure: error: select() required." 1>&2; exit 1; }
3615 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
3616 echo "configure:3617: checking types of arguments for select()" >&5
3617 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3620 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
3627 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3628 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
3629 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 #ifdef HAVE_SYS_TYPES_H
3633 #include <sys/types.h>
3635 #ifdef HAVE_SYS_TIME_H
3636 #include <sys/time.h>
3638 #ifdef HAVE_SYS_SELECT_H
3639 #include <sys/select.h>
3641 #ifdef HAVE_SYS_SOCKET_H
3642 #include <sys/socket.h>
3644 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);
3649 if { (eval echo configure:3650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3651 ac_not_found=no ; break 3
3653 echo "configure: failed program was:" >&5
3654 cat conftest.$ac_ext >&5
3668 if test "$ac_not_found" = yes; then
3669 ac_cv_func_select_arg1=int
3670 ac_cv_func_select_arg234='int *'
3671 ac_cv_func_select_arg5='struct timeval *'
3673 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
3674 cat >> confdefs.h <<EOF
3675 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
3678 cat >> confdefs.h <<EOF
3679 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
3682 cat >> confdefs.h <<EOF
3683 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
3690 if test $ol_enable_ldapd != no ; then
3691 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
3692 echo "configure:3693: checking for main in -lxtpp" >&5
3693 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
3694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 ac_save_LIBS="$LIBS"
3698 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
3699 cat > conftest.$ac_ext <<EOF
3700 #line 3701 "configure"
3701 #include "confdefs.h"
3707 if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3709 eval "ac_cv_lib_$ac_lib_var=yes"
3711 echo "configure: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3714 eval "ac_cv_lib_$ac_lib_var=no"
3717 LIBS="$ac_save_LIBS"
3720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3721 echo "$ac_t""yes" 1>&6
3724 cat >> confdefs.h <<\EOF
3728 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
3731 echo "$ac_t""no" 1>&6
3735 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
3736 echo "configure:3737: checking for main in -ldsap" >&5
3737 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
3738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3741 ac_save_LIBS="$LIBS"
3742 LIBS="-ldsap -lisode $LIBS"
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3751 if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3753 eval "ac_cv_lib_$ac_lib_var=yes"
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3758 eval "ac_cv_lib_$ac_lib_var=no"
3761 LIBS="$ac_save_LIBS"
3764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3765 echo "$ac_t""yes" 1>&6
3768 cat >> confdefs.h <<\EOF
3772 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
3775 echo "$ac_t""no" 1>&6
3779 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
3780 echo "configure:3781: checking for main in -lisode" >&5
3781 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
3782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 ac_save_LIBS="$LIBS"
3786 LIBS="-lisode $LIBS"
3787 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3795 if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3797 eval "ac_cv_lib_$ac_lib_var=yes"
3799 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5
3802 eval "ac_cv_lib_$ac_lib_var=no"
3805 LIBS="$ac_save_LIBS"
3808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3812 cat >> confdefs.h <<\EOF
3813 #define HAVE_ISODE 1
3816 LDAPD_LIBS="$LDAPD_LIBS -lisode"
3819 echo "$ac_t""no" 1>&6
3825 if test $ol_link_isode != no; then
3826 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
3827 echo "configure:3828: checking for main in -lpp" >&5
3828 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
3829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3830 echo $ac_n "(cached) $ac_c" 1>&6
3832 ac_save_LIBS="$LIBS"
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3844 eval "ac_cv_lib_$ac_lib_var=yes"
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3849 eval "ac_cv_lib_$ac_lib_var=no"
3852 LIBS="$ac_save_LIBS"
3855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3856 echo "$ac_t""yes" 1>&6
3858 cat >> confdefs.h <<\EOF
3862 LDAPD_LIBS="-lpp $LDAPD_LIBS"
3865 echo "$ac_t""no" 1>&6
3870 # Extract the first word of "pepsy", so it can be a program name with args.
3871 set dummy pepsy; ac_word=$2
3872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3873 echo "configure:3874: checking for $ac_word" >&5
3874 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3879 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
3882 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
3885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3887 for ac_dir in $ac_dummy; do
3888 test -z "$ac_dir" && ac_dir=.
3889 if test -f $ac_dir/$ac_word; then
3890 ac_cv_path_PEPSY="$ac_dir/$ac_word"
3898 PEPSY="$ac_cv_path_PEPSY"
3899 if test -n "$PEPSY"; then
3900 echo "$ac_t""$PEPSY" 1>&6
3902 echo "$ac_t""no" 1>&6
3909 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
3910 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
3912 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3914 echo "configure:3915: checking for $ac_hdr" >&5
3915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3918 cat > conftest.$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3924 { (eval echo configure:3925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3926 if test -z "$ac_err"; then
3928 eval "ac_cv_header_$ac_safe=yes"
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3934 eval "ac_cv_header_$ac_safe=no"
3938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3939 echo "$ac_t""yes" 1>&6
3940 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3941 cat >> confdefs.h <<EOF
3942 #define $ac_tr_hdr 1
3946 echo "$ac_t""no" 1>&6
3951 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
3952 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
3953 echo "configure:3954: checking for main in -lkrb4" >&5
3954 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
3955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3958 ac_save_LIBS="$LIBS"
3959 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
3960 cat > conftest.$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3970 eval "ac_cv_lib_$ac_lib_var=yes"
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3975 eval "ac_cv_lib_$ac_lib_var=no"
3978 LIBS="$ac_save_LIBS"
3981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3982 echo "$ac_t""yes" 1>&6
3985 echo "$ac_t""no" 1>&6
3990 if test $have_k5 = yes ; then
3991 ol_with_kerberos=found
3992 ol_link_kerberos=yes
3994 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
3996 LIBS="$KRB_LIBS $LIBS"
3998 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
3999 echo "configure:4000: checking for des_debug in Kerberos libraries" >&5
4000 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4005 LIBS="$KRB_LIBS $LIBS"
4006 cat > conftest.$ac_ext <<EOF
4007 #line 4008 "configure"
4008 #include "confdefs.h"
4010 #include <kerberosIV/krb.h>
4011 #include <kerberosIV/des.h>
4012 extern int des_debug;
4020 if { (eval echo configure:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4022 ol_cv_var_des_debug=yes
4024 echo "configure: failed program was:" >&5
4025 cat conftest.$ac_ext >&5
4027 ol_cv_var_des_debug=no
4034 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4036 if test $ol_cv_var_des_debug = yes ; then
4037 cat >> confdefs.h <<\EOF
4038 #define HAVE_DES_DEBUG 1
4048 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4049 for ac_hdr in krb.h des.h
4051 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4052 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4053 echo "configure:4054: checking for $ac_hdr" >&5
4054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4055 echo $ac_n "(cached) $ac_c" 1>&6
4057 cat > conftest.$ac_ext <<EOF
4058 #line 4059 "configure"
4059 #include "confdefs.h"
4062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4063 { (eval echo configure:4064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4065 if test -z "$ac_err"; then
4067 eval "ac_cv_header_$ac_safe=yes"
4070 echo "configure: failed program was:" >&5
4071 cat conftest.$ac_ext >&5
4073 eval "ac_cv_header_$ac_safe=no"
4077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4078 echo "$ac_t""yes" 1>&6
4079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4080 cat >> confdefs.h <<EOF
4081 #define $ac_tr_hdr 1
4085 echo "$ac_t""no" 1>&6
4090 if test $ac_cv_header_krb_h = yes ; then
4091 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4092 echo "configure:4093: checking for main in -lkrb" >&5
4093 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4097 ac_save_LIBS="$LIBS"
4098 LIBS="-lkrb -ldes $LIBS"
4099 cat > conftest.$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4107 if { (eval echo configure:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4109 eval "ac_cv_lib_$ac_lib_var=yes"
4111 echo "configure: failed program was:" >&5
4112 cat conftest.$ac_ext >&5
4114 eval "ac_cv_lib_$ac_lib_var=no"
4117 LIBS="$ac_save_LIBS"
4120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4121 echo "$ac_t""yes" 1>&6
4124 echo "$ac_t""no" 1>&6
4129 if test $have_k4 = yes ; then
4130 ol_with_kerberos=found
4131 ol_link_kerberos=yes
4133 KRB_LIBS="-lkrb -ldes"
4138 if test $ol_link_kerberos = yes ; then
4139 cat >> confdefs.h <<\EOF
4140 #define HAVE_KERBEROS 1
4146 if test $ol_with_tls != no ; then
4150 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4151 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4152 echo "configure:4153: checking for $ac_hdr" >&5
4153 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4154 echo $ac_n "(cached) $ac_c" 1>&6
4156 cat > conftest.$ac_ext <<EOF
4157 #line 4158 "configure"
4158 #include "confdefs.h"
4161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4162 { (eval echo configure:4163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4164 if test -z "$ac_err"; then
4166 eval "ac_cv_header_$ac_safe=yes"
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4172 eval "ac_cv_header_$ac_safe=no"
4176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4177 echo "$ac_t""yes" 1>&6
4178 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4179 cat >> confdefs.h <<EOF
4180 #define $ac_tr_hdr 1
4184 echo "$ac_t""no" 1>&6
4189 if test $ac_cv_header_ssl_h = yes ; then
4190 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4191 echo "configure:4192: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4192 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4196 ac_save_LIBS="$LIBS"
4197 LIBS="-lssl -lcrypto $LIBS"
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4201 /* Override any gcc2 internal prototype to avoid an error. */
4202 /* We use char because int might match the return type of a gcc2
4203 builtin and then its argument prototype would still apply. */
4204 char SSLeay_add_ssl_algorithms();
4207 SSLeay_add_ssl_algorithms()
4210 if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4212 eval "ac_cv_lib_$ac_lib_var=yes"
4214 echo "configure: failed program was:" >&5
4215 cat conftest.$ac_ext >&5
4217 eval "ac_cv_lib_$ac_lib_var=no"
4220 LIBS="$ac_save_LIBS"
4223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4224 echo "$ac_t""yes" 1>&6
4228 echo "$ac_t""no" 1>&6
4233 if test $have_ssleay = no ; then
4234 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4235 echo "configure:4236: checking for ssl3_accept in -lssl" >&5
4236 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 ac_save_LIBS="$LIBS"
4241 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 /* Override any gcc2 internal prototype to avoid an error. */
4246 /* We use char because int might match the return type of a gcc2
4247 builtin and then its argument prototype would still apply. */
4254 if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4256 eval "ac_cv_lib_$ac_lib_var=yes"
4258 echo "configure: failed program was:" >&5
4259 cat conftest.$ac_ext >&5
4261 eval "ac_cv_lib_$ac_lib_var=no"
4264 LIBS="$ac_save_LIBS"
4267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4268 echo "$ac_t""yes" 1>&6
4272 echo "$ac_t""no" 1>&6
4278 if test $have_ssleay = yes ; then
4282 cat >> confdefs.h <<\EOF
4283 #define HAVE_SSLEAY 1
4287 if test $need_rsaref = yes; then
4288 cat >> confdefs.h <<\EOF
4289 #define HAVE_RSAREF 1
4293 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4295 TLS_LIBS="-lssl -lcrypto"
4301 if test $ol_link_tls = yes ; then
4302 cat >> confdefs.h <<\EOF
4310 gethostbyname_r gethostbyaddr_r \
4313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4314 echo "configure:4315: checking for $ac_func" >&5
4315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4318 cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 /* System header to define __stub macros and hopefully few prototypes,
4322 which can conflict with char $ac_func(); below. */
4324 /* Override any gcc2 internal prototype to avoid an error. */
4325 /* We use char because int might match the return type of a gcc2
4326 builtin and then its argument prototype would still apply. */
4331 /* The GNU C library defines this for functions which it implements
4332 to always fail with ENOSYS. Some functions are actually named
4333 something starting with __ and the normal name is an alias. */
4334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4342 if { (eval echo configure:4343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4344 eval "ac_cv_func_$ac_func=yes"
4346 echo "configure: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4349 eval "ac_cv_func_$ac_func=no"
4354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4355 echo "$ac_t""yes" 1>&6
4356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4357 cat >> confdefs.h <<EOF
4358 #define $ac_tr_func 1
4362 echo "$ac_t""no" 1>&6
4367 if test "$ac_cv_func_ctime_r" = no ; then
4368 ol_cv_func_ctime_r_nargs=0
4370 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
4371 echo "configure:4372: checking number of arguments of ctime_r" >&5
4372 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4375 cat > conftest.$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4380 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
4383 if { (eval echo configure:4384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4385 ol_cv_func_ctime_r_nargs=3
4387 echo "configure: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4395 time_t ti; char *buffer; ctime_r(&ti,buffer);
4398 if { (eval echo configure:4399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4400 ol_cv_func_ctime_r_nargs=2
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4405 ol_cv_func_ctime_r_nargs=0
4412 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
4413 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
4414 cat >> confdefs.h <<EOF
4415 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
4422 if test "$ac_cv_func_gethostbyname_r" = yes ; then
4423 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
4424 echo "configure:4425: checking number of arguments of gethostbyname_r" >&5
4425 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4431 #include <sys/types.h>
4432 #include <sys/socket.h>
4433 #include <netinet/in.h>
4435 #define BUFSIZE (sizeof(struct hostent)+10)
4437 struct hostent hent; char buffer[BUFSIZE];
4438 int bufsize=BUFSIZE;int h_errno;
4439 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
4440 buffer, bufsize, &h_errno);
4443 if { (eval echo configure:4444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4445 ol_cv_func_gethostbyname_r_nargs=5
4447 echo "configure: failed program was:" >&5
4448 cat conftest.$ac_ext >&5
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453 #include <sys/types.h>
4454 #include <sys/socket.h>
4455 #include <netinet/in.h>
4457 #define BUFSIZE (sizeof(struct hostent)+10)
4459 struct hostent hent;struct hostent *rhent;
4460 char buffer[BUFSIZE];
4461 int bufsize=BUFSIZE;int h_errno;
4462 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
4466 if { (eval echo configure:4467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4468 ol_cv_func_gethostbyname_r_nargs=6
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4473 ol_cv_func_gethostbyname_r_nargs=0
4480 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
4481 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
4482 cat >> confdefs.h <<EOF
4483 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
4489 ol_cv_func_gethostbyname_r_nargs=0
4492 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
4493 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
4494 echo "configure:4495: checking number of arguments of gethostbyaddr_r" >&5
4495 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4501 #include <sys/types.h>
4502 #include <sys/socket.h>
4503 #include <netinet/in.h>
4505 #define BUFSIZE (sizeof(struct hostent)+10)
4507 struct hostent hent; char buffer[BUFSIZE];
4509 size_t alen=sizeof(struct in_addr);
4510 int bufsize=BUFSIZE;int h_errno;
4511 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4512 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
4515 if { (eval echo configure:4516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4517 ol_cv_func_gethostbyaddr_r_nargs=7
4519 echo "configure: failed program was:" >&5
4520 cat conftest.$ac_ext >&5
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4525 #include <sys/types.h>
4526 #include <sys/socket.h>
4527 #include <netinet/in.h>
4529 #define BUFSIZE (sizeof(struct hostent)+10)
4531 struct hostent hent;
4532 struct hostent *rhent; char buffer[BUFSIZE];
4534 size_t alen=sizeof(struct in_addr);
4535 int bufsize=BUFSIZE;int h_errno;
4536 (void)gethostbyaddr_r( (void *)&(add.s_addr),
4537 alen, AF_INET, &hent, buffer, bufsize,
4541 if { (eval echo configure:4542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4543 ol_cv_func_gethostbyaddr_r_nargs=8
4545 echo "configure: failed program was:" >&5
4546 cat conftest.$ac_ext >&5
4548 ol_cv_func_gethostbyaddr_r_nargs=0
4555 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
4556 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
4557 cat >> confdefs.h <<EOF
4558 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
4564 ol_cv_func_gethostbyaddr_r_nargs=0
4567 if test "$ac_cv_func_ctime_r" = yes \
4568 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
4569 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
4570 -a "$ac_cv_func_gethostbyname_r" = yes \
4571 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
4572 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
4573 -a "$ac_cv_func_gethostbyaddr_r" = yes \
4574 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
4575 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
4578 cat >> confdefs.h <<\EOF
4579 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
4585 if test $ol_with_threads = auto -o $ol_with_threads = yes \
4586 -o $ol_with_threads = posix ; then
4588 for ac_hdr in pthread.h sched.h
4590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4592 echo "configure:4593: checking for $ac_hdr" >&5
4593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4596 cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4602 { (eval echo configure:4603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4604 if test -z "$ac_err"; then
4606 eval "ac_cv_header_$ac_safe=yes"
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4612 eval "ac_cv_header_$ac_safe=no"
4616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4617 echo "$ac_t""yes" 1>&6
4618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4619 cat >> confdefs.h <<EOF
4620 #define $ac_tr_hdr 1
4624 echo "$ac_t""no" 1>&6
4629 if test $ac_cv_header_pthread_h = yes ; then
4630 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
4631 echo "configure:4632: checking POSIX thread version" >&5
4632 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
4633 echo $ac_n "(cached) $ac_c" 1>&6
4636 cat > conftest.$ac_ext <<EOF
4637 #line 4638 "configure"
4638 #include "confdefs.h"
4640 # include <pthread.h>
4641 /* this check could be improved */
4642 # ifdef PTHREAD_ONCE_INIT
4643 pthread_version_final
4647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4648 egrep "pthread_version_final" >/dev/null 2>&1; then
4650 ol_pthread_final=yes
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4662 # include <pthread.h>
4663 /* this check could be improved */
4664 # ifdef pthread_once_init
4665 pthread_version_draft4
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 egrep "pthread_version_draft4" >/dev/null 2>&1; then
4672 ol_pthread_draft4=yes
4675 ol_pthread_draft4=no
4680 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
4681 ol_cv_pthread_version=final
4682 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
4683 ol_cv_pthread_version=draft4
4685 ol_cv_pthread_version=unknown
4690 echo "$ac_t""$ol_cv_pthread_version" 1>&6
4693 if test $ol_cv_pthread_version = final ; then
4694 cat >> confdefs.h <<\EOF
4695 #define HAVE_PTHREADS_FINAL 1
4698 elif test $ol_cv_pthread_version = draft4 ; then
4699 cat >> confdefs.h <<\EOF
4700 #define HAVE_PTHREADS_D4 1
4704 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
4707 # consider threads found
4708 ol_with_threads=found
4711 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
4712 echo "configure:4713: checking for LinuxThreads pthread.h" >&5
4713 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 cat > conftest.$ac_ext <<EOF
4717 #line 4718 "configure"
4718 #include "confdefs.h"
4719 #include <pthread.h>
4721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4722 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
4724 ol_cv_header_linux_threads=yes
4727 ol_cv_header_linux_threads=no
4734 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
4735 if test $ol_cv_header_linux_threads = yes; then
4736 cat >> confdefs.h <<\EOF
4737 #define HAVE_LINUX_THREADS 1
4744 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
4745 echo "configure:4746: checking for pthread_create in default libraries" >&5
4746 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
4747 echo $ac_n "(cached) $ac_c" 1>&6
4750 if test "$cross_compiling" = yes; then
4751 ol_cv_pthread_create=yes
4753 cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4757 #include <pthread.h>
4759 #define NULL (void*)0
4762 static void *task(p)
4765 return (void *) (p == NULL);
4768 int main(argc, argv)
4775 /* make sure pthread_create() isn't just a stub */
4776 #if HAVE_PTHREADS_D4
4777 status = pthread_create(&t, pthread_attr_default, task, NULL);
4779 status = pthread_create(&t, NULL, task, NULL);
4782 if( status ) return status;
4784 /* make sure pthread_detach() isn't just a stub */
4785 #if HAVE_PTHREADS_D4
4786 status = pthread_detach( &t );
4788 status = pthread_detach( t );
4791 if( status ) return status;
4797 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4799 ol_cv_pthread_create=yes
4801 echo "configure: failed program was:" >&5
4802 cat conftest.$ac_ext >&5
4804 ol_cv_pthread_create=no
4811 echo "$ac_t""$ol_cv_pthread_create" 1>&6
4813 if test $ol_cv_pthread_create != no ; then
4814 ol_link_threads=posix
4818 # Pthread try link: -mt (ol_cv_pthread_mt)
4819 if test "$ol_link_threads" = no ; then
4821 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
4822 echo "configure:4823: checking for pthread link with -mt" >&5
4823 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4831 cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4835 #include <pthread.h>
4837 #define NULL (void*)0
4844 #if HAVE_PTHREADS_D4
4845 pthread_create(&t, pthread_attr_default, NULL, NULL);
4846 pthread_detach( &t );
4848 pthread_create(&t, NULL, NULL, NULL);
4849 pthread_detach( t );
4851 #ifdef HAVE_LINUX_THREADS
4852 pthread_kill_other_threads_np();
4857 if { (eval echo configure:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4859 ol_cv_pthread_mt=yes
4861 echo "configure: failed program was:" >&5
4862 cat conftest.$ac_ext >&5
4873 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
4875 if test $ol_cv_pthread_mt = yes ; then
4876 ol_link_pthreads="-mt"
4877 ol_link_threads=posix
4881 # Pthread try link: -kthread (ol_cv_pthread_kthread)
4882 if test "$ol_link_threads" = no ; then
4884 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
4885 echo "configure:4886: checking for pthread link with -kthread" >&5
4886 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4892 LIBS="-kthread $LIBS"
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4898 #include <pthread.h>
4900 #define NULL (void*)0
4907 #if HAVE_PTHREADS_D4
4908 pthread_create(&t, pthread_attr_default, NULL, NULL);
4909 pthread_detach( &t );
4911 pthread_create(&t, NULL, NULL, NULL);
4912 pthread_detach( t );
4914 #ifdef HAVE_LINUX_THREADS
4915 pthread_kill_other_threads_np();
4920 if { (eval echo configure:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4922 ol_cv_pthread_kthread=yes
4924 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4927 ol_cv_pthread_kthread=no
4936 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
4938 if test $ol_cv_pthread_kthread = yes ; then
4939 ol_link_pthreads="-kthread"
4940 ol_link_threads=posix
4944 # Pthread try link: -pthread (ol_cv_pthread_pthread)
4945 if test "$ol_link_threads" = no ; then
4947 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
4948 echo "configure:4949: checking for pthread link with -pthread" >&5
4949 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
4950 echo $ac_n "(cached) $ac_c" 1>&6
4955 LIBS="-pthread $LIBS"
4957 cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4961 #include <pthread.h>
4963 #define NULL (void*)0
4970 #if HAVE_PTHREADS_D4
4971 pthread_create(&t, pthread_attr_default, NULL, NULL);
4972 pthread_detach( &t );
4974 pthread_create(&t, NULL, NULL, NULL);
4975 pthread_detach( t );
4977 #ifdef HAVE_LINUX_THREADS
4978 pthread_kill_other_threads_np();
4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4985 ol_cv_pthread_pthread=yes
4987 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4990 ol_cv_pthread_pthread=no
4999 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5001 if test $ol_cv_pthread_pthread = yes ; then
5002 ol_link_pthreads="-pthread"
5003 ol_link_threads=posix
5007 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5008 if test "$ol_link_threads" = no ; then
5010 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5011 echo "configure:5012: checking for pthread link with -pthreads" >&5
5012 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5018 LIBS="-pthreads $LIBS"
5020 cat > conftest.$ac_ext <<EOF
5021 #line 5022 "configure"
5022 #include "confdefs.h"
5024 #include <pthread.h>
5026 #define NULL (void*)0
5033 #if HAVE_PTHREADS_D4
5034 pthread_create(&t, pthread_attr_default, NULL, NULL);
5035 pthread_detach( &t );
5037 pthread_create(&t, NULL, NULL, NULL);
5038 pthread_detach( t );
5040 #ifdef HAVE_LINUX_THREADS
5041 pthread_kill_other_threads_np();
5046 if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5048 ol_cv_pthread_pthreads=yes
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5053 ol_cv_pthread_pthreads=no
5062 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5064 if test $ol_cv_pthread_pthreads = yes ; then
5065 ol_link_pthreads="-pthreads"
5066 ol_link_threads=posix
5070 # Pthread try link: -thread (ol_cv_pthread_thread)
5071 if test "$ol_link_threads" = no ; then
5073 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5074 echo "configure:5075: checking for pthread link with -thread" >&5
5075 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5076 echo $ac_n "(cached) $ac_c" 1>&6
5081 LIBS="-thread $LIBS"
5083 cat > conftest.$ac_ext <<EOF
5084 #line 5085 "configure"
5085 #include "confdefs.h"
5087 #include <pthread.h>
5089 #define NULL (void*)0
5096 #if HAVE_PTHREADS_D4
5097 pthread_create(&t, pthread_attr_default, NULL, NULL);
5098 pthread_detach( &t );
5100 pthread_create(&t, NULL, NULL, NULL);
5101 pthread_detach( t );
5103 #ifdef HAVE_LINUX_THREADS
5104 pthread_kill_other_threads_np();
5109 if { (eval echo configure:5110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5111 ol_cv_pthread_thread=yes
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5116 ol_cv_pthread_thread=no
5125 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5127 if test $ol_cv_pthread_thread = yes ; then
5128 ol_link_pthreads="-thread"
5129 ol_link_threads=posix
5134 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5135 if test "$ol_link_threads" = no ; then
5136 # try -lpthread -lmach -lexc -lc_r
5137 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5138 echo "configure:5139: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5139 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5140 echo $ac_n "(cached) $ac_c" 1>&6
5145 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5151 #include <pthread.h>
5153 #define NULL (void*)0
5160 #if HAVE_PTHREADS_D4
5161 pthread_create(&t, pthread_attr_default, NULL, NULL);
5162 pthread_detach( &t );
5164 pthread_create(&t, NULL, NULL, NULL);
5165 pthread_detach( t );
5167 #ifdef HAVE_LINUX_THREADS
5168 pthread_kill_other_threads_np();
5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5175 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5177 echo "configure: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5180 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5189 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5191 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5192 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5193 ol_link_threads=posix
5197 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5198 if test "$ol_link_threads" = no ; then
5199 # try -lpthread -lmach -lexc
5200 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5201 echo "configure:5202: checking for pthread link with -lpthread -lmach -lexc" >&5
5202 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5208 LIBS="-lpthread -lmach -lexc $LIBS"
5210 cat > conftest.$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5214 #include <pthread.h>
5216 #define NULL (void*)0
5223 #if HAVE_PTHREADS_D4
5224 pthread_create(&t, pthread_attr_default, NULL, NULL);
5225 pthread_detach( &t );
5227 pthread_create(&t, NULL, NULL, NULL);
5228 pthread_detach( t );
5230 #ifdef HAVE_LINUX_THREADS
5231 pthread_kill_other_threads_np();
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5238 ol_cv_pthread_lpthread_lmach_lexc=yes
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5243 ol_cv_pthread_lpthread_lmach_lexc=no
5252 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5254 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5255 ol_link_pthreads="-lpthread -lmach -lexc"
5256 ol_link_threads=posix
5261 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5262 if test "$ol_link_threads" = no ; then
5263 # try -lpthread -Wl,-woff,85
5264 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5265 echo "configure:5266: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5266 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5272 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5274 cat > conftest.$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5278 #include <pthread.h>
5280 #define NULL (void*)0
5287 #if HAVE_PTHREADS_D4
5288 pthread_create(&t, pthread_attr_default, NULL, NULL);
5289 pthread_detach( &t );
5291 pthread_create(&t, NULL, NULL, NULL);
5292 pthread_detach( t );
5294 #ifdef HAVE_LINUX_THREADS
5295 pthread_kill_other_threads_np();
5300 if { (eval echo configure:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5302 ol_cv_pthread_lib_lpthread_woff=yes
5304 echo "configure: failed program was:" >&5
5305 cat conftest.$ac_ext >&5
5307 ol_cv_pthread_lib_lpthread_woff=no
5316 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5318 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5319 ol_link_pthreads="-lpthread -Wl,-woff,85"
5320 ol_link_threads=posix
5325 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5326 if test "$ol_link_threads" = no ; then
5328 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5329 echo "configure:5330: checking for pthread link with -lpthread" >&5
5330 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5336 LIBS="-lpthread $LIBS"
5338 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5342 #include <pthread.h>
5344 #define NULL (void*)0
5351 #if HAVE_PTHREADS_D4
5352 pthread_create(&t, pthread_attr_default, NULL, NULL);
5353 pthread_detach( &t );
5355 pthread_create(&t, NULL, NULL, NULL);
5356 pthread_detach( t );
5358 #ifdef HAVE_LINUX_THREADS
5359 pthread_kill_other_threads_np();
5364 if { (eval echo configure:5365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5366 ol_cv_pthread_lpthread=yes
5368 echo "configure: failed program was:" >&5
5369 cat conftest.$ac_ext >&5
5371 ol_cv_pthread_lpthread=no
5380 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
5382 if test $ol_cv_pthread_lpthread = yes ; then
5383 ol_link_pthreads="-lpthread"
5384 ol_link_threads=posix
5388 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
5389 if test "$ol_link_threads" = no ; then
5391 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
5392 echo "configure:5393: checking for pthread link with -lc_r" >&5
5393 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5401 cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5405 #include <pthread.h>
5407 #define NULL (void*)0
5414 #if HAVE_PTHREADS_D4
5415 pthread_create(&t, pthread_attr_default, NULL, NULL);
5416 pthread_detach( &t );
5418 pthread_create(&t, NULL, NULL, NULL);
5419 pthread_detach( t );
5421 #ifdef HAVE_LINUX_THREADS
5422 pthread_kill_other_threads_np();
5427 if { (eval echo configure:5428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5429 ol_cv_pthread_lc_r=yes
5431 echo "configure: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5434 ol_cv_pthread_lc_r=no
5443 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
5445 if test $ol_cv_pthread_lc_r = yes ; then
5446 ol_link_pthreads="-lc_r"
5447 ol_link_threads=posix
5452 # Pthread try link: -threads (ol_cv_pthread_threads)
5453 if test "$ol_link_threads" = no ; then
5455 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
5456 echo "configure:5457: checking for pthread link with -threads" >&5
5457 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
5458 echo $ac_n "(cached) $ac_c" 1>&6
5463 LIBS="-threads $LIBS"
5465 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5469 #include <pthread.h>
5471 #define NULL (void*)0
5478 #if HAVE_PTHREADS_D4
5479 pthread_create(&t, pthread_attr_default, NULL, NULL);
5480 pthread_detach( &t );
5482 pthread_create(&t, NULL, NULL, NULL);
5483 pthread_detach( t );
5485 #ifdef HAVE_LINUX_THREADS
5486 pthread_kill_other_threads_np();
5491 if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5493 ol_cv_pthread_threads=yes
5495 echo "configure: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5498 ol_cv_pthread_threads=no
5507 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
5509 if test $ol_cv_pthread_threads = yes ; then
5510 ol_link_pthreads="-threads"
5511 ol_link_threads=posix
5516 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
5517 if test "$ol_link_threads" = no ; then
5518 # try -lpthreads -lmach -lexc -lc_r
5519 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
5520 echo "configure:5521: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
5521 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5527 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
5529 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5533 #include <pthread.h>
5535 #define NULL (void*)0
5542 #if HAVE_PTHREADS_D4
5543 pthread_create(&t, pthread_attr_default, NULL, NULL);
5544 pthread_detach( &t );
5546 pthread_create(&t, NULL, NULL, NULL);
5547 pthread_detach( t );
5549 #ifdef HAVE_LINUX_THREADS
5550 pthread_kill_other_threads_np();
5555 if { (eval echo configure:5556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5557 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
5559 echo "configure: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5562 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
5571 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
5573 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
5574 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
5575 ol_link_threads=posix
5579 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
5580 if test "$ol_link_threads" = no ; then
5581 # try -lpthreads -lmach -lexc
5582 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
5583 echo "configure:5584: checking for pthread link with -lpthreads -lmach -lexc" >&5
5584 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
5585 echo $ac_n "(cached) $ac_c" 1>&6
5590 LIBS="-lpthreads -lmach -lexc $LIBS"
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5596 #include <pthread.h>
5598 #define NULL (void*)0
5605 #if HAVE_PTHREADS_D4
5606 pthread_create(&t, pthread_attr_default, NULL, NULL);
5607 pthread_detach( &t );
5609 pthread_create(&t, NULL, NULL, NULL);
5610 pthread_detach( t );
5612 #ifdef HAVE_LINUX_THREADS
5613 pthread_kill_other_threads_np();
5618 if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5620 ol_cv_pthread_lpthreads_lmach_lexc=yes
5622 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5625 ol_cv_pthread_lpthreads_lmach_lexc=no
5634 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
5636 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
5637 ol_link_pthreads="-lpthreads -lmach -lexc"
5638 ol_link_threads=posix
5642 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
5643 if test "$ol_link_threads" = no ; then
5644 # try -lpthreads -lexc
5645 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
5646 echo "configure:5647: checking for pthread link with -lpthreads -lexc" >&5
5647 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5653 LIBS="-lpthreads -lexc $LIBS"
5655 cat > conftest.$ac_ext <<EOF
5656 #line 5657 "configure"
5657 #include "confdefs.h"
5659 #include <pthread.h>
5661 #define NULL (void*)0
5668 #if HAVE_PTHREADS_D4
5669 pthread_create(&t, pthread_attr_default, NULL, NULL);
5670 pthread_detach( &t );
5672 pthread_create(&t, NULL, NULL, NULL);
5673 pthread_detach( t );
5675 #ifdef HAVE_LINUX_THREADS
5676 pthread_kill_other_threads_np();
5681 if { (eval echo configure:5682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5683 ol_cv_pthread_lpthreads_lexc=yes
5685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5688 ol_cv_pthread_lpthreads_lexc=no
5697 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
5699 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
5700 ol_link_pthreads="-lpthreads -lexc"
5701 ol_link_threads=posix
5706 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
5707 if test "$ol_link_threads" = no ; then
5709 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
5710 echo "configure:5711: checking for pthread link with -lpthreads" >&5
5711 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5717 LIBS="-lpthreads $LIBS"
5719 cat > conftest.$ac_ext <<EOF
5720 #line 5721 "configure"
5721 #include "confdefs.h"
5723 #include <pthread.h>
5725 #define NULL (void*)0
5732 #if HAVE_PTHREADS_D4
5733 pthread_create(&t, pthread_attr_default, NULL, NULL);
5734 pthread_detach( &t );
5736 pthread_create(&t, NULL, NULL, NULL);
5737 pthread_detach( t );
5739 #ifdef HAVE_LINUX_THREADS
5740 pthread_kill_other_threads_np();
5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5747 ol_cv_pthread_lib_lpthreads=yes
5749 echo "configure: failed program was:" >&5
5750 cat conftest.$ac_ext >&5
5752 ol_cv_pthread_lib_lpthreads=no
5761 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
5763 if test $ol_cv_pthread_lib_lpthreads = yes ; then
5764 ol_link_pthreads="-lpthreads"
5765 ol_link_threads=posix
5770 if test $ol_link_threads != no ; then
5771 cat >> confdefs.h <<\EOF
5772 #define HAVE_PTHREADS 1
5776 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
5778 save_CPPFLAGS="$CPPFLAGS"
5780 LIBS="$LTHREAD_LIBS $LIBS"
5782 for ac_func in sched_yield pthread_yield
5784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5785 echo "configure:5786: checking for $ac_func" >&5
5786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5787 echo $ac_n "(cached) $ac_c" 1>&6
5789 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5792 /* System header to define __stub macros and hopefully few prototypes,
5793 which can conflict with char $ac_func(); below. */
5795 /* Override any gcc2 internal prototype to avoid an error. */
5796 /* We use char because int might match the return type of a gcc2
5797 builtin and then its argument prototype would still apply. */
5802 /* The GNU C library defines this for functions which it implements
5803 to always fail with ENOSYS. Some functions are actually named
5804 something starting with __ and the normal name is an alias. */
5805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5813 if { (eval echo configure:5814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5815 eval "ac_cv_func_$ac_func=yes"
5817 echo "configure: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5820 eval "ac_cv_func_$ac_func=no"
5825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5826 echo "$ac_t""yes" 1>&6
5827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5828 cat >> confdefs.h <<EOF
5829 #define $ac_tr_func 1
5833 echo "$ac_t""no" 1>&6
5838 if test $ac_cv_func_sched_yield = no -a \
5839 $ac_cv_func_pthread_yield = no ; then
5840 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
5841 echo "configure:5842: checking for sched_yield in -lrt" >&5
5842 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
5843 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5844 echo $ac_n "(cached) $ac_c" 1>&6
5846 ac_save_LIBS="$LIBS"
5848 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure"
5850 #include "confdefs.h"
5851 /* Override any gcc2 internal prototype to avoid an error. */
5852 /* We use char because int might match the return type of a gcc2
5853 builtin and then its argument prototype would still apply. */
5860 if { (eval echo configure:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5862 eval "ac_cv_lib_$ac_lib_var=yes"
5864 echo "configure: failed program was:" >&5
5865 cat conftest.$ac_ext >&5
5867 eval "ac_cv_lib_$ac_lib_var=no"
5870 LIBS="$ac_save_LIBS"
5873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5874 echo "$ac_t""yes" 1>&6
5875 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
5876 cat >> confdefs.h <<\EOF
5877 #define HAVE_SCHED_YIELD 1
5880 ac_cv_func_sched_yield=yes
5882 echo "$ac_t""no" 1>&6
5883 ac_cv_func_sched_yield=no
5887 if test $ac_cv_func_sched_yield = no -a \
5888 $ac_cv_func_pthread_yield = no ; then
5889 for ac_func in thr_yield
5891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5892 echo "configure:5893: checking for $ac_func" >&5
5893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 /* System header to define __stub macros and hopefully few prototypes,
5900 which can conflict with char $ac_func(); below. */
5902 /* Override any gcc2 internal prototype to avoid an error. */
5903 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */
5909 /* The GNU C library defines this for functions which it implements
5910 to always fail with ENOSYS. Some functions are actually named
5911 something starting with __ and the normal name is an alias. */
5912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5920 if { (eval echo configure:5921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5922 eval "ac_cv_func_$ac_func=yes"
5924 echo "configure: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5927 eval "ac_cv_func_$ac_func=no"
5932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5933 echo "$ac_t""yes" 1>&6
5934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5935 cat >> confdefs.h <<EOF
5936 #define $ac_tr_func 1
5940 echo "$ac_t""no" 1>&6
5945 if test $ac_cv_func_sched_yield = no -a \
5946 $ac_cv_func_pthread_yield = no -a \
5947 "$ac_cv_func_thr_yield" = no ; then
5948 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
5951 for ac_func in pthread_kill
5953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5954 echo "configure:5955: checking for $ac_func" >&5
5955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5956 echo $ac_n "(cached) $ac_c" 1>&6
5958 cat > conftest.$ac_ext <<EOF
5959 #line 5960 "configure"
5960 #include "confdefs.h"
5961 /* System header to define __stub macros and hopefully few prototypes,
5962 which can conflict with char $ac_func(); below. */
5964 /* Override any gcc2 internal prototype to avoid an error. */
5965 /* We use char because int might match the return type of a gcc2
5966 builtin and then its argument prototype would still apply. */
5971 /* The GNU C library defines this for functions which it implements
5972 to always fail with ENOSYS. Some functions are actually named
5973 something starting with __ and the normal name is an alias. */
5974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5982 if { (eval echo configure:5983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5984 eval "ac_cv_func_$ac_func=yes"
5986 echo "configure: failed program was:" >&5
5987 cat conftest.$ac_ext >&5
5989 eval "ac_cv_func_$ac_func=no"
5994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5995 echo "$ac_t""yes" 1>&6
5996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5997 cat >> confdefs.h <<EOF
5998 #define $ac_tr_func 1
6002 echo "$ac_t""no" 1>&6
6007 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6008 echo "configure:6009: checking for pthread_detach with <pthread.h>" >&5
6009 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6010 echo $ac_n "(cached) $ac_c" 1>&6
6013 cat > conftest.$ac_ext <<EOF
6014 #line 6015 "configure"
6015 #include "confdefs.h"
6017 #include <pthread.h>
6019 #define NULL (void*)0
6023 pthread_detach(NULL);
6026 if { (eval echo configure:6027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6028 ol_cv_func_pthread_detach=yes
6030 echo "configure: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6033 ol_cv_func_pthread_detach=no
6039 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6041 if test $ol_cv_func_pthread_detach = no ; then
6042 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6045 cat >> confdefs.h <<\EOF
6046 #define HAVE_PTHREAD_DETACH 1
6051 pthread_setconcurrency \
6052 pthread_getconcurrency \
6053 thr_setconcurrency \
6054 thr_getconcurrency \
6057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6058 echo "configure:6059: checking for $ac_func" >&5
6059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6060 echo $ac_n "(cached) $ac_c" 1>&6
6062 cat > conftest.$ac_ext <<EOF
6063 #line 6064 "configure"
6064 #include "confdefs.h"
6065 /* System header to define __stub macros and hopefully few prototypes,
6066 which can conflict with char $ac_func(); below. */
6068 /* Override any gcc2 internal prototype to avoid an error. */
6069 /* We use char because int might match the return type of a gcc2
6070 builtin and then its argument prototype would still apply. */
6075 /* The GNU C library defines this for functions which it implements
6076 to always fail with ENOSYS. Some functions are actually named
6077 something starting with __ and the normal name is an alias. */
6078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6086 if { (eval echo configure:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6088 eval "ac_cv_func_$ac_func=yes"
6090 echo "configure: failed program was:" >&5
6091 cat conftest.$ac_ext >&5
6093 eval "ac_cv_func_$ac_func=no"
6098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6099 echo "$ac_t""yes" 1>&6
6100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6101 cat >> confdefs.h <<EOF
6102 #define $ac_tr_func 1
6106 echo "$ac_t""no" 1>&6
6112 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6113 echo "configure:6114: checking for pthread_kill_other_threads_np" >&5
6114 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6115 echo $ac_n "(cached) $ac_c" 1>&6
6117 cat > conftest.$ac_ext <<EOF
6118 #line 6119 "configure"
6119 #include "confdefs.h"
6120 /* System header to define __stub macros and hopefully few prototypes,
6121 which can conflict with char pthread_kill_other_threads_np(); below. */
6123 /* Override any gcc2 internal prototype to avoid an error. */
6124 /* We use char because int might match the return type of a gcc2
6125 builtin and then its argument prototype would still apply. */
6126 char pthread_kill_other_threads_np();
6130 /* The GNU C library defines this for functions which it implements
6131 to always fail with ENOSYS. Some functions are actually named
6132 something starting with __ and the normal name is an alias. */
6133 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6136 pthread_kill_other_threads_np();
6141 if { (eval echo configure:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6143 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6145 echo "configure: failed program was:" >&5
6146 cat conftest.$ac_ext >&5
6148 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6153 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6154 echo "$ac_t""yes" 1>&6
6157 echo "$ac_t""no" 1>&6
6160 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6161 echo "configure:6162: checking for LinuxThreads implementation" >&5
6162 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6165 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6168 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6173 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6174 echo "configure:6175: checking for LinuxThreads consistency" >&5
6175 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6176 echo $ac_n "(cached) $ac_c" 1>&6
6179 if test $ol_cv_header_linux_threads = yes -a \
6180 $ol_cv_sys_linux_threads = yes; then
6181 ol_cv_linux_threads=yes
6182 elif test $ol_cv_header_linux_threads = no -a \
6183 $ol_cv_sys_linux_threads = no; then
6184 ol_cv_linux_threads=no
6186 ol_cv_linux_threads=error
6191 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6194 if test $ol_cv_linux_threads = error; then
6195 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6198 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6199 echo "configure:6200: checking if pthread_create() works" >&5
6200 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6204 if test "$cross_compiling" = yes; then
6205 ol_cv_pthread_create_works=yes
6207 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure"
6209 #include "confdefs.h"
6211 #include <pthread.h>
6213 #define NULL (void*)0
6216 static void *task(p)
6219 return (void *) (p == NULL);
6222 int main(argc, argv)
6227 #if HAVE_PTHREADS_D4
6228 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6230 exit(pthread_create(&t, NULL, task, NULL));
6235 if { (eval echo configure:6236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6237 ol_cv_pthread_create_works=yes
6239 echo "configure: failed program was:" >&5
6240 cat conftest.$ac_ext >&5
6242 ol_cv_pthread_create_works=no
6249 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6251 if test $ol_cv_pthread_create_works = no ; then
6252 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6255 if test $ol_with_yielding_select = auto ; then
6256 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6257 echo "configure:6258: checking if select yields when using pthreads" >&5
6258 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6259 echo $ac_n "(cached) $ac_c" 1>&6
6262 if test "$cross_compiling" = yes; then
6264 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6266 cat > conftest.$ac_ext <<EOF
6267 #line 6268 "configure"
6268 #include "confdefs.h"
6270 #include <sys/types.h>
6271 #include <sys/time.h>
6273 #include <pthread.h>
6275 #define NULL (void*) 0
6278 static int fildes[2];
6280 static void *task(p)
6292 FD_SET(fildes[0], &rfds);
6294 /* we're not interested in any fds */
6295 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6302 exit(0); /* if we exit here, the select blocked the whole process */
6305 int main(argc, argv)
6311 /* create a pipe to select */
6312 if(pipe(&fildes[0])) {
6317 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6318 (void) pthread_setconcurrency(2);
6320 #ifdef HAVE_THR_SETCONCURRENCY
6321 /* Set Solaris LWP concurrency to 2 */
6322 thr_setconcurrency(2);
6326 #if HAVE_PTHREADS_D4
6327 pthread_create(&t, pthread_attr_default, task, NULL);
6329 pthread_create(&t, NULL, task, NULL);
6332 #if HAVE_SCHED_YIELD
6333 sched_yield(); /* make sure task runs first */
6335 #ifdef HAVE_PTHREAD_YIELD
6336 pthread_yield(); /* make sure task runs first */
6343 if { (eval echo configure:6344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6345 ol_cv_pthread_select_yields=no
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6350 ol_cv_pthread_select_yields=yes
6357 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6359 if test $ol_cv_pthread_select_yields = yes ; then
6360 ol_with_yielding_select=yes
6364 CPPFLAGS="$save_CPPFLAGS"
6367 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
6371 if test $ol_with_threads = posix ; then
6372 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
6376 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6377 -o $ol_with_threads = mach ; then
6379 for ac_hdr in mach/cthreads.h
6381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6383 echo "configure:6384: checking for $ac_hdr" >&5
6384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6385 echo $ac_n "(cached) $ac_c" 1>&6
6387 cat > conftest.$ac_ext <<EOF
6388 #line 6389 "configure"
6389 #include "confdefs.h"
6392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6393 { (eval echo configure:6394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6395 if test -z "$ac_err"; then
6397 eval "ac_cv_header_$ac_safe=yes"
6400 echo "configure: failed program was:" >&5
6401 cat conftest.$ac_ext >&5
6403 eval "ac_cv_header_$ac_safe=no"
6407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6408 echo "$ac_t""yes" 1>&6
6409 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6410 cat >> confdefs.h <<EOF
6411 #define $ac_tr_hdr 1
6415 echo "$ac_t""no" 1>&6
6419 if test $ac_cv_header_mach_cthreads_h = yes ; then
6420 ol_with_threads=found
6422 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
6423 echo "configure:6424: checking for cthread_fork" >&5
6424 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
6425 echo $ac_n "(cached) $ac_c" 1>&6
6427 cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6430 /* System header to define __stub macros and hopefully few prototypes,
6431 which can conflict with char cthread_fork(); below. */
6433 /* Override any gcc2 internal prototype to avoid an error. */
6434 /* We use char because int might match the return type of a gcc2
6435 builtin and then its argument prototype would still apply. */
6436 char cthread_fork();
6440 /* The GNU C library defines this for functions which it implements
6441 to always fail with ENOSYS. Some functions are actually named
6442 something starting with __ and the normal name is an alias. */
6443 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6453 eval "ac_cv_func_cthread_fork=yes"
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6458 eval "ac_cv_func_cthread_fork=no"
6463 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
6464 echo "$ac_t""yes" 1>&6
6467 echo "$ac_t""no" 1>&6
6471 if test $ol_link_threads = no ; then
6472 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
6473 echo "configure:6474: checking for cthread_fork with -all_load" >&5
6474 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
6475 echo $ac_n "(cached) $ac_c" 1>&6
6479 LIBS="-all_load $LIBS"
6480 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6483 #include <mach/cthreads.h>
6486 cthread_fork((void *)0, (void *)0);
6490 if { (eval echo configure:6491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6492 ol_cv_cthread_all_load=yes
6494 echo "configure: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6497 ol_cv_cthread_all_load=no
6504 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
6506 if test $ol_cv_cthread_all_load = yes ; then
6507 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
6508 ol_link_threads=mach
6512 if test $ol_link_threads != no ; then
6513 : check for cthread specific functionality here
6514 cat >> confdefs.h <<\EOF
6515 #define HAVE_MACH_CTHREADS 1
6519 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
6523 if test $ol_with_threads = mach ; then
6524 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
6528 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6529 -o $ol_with_threads = lwp ; then
6531 for ac_hdr in thread.h synch.h
6533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6535 echo "configure:6536: checking for $ac_hdr" >&5
6536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6537 echo $ac_n "(cached) $ac_c" 1>&6
6539 cat > conftest.$ac_ext <<EOF
6540 #line 6541 "configure"
6541 #include "confdefs.h"
6544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6545 { (eval echo configure:6546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6547 if test -z "$ac_err"; then
6549 eval "ac_cv_header_$ac_safe=yes"
6552 echo "configure: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6555 eval "ac_cv_header_$ac_safe=no"
6559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6560 echo "$ac_t""yes" 1>&6
6561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6562 cat >> confdefs.h <<EOF
6563 #define $ac_tr_hdr 1
6567 echo "$ac_t""no" 1>&6
6571 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
6572 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
6573 echo "configure:6574: checking for thr_create in -lthread" >&5
6574 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
6575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 ac_save_LIBS="$LIBS"
6579 LIBS="-lthread $LIBS"
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6592 if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6594 eval "ac_cv_lib_$ac_lib_var=yes"
6596 echo "configure: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6599 eval "ac_cv_lib_$ac_lib_var=no"
6602 LIBS="$ac_save_LIBS"
6605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6606 echo "$ac_t""yes" 1>&6
6609 echo "$ac_t""no" 1>&6
6614 if test $have_thr = yes ; then
6615 cat >> confdefs.h <<\EOF
6619 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
6622 if test $ol_with_yielding_select = auto ; then
6623 ol_with_yielding_select=yes
6627 thr_setconcurrency \
6628 thr_getconcurrency \
6631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6632 echo "configure:6633: checking for $ac_func" >&5
6633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 /* System header to define __stub macros and hopefully few prototypes,
6640 which can conflict with char $ac_func(); below. */
6642 /* Override any gcc2 internal prototype to avoid an error. */
6643 /* We use char because int might match the return type of a gcc2
6644 builtin and then its argument prototype would still apply. */
6649 /* The GNU C library defines this for functions which it implements
6650 to always fail with ENOSYS. Some functions are actually named
6651 something starting with __ and the normal name is an alias. */
6652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6660 if { (eval echo configure:6661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6662 eval "ac_cv_func_$ac_func=yes"
6664 echo "configure: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6667 eval "ac_cv_func_$ac_func=no"
6672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6673 echo "$ac_t""yes" 1>&6
6674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6675 cat >> confdefs.h <<EOF
6676 #define $ac_tr_func 1
6680 echo "$ac_t""no" 1>&6
6687 for ac_hdr in lwp/lwp.h
6689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6691 echo "configure:6692: checking for $ac_hdr" >&5
6692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6693 echo $ac_n "(cached) $ac_c" 1>&6
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6701 { (eval echo configure:6702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6703 if test -z "$ac_err"; then
6705 eval "ac_cv_header_$ac_safe=yes"
6708 echo "configure: failed program was:" >&5
6709 cat conftest.$ac_ext >&5
6711 eval "ac_cv_header_$ac_safe=no"
6715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6716 echo "$ac_t""yes" 1>&6
6717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6718 cat >> confdefs.h <<EOF
6719 #define $ac_tr_hdr 1
6723 echo "$ac_t""no" 1>&6
6727 if test $ac_cv_header_lwp_lwp_h = yes ; then
6728 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
6729 echo "configure:6730: checking for lwp_create in -llwp" >&5
6730 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
6731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6732 echo $ac_n "(cached) $ac_c" 1>&6
6734 ac_save_LIBS="$LIBS"
6736 cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure"
6738 #include "confdefs.h"
6739 /* Override any gcc2 internal prototype to avoid an error. */
6740 /* We use char because int might match the return type of a gcc2
6741 builtin and then its argument prototype would still apply. */
6748 if { (eval echo configure:6749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6750 eval "ac_cv_lib_$ac_lib_var=yes"
6752 echo "configure: failed program was:" >&5
6753 cat conftest.$ac_ext >&5
6755 eval "ac_cv_lib_$ac_lib_var=no"
6758 LIBS="$ac_save_LIBS"
6761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6762 echo "$ac_t""yes" 1>&6
6765 echo "$ac_t""no" 1>&6
6770 if test $have_lwp = yes ; then
6771 cat >> confdefs.h <<\EOF
6775 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
6778 if test $ol_with_yielding_select = auto ; then
6779 ol_with_yielding_select=no
6785 if test $ol_with_yielding_select = yes ; then
6786 cat >> confdefs.h <<\EOF
6787 #define HAVE_YIELDING_SELECT 1
6792 if test $ol_with_threads = manual ; then
6795 echo "configure: warning: thread defines and link options must be set manually" 1>&2
6797 for ac_hdr in pthread.h sched.h
6799 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6800 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6801 echo "configure:6802: checking for $ac_hdr" >&5
6802 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6803 echo $ac_n "(cached) $ac_c" 1>&6
6805 cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure"
6807 #include "confdefs.h"
6810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6811 { (eval echo configure:6812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6813 if test -z "$ac_err"; then
6815 eval "ac_cv_header_$ac_safe=yes"
6818 echo "configure: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6821 eval "ac_cv_header_$ac_safe=no"
6825 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6826 echo "$ac_t""yes" 1>&6
6827 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6828 cat >> confdefs.h <<EOF
6829 #define $ac_tr_hdr 1
6833 echo "$ac_t""no" 1>&6
6837 for ac_func in sched_yield pthread_yield
6839 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6840 echo "configure:6841: checking for $ac_func" >&5
6841 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6842 echo $ac_n "(cached) $ac_c" 1>&6
6844 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6847 /* System header to define __stub macros and hopefully few prototypes,
6848 which can conflict with char $ac_func(); below. */
6850 /* Override any gcc2 internal prototype to avoid an error. */
6851 /* We use char because int might match the return type of a gcc2
6852 builtin and then its argument prototype would still apply. */
6857 /* The GNU C library defines this for functions which it implements
6858 to always fail with ENOSYS. Some functions are actually named
6859 something starting with __ and the normal name is an alias. */
6860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6868 if { (eval echo configure:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6870 eval "ac_cv_func_$ac_func=yes"
6872 echo "configure: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6875 eval "ac_cv_func_$ac_func=no"
6880 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6881 echo "$ac_t""yes" 1>&6
6882 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6883 cat >> confdefs.h <<EOF
6884 #define $ac_tr_func 1
6888 echo "$ac_t""no" 1>&6
6893 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6894 echo "configure:6895: checking for LinuxThreads pthread.h" >&5
6895 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
6896 echo $ac_n "(cached) $ac_c" 1>&6
6898 cat > conftest.$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6901 #include <pthread.h>
6903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6904 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6906 ol_cv_header_linux_threads=yes
6909 ol_cv_header_linux_threads=no
6916 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6917 if test $ol_cv_header_linux_threads = yes; then
6918 cat >> confdefs.h <<\EOF
6919 #define HAVE_LINUX_THREADS 1
6925 for ac_hdr in mach/cthreads.h
6927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6929 echo "configure:6930: checking for $ac_hdr" >&5
6930 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6931 echo $ac_n "(cached) $ac_c" 1>&6
6933 cat > conftest.$ac_ext <<EOF
6934 #line 6935 "configure"
6935 #include "confdefs.h"
6938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6939 { (eval echo configure:6940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6941 if test -z "$ac_err"; then
6943 eval "ac_cv_header_$ac_safe=yes"
6946 echo "configure: failed program was:" >&5
6947 cat conftest.$ac_ext >&5
6949 eval "ac_cv_header_$ac_safe=no"
6953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6954 echo "$ac_t""yes" 1>&6
6955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6956 cat >> confdefs.h <<EOF
6957 #define $ac_tr_hdr 1
6961 echo "$ac_t""no" 1>&6
6965 for ac_hdr in lwp/lwp.h
6967 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6968 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6969 echo "configure:6970: checking for $ac_hdr" >&5
6970 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6971 echo $ac_n "(cached) $ac_c" 1>&6
6973 cat > conftest.$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6979 { (eval echo configure:6980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6981 if test -z "$ac_err"; then
6983 eval "ac_cv_header_$ac_safe=yes"
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6989 eval "ac_cv_header_$ac_safe=no"
6993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6994 echo "$ac_t""yes" 1>&6
6995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6996 cat >> confdefs.h <<EOF
6997 #define $ac_tr_hdr 1
7001 echo "$ac_t""no" 1>&6
7005 for ac_hdr in thread.h synch.h
7007 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7009 echo "configure:7010: checking for $ac_hdr" >&5
7010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7011 echo $ac_n "(cached) $ac_c" 1>&6
7013 cat > conftest.$ac_ext <<EOF
7014 #line 7015 "configure"
7015 #include "confdefs.h"
7018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7019 { (eval echo configure:7020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7021 if test -z "$ac_err"; then
7023 eval "ac_cv_header_$ac_safe=yes"
7026 echo "configure: failed program was:" >&5
7027 cat conftest.$ac_ext >&5
7029 eval "ac_cv_header_$ac_safe=no"
7033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7034 echo "$ac_t""yes" 1>&6
7035 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7036 cat >> confdefs.h <<EOF
7037 #define $ac_tr_hdr 1
7041 echo "$ac_t""no" 1>&6
7047 if test $ol_link_threads != no ; then
7048 cat >> confdefs.h <<\EOF
7052 cat >> confdefs.h <<\EOF
7053 #define _REENTRANT 1
7056 cat >> confdefs.h <<\EOF
7057 #define THREAD_SAFE 1
7060 cat >> confdefs.h <<\EOF
7061 #define _THREAD_SAFE 1
7064 cat >> confdefs.h <<\EOF
7065 #define THREADSAFE 1
7068 cat >> confdefs.h <<\EOF
7069 #define _THREADSAFE 1
7073 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7074 echo "configure:7075: checking for thread specific errno" >&5
7075 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7076 echo $ac_n "(cached) $ac_c" 1>&6
7079 cat > conftest.$ac_ext <<EOF
7080 #line 7081 "configure"
7081 #include "confdefs.h"
7087 if { (eval echo configure:7088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7089 ol_cv_errno_thread_specific=yes
7091 echo "configure: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7094 ol_cv_errno_thread_specific=no
7100 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7102 if test $ol_cv_errno_thread_specific != yes ; then
7103 LIBS="$LTHREAD_LIBS $LIBS"
7109 if test $ol_link_threads = no ; then
7110 if test $ol_with_threads = yes ; then
7111 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7114 if test $ol_with_threads = auto ; then
7115 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7119 cat >> confdefs.h <<\EOF
7120 #define NO_THREADS 1
7126 if test $ol_link_threads != no ; then
7127 cat >> confdefs.h <<\EOF
7128 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7135 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7136 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7137 echo "configure:7138: checking for DB2 library" >&5
7138 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7139 echo $ac_n "(cached) $ac_c" 1>&6
7142 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7143 echo "configure:7144: checking for db_open in -ldb" >&5
7144 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7145 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7146 echo $ac_n "(cached) $ac_c" 1>&6
7148 ac_save_LIBS="$LIBS"
7150 cat > conftest.$ac_ext <<EOF
7151 #line 7152 "configure"
7152 #include "confdefs.h"
7153 /* Override any gcc2 internal prototype to avoid an error. */
7154 /* We use char because int might match the return type of a gcc2
7155 builtin and then its argument prototype would still apply. */
7162 if { (eval echo configure:7163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7164 eval "ac_cv_lib_$ac_lib_var=yes"
7166 echo "configure: failed program was:" >&5
7167 cat conftest.$ac_ext >&5
7169 eval "ac_cv_lib_$ac_lib_var=no"
7172 LIBS="$ac_save_LIBS"
7175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7179 echo "$ac_t""no" 1>&6
7187 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7193 echo "configure:7194: checking for $ac_hdr" >&5
7194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7195 echo $ac_n "(cached) $ac_c" 1>&6
7197 cat > conftest.$ac_ext <<EOF
7198 #line 7199 "configure"
7199 #include "confdefs.h"
7202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7203 { (eval echo configure:7204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7205 if test -z "$ac_err"; then
7207 eval "ac_cv_header_$ac_safe=yes"
7210 echo "configure: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7213 eval "ac_cv_header_$ac_safe=no"
7217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7218 echo "$ac_t""yes" 1>&6
7219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7220 cat >> confdefs.h <<EOF
7221 #define $ac_tr_hdr 1
7225 echo "$ac_t""no" 1>&6
7229 if test $ac_cv_header_db_h = yes ; then
7230 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7231 echo "configure:7232: checking if db.h is DB2" >&5
7232 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7233 echo $ac_n "(cached) $ac_c" 1>&6
7236 cat > conftest.$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7241 /* this check could be improved */
7242 # ifdef DB_VERSION_MAJOR
7243 # if DB_VERSION_MAJOR == 2
7249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7250 egrep "__db_version_2" >/dev/null 2>&1; then
7252 ol_cv_header_db2=yes
7261 echo "$ac_t""$ol_cv_header_db2" 1>&6
7268 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7269 echo "configure:7270: checking for Berkeley DB2" >&5
7270 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7274 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7275 ol_cv_berkeley_db2=no
7277 ol_cv_berkeley_db2=yes
7282 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7283 if test $ol_cv_berkeley_db2 = yes ; then
7284 cat >> confdefs.h <<\EOF
7285 #define HAVE_BERKELEY_DB2 1
7291 if test $ol_cv_berkeley_db2 = yes ; then
7293 ol_with_ldbm_api=db2
7295 if test $ol_with_ldbm_type = hash ; then
7296 cat >> confdefs.h <<\EOF
7297 #define LDBM_USE_DBHASH 1
7301 cat >> confdefs.h <<\EOF
7302 #define LDBM_USE_DBBTREE 1
7307 if test $ol_cv_lib_db2 != yes ; then
7308 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7314 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7318 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7319 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7320 echo "configure:7321: checking for Berkeley DB library" >&5
7321 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7322 echo $ac_n "(cached) $ac_c" 1>&6
7325 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
7326 echo "configure:7327: checking for dbopen" >&5
7327 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7330 cat > conftest.$ac_ext <<EOF
7331 #line 7332 "configure"
7332 #include "confdefs.h"
7333 /* System header to define __stub macros and hopefully few prototypes,
7334 which can conflict with char dbopen(); below. */
7336 /* Override any gcc2 internal prototype to avoid an error. */
7337 /* We use char because int might match the return type of a gcc2
7338 builtin and then its argument prototype would still apply. */
7343 /* The GNU C library defines this for functions which it implements
7344 to always fail with ENOSYS. Some functions are actually named
7345 something starting with __ and the normal name is an alias. */
7346 #if defined (__stub_dbopen) || defined (__stub___dbopen)
7354 if { (eval echo configure:7355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7356 eval "ac_cv_func_dbopen=yes"
7358 echo "configure: failed program was:" >&5
7359 cat conftest.$ac_ext >&5
7361 eval "ac_cv_func_dbopen=no"
7366 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
7367 echo "$ac_t""yes" 1>&6
7370 echo "$ac_t""no" 1>&6
7372 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
7373 echo "configure:7374: checking for dbopen in -ldb" >&5
7374 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
7375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7376 echo $ac_n "(cached) $ac_c" 1>&6
7378 ac_save_LIBS="$LIBS"
7380 cat > conftest.$ac_ext <<EOF
7381 #line 7382 "configure"
7382 #include "confdefs.h"
7383 /* Override any gcc2 internal prototype to avoid an error. */
7384 /* We use char because int might match the return type of a gcc2
7385 builtin and then its argument prototype would still apply. */
7392 if { (eval echo configure:7393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7394 eval "ac_cv_lib_$ac_lib_var=yes"
7396 echo "configure: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7399 eval "ac_cv_lib_$ac_lib_var=no"
7402 LIBS="$ac_save_LIBS"
7405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7406 echo "$ac_t""yes" 1>&6
7409 echo "$ac_t""no" 1>&6
7420 echo "$ac_t""$ol_cv_lib_db" 1>&6
7423 for ac_hdr in db_185.h
7425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7427 echo "configure:7428: checking for $ac_hdr" >&5
7428 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7429 echo $ac_n "(cached) $ac_c" 1>&6
7431 cat > conftest.$ac_ext <<EOF
7432 #line 7433 "configure"
7433 #include "confdefs.h"
7436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7437 { (eval echo configure:7438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7439 if test -z "$ac_err"; then
7441 eval "ac_cv_header_$ac_safe=yes"
7444 echo "configure: failed program was:" >&5
7445 cat conftest.$ac_ext >&5
7447 eval "ac_cv_header_$ac_safe=no"
7451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7452 echo "$ac_t""yes" 1>&6
7453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7454 cat >> confdefs.h <<EOF
7455 #define $ac_tr_hdr 1
7459 echo "$ac_t""no" 1>&6
7463 if test "$ol_cv_header_db2" = yes ; then
7465 ol_cv_header_db=$ac_cv_header_db_185_h
7467 ol_cv_header_db=$ac_cv_header_db_h
7472 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
7473 echo "configure:7474: checking for Berkeley DB" >&5
7474 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
7475 echo $ac_n "(cached) $ac_c" 1>&6
7478 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
7479 ol_cv_berkeley_db=no
7481 ol_cv_berkeley_db=yes
7486 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
7487 if test $ol_cv_berkeley_db = yes ; then
7488 cat >> confdefs.h <<\EOF
7489 #define HAVE_BERKELEY_DB 1
7495 if test $ol_cv_berkeley_db = yes ; then
7499 if test $ol_with_ldbm_type = hash ; then
7500 cat >> confdefs.h <<\EOF
7501 #define LDBM_USE_DBHASH 1
7505 cat >> confdefs.h <<\EOF
7506 #define LDBM_USE_DBBTREE 1
7511 if test $ol_cv_lib_db != yes ; then
7512 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
7517 if test $ol_with_ldbm_api = manual ; then
7520 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
7522 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
7524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7526 echo "configure:7527: checking for $ac_hdr" >&5
7527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7528 echo $ac_n "(cached) $ac_c" 1>&6
7530 cat > conftest.$ac_ext <<EOF
7531 #line 7532 "configure"
7532 #include "confdefs.h"
7535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7536 { (eval echo configure:7537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7538 if test -z "$ac_err"; then
7540 eval "ac_cv_header_$ac_safe=yes"
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7546 eval "ac_cv_header_$ac_safe=no"
7550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7551 echo "$ac_t""yes" 1>&6
7552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7553 cat >> confdefs.h <<EOF
7554 #define $ac_tr_hdr 1
7558 echo "$ac_t""no" 1>&6
7564 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
7565 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
7566 ol_with_ldbm_api=none
7569 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
7570 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
7571 echo "configure:7572: checking for MDBM library" >&5
7572 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
7573 echo $ac_n "(cached) $ac_c" 1>&6
7576 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
7577 echo "configure:7578: checking for mdbm_set_chain" >&5
7578 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
7579 echo $ac_n "(cached) $ac_c" 1>&6
7581 cat > conftest.$ac_ext <<EOF
7582 #line 7583 "configure"
7583 #include "confdefs.h"
7584 /* System header to define __stub macros and hopefully few prototypes,
7585 which can conflict with char mdbm_set_chain(); below. */
7587 /* Override any gcc2 internal prototype to avoid an error. */
7588 /* We use char because int might match the return type of a gcc2
7589 builtin and then its argument prototype would still apply. */
7590 char mdbm_set_chain();
7594 /* The GNU C library defines this for functions which it implements
7595 to always fail with ENOSYS. Some functions are actually named
7596 something starting with __ and the normal name is an alias. */
7597 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
7605 if { (eval echo configure:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7607 eval "ac_cv_func_mdbm_set_chain=yes"
7609 echo "configure: failed program was:" >&5
7610 cat conftest.$ac_ext >&5
7612 eval "ac_cv_func_mdbm_set_chain=no"
7617 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
7618 echo "$ac_t""yes" 1>&6
7621 echo "$ac_t""no" 1>&6
7623 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
7624 echo "configure:7625: checking for mdbm_set_chain in -lmdbm" >&5
7625 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
7626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7627 echo $ac_n "(cached) $ac_c" 1>&6
7629 ac_save_LIBS="$LIBS"
7631 cat > conftest.$ac_ext <<EOF
7632 #line 7633 "configure"
7633 #include "confdefs.h"
7634 /* Override any gcc2 internal prototype to avoid an error. */
7635 /* We use char because int might match the return type of a gcc2
7636 builtin and then its argument prototype would still apply. */
7637 char mdbm_set_chain();
7643 if { (eval echo configure:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7645 eval "ac_cv_lib_$ac_lib_var=yes"
7647 echo "configure: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7650 eval "ac_cv_lib_$ac_lib_var=no"
7653 LIBS="$ac_save_LIBS"
7656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7657 echo "$ac_t""yes" 1>&6
7658 ol_cv_lib_mdbm=-lmdbm
7660 echo "$ac_t""no" 1>&6
7671 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
7674 for ac_hdr in mdbm.h
7676 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7678 echo "configure:7679: checking for $ac_hdr" >&5
7679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7680 echo $ac_n "(cached) $ac_c" 1>&6
7682 cat > conftest.$ac_ext <<EOF
7683 #line 7684 "configure"
7684 #include "confdefs.h"
7687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7688 { (eval echo configure:7689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7690 if test -z "$ac_err"; then
7692 eval "ac_cv_header_$ac_safe=yes"
7695 echo "configure: failed program was:" >&5
7696 cat conftest.$ac_ext >&5
7698 eval "ac_cv_header_$ac_safe=no"
7702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7703 echo "$ac_t""yes" 1>&6
7704 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7705 cat >> confdefs.h <<EOF
7706 #define $ac_tr_hdr 1
7710 echo "$ac_t""no" 1>&6
7714 echo $ac_n "checking for db""... $ac_c" 1>&6
7715 echo "configure:7716: checking for db" >&5
7716 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
7717 echo $ac_n "(cached) $ac_c" 1>&6
7720 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
7728 echo "$ac_t""$ol_cv_mdbm" 1>&6
7729 if test $ol_cv_mdbm = yes ; then
7730 cat >> confdefs.h <<\EOF
7737 if test $ol_cv_mdbm = yes ; then
7739 ol_with_ldbm_api=mdbm
7740 if test $ol_cv_lib_mdbm != yes ; then
7741 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
7746 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
7747 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
7748 echo "configure:7749: checking for GDBM library" >&5
7749 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
7750 echo $ac_n "(cached) $ac_c" 1>&6
7753 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
7754 echo "configure:7755: checking for gdbm_open" >&5
7755 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
7756 echo $ac_n "(cached) $ac_c" 1>&6
7758 cat > conftest.$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7761 /* System header to define __stub macros and hopefully few prototypes,
7762 which can conflict with char gdbm_open(); below. */
7764 /* Override any gcc2 internal prototype to avoid an error. */
7765 /* We use char because int might match the return type of a gcc2
7766 builtin and then its argument prototype would still apply. */
7771 /* The GNU C library defines this for functions which it implements
7772 to always fail with ENOSYS. Some functions are actually named
7773 something starting with __ and the normal name is an alias. */
7774 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
7782 if { (eval echo configure:7783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7784 eval "ac_cv_func_gdbm_open=yes"
7786 echo "configure: failed program was:" >&5
7787 cat conftest.$ac_ext >&5
7789 eval "ac_cv_func_gdbm_open=no"
7794 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
7795 echo "$ac_t""yes" 1>&6
7798 echo "$ac_t""no" 1>&6
7800 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
7801 echo "configure:7802: checking for gdbm_open in -lgdbm" >&5
7802 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
7803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7804 echo $ac_n "(cached) $ac_c" 1>&6
7806 ac_save_LIBS="$LIBS"
7808 cat > conftest.$ac_ext <<EOF
7809 #line 7810 "configure"
7810 #include "confdefs.h"
7811 /* Override any gcc2 internal prototype to avoid an error. */
7812 /* We use char because int might match the return type of a gcc2
7813 builtin and then its argument prototype would still apply. */
7820 if { (eval echo configure:7821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7822 eval "ac_cv_lib_$ac_lib_var=yes"
7824 echo "configure: failed program was:" >&5
7825 cat conftest.$ac_ext >&5
7827 eval "ac_cv_lib_$ac_lib_var=no"
7830 LIBS="$ac_save_LIBS"
7833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7834 echo "$ac_t""yes" 1>&6
7835 ol_cv_lib_gdbm=-lgdbm
7837 echo "$ac_t""no" 1>&6
7848 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
7851 for ac_hdr in gdbm.h
7853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7855 echo "configure:7856: checking for $ac_hdr" >&5
7856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7857 echo $ac_n "(cached) $ac_c" 1>&6
7859 cat > conftest.$ac_ext <<EOF
7860 #line 7861 "configure"
7861 #include "confdefs.h"
7864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7865 { (eval echo configure:7866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7867 if test -z "$ac_err"; then
7869 eval "ac_cv_header_$ac_safe=yes"
7872 echo "configure: failed program was:" >&5
7873 cat conftest.$ac_ext >&5
7875 eval "ac_cv_header_$ac_safe=no"
7879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7880 echo "$ac_t""yes" 1>&6
7881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7882 cat >> confdefs.h <<EOF
7883 #define $ac_tr_hdr 1
7887 echo "$ac_t""no" 1>&6
7891 echo $ac_n "checking for db""... $ac_c" 1>&6
7892 echo "configure:7893: checking for db" >&5
7893 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7897 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
7905 echo "$ac_t""$ol_cv_gdbm" 1>&6
7906 if test $ol_cv_gdbm = yes ; then
7907 cat >> confdefs.h <<\EOF
7914 if test $ol_cv_gdbm = yes ; then
7916 ol_with_ldbm_api=gdbm
7918 if test $ol_cv_lib_gdbm != yes ; then
7919 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
7924 if test $ol_with_ldbm_api = auto ; then
7925 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
7926 elif test $ol_with_ldbm_api = ndbm ; then
7927 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
7928 echo "configure:7929: checking for NDBM library" >&5
7929 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
7930 echo $ac_n "(cached) $ac_c" 1>&6
7933 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
7934 echo "configure:7935: checking for dbm_open" >&5
7935 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7938 cat > conftest.$ac_ext <<EOF
7939 #line 7940 "configure"
7940 #include "confdefs.h"
7941 /* System header to define __stub macros and hopefully few prototypes,
7942 which can conflict with char dbm_open(); below. */
7944 /* Override any gcc2 internal prototype to avoid an error. */
7945 /* We use char because int might match the return type of a gcc2
7946 builtin and then its argument prototype would still apply. */
7951 /* The GNU C library defines this for functions which it implements
7952 to always fail with ENOSYS. Some functions are actually named
7953 something starting with __ and the normal name is an alias. */
7954 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
7962 if { (eval echo configure:7963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7964 eval "ac_cv_func_dbm_open=yes"
7966 echo "configure: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7969 eval "ac_cv_func_dbm_open=no"
7974 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
7975 echo "$ac_t""yes" 1>&6
7978 echo "$ac_t""no" 1>&6
7980 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
7981 echo "configure:7982: checking for dbm_open in -lndbm" >&5
7982 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
7983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7986 ac_save_LIBS="$LIBS"
7988 cat > conftest.$ac_ext <<EOF
7989 #line 7990 "configure"
7990 #include "confdefs.h"
7991 /* Override any gcc2 internal prototype to avoid an error. */
7992 /* We use char because int might match the return type of a gcc2
7993 builtin and then its argument prototype would still apply. */
8000 if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8002 eval "ac_cv_lib_$ac_lib_var=yes"
8004 echo "configure: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8007 eval "ac_cv_lib_$ac_lib_var=no"
8010 LIBS="$ac_save_LIBS"
8013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8014 echo "$ac_t""yes" 1>&6
8015 ol_cv_lib_ndbm=-lndbm
8017 echo "$ac_t""no" 1>&6
8019 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8020 echo "configure:8021: checking for dbm_open in -ldbm" >&5
8021 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8023 echo $ac_n "(cached) $ac_c" 1>&6
8025 ac_save_LIBS="$LIBS"
8027 cat > conftest.$ac_ext <<EOF
8028 #line 8029 "configure"
8029 #include "confdefs.h"
8030 /* Override any gcc2 internal prototype to avoid an error. */
8031 /* We use char because int might match the return type of a gcc2
8032 builtin and then its argument prototype would still apply. */
8039 if { (eval echo configure:8040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8041 eval "ac_cv_lib_$ac_lib_var=yes"
8043 echo "configure: failed program was:" >&5
8044 cat conftest.$ac_ext >&5
8046 eval "ac_cv_lib_$ac_lib_var=no"
8049 LIBS="$ac_save_LIBS"
8052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8053 echo "$ac_t""yes" 1>&6
8054 ol_cv_lib_ndbm=-ldbm
8056 echo "$ac_t""no" 1>&6
8069 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8072 for ac_hdr in ndbm.h
8074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8076 echo "configure:8077: checking for $ac_hdr" >&5
8077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8078 echo $ac_n "(cached) $ac_c" 1>&6
8080 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8086 { (eval echo configure:8087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8088 if test -z "$ac_err"; then
8090 eval "ac_cv_header_$ac_safe=yes"
8093 echo "configure: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8096 eval "ac_cv_header_$ac_safe=no"
8100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8101 echo "$ac_t""yes" 1>&6
8102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8103 cat >> confdefs.h <<EOF
8104 #define $ac_tr_hdr 1
8108 echo "$ac_t""no" 1>&6
8112 echo $ac_n "checking for db""... $ac_c" 1>&6
8113 echo "configure:8114: checking for db" >&5
8114 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8115 echo $ac_n "(cached) $ac_c" 1>&6
8118 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8126 echo "$ac_t""$ol_cv_ndbm" 1>&6
8127 if test $ol_cv_ndbm = yes ; then
8128 cat >> confdefs.h <<\EOF
8135 if test $ol_cv_ndbm = yes ; then
8137 ol_with_ldbm_api=ndbm
8139 if test $ol_cv_lib_ndbm != yes ; then
8140 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8145 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8146 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8147 if test $ol_enable_ldbm = yes ; then
8148 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8151 echo "configure: warning: disabling LDBM" 1>&2
8155 if test $ol_enable_wrappers != no ; then
8156 for ac_hdr in tcpd.h
8158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8160 echo "configure:8161: checking for $ac_hdr" >&5
8161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8162 echo $ac_n "(cached) $ac_c" 1>&6
8164 cat > conftest.$ac_ext <<EOF
8165 #line 8166 "configure"
8166 #include "confdefs.h"
8169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8170 { (eval echo configure:8171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8172 if test -z "$ac_err"; then
8174 eval "ac_cv_header_$ac_safe=yes"
8177 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8180 eval "ac_cv_header_$ac_safe=no"
8184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8185 echo "$ac_t""yes" 1>&6
8186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8187 cat >> confdefs.h <<EOF
8188 #define $ac_tr_hdr 1
8192 echo "$ac_t""no" 1>&6
8197 if test $ac_cv_header_tcpd_h != yes ; then
8200 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8201 echo "configure:8202: checking for main in -lwrap" >&5
8202 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8204 echo $ac_n "(cached) $ac_c" 1>&6
8206 ac_save_LIBS="$LIBS"
8208 cat > conftest.$ac_ext <<EOF
8209 #line 8210 "configure"
8210 #include "confdefs.h"
8216 if { (eval echo configure:8217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8218 eval "ac_cv_lib_$ac_lib_var=yes"
8220 echo "configure: failed program was:" >&5
8221 cat conftest.$ac_ext >&5
8223 eval "ac_cv_lib_$ac_lib_var=no"
8226 LIBS="$ac_save_LIBS"
8229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8230 echo "$ac_t""yes" 1>&6
8233 echo "$ac_t""no" 1>&6
8239 if test $have_wrappers = yes ; then
8240 cat >> confdefs.h <<\EOF
8244 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8246 echo "configure: warning: could not find -lwrap" 1>&2
8247 if test $ol_enable_wrappers = yes ; then
8248 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
8251 echo "configure: warning: disabling wrappers support" 1>&2
8252 ol_enable_wrappers=no
8256 if test $ol_enable_syslog != no ; then
8257 echo $ac_n "checking for openlog""... $ac_c" 1>&6
8258 echo "configure:8259: checking for openlog" >&5
8259 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
8260 echo $ac_n "(cached) $ac_c" 1>&6
8262 cat > conftest.$ac_ext <<EOF
8263 #line 8264 "configure"
8264 #include "confdefs.h"
8265 /* System header to define __stub macros and hopefully few prototypes,
8266 which can conflict with char openlog(); below. */
8268 /* Override any gcc2 internal prototype to avoid an error. */
8269 /* We use char because int might match the return type of a gcc2
8270 builtin and then its argument prototype would still apply. */
8275 /* The GNU C library defines this for functions which it implements
8276 to always fail with ENOSYS. Some functions are actually named
8277 something starting with __ and the normal name is an alias. */
8278 #if defined (__stub_openlog) || defined (__stub___openlog)
8286 if { (eval echo configure:8287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8288 eval "ac_cv_func_openlog=yes"
8290 echo "configure: failed program was:" >&5
8291 cat conftest.$ac_ext >&5
8293 eval "ac_cv_func_openlog=no"
8298 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
8299 echo "$ac_t""yes" 1>&6
8302 echo "$ac_t""no" 1>&6
8305 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
8306 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
8308 ol_enable_syslog=$ac_cv_func_openlog
8311 if test $ol_enable_dmalloc != no ; then
8312 for ac_hdr in dmalloc.h
8314 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8315 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8316 echo "configure:8317: checking for $ac_hdr" >&5
8317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8318 echo $ac_n "(cached) $ac_c" 1>&6
8320 cat > conftest.$ac_ext <<EOF
8321 #line 8322 "configure"
8322 #include "confdefs.h"
8325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8326 { (eval echo configure:8327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8328 if test -z "$ac_err"; then
8330 eval "ac_cv_header_$ac_safe=yes"
8333 echo "configure: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8336 eval "ac_cv_header_$ac_safe=no"
8340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8341 echo "$ac_t""yes" 1>&6
8342 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8343 cat >> confdefs.h <<EOF
8344 #define $ac_tr_hdr 1
8348 echo "$ac_t""no" 1>&6
8352 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8353 echo "configure:8354: checking for dmalloc_shutdown in -ldmalloc" >&5
8354 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8356 echo $ac_n "(cached) $ac_c" 1>&6
8358 ac_save_LIBS="$LIBS"
8359 LIBS="-ldmalloc $LIBS"
8360 cat > conftest.$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8363 /* Override any gcc2 internal prototype to avoid an error. */
8364 /* We use char because int might match the return type of a gcc2
8365 builtin and then its argument prototype would still apply. */
8366 char dmalloc_shutdown();
8372 if { (eval echo configure:8373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8374 eval "ac_cv_lib_$ac_lib_var=yes"
8376 echo "configure: failed program was:" >&5
8377 cat conftest.$ac_ext >&5
8379 eval "ac_cv_lib_$ac_lib_var=no"
8382 LIBS="$ac_save_LIBS"
8385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8386 echo "$ac_t""yes" 1>&6
8387 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8388 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8389 cat >> confdefs.h <<EOF
8390 #define $ac_tr_lib 1
8393 LIBS="-ldmalloc $LIBS"
8396 echo "$ac_t""no" 1>&6
8401 if test $ol_enable_tcl != no ; then
8404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8406 echo "configure:8407: checking for $ac_hdr" >&5
8407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8408 echo $ac_n "(cached) $ac_c" 1>&6
8410 cat > conftest.$ac_ext <<EOF
8411 #line 8412 "configure"
8412 #include "confdefs.h"
8415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8416 { (eval echo configure:8417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8418 if test -z "$ac_err"; then
8420 eval "ac_cv_header_$ac_safe=yes"
8423 echo "configure: failed program was:" >&5
8424 cat conftest.$ac_ext >&5
8426 eval "ac_cv_header_$ac_safe=no"
8430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8431 echo "$ac_t""yes" 1>&6
8432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8433 cat >> confdefs.h <<EOF
8434 #define $ac_tr_hdr 1
8438 echo "$ac_t""no" 1>&6
8443 if test $ac_cv_header_tcl_h != yes ; then
8446 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
8447 echo "configure:8448: checking for main in -ltcl" >&5
8448 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
8449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8450 echo $ac_n "(cached) $ac_c" 1>&6
8452 ac_save_LIBS="$LIBS"
8454 cat > conftest.$ac_ext <<EOF
8455 #line 8456 "configure"
8456 #include "confdefs.h"
8462 if { (eval echo configure:8463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8464 eval "ac_cv_lib_$ac_lib_var=yes"
8466 echo "configure: failed program was:" >&5
8467 cat conftest.$ac_ext >&5
8469 eval "ac_cv_lib_$ac_lib_var=no"
8472 LIBS="$ac_save_LIBS"
8475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8476 echo "$ac_t""yes" 1>&6
8477 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
8479 echo "$ac_t""no" 1>&6
8484 if test $have_tcl != yes; then
8485 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
8486 echo "configure:8487: checking for main in -ltcl7.6" >&5
8487 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
8488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8489 echo $ac_n "(cached) $ac_c" 1>&6
8491 ac_save_LIBS="$LIBS"
8492 LIBS="-ltcl7.6 $LIBS"
8493 cat > conftest.$ac_ext <<EOF
8494 #line 8495 "configure"
8495 #include "confdefs.h"
8501 if { (eval echo configure:8502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8503 eval "ac_cv_lib_$ac_lib_var=yes"
8505 echo "configure: failed program was:" >&5
8506 cat conftest.$ac_ext >&5
8508 eval "ac_cv_lib_$ac_lib_var=no"
8511 LIBS="$ac_save_LIBS"
8514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8515 echo "$ac_t""yes" 1>&6
8516 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
8518 echo "$ac_t""no" 1>&6
8524 if test $have_tcl != yes; then
8525 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
8526 echo "configure:8527: checking for main in -ltcl8.0" >&5
8527 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
8528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8529 echo $ac_n "(cached) $ac_c" 1>&6
8531 ac_save_LIBS="$LIBS"
8532 LIBS="-ltcl8.0 $LIBS"
8533 cat > conftest.$ac_ext <<EOF
8534 #line 8535 "configure"
8535 #include "confdefs.h"
8541 if { (eval echo configure:8542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8543 eval "ac_cv_lib_$ac_lib_var=yes"
8545 echo "configure: failed program was:" >&5
8546 cat conftest.$ac_ext >&5
8548 eval "ac_cv_lib_$ac_lib_var=no"
8551 LIBS="$ac_save_LIBS"
8554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8555 echo "$ac_t""yes" 1>&6
8556 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
8558 echo "$ac_t""no" 1>&6
8565 if test $have_tcl != yes ; then
8566 echo "configure: warning: could not find -ltcl" 1>&2
8567 if test $ol_enable_tcl = yes ; then
8568 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
8575 # ud needs termcap (should insert check here)
8577 for ac_hdr in termcap.h ncurses.h
8579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8581 echo "configure:8582: checking for $ac_hdr" >&5
8582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8585 cat > conftest.$ac_ext <<EOF
8586 #line 8587 "configure"
8587 #include "confdefs.h"
8590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8591 { (eval echo configure:8592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8593 if test -z "$ac_err"; then
8595 eval "ac_cv_header_$ac_safe=yes"
8598 echo "configure: failed program was:" >&5
8599 cat conftest.$ac_ext >&5
8601 eval "ac_cv_header_$ac_safe=no"
8605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8606 echo "$ac_t""yes" 1>&6
8607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8608 cat >> confdefs.h <<EOF
8609 #define $ac_tr_hdr 1
8613 echo "$ac_t""no" 1>&6
8618 if test $ol_link_termcap = no ; then
8619 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
8620 echo "configure:8621: checking for tputs in -ltermcap" >&5
8621 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
8622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8623 echo $ac_n "(cached) $ac_c" 1>&6
8625 ac_save_LIBS="$LIBS"
8626 LIBS="-ltermcap $LIBS"
8627 cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8630 /* Override any gcc2 internal prototype to avoid an error. */
8631 /* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */
8639 if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8641 eval "ac_cv_lib_$ac_lib_var=yes"
8643 echo "configure: failed program was:" >&5
8644 cat conftest.$ac_ext >&5
8646 eval "ac_cv_lib_$ac_lib_var=no"
8649 LIBS="$ac_save_LIBS"
8652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8653 echo "$ac_t""yes" 1>&6
8656 echo "$ac_t""no" 1>&6
8660 if test $have_termcap = yes ; then
8661 cat >> confdefs.h <<\EOF
8662 #define HAVE_TERMCAP 1
8666 TERMCAP_LIBS=-ltermcap
8670 if test $ol_link_termcap = no ; then
8671 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
8672 echo "configure:8673: checking for initscr in -lncurses" >&5
8673 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
8674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8675 echo $ac_n "(cached) $ac_c" 1>&6
8677 ac_save_LIBS="$LIBS"
8678 LIBS="-lncurses $LIBS"
8679 cat > conftest.$ac_ext <<EOF
8680 #line 8681 "configure"
8681 #include "confdefs.h"
8682 /* Override any gcc2 internal prototype to avoid an error. */
8683 /* We use char because int might match the return type of a gcc2
8684 builtin and then its argument prototype would still apply. */
8691 if { (eval echo configure:8692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8693 eval "ac_cv_lib_$ac_lib_var=yes"
8695 echo "configure: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8698 eval "ac_cv_lib_$ac_lib_var=no"
8701 LIBS="$ac_save_LIBS"
8704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8705 echo "$ac_t""yes" 1>&6
8708 echo "$ac_t""no" 1>&6
8712 if test $have_ncurses = yes ; then
8713 cat >> confdefs.h <<\EOF
8714 #define HAVE_NCURSES 1
8718 TERMCAP_LIBS=-lncurses
8722 if test $ol_link_termcap = no ; then
8723 cat >> confdefs.h <<\EOF
8724 #define NO_TERMCAP 1
8731 if test $ol_with_readline != no ; then
8732 for ac_hdr in readline/readline.h readline/history.h
8734 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8736 echo "configure:8737: checking for $ac_hdr" >&5
8737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8746 { (eval echo configure:8747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8748 if test -z "$ac_err"; then
8750 eval "ac_cv_header_$ac_safe=yes"
8753 echo "configure: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8756 eval "ac_cv_header_$ac_safe=no"
8760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8761 echo "$ac_t""yes" 1>&6
8762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8763 cat >> confdefs.h <<EOF
8764 #define $ac_tr_hdr 1
8768 echo "$ac_t""no" 1>&6
8773 if test $ac_cv_header_readline_readline_h = yes ; then
8775 LIBS="$TERMCAP_LIBS $LIBS"
8776 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8777 echo "configure:8778: checking for readline in -lreadline" >&5
8778 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8782 ac_save_LIBS="$LIBS"
8783 LIBS="-lreadline $LIBS"
8784 cat > conftest.$ac_ext <<EOF
8785 #line 8786 "configure"
8786 #include "confdefs.h"
8787 /* Override any gcc2 internal prototype to avoid an error. */
8788 /* We use char because int might match the return type of a gcc2
8789 builtin and then its argument prototype would still apply. */
8796 if { (eval echo configure:8797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8798 eval "ac_cv_lib_$ac_lib_var=yes"
8800 echo "configure: failed program was:" >&5
8801 cat conftest.$ac_ext >&5
8803 eval "ac_cv_lib_$ac_lib_var=no"
8806 LIBS="$ac_save_LIBS"
8809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8810 echo "$ac_t""yes" 1>&6
8813 echo "$ac_t""no" 1>&6
8819 if test $have_readline = yes ; then
8820 ol_with_readline=found
8821 ol_link_readline=yes
8823 READLINE_LIBS="-lreadline"
8828 if test $ol_link_readline = yes ; then
8829 cat >> confdefs.h <<\EOF
8830 #define HAVE_READLINE 1
8836 # FreeBSD (and others) have crypt(3) in -lcrypt
8837 if test $ol_enable_crypt != no ; then
8838 echo $ac_n "checking for crypt""... $ac_c" 1>&6
8839 echo "configure:8840: checking for crypt" >&5
8840 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
8841 echo $ac_n "(cached) $ac_c" 1>&6
8843 cat > conftest.$ac_ext <<EOF
8844 #line 8845 "configure"
8845 #include "confdefs.h"
8846 /* System header to define __stub macros and hopefully few prototypes,
8847 which can conflict with char crypt(); below. */
8849 /* Override any gcc2 internal prototype to avoid an error. */
8850 /* We use char because int might match the return type of a gcc2
8851 builtin and then its argument prototype would still apply. */
8856 /* The GNU C library defines this for functions which it implements
8857 to always fail with ENOSYS. Some functions are actually named
8858 something starting with __ and the normal name is an alias. */
8859 #if defined (__stub_crypt) || defined (__stub___crypt)
8867 if { (eval echo configure:8868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8869 eval "ac_cv_func_crypt=yes"
8871 echo "configure: failed program was:" >&5
8872 cat conftest.$ac_ext >&5
8874 eval "ac_cv_func_crypt=no"
8879 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
8880 echo "$ac_t""yes" 1>&6
8883 echo "$ac_t""no" 1>&6
8885 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8886 echo "configure:8887: checking for crypt in -lcrypt" >&5
8887 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8889 echo $ac_n "(cached) $ac_c" 1>&6
8891 ac_save_LIBS="$LIBS"
8892 LIBS="-lcrypt $LIBS"
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8896 /* Override any gcc2 internal prototype to avoid an error. */
8897 /* We use char because int might match the return type of a gcc2
8898 builtin and then its argument prototype would still apply. */
8905 if { (eval echo configure:8906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8907 eval "ac_cv_lib_$ac_lib_var=yes"
8909 echo "configure: failed program was:" >&5
8910 cat conftest.$ac_ext >&5
8912 eval "ac_cv_lib_$ac_lib_var=no"
8915 LIBS="$ac_save_LIBS"
8918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8919 echo "$ac_t""yes" 1>&6
8920 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
8923 echo "$ac_t""no" 1>&6
8930 if test $have_crypt = yes ; then
8931 cat >> confdefs.h <<\EOF
8932 #define HAVE_CRYPT 1
8936 echo "configure: warning: could not find crypt" 1>&2
8937 if test $ol_enable_crypt = yes ; then
8938 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
8941 echo "configure: warning: disabling crypt support" 1>&2
8946 # FreeBSD (and others) have setproctitle(3) in -lutil
8947 if test $ol_enable_proctitle != no ; then
8948 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
8949 echo "configure:8950: checking for setproctitle" >&5
8950 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
8951 echo $ac_n "(cached) $ac_c" 1>&6
8953 cat > conftest.$ac_ext <<EOF
8954 #line 8955 "configure"
8955 #include "confdefs.h"
8956 /* System header to define __stub macros and hopefully few prototypes,
8957 which can conflict with char setproctitle(); below. */
8959 /* Override any gcc2 internal prototype to avoid an error. */
8960 /* We use char because int might match the return type of a gcc2
8961 builtin and then its argument prototype would still apply. */
8962 char setproctitle();
8966 /* The GNU C library defines this for functions which it implements
8967 to always fail with ENOSYS. Some functions are actually named
8968 something starting with __ and the normal name is an alias. */
8969 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
8977 if { (eval echo configure:8978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8979 eval "ac_cv_func_setproctitle=yes"
8981 echo "configure: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8984 eval "ac_cv_func_setproctitle=no"
8989 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
8990 echo "$ac_t""yes" 1>&6
8991 have_setproctitle=yes
8993 echo "$ac_t""no" 1>&6
8995 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
8996 echo "configure:8997: checking for setproctitle in -lutil" >&5
8997 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
8998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8999 echo $ac_n "(cached) $ac_c" 1>&6
9001 ac_save_LIBS="$LIBS"
9003 cat > conftest.$ac_ext <<EOF
9004 #line 9005 "configure"
9005 #include "confdefs.h"
9006 /* Override any gcc2 internal prototype to avoid an error. */
9007 /* We use char because int might match the return type of a gcc2
9008 builtin and then its argument prototype would still apply. */
9009 char setproctitle();
9015 if { (eval echo configure:9016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9017 eval "ac_cv_lib_$ac_lib_var=yes"
9019 echo "configure: failed program was:" >&5
9020 cat conftest.$ac_ext >&5
9022 eval "ac_cv_lib_$ac_lib_var=no"
9025 LIBS="$ac_save_LIBS"
9028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9029 echo "$ac_t""yes" 1>&6
9030 have_setproctitle=yes
9031 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9033 echo "$ac_t""no" 1>&6
9034 have_setproctitle=no
9035 LIBOBJS="$LIBOBJS setproctitle.o"
9041 if test $have_setproctitle = yes ; then
9042 cat >> confdefs.h <<\EOF
9043 #define HAVE_SETPROCTITLE 1
9050 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9051 echo "configure:9052: checking for EBCDIC" >&5
9052 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9053 echo $ac_n "(cached) $ac_c" 1>&6
9056 cat > conftest.$ac_ext <<EOF
9057 #line 9058 "configure"
9058 #include "confdefs.h"
9061 #include <__ASCII__/generate_error.h>
9065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9066 { (eval echo configure:9067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9068 if test -z "$ac_err"; then
9070 ol_cv_cpp_ebcdic=yes
9073 echo "configure: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9081 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9082 if test $ol_cv_cpp_ebcdic = yes ; then
9083 cat >> confdefs.h <<\EOF
9084 #define HAVE_EBCDIC 1
9089 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9090 echo "configure:9091: checking for ANSI C header files" >&5
9091 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9094 cat > conftest.$ac_ext <<EOF
9095 #line 9096 "configure"
9096 #include "confdefs.h"
9102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9103 { (eval echo configure:9104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9105 if test -z "$ac_err"; then
9107 ol_cv_header_stdc=yes
9110 echo "configure: failed program was:" >&5
9111 cat conftest.$ac_ext >&5
9113 ol_cv_header_stdc=no
9117 if test $ol_cv_header_stdc = yes; then
9118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9119 cat > conftest.$ac_ext <<EOF
9120 #line 9121 "configure"
9121 #include "confdefs.h"
9124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9125 egrep "memchr" >/dev/null 2>&1; then
9129 ol_cv_header_stdc=no
9135 if test $ol_cv_header_stdc = yes; then
9136 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9137 cat > conftest.$ac_ext <<EOF
9138 #line 9139 "configure"
9139 #include "confdefs.h"
9142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9143 egrep "free" >/dev/null 2>&1; then
9147 ol_cv_header_stdc=no
9153 if test $ol_cv_header_stdc = yes; then
9154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9155 if test "$cross_compiling" = yes; then
9158 cat > conftest.$ac_ext <<EOF
9159 #line 9160 "configure"
9160 #include "confdefs.h"
9163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9166 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9167 || ('j' <= (c) && (c) <= 'r') \
9168 || ('s' <= (c) && (c) <= 'z'))
9169 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9172 int main () { int i; for (i = 0; i < 256; i++)
9173 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9177 if { (eval echo configure:9178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9181 echo "configure: failed program was:" >&5
9182 cat conftest.$ac_ext >&5
9184 ol_cv_header_stdc=no
9192 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9193 if test $ol_cv_header_stdc = yes; then
9194 cat >> confdefs.h <<\EOF
9195 #define STDC_HEADERS 1
9199 ac_cv_header_stdc=disable
9202 if test $ol_cv_header_stdc != yes; then
9203 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9207 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
9209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9210 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9211 echo "configure:9212: checking for $ac_hdr that defines DIR" >&5
9212 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9213 echo $ac_n "(cached) $ac_c" 1>&6
9215 cat > conftest.$ac_ext <<EOF
9216 #line 9217 "configure"
9217 #include "confdefs.h"
9218 #include <sys/types.h>
9224 if { (eval echo configure:9225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9226 eval "ac_cv_header_dirent_$ac_safe=yes"
9228 echo "configure: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9231 eval "ac_cv_header_dirent_$ac_safe=no"
9235 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9236 echo "$ac_t""yes" 1>&6
9237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9238 cat >> confdefs.h <<EOF
9239 #define $ac_tr_hdr 1
9241 ac_header_dirent=$ac_hdr; break
9243 echo "$ac_t""no" 1>&6
9246 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9247 if test $ac_header_dirent = dirent.h; then
9248 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9249 echo "configure:9250: checking for opendir in -ldir" >&5
9250 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9252 echo $ac_n "(cached) $ac_c" 1>&6
9254 ac_save_LIBS="$LIBS"
9256 cat > conftest.$ac_ext <<EOF
9257 #line 9258 "configure"
9258 #include "confdefs.h"
9259 /* Override any gcc2 internal prototype to avoid an error. */
9260 /* We use char because int might match the return type of a gcc2
9261 builtin and then its argument prototype would still apply. */
9268 if { (eval echo configure:9269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9270 eval "ac_cv_lib_$ac_lib_var=yes"
9272 echo "configure: failed program was:" >&5
9273 cat conftest.$ac_ext >&5
9275 eval "ac_cv_lib_$ac_lib_var=no"
9278 LIBS="$ac_save_LIBS"
9281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9282 echo "$ac_t""yes" 1>&6
9285 echo "$ac_t""no" 1>&6
9289 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9290 echo "configure:9291: checking for opendir in -lx" >&5
9291 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9293 echo $ac_n "(cached) $ac_c" 1>&6
9295 ac_save_LIBS="$LIBS"
9297 cat > conftest.$ac_ext <<EOF
9298 #line 9299 "configure"
9299 #include "confdefs.h"
9300 /* Override any gcc2 internal prototype to avoid an error. */
9301 /* We use char because int might match the return type of a gcc2
9302 builtin and then its argument prototype would still apply. */
9309 if { (eval echo configure:9310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9311 eval "ac_cv_lib_$ac_lib_var=yes"
9313 echo "configure: failed program was:" >&5
9314 cat conftest.$ac_ext >&5
9316 eval "ac_cv_lib_$ac_lib_var=no"
9319 LIBS="$ac_save_LIBS"
9322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9323 echo "$ac_t""yes" 1>&6
9326 echo "$ac_t""no" 1>&6
9331 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9332 echo "configure:9333: checking for sys/wait.h that is POSIX.1 compatible" >&5
9333 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9334 echo $ac_n "(cached) $ac_c" 1>&6
9336 cat > conftest.$ac_ext <<EOF
9337 #line 9338 "configure"
9338 #include "confdefs.h"
9339 #include <sys/types.h>
9340 #include <sys/wait.h>
9342 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9345 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9350 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9353 if { (eval echo configure:9354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9355 ac_cv_header_sys_wait_h=yes
9357 echo "configure: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9360 ac_cv_header_sys_wait_h=no
9365 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9366 if test $ac_cv_header_sys_wait_h = yes; then
9367 cat >> confdefs.h <<\EOF
9368 #define HAVE_SYS_WAIT_H 1
9373 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9374 echo "configure:9375: checking POSIX termios" >&5
9375 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
9376 echo $ac_n "(cached) $ac_c" 1>&6
9378 cat > conftest.$ac_ext <<EOF
9379 #line 9380 "configure"
9380 #include "confdefs.h"
9381 #include <sys/types.h>
9383 #include <termios.h>
9385 /* SunOS 4.0.3 has termios.h but not the library calls. */
9389 if { (eval echo configure:9390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9391 am_cv_sys_posix_termios=yes
9393 echo "configure: failed program was:" >&5
9394 cat conftest.$ac_ext >&5
9396 am_cv_sys_posix_termios=no
9401 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9404 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9405 echo "configure:9406: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9406 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9409 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9411 gwinsz_in_termios_h=no
9412 if test $am_cv_sys_posix_termios = yes; then
9413 cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9416 #include <sys/types.h>
9417 # include <termios.h>
9423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9424 egrep "yes" >/dev/null 2>&1; then
9426 gwinsz_in_termios_h=yes
9432 if test $gwinsz_in_termios_h = no; then
9433 cat > conftest.$ac_ext <<EOF
9434 #line 9435 "configure"
9435 #include "confdefs.h"
9436 #include <sys/types.h>
9437 # include <sys/ioctl.h>
9443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9444 egrep "yes" >/dev/null 2>&1; then
9446 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9454 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9455 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9456 cat >> confdefs.h <<\EOF
9457 #define GWINSZ_IN_SYS_IOCTL 1
9462 if test $am_cv_sys_posix_termios = yes ; then
9463 cat >> confdefs.h <<\EOF
9464 #define HAVE_POSIX_TERMIOS 1
9509 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9511 echo "configure:9512: checking for $ac_hdr" >&5
9512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
9520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9521 { (eval echo configure:9522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9523 if test -z "$ac_err"; then
9525 eval "ac_cv_header_$ac_safe=yes"
9528 echo "configure: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9531 eval "ac_cv_header_$ac_safe=no"
9535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9536 echo "$ac_t""yes" 1>&6
9537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9538 cat >> confdefs.h <<EOF
9539 #define $ac_tr_hdr 1
9543 echo "$ac_t""no" 1>&6
9548 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9549 echo "configure:9550: checking for uid_t in sys/types.h" >&5
9550 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
9551 echo $ac_n "(cached) $ac_c" 1>&6
9553 cat > conftest.$ac_ext <<EOF
9554 #line 9555 "configure"
9555 #include "confdefs.h"
9556 #include <sys/types.h>
9558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9559 egrep "uid_t" >/dev/null 2>&1; then
9561 ac_cv_type_uid_t=yes
9570 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
9571 if test $ac_cv_type_uid_t = no; then
9572 cat >> confdefs.h <<\EOF
9576 cat >> confdefs.h <<\EOF
9582 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
9583 echo "configure:9584: checking type of array argument to getgroups" >&5
9584 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
9585 echo $ac_n "(cached) $ac_c" 1>&6
9587 if test "$cross_compiling" = yes; then
9588 ac_cv_type_getgroups=cross
9590 cat > conftest.$ac_ext <<EOF
9591 #line 9592 "configure"
9592 #include "confdefs.h"
9594 /* Thanks to Mike Rendell for this test. */
9595 #include <sys/types.h>
9598 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9603 union { gid_t gval; long lval; } val;
9606 for (i = 0; i < NGID; i++)
9607 gidset[i] = val.gval;
9608 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9610 /* Exit non-zero if getgroups seems to require an array of ints. This
9611 happens when gid_t is short but getgroups modifies an array of ints. */
9612 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9616 if { (eval echo configure:9617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9618 ac_cv_type_getgroups=gid_t
9620 echo "configure: failed program was:" >&5
9621 cat conftest.$ac_ext >&5
9623 ac_cv_type_getgroups=int
9628 if test $ac_cv_type_getgroups = cross; then
9629 cat > conftest.$ac_ext <<EOF
9630 #line 9631 "configure"
9631 #include "confdefs.h"
9634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9635 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9637 ac_cv_type_getgroups=gid_t
9640 ac_cv_type_getgroups=int
9647 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
9648 cat >> confdefs.h <<EOF
9649 #define GETGROUPS_T $ac_cv_type_getgroups
9652 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9653 echo "configure:9654: checking for ANSI C header files" >&5
9654 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9655 echo $ac_n "(cached) $ac_c" 1>&6
9657 cat > conftest.$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9666 { (eval echo configure:9667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9668 if test -z "$ac_err"; then
9670 ac_cv_header_stdc=yes
9673 echo "configure: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9676 ac_cv_header_stdc=no
9680 if test $ac_cv_header_stdc = yes; then
9681 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9682 cat > conftest.$ac_ext <<EOF
9683 #line 9684 "configure"
9684 #include "confdefs.h"
9687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9688 egrep "memchr" >/dev/null 2>&1; then
9692 ac_cv_header_stdc=no
9698 if test $ac_cv_header_stdc = yes; then
9699 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9700 cat > conftest.$ac_ext <<EOF
9701 #line 9702 "configure"
9702 #include "confdefs.h"
9705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9706 egrep "free" >/dev/null 2>&1; then
9710 ac_cv_header_stdc=no
9716 if test $ac_cv_header_stdc = yes; then
9717 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9718 if test "$cross_compiling" = yes; then
9721 cat > conftest.$ac_ext <<EOF
9722 #line 9723 "configure"
9723 #include "confdefs.h"
9725 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9726 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9728 int main () { int i; for (i = 0; i < 256; i++)
9729 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9733 if { (eval echo configure:9734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9737 echo "configure: failed program was:" >&5
9738 cat conftest.$ac_ext >&5
9740 ac_cv_header_stdc=no
9748 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9749 if test $ac_cv_header_stdc = yes; then
9750 cat >> confdefs.h <<\EOF
9751 #define STDC_HEADERS 1
9756 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9757 echo "configure:9758: checking for mode_t" >&5
9758 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9759 echo $ac_n "(cached) $ac_c" 1>&6
9761 cat > conftest.$ac_ext <<EOF
9762 #line 9763 "configure"
9763 #include "confdefs.h"
9764 #include <sys/types.h>
9770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9771 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9773 ac_cv_type_mode_t=yes
9776 ac_cv_type_mode_t=no
9781 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
9782 if test $ac_cv_type_mode_t = no; then
9783 cat >> confdefs.h <<\EOF
9789 echo $ac_n "checking for off_t""... $ac_c" 1>&6
9790 echo "configure:9791: checking for off_t" >&5
9791 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
9792 echo $ac_n "(cached) $ac_c" 1>&6
9794 cat > conftest.$ac_ext <<EOF
9795 #line 9796 "configure"
9796 #include "confdefs.h"
9797 #include <sys/types.h>
9803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9804 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9806 ac_cv_type_off_t=yes
9814 echo "$ac_t""$ac_cv_type_off_t" 1>&6
9815 if test $ac_cv_type_off_t = no; then
9816 cat >> confdefs.h <<\EOF
9822 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9823 echo "configure:9824: checking for pid_t" >&5
9824 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
9825 echo $ac_n "(cached) $ac_c" 1>&6
9827 cat > conftest.$ac_ext <<EOF
9828 #line 9829 "configure"
9829 #include "confdefs.h"
9830 #include <sys/types.h>
9836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9837 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9839 ac_cv_type_pid_t=yes
9847 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
9848 if test $ac_cv_type_pid_t = no; then
9849 cat >> confdefs.h <<\EOF
9855 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
9856 echo "configure:9857: checking for ptrdiff_t" >&5
9857 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
9858 echo $ac_n "(cached) $ac_c" 1>&6
9860 cat > conftest.$ac_ext <<EOF
9861 #line 9862 "configure"
9862 #include "confdefs.h"
9868 if { (eval echo configure:9869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9870 am_cv_type_ptrdiff_t=yes
9872 echo "configure: failed program was:" >&5
9873 cat conftest.$ac_ext >&5
9875 am_cv_type_ptrdiff_t=no
9880 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
9881 if test $am_cv_type_ptrdiff_t = yes; then
9882 cat >> confdefs.h <<\EOF
9883 #define HAVE_PTRDIFF_T 1
9888 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
9889 echo "configure:9890: checking return type of signal handlers" >&5
9890 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
9891 echo $ac_n "(cached) $ac_c" 1>&6
9893 cat > conftest.$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9896 #include <sys/types.h>
9902 extern "C" void (*signal (int, void (*)(int)))(int);
9904 void (*signal ()) ();
9911 if { (eval echo configure:9912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9913 ac_cv_type_signal=void
9915 echo "configure: failed program was:" >&5
9916 cat conftest.$ac_ext >&5
9918 ac_cv_type_signal=int
9923 echo "$ac_t""$ac_cv_type_signal" 1>&6
9924 cat >> confdefs.h <<EOF
9925 #define RETSIGTYPE $ac_cv_type_signal
9929 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
9930 echo "configure:9931: checking for sig_atomic_t" >&5
9931 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
9932 echo $ac_n "(cached) $ac_c" 1>&6
9934 cat > conftest.$ac_ext <<EOF
9935 #line 9936 "configure"
9936 #include "confdefs.h"
9939 sig_atomic_t atomic;
9942 if { (eval echo configure:9943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9944 ol_cv_type_sig_atomic_t=yes
9946 echo "configure: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9949 ol_cv_type_sig_atomic_t=no
9954 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
9955 if test $ol_cv_type_sig_atomic_t = no; then
9956 cat >> confdefs.h <<\EOF
9957 #define sig_atomic_t int
9962 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9963 echo "configure:9964: checking for size_t" >&5
9964 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9965 echo $ac_n "(cached) $ac_c" 1>&6
9967 cat > conftest.$ac_ext <<EOF
9968 #line 9969 "configure"
9969 #include "confdefs.h"
9970 #include <sys/types.h>
9976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9977 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
9979 ac_cv_type_size_t=yes
9982 ac_cv_type_size_t=no
9987 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9988 if test $ac_cv_type_size_t = no; then
9989 cat >> confdefs.h <<\EOF
9990 #define size_t unsigned
9995 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
9996 echo "configure:9997: checking for st_blksize in struct stat" >&5
9997 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
9998 echo $ac_n "(cached) $ac_c" 1>&6
10000 cat > conftest.$ac_ext <<EOF
10001 #line 10002 "configure"
10002 #include "confdefs.h"
10003 #include <sys/types.h>
10004 #include <sys/stat.h>
10006 struct stat s; s.st_blksize;
10009 if { (eval echo configure:10010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10011 ac_cv_struct_st_blksize=yes
10013 echo "configure: failed program was:" >&5
10014 cat conftest.$ac_ext >&5
10016 ac_cv_struct_st_blksize=no
10021 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10022 if test $ac_cv_struct_st_blksize = yes; then
10023 cat >> confdefs.h <<\EOF
10024 #define HAVE_ST_BLKSIZE 1
10029 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10030 echo "configure:10031: checking whether time.h and sys/time.h may both be included" >&5
10031 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10032 echo $ac_n "(cached) $ac_c" 1>&6
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include <sys/types.h>
10038 #include <sys/time.h>
10044 if { (eval echo configure:10045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10046 ac_cv_header_time=yes
10048 echo "configure: failed program was:" >&5
10049 cat conftest.$ac_ext >&5
10051 ac_cv_header_time=no
10056 echo "$ac_t""$ac_cv_header_time" 1>&6
10057 if test $ac_cv_header_time = yes; then
10058 cat >> confdefs.h <<\EOF
10059 #define TIME_WITH_SYS_TIME 1
10064 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10065 echo "configure:10066: checking whether struct tm is in sys/time.h or time.h" >&5
10066 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
10069 cat > conftest.$ac_ext <<EOF
10070 #line 10071 "configure"
10071 #include "confdefs.h"
10072 #include <sys/types.h>
10075 struct tm *tp; tp->tm_sec;
10078 if { (eval echo configure:10079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10080 ac_cv_struct_tm=time.h
10082 echo "configure: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10085 ac_cv_struct_tm=sys/time.h
10090 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10091 if test $ac_cv_struct_tm = sys/time.h; then
10092 cat >> confdefs.h <<\EOF
10093 #define TM_IN_SYS_TIME 1
10098 # test for pw_gecos in struct passwd
10099 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10100 echo "configure:10101: checking struct passwd for pw_gecos" >&5
10101 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10102 echo $ac_n "(cached) $ac_c" 1>&6
10105 cat > conftest.$ac_ext <<EOF
10106 #line 10107 "configure"
10107 #include "confdefs.h"
10112 pwd.pw_gecos = pwd.pw_name;
10116 if { (eval echo configure:10117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10118 ol_cv_struct_passwd_pw_gecos=yes
10120 echo "configure: failed program was:" >&5
10121 cat conftest.$ac_ext >&5
10123 ol_cv_struct_passwd_pw_gecos=no
10128 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10129 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10130 cat >> confdefs.h <<\EOF
10131 #define HAVE_PW_GECOS 1
10138 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
10139 echo "configure:10140: checking if toupper() requires islower()" >&5
10140 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
10141 echo $ac_n "(cached) $ac_c" 1>&6
10144 if test "$cross_compiling" = yes; then
10145 ol_cv_c_upper_lower=safe
10147 cat > conftest.$ac_ext <<EOF
10148 #line 10149 "configure"
10149 #include "confdefs.h"
10154 if ('C' == toupper('C'))
10160 if { (eval echo configure:10161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10162 ol_cv_c_upper_lower=no
10164 echo "configure: failed program was:" >&5
10165 cat conftest.$ac_ext >&5
10167 ol_cv_c_upper_lower=yes
10174 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
10175 if test $ol_cv_c_upper_lower != no ; then
10176 cat >> confdefs.h <<\EOF
10177 #define C_UPPER_LOWER 1
10182 echo $ac_n "checking for working const""... $ac_c" 1>&6
10183 echo "configure:10184: checking for working const" >&5
10184 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10185 echo $ac_n "(cached) $ac_c" 1>&6
10187 cat > conftest.$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10193 /* Ultrix mips cc rejects this. */
10194 typedef int charset[2]; const charset x;
10195 /* SunOS 4.1.1 cc rejects this. */
10196 char const *const *ccp;
10198 /* NEC SVR4.0.2 mips cc rejects this. */
10199 struct point {int x, y;};
10200 static struct point const zero = {0,0};
10201 /* AIX XL C 1.02.0.0 rejects this.
10202 It does not let you subtract one const X* pointer from another in an arm
10203 of an if-expression whose if-part is not a constant expression */
10204 const char *g = "string";
10205 ccp = &g + (g ? g-g : 0);
10206 /* HPUX 7.0 cc rejects these. */
10209 ccp = (char const *const *) p;
10210 { /* SCO 3.2v4 cc rejects this. */
10212 char const *s = 0 ? (char *) 0 : (char const *) 0;
10216 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10217 int x[] = {25, 17};
10218 const int *foo = &x[0];
10221 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10222 typedef const int *iptr;
10226 { /* AIX XL C 1.02.0.0 rejects this saying
10227 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10228 struct s { int j; const int *ap[3]; };
10229 struct s *b; b->j = 5;
10231 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10232 const int foo = 10;
10237 if { (eval echo configure:10238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10241 echo "configure: failed program was:" >&5
10242 cat conftest.$ac_ext >&5
10249 echo "$ac_t""$ac_cv_c_const" 1>&6
10250 if test $ac_cv_c_const = no; then
10251 cat >> confdefs.h <<\EOF
10257 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
10258 echo "configure:10259: checking if compiler understands volatile" >&5
10259 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
10260 echo $ac_n "(cached) $ac_c" 1>&6
10262 cat > conftest.$ac_ext <<EOF
10263 #line 10264 "configure"
10264 #include "confdefs.h"
10267 volatile int a; int * volatile b = x ? &y : &z;
10268 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
10272 if { (eval echo configure:10273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10274 ol_cv_c_volatile=yes
10276 echo "configure: failed program was:" >&5
10277 cat conftest.$ac_ext >&5
10279 ol_cv_c_volatile=no
10284 echo "$ac_t""$ol_cv_c_volatile" 1>&6
10285 if test $ol_cv_c_volatile = yes; then
10288 cat >> confdefs.h <<\EOF
10295 if test $cross_compiling = yes ; then
10296 cat >> confdefs.h <<\EOF
10297 #define CROSS_COMPILING 1
10301 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10302 echo "configure:10303: checking whether byte ordering is bigendian" >&5
10303 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10304 echo $ac_n "(cached) $ac_c" 1>&6
10306 ac_cv_c_bigendian=unknown
10307 # See if sys/param.h defines the BYTE_ORDER macro.
10308 cat > conftest.$ac_ext <<EOF
10309 #line 10310 "configure"
10310 #include "confdefs.h"
10311 #include <sys/types.h>
10312 #include <sys/param.h>
10315 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10316 bogus endian macros
10320 if { (eval echo configure:10321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10322 # It does; now see whether it defined to BIG_ENDIAN or not.
10323 cat > conftest.$ac_ext <<EOF
10324 #line 10325 "configure"
10325 #include "confdefs.h"
10326 #include <sys/types.h>
10327 #include <sys/param.h>
10330 #if BYTE_ORDER != BIG_ENDIAN
10335 if { (eval echo configure:10336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10337 ac_cv_c_bigendian=yes
10339 echo "configure: failed program was:" >&5
10340 cat conftest.$ac_ext >&5
10342 ac_cv_c_bigendian=no
10346 echo "configure: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10350 if test $ac_cv_c_bigendian = unknown; then
10351 if test "$cross_compiling" = yes; then
10352 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10354 cat > conftest.$ac_ext <<EOF
10355 #line 10356 "configure"
10356 #include "confdefs.h"
10358 /* Are we little or big endian? From Harbison&Steele. */
10362 char c[sizeof (long)];
10365 exit (u.c[sizeof (long) - 1] == 1);
10368 if { (eval echo configure:10369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10370 ac_cv_c_bigendian=no
10372 echo "configure: failed program was:" >&5
10373 cat conftest.$ac_ext >&5
10375 ac_cv_c_bigendian=yes
10383 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10384 if test $ac_cv_c_bigendian = yes; then
10385 cat >> confdefs.h <<\EOF
10386 #define WORDS_BIGENDIAN 1
10391 echo $ac_n "checking size of short""... $ac_c" 1>&6
10392 echo "configure:10393: checking size of short" >&5
10393 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10394 echo $ac_n "(cached) $ac_c" 1>&6
10396 if test "$cross_compiling" = yes; then
10397 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10399 cat > conftest.$ac_ext <<EOF
10400 #line 10401 "configure"
10401 #include "confdefs.h"
10405 FILE *f=fopen("conftestval", "w");
10407 fprintf(f, "%d\n", sizeof(short));
10411 if { (eval echo configure:10412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10413 ac_cv_sizeof_short=`cat conftestval`
10415 echo "configure: failed program was:" >&5
10416 cat conftest.$ac_ext >&5
10418 ac_cv_sizeof_short=0
10424 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10425 cat >> confdefs.h <<EOF
10426 #define SIZEOF_SHORT $ac_cv_sizeof_short
10430 echo $ac_n "checking size of int""... $ac_c" 1>&6
10431 echo "configure:10432: checking size of int" >&5
10432 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10433 echo $ac_n "(cached) $ac_c" 1>&6
10435 if test "$cross_compiling" = yes; then
10436 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10438 cat > conftest.$ac_ext <<EOF
10439 #line 10440 "configure"
10440 #include "confdefs.h"
10444 FILE *f=fopen("conftestval", "w");
10446 fprintf(f, "%d\n", sizeof(int));
10450 if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10452 ac_cv_sizeof_int=`cat conftestval`
10454 echo "configure: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10463 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10464 cat >> confdefs.h <<EOF
10465 #define SIZEOF_INT $ac_cv_sizeof_int
10469 echo $ac_n "checking size of long""... $ac_c" 1>&6
10470 echo "configure:10471: checking size of long" >&5
10471 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10472 echo $ac_n "(cached) $ac_c" 1>&6
10474 if test "$cross_compiling" = yes; then
10475 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
10477 cat > conftest.$ac_ext <<EOF
10478 #line 10479 "configure"
10479 #include "confdefs.h"
10483 FILE *f=fopen("conftestval", "w");
10485 fprintf(f, "%d\n", sizeof(long));
10489 if { (eval echo configure:10490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10491 ac_cv_sizeof_long=`cat conftestval`
10493 echo "configure: failed program was:" >&5
10494 cat conftest.$ac_ext >&5
10496 ac_cv_sizeof_long=0
10502 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10503 cat >> confdefs.h <<EOF
10504 #define SIZEOF_LONG $ac_cv_sizeof_long
10510 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
10511 echo "configure:10512: checking for 8-bit clean memcmp" >&5
10512 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
10513 echo $ac_n "(cached) $ac_c" 1>&6
10515 if test "$cross_compiling" = yes; then
10516 ac_cv_func_memcmp_clean=no
10518 cat > conftest.$ac_ext <<EOF
10519 #line 10520 "configure"
10520 #include "confdefs.h"
10524 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10525 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10529 if { (eval echo configure:10530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10531 ac_cv_func_memcmp_clean=yes
10533 echo "configure: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10536 ac_cv_func_memcmp_clean=no
10543 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
10544 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
10546 echo $ac_n "checking for strftime""... $ac_c" 1>&6
10547 echo "configure:10548: checking for strftime" >&5
10548 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10551 cat > conftest.$ac_ext <<EOF
10552 #line 10553 "configure"
10553 #include "confdefs.h"
10554 /* System header to define __stub macros and hopefully few prototypes,
10555 which can conflict with char strftime(); below. */
10556 #include <assert.h>
10557 /* Override any gcc2 internal prototype to avoid an error. */
10558 /* We use char because int might match the return type of a gcc2
10559 builtin and then its argument prototype would still apply. */
10564 /* The GNU C library defines this for functions which it implements
10565 to always fail with ENOSYS. Some functions are actually named
10566 something starting with __ and the normal name is an alias. */
10567 #if defined (__stub_strftime) || defined (__stub___strftime)
10575 if { (eval echo configure:10576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10577 eval "ac_cv_func_strftime=yes"
10579 echo "configure: failed program was:" >&5
10580 cat conftest.$ac_ext >&5
10582 eval "ac_cv_func_strftime=no"
10587 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
10588 echo "$ac_t""yes" 1>&6
10589 cat >> confdefs.h <<\EOF
10590 #define HAVE_STRFTIME 1
10594 echo "$ac_t""no" 1>&6
10595 # strftime is in -lintl on SCO UNIX.
10596 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
10597 echo "configure:10598: checking for strftime in -lintl" >&5
10598 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
10599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10602 ac_save_LIBS="$LIBS"
10603 LIBS="-lintl $LIBS"
10604 cat > conftest.$ac_ext <<EOF
10605 #line 10606 "configure"
10606 #include "confdefs.h"
10607 /* Override any gcc2 internal prototype to avoid an error. */
10608 /* We use char because int might match the return type of a gcc2
10609 builtin and then its argument prototype would still apply. */
10616 if { (eval echo configure:10617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10618 eval "ac_cv_lib_$ac_lib_var=yes"
10620 echo "configure: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10623 eval "ac_cv_lib_$ac_lib_var=no"
10626 LIBS="$ac_save_LIBS"
10629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10630 echo "$ac_t""yes" 1>&6
10631 cat >> confdefs.h <<\EOF
10632 #define HAVE_STRFTIME 1
10635 LIBS="-lintl $LIBS"
10637 echo "$ac_t""no" 1>&6
10642 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
10643 echo "configure:10644: checking for vprintf" >&5
10644 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
10645 echo $ac_n "(cached) $ac_c" 1>&6
10647 cat > conftest.$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10650 /* System header to define __stub macros and hopefully few prototypes,
10651 which can conflict with char vprintf(); below. */
10652 #include <assert.h>
10653 /* Override any gcc2 internal prototype to avoid an error. */
10654 /* We use char because int might match the return type of a gcc2
10655 builtin and then its argument prototype would still apply. */
10660 /* The GNU C library defines this for functions which it implements
10661 to always fail with ENOSYS. Some functions are actually named
10662 something starting with __ and the normal name is an alias. */
10663 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10671 if { (eval echo configure:10672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10673 eval "ac_cv_func_vprintf=yes"
10675 echo "configure: failed program was:" >&5
10676 cat conftest.$ac_ext >&5
10678 eval "ac_cv_func_vprintf=no"
10683 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
10684 echo "$ac_t""yes" 1>&6
10685 cat >> confdefs.h <<\EOF
10686 #define HAVE_VPRINTF 1
10690 echo "$ac_t""no" 1>&6
10693 if test "$ac_cv_func_vprintf" != yes; then
10694 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
10695 echo "configure:10696: checking for _doprnt" >&5
10696 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
10697 echo $ac_n "(cached) $ac_c" 1>&6
10699 cat > conftest.$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10702 /* System header to define __stub macros and hopefully few prototypes,
10703 which can conflict with char _doprnt(); below. */
10704 #include <assert.h>
10705 /* Override any gcc2 internal prototype to avoid an error. */
10706 /* We use char because int might match the return type of a gcc2
10707 builtin and then its argument prototype would still apply. */
10712 /* The GNU C library defines this for functions which it implements
10713 to always fail with ENOSYS. Some functions are actually named
10714 something starting with __ and the normal name is an alias. */
10715 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10723 if { (eval echo configure:10724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10725 eval "ac_cv_func__doprnt=yes"
10727 echo "configure: failed program was:" >&5
10728 cat conftest.$ac_ext >&5
10730 eval "ac_cv_func__doprnt=no"
10735 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
10736 echo "$ac_t""yes" 1>&6
10737 cat >> confdefs.h <<\EOF
10738 #define HAVE_DOPRNT 1
10742 echo "$ac_t""no" 1>&6
10748 if test $ac_cv_func_vprintf = yes ; then
10749 for ac_func in vsnprintf vsprintf
10751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10752 echo "configure:10753: checking for $ac_func" >&5
10753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10754 echo $ac_n "(cached) $ac_c" 1>&6
10756 cat > conftest.$ac_ext <<EOF
10757 #line 10758 "configure"
10758 #include "confdefs.h"
10759 /* System header to define __stub macros and hopefully few prototypes,
10760 which can conflict with char $ac_func(); below. */
10761 #include <assert.h>
10762 /* Override any gcc2 internal prototype to avoid an error. */
10763 /* We use char because int might match the return type of a gcc2
10764 builtin and then its argument prototype would still apply. */
10769 /* The GNU C library defines this for functions which it implements
10770 to always fail with ENOSYS. Some functions are actually named
10771 something starting with __ and the normal name is an alias. */
10772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10780 if { (eval echo configure:10781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10782 eval "ac_cv_func_$ac_func=yes"
10784 echo "configure: failed program was:" >&5
10785 cat conftest.$ac_ext >&5
10787 eval "ac_cv_func_$ac_func=no"
10792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10793 echo "$ac_t""yes" 1>&6
10794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10795 cat >> confdefs.h <<EOF
10796 #define $ac_tr_func 1
10800 echo "$ac_t""no" 1>&6
10847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10848 echo "configure:10849: checking for $ac_func" >&5
10849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10850 echo $ac_n "(cached) $ac_c" 1>&6
10852 cat > conftest.$ac_ext <<EOF
10853 #line 10854 "configure"
10854 #include "confdefs.h"
10855 /* System header to define __stub macros and hopefully few prototypes,
10856 which can conflict with char $ac_func(); below. */
10857 #include <assert.h>
10858 /* Override any gcc2 internal prototype to avoid an error. */
10859 /* We use char because int might match the return type of a gcc2
10860 builtin and then its argument prototype would still apply. */
10865 /* The GNU C library defines this for functions which it implements
10866 to always fail with ENOSYS. Some functions are actually named
10867 something starting with __ and the normal name is an alias. */
10868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10876 if { (eval echo configure:10877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10878 eval "ac_cv_func_$ac_func=yes"
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10883 eval "ac_cv_func_$ac_func=no"
10888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10889 echo "$ac_t""yes" 1>&6
10890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10891 cat >> confdefs.h <<EOF
10892 #define $ac_tr_func 1
10896 echo "$ac_t""no" 1>&6
10901 for ac_func in getopt tempnam
10903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10904 echo "configure:10905: checking for $ac_func" >&5
10905 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10906 echo $ac_n "(cached) $ac_c" 1>&6
10908 cat > conftest.$ac_ext <<EOF
10909 #line 10910 "configure"
10910 #include "confdefs.h"
10911 /* System header to define __stub macros and hopefully few prototypes,
10912 which can conflict with char $ac_func(); below. */
10913 #include <assert.h>
10914 /* Override any gcc2 internal prototype to avoid an error. */
10915 /* We use char because int might match the return type of a gcc2
10916 builtin and then its argument prototype would still apply. */
10921 /* The GNU C library defines this for functions which it implements
10922 to always fail with ENOSYS. Some functions are actually named
10923 something starting with __ and the normal name is an alias. */
10924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10932 if { (eval echo configure:10933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10934 eval "ac_cv_func_$ac_func=yes"
10936 echo "configure: failed program was:" >&5
10937 cat conftest.$ac_ext >&5
10939 eval "ac_cv_func_$ac_func=no"
10944 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10945 echo "$ac_t""yes" 1>&6
10946 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10947 cat >> confdefs.h <<EOF
10948 #define $ac_tr_func 1
10952 echo "$ac_t""no" 1>&6
10953 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
10959 # Check Configuration
10961 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
10962 echo "configure:10963: checking declaration of sys_errlist" >&5
10963 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
10964 echo $ac_n "(cached) $ac_c" 1>&6
10967 cat > conftest.$ac_ext <<EOF
10968 #line 10969 "configure"
10969 #include "confdefs.h"
10972 #include <sys/types.h>
10975 char *c = (char *) *sys_errlist
10978 if { (eval echo configure:10979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10980 ol_cv_dcl_sys_errlist=yes
10982 echo "configure: failed program was:" >&5
10983 cat conftest.$ac_ext >&5
10985 ol_cv_dcl_sys_errlist=no
10990 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
10991 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
10992 if test $ol_cv_dcl_sys_errlist = no ; then
10993 cat >> confdefs.h <<\EOF
10994 #define DECL_SYS_ERRLIST 1
10997 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
10998 echo "configure:10999: checking existence of sys_errlist" >&5
10999 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11000 echo $ac_n "(cached) $ac_c" 1>&6
11003 cat > conftest.$ac_ext <<EOF
11004 #line 11005 "configure"
11005 #include "confdefs.h"
11008 char *c = (char *) *sys_errlist
11011 if { (eval echo configure:11012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11013 ol_cv_have_sys_errlist=yes
11015 echo "configure: failed program was:" >&5
11016 cat conftest.$ac_ext >&5
11018 ol_cv_have_sys_errlist=no
11023 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11024 if test $ol_cv_have_sys_errlist = yes ; then
11025 cat >> confdefs.h <<\EOF
11026 #define HAVE_SYS_ERRLIST 1
11034 echo $ac_n "checking strdup declaration""... $ac_c" 1>&6
11035 echo "configure:11036: checking strdup declaration" >&5
11036 if eval "test \"`echo '$''{'ol_cv_dcl_strdup'+set}'`\" = set"; then
11037 echo $ac_n "(cached) $ac_c" 1>&6
11040 cat > conftest.$ac_ext <<EOF
11041 #line 11042 "configure"
11042 #include "confdefs.h"
11044 #include <string.h>
11046 extern char *strdup();
11049 if { (eval echo configure:11050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11051 ol_cv_dcl_strdup=yes
11053 echo "configure: failed program was:" >&5
11054 cat conftest.$ac_ext >&5
11056 ol_cv_dcl_strdup=no
11061 echo "$ac_t""$ol_cv_dcl_strdup" 1>&6
11062 if test $ol_cv_dcl_strdup = yes ; then
11063 cat >> confdefs.h <<\EOF
11064 #define DECL_STRDUP 1
11071 if test "$ol_enable_debug" != no ; then
11072 cat >> confdefs.h <<\EOF
11073 #define LDAP_DEBUG 1
11077 if test "$ol_enable_syslog" = yes ; then
11078 cat >> confdefs.h <<\EOF
11079 #define LDAP_SYSLOG 1
11083 if test "$ol_enable_libui" = yes ; then
11084 cat >> confdefs.h <<\EOF
11085 #define LDAP_LIBUI 1
11089 if test "$ol_enable_cache" = no ; then
11090 cat >> confdefs.h <<\EOF
11091 #define LDAP_NOCACHE 1
11095 if test "$ol_enable_dns" != no ; then
11096 cat >> confdefs.h <<\EOF
11097 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11101 if test "$ol_enable_proctitle" != no ; then
11102 cat >> confdefs.h <<\EOF
11103 #define LDAP_PROCTITLE 1
11107 if test "$ol_enable_referrals" != no ; then
11108 cat >> confdefs.h <<\EOF
11109 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
11113 if test "$ol_enable_cldap" != no ; then
11114 cat >> confdefs.h <<\EOF
11115 #define LDAP_CONNECTIONLESS 1
11120 if test "$ol_enable_aclgroups" != no ; then
11121 cat >> confdefs.h <<\EOF
11122 #define SLAPD_ACLGROUPS 1
11126 if test "$ol_enable_crypt" != no ; then
11127 cat >> confdefs.h <<\EOF
11128 #define SLAPD_CRYPT 1
11132 if test "$ol_enable_cleartext" != no ; then
11133 cat >> confdefs.h <<\EOF
11134 #define SLAPD_CLEARTEXT 1
11138 if test "$ol_enable_phonetic" != no ; then
11139 cat >> confdefs.h <<\EOF
11140 #define SLAPD_PHONETIC 1
11144 if test "$ol_enable_rlookups" != no ; then
11145 cat >> confdefs.h <<\EOF
11146 #define SLAPD_RLOOKUPS 1
11151 if test "$ol_link_modules" != no ; then
11152 cat >> confdefs.h <<\EOF
11153 #define SLAPD_MODULES 1
11159 if test "$ol_link_bdb2" != no ; then
11160 cat >> confdefs.h <<\EOF
11161 #define SLAPD_BDB2 1
11168 if test "$ol_link_ldbm" != no ; then
11169 cat >> confdefs.h <<\EOF
11170 #define SLAPD_LDBM 1
11177 if test "$ol_enable_passwd" != no ; then
11178 cat >> confdefs.h <<\EOF
11179 #define SLAPD_PASSWD 1
11186 if test "$ol_link_perl" != no ; then
11187 cat >> confdefs.h <<\EOF
11188 #define SLAPD_PERL 1
11195 if test "$ol_enable_shell" != no ; then
11196 cat >> confdefs.h <<\EOF
11197 #define SLAPD_SHELL 1
11204 if test "$ol_enable_tcl" != no ; then
11205 cat >> confdefs.h <<\EOF
11206 #define SLAPD_TCL 1
11213 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
11214 $BUILD_SLAPD = yes ; then
11218 if test "$ol_link_isode" != no ; then
11255 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11257 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11258 # Let make expand exec_prefix.
11259 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11261 # Any assignment to VPATH causes Sun make to only execute
11262 # the first set of double-colon rules, so remove it if not needed.
11263 # If there is a colon in the path, we need to keep it.
11264 if test "x$srcdir" = x.; then
11265 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11268 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11270 DEFS=-DHAVE_CONFIG_H
11272 # Without the "./", some shells look in PATH for config.status.
11273 : ${CONFIG_STATUS=./config.status}
11275 echo creating $CONFIG_STATUS
11276 rm -f $CONFIG_STATUS
11277 cat > $CONFIG_STATUS <<EOF
11279 # Generated automatically by configure.
11280 # Run this file to recreate the current configuration.
11281 # This directory was configured as follows,
11282 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11284 # $0 $ac_configure_args
11286 # Compiler output produced by configure, useful for debugging
11287 # configure, is in ./config.log if it exists.
11289 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11292 case "\$ac_option" in
11293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11294 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11295 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11296 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
11297 echo "$CONFIG_STATUS generated by autoconf version 2.13"
11299 -help | --help | --hel | --he | --h)
11300 echo "\$ac_cs_usage"; exit 0 ;;
11301 *) echo "\$ac_cs_usage"; exit 1 ;;
11305 ac_given_srcdir=$srcdir
11306 ac_given_INSTALL="$INSTALL"
11308 trap 'rm -fr `echo "\
11309 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11310 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11311 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11312 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11313 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11314 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11315 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11316 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11317 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11318 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11319 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11320 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11321 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11322 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11323 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11324 include/Makefile:build/top.mk:include/Makefile.in \
11325 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11326 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11327 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11328 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11329 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11330 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11331 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11332 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11333 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11334 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11335 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11336 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11337 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11338 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11339 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11340 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11341 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11342 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11343 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11344 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11345 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11346 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11347 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11348 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11349 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11350 include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11352 cat >> $CONFIG_STATUS <<EOF
11354 # Protect against being on the right side of a sed subst in config.status.
11355 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11356 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11360 s%@CFLAGS@%$CFLAGS%g
11361 s%@CPPFLAGS@%$CPPFLAGS%g
11362 s%@CXXFLAGS@%$CXXFLAGS%g
11363 s%@FFLAGS@%$FFLAGS%g
11365 s%@LDFLAGS@%$LDFLAGS%g
11367 s%@exec_prefix@%$exec_prefix%g
11368 s%@prefix@%$prefix%g
11369 s%@program_transform_name@%$program_transform_name%g
11370 s%@bindir@%$bindir%g
11371 s%@sbindir@%$sbindir%g
11372 s%@libexecdir@%$libexecdir%g
11373 s%@datadir@%$datadir%g
11374 s%@sysconfdir@%$sysconfdir%g
11375 s%@sharedstatedir@%$sharedstatedir%g
11376 s%@localstatedir@%$localstatedir%g
11377 s%@libdir@%$libdir%g
11378 s%@includedir@%$includedir%g
11379 s%@oldincludedir@%$oldincludedir%g
11380 s%@infodir@%$infodir%g
11381 s%@mandir@%$mandir%g
11382 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11383 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11384 s%@INSTALL_DATA@%$INSTALL_DATA%g
11385 s%@PACKAGE@%$PACKAGE%g
11386 s%@VERSION@%$VERSION%g
11387 s%@ACLOCAL@%$ACLOCAL%g
11388 s%@AUTOCONF@%$AUTOCONF%g
11389 s%@AUTOMAKE@%$AUTOMAKE%g
11390 s%@AUTOHEADER@%$AUTOHEADER%g
11391 s%@MAKEINFO@%$MAKEINFO%g
11392 s%@SET_MAKE@%$SET_MAKE%g
11393 s%@top_builddir@%$top_builddir%g
11394 s%@ldap_subdir@%$ldap_subdir%g
11396 s%@host_alias@%$host_alias%g
11397 s%@host_cpu@%$host_cpu%g
11398 s%@host_vendor@%$host_vendor%g
11399 s%@host_os@%$host_os%g
11400 s%@RANLIB@%$RANLIB%g
11405 s%@LIBTOOL@%$LIBTOOL%g
11408 s%@SENDMAIL@%$SENDMAIL%g
11409 s%@EDITOR@%$EDITOR%g
11410 s%@FINGER@%$FINGER%g
11411 s%@GLIBCONFIG@%$GLIBCONFIG%g
11412 s%@PERLBIN@%$PERLBIN%g
11414 s%@EXEEXT@%$EXEEXT%g
11415 s%@OBJEXT@%$OBJEXT%g
11417 s%@LIBOBJS@%$LIBOBJS%g
11418 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
11419 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
11420 s%@BUILD_BDB2@%$BUILD_BDB2%g
11421 s%@BUILD_LDBM@%$BUILD_LDBM%g
11422 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
11423 s%@BUILD_PERL@%$BUILD_PERL%g
11424 s%@BUILD_SHELL@%$BUILD_SHELL%g
11425 s%@BUILD_TCL@%$BUILD_TCL%g
11426 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
11427 s%@LDAP_LIBS@%$LDAP_LIBS%g
11428 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
11429 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
11430 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
11431 s%@LDBM_LIBS@%$LDBM_LIBS%g
11432 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
11433 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
11434 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
11435 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
11436 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
11437 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
11438 s%@KRB_LIBS@%$KRB_LIBS%g
11439 s%@READLINE_LIBS@%$READLINE_LIBS%g
11440 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
11441 s%@TLS_LIBS@%$TLS_LIBS%g
11446 cat >> $CONFIG_STATUS <<\EOF
11448 # Split the substitutions into bite-sized pieces for seds with
11449 # small command number limits, like on Digital OSF/1 and HP-UX.
11450 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11451 ac_file=1 # Number of current file.
11452 ac_beg=1 # First line for current file.
11453 ac_end=$ac_max_sed_cmds # Line after last line for current file.
11456 while $ac_more_lines; do
11457 if test $ac_beg -gt 1; then
11458 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11460 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11462 if test ! -s conftest.s$ac_file; then
11463 ac_more_lines=false
11464 rm -f conftest.s$ac_file
11466 if test -z "$ac_sed_cmds"; then
11467 ac_sed_cmds="sed -f conftest.s$ac_file"
11469 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11471 ac_file=`expr $ac_file + 1`
11473 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11476 if test -z "$ac_sed_cmds"; then
11481 cat >> $CONFIG_STATUS <<EOF
11483 CONFIG_FILES=\${CONFIG_FILES-"\
11484 Makefile:build/top.mk:Makefile.in:build/dir.mk \
11485 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
11486 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
11487 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
11488 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
11489 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
11490 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
11491 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
11492 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
11493 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
11494 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
11495 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
11496 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
11497 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
11498 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
11499 include/Makefile:build/top.mk:include/Makefile.in \
11500 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
11501 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
11502 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
11503 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
11504 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
11505 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
11506 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
11507 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
11508 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
11509 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
11510 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
11511 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
11512 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
11513 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
11514 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
11515 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
11516 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
11517 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
11518 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
11519 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
11520 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
11521 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
11522 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
11523 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
11524 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
11527 cat >> $CONFIG_STATUS <<\EOF
11528 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
11529 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11531 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11532 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11533 *) ac_file_in="${ac_file}.in" ;;
11536 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
11538 # Remove last slash and all that follows it. Not all systems have dirname.
11539 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11540 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11541 # The file is in a subdirectory.
11542 test ! -d "$ac_dir" && mkdir "$ac_dir"
11543 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
11544 # A "../" for each directory in $ac_dir_suffix.
11545 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
11547 ac_dir_suffix= ac_dots=
11550 case "$ac_given_srcdir" in
11552 if test -z "$ac_dots"; then top_srcdir=.
11553 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
11554 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
11555 *) # Relative path.
11556 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
11557 top_srcdir="$ac_dots$ac_given_srcdir" ;;
11560 case "$ac_given_INSTALL" in
11561 [/$]*) INSTALL="$ac_given_INSTALL" ;;
11562 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
11565 echo creating "$ac_file"
11567 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
11569 *Makefile*) ac_comsub="1i\\
11570 # $configure_input" ;;
11574 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11576 s%@configure_input@%$configure_input%g
11577 s%@srcdir@%$srcdir%g
11578 s%@top_srcdir@%$top_srcdir%g
11579 s%@INSTALL@%$INSTALL%g
11580 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
11584 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11585 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11587 # ac_d sets the value in "#define NAME VALUE" lines.
11588 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11589 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
11592 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11593 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11594 ac_uB='\([ ]\)%\1#\2define\3'
11597 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11598 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11599 ac_eB='$%\1#\2define\3'
11603 if test "${CONFIG_HEADERS+set}" != set; then
11605 cat >> $CONFIG_STATUS <<EOF
11606 CONFIG_HEADERS="include/portable.h include/ldap_features.h"
11608 cat >> $CONFIG_STATUS <<\EOF
11610 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
11611 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11613 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
11614 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11615 *) ac_file_in="${ac_file}.in" ;;
11618 echo creating $ac_file
11620 rm -f conftest.frag conftest.in conftest.out
11621 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
11622 cat $ac_file_inputs > conftest.in
11626 # Transform confdefs.h into a sed script conftest.vals that substitutes
11627 # the proper values into config.h.in to produce config.h. And first:
11628 # Protect against being on the right side of a sed subst in config.status.
11629 # Protect against being in an unquoted here document in config.status.
11630 rm -f conftest.vals
11631 cat > conftest.hdr <<\EOF
11634 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
11638 sed -n -f conftest.hdr confdefs.h > conftest.vals
11641 # This sed command replaces #undef with comments. This is necessary, for
11642 # example, in the case of _POSIX_SOURCE, which is predefined and required
11643 # on some systems where configure will not decide to define it.
11644 cat >> conftest.vals <<\EOF
11645 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
11648 # Break up conftest.vals because some shells have a limit on
11649 # the size of here documents, and old seds have small limits too.
11651 rm -f conftest.tail
11654 ac_lines=`grep -c . conftest.vals`
11655 # grep -c gives empty output for an empty file on some AIX systems.
11656 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
11657 # Write a limited-size here document to conftest.frag.
11658 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
11659 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11661 sed -f conftest.frag conftest.in > conftest.out
11663 mv conftest.out conftest.in
11664 ' >> $CONFIG_STATUS
11665 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11666 rm -f conftest.vals
11667 mv conftest.tail conftest.vals
11669 rm -f conftest.vals
11671 cat >> $CONFIG_STATUS <<\EOF
11672 rm -f conftest.frag conftest.h
11673 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
11674 cat conftest.in >> conftest.h
11676 if cmp -s $ac_file conftest.h 2>/dev/null; then
11677 echo "$ac_file is unchanged"
11680 # Remove last slash and all that follows it. Not all systems have dirname.
11681 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
11682 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11683 # The file is in a subdirectory.
11684 test ! -d "$ac_dir" && mkdir "$ac_dir"
11687 mv conftest.h $ac_file
11692 cat >> $CONFIG_STATUS <<EOF
11695 cat >> $CONFIG_STATUS <<\EOF
11698 echo Please \"make depend\" to build dependencies
11702 chmod +x $CONFIG_STATUS
11703 rm -fr confdefs* $ac_clean_files
11704 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1