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-cleartext enable cleartext passwords (yes)"
56 --enable-crypt enable crypt(3) passwords (auto)"
58 --enable-modules enable dynamic module support (no)"
60 --enable-phonetic enable phonetic/soundex (no)"
62 --enable-rlookups enable reverse lookups (auto)"
64 --enable-wrappers enable tcp wrapper support (no)"
66 --enable-bdb2 enable bdb2 backend (no)"
68 --with-bdb2-module module type (static)"
70 --enable-ldap enable ldap backend (no)"
72 --with-ldap-module module type (static)"
74 --enable-ldbm enable ldbm backend (yes)"
76 --with-ldbm-module module type (static)"
78 --with-ldbm-api use LDBM API (auto)"
80 --with-ldbm-type use LDBM type (auto)"
82 --enable-passwd enable passwd backend (no)"
84 --with-passwd-module module type (static)"
86 --enable-perl enable perl backend (no)"
88 --with-perl-module module type (static)"
90 --enable-shell enable shell backend (no)"
92 --with-shell-module module type (static)"
94 --enable-tcl enable tcl backend (no)"
96 --with-tcl-module module type (static)"
100 --enable-slurpd enable building slurpd (auto)"
102 Library Generation & Linking Options"
104 --enable-static build static libraries [default=yes]
105 --enable-static=PKGS only build shared libraries if the current package
106 appears as an element in the PKGS list"
108 --enable-shared build shared libraries [default=yes]
109 --enable-shared=PKGS only build shared libraries if the current package
110 appears as an element in the PKGS list"
112 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
114 # Initialize some variables set by options.
115 # The variables have the same names as the options, with
116 # dashes changed to underlines.
118 cache_file=./config.cache
127 program_transform_name=s,x,x,
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datadir='${prefix}/share'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${prefix}/info'
146 mandir='${prefix}/man'
148 # Initialize some other variables.
151 SHELL=${CONFIG_SHELL-/bin/sh}
152 # Maximum number of lines to put in a shell here document.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
167 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
171 # Accept the important Cygnus configure options, so we can diagnose typos.
175 -bindir | --bindir | --bindi | --bind | --bin | --bi)
177 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
178 bindir="$ac_optarg" ;;
180 -build | --build | --buil | --bui | --bu)
182 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
183 build="$ac_optarg" ;;
185 -cache-file | --cache-file | --cache-fil | --cache-fi \
186 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
187 ac_prev=cache_file ;;
188 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
189 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
190 cache_file="$ac_optarg" ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir="$ac_optarg" ;;
198 -disable-* | --disable-*)
199 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
200 # Reject names that are not valid shell variable names.
201 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
202 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
204 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
205 eval "enable_${ac_feature}=no" ;;
207 -enable-* | --enable-*)
208 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
209 # Reject names that are not valid shell variable names.
210 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
211 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
213 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
218 eval "enable_${ac_feature}='$ac_optarg'" ;;
220 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
221 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
222 | --exec | --exe | --ex)
223 ac_prev=exec_prefix ;;
224 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
225 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
226 | --exec=* | --exe=* | --ex=*)
227 exec_prefix="$ac_optarg" ;;
229 -gas | --gas | --ga | --g)
230 # Obsolete; use --with-gas.
233 -help | --help | --hel | --he)
234 # Omit some internal or obsolete options to make the list less imposing.
235 # This message is too long to be a string in the A/UX 3.1 sh.
237 Usage: configure [options] [host]
238 Options: [defaults in brackets after descriptions]
240 --cache-file=FILE cache test results in FILE
241 --help print this message
242 --no-create do not create output files
243 --quiet, --silent do not print \`checking...' messages
244 --version print the version of autoconf that created configure
245 Directory and file names:
246 --prefix=PREFIX install architecture-independent files in PREFIX
248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
250 --bindir=DIR user executables in DIR [EPREFIX/bin]
251 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
252 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
253 --datadir=DIR read-only architecture-independent data in DIR
255 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
256 --sharedstatedir=DIR modifiable architecture-independent data in DIR
258 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
259 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
260 --includedir=DIR C header files in DIR [PREFIX/include]
261 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
262 --infodir=DIR info documentation in DIR [PREFIX/info]
263 --mandir=DIR man documentation in DIR [PREFIX/man]
264 --srcdir=DIR find the sources in DIR [configure dir or ..]
265 --program-prefix=PREFIX prepend PREFIX to installed program names
266 --program-suffix=SUFFIX append SUFFIX to installed program names
267 --program-transform-name=PROGRAM
268 run sed PROGRAM on installed program names
272 --build=BUILD configure for building on BUILD [BUILD=HOST]
273 --host=HOST configure for HOST [guessed]
274 --target=TARGET configure for TARGET [TARGET=HOST]
275 Features and packages:
276 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
277 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
278 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
279 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
280 --x-includes=DIR X include files are in DIR
281 --x-libraries=DIR X library files are in DIR
283 if test -n "$ac_help"; then
284 echo "--enable and --with options recognized:$ac_help"
288 -host | --host | --hos | --ho)
290 -host=* | --host=* | --hos=* | --ho=*)
293 -includedir | --includedir | --includedi | --included | --include \
294 | --includ | --inclu | --incl | --inc)
295 ac_prev=includedir ;;
296 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
297 | --includ=* | --inclu=* | --incl=* | --inc=*)
298 includedir="$ac_optarg" ;;
300 -infodir | --infodir | --infodi | --infod | --info | --inf)
302 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
303 infodir="$ac_optarg" ;;
305 -libdir | --libdir | --libdi | --libd)
307 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 libdir="$ac_optarg" ;;
310 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
311 | --libexe | --libex | --libe)
312 ac_prev=libexecdir ;;
313 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
314 | --libexe=* | --libex=* | --libe=*)
315 libexecdir="$ac_optarg" ;;
317 -localstatedir | --localstatedir | --localstatedi | --localstated \
318 | --localstate | --localstat | --localsta | --localst \
319 | --locals | --local | --loca | --loc | --lo)
320 ac_prev=localstatedir ;;
321 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
322 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
323 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
324 localstatedir="$ac_optarg" ;;
326 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
328 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
329 mandir="$ac_optarg" ;;
332 # Obsolete; use --without-fp.
335 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
339 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
340 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
343 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
344 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
345 | --oldin | --oldi | --old | --ol | --o)
346 ac_prev=oldincludedir ;;
347 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
348 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
349 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
350 oldincludedir="$ac_optarg" ;;
352 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
354 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
355 prefix="$ac_optarg" ;;
357 -program-prefix | --program-prefix | --program-prefi | --program-pref \
358 | --program-pre | --program-pr | --program-p)
359 ac_prev=program_prefix ;;
360 -program-prefix=* | --program-prefix=* | --program-prefi=* \
361 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
362 program_prefix="$ac_optarg" ;;
364 -program-suffix | --program-suffix | --program-suffi | --program-suff \
365 | --program-suf | --program-su | --program-s)
366 ac_prev=program_suffix ;;
367 -program-suffix=* | --program-suffix=* | --program-suffi=* \
368 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
369 program_suffix="$ac_optarg" ;;
371 -program-transform-name | --program-transform-name \
372 | --program-transform-nam | --program-transform-na \
373 | --program-transform-n | --program-transform- \
374 | --program-transform | --program-transfor \
375 | --program-transfo | --program-transf \
376 | --program-trans | --program-tran \
377 | --progr-tra | --program-tr | --program-t)
378 ac_prev=program_transform_name ;;
379 -program-transform-name=* | --program-transform-name=* \
380 | --program-transform-nam=* | --program-transform-na=* \
381 | --program-transform-n=* | --program-transform-=* \
382 | --program-transform=* | --program-transfor=* \
383 | --program-transfo=* | --program-transf=* \
384 | --program-trans=* | --program-tran=* \
385 | --progr-tra=* | --program-tr=* | --program-t=*)
386 program_transform_name="$ac_optarg" ;;
388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
389 | -silent | --silent | --silen | --sile | --sil)
392 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
394 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
396 sbindir="$ac_optarg" ;;
398 -sharedstatedir | --sharedstatedir | --sharedstatedi \
399 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
400 | --sharedst | --shareds | --shared | --share | --shar \
402 ac_prev=sharedstatedir ;;
403 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
404 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
405 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
407 sharedstatedir="$ac_optarg" ;;
409 -site | --site | --sit)
411 -site=* | --site=* | --sit=*)
414 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
416 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
417 srcdir="$ac_optarg" ;;
419 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
420 | --syscon | --sysco | --sysc | --sys | --sy)
421 ac_prev=sysconfdir ;;
422 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
423 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
424 sysconfdir="$ac_optarg" ;;
426 -target | --target | --targe | --targ | --tar | --ta | --t)
428 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
429 target="$ac_optarg" ;;
431 -v | -verbose | --verbose | --verbos | --verbo | --verb)
434 -version | --version | --versio | --versi | --vers)
435 echo "configure generated by autoconf version 2.13"
439 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
440 # Reject names that are not valid shell variable names.
441 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
442 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
444 ac_package=`echo $ac_package| sed 's/-/_/g'`
449 eval "with_${ac_package}='$ac_optarg'" ;;
451 -without-* | --without-*)
452 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
453 # Reject names that are not valid shell variable names.
454 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
455 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
457 ac_package=`echo $ac_package| sed 's/-/_/g'`
458 eval "with_${ac_package}=no" ;;
461 # Obsolete; use --with-x.
464 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
465 | --x-incl | --x-inc | --x-in | --x-i)
466 ac_prev=x_includes ;;
467 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
468 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
469 x_includes="$ac_optarg" ;;
471 -x-libraries | --x-libraries | --x-librarie | --x-librari \
472 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
473 ac_prev=x_libraries ;;
474 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
475 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
476 x_libraries="$ac_optarg" ;;
478 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
482 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
483 echo "configure: warning: $ac_option: invalid host type" 1>&2
485 if test "x$nonopt" != xNONE; then
486 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
494 if test -n "$ac_prev"; then
495 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
498 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
500 # File descriptor usage:
503 # 2 errors and warnings
504 # 3 some systems may open it to /dev/tty
505 # 4 used on the Kubota Titan
506 # 6 checking for... messages and results
507 # 5 compiler messages saved in config.log
508 if test "$silent" = yes; then
516 This file contains any messages produced by compilers while
517 running configure, to aid debugging if configure makes a mistake.
520 # Strip out --no-create and --no-recursion so they do not pile up.
521 # Also quote any args containing shell metacharacters.
526 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
527 | --no-cr | --no-c) ;;
528 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
529 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
530 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
531 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
532 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
537 # Only set these to C if already set. These must not be set unconditionally
538 # because not all systems understand e.g. LANG=C (notably SCO).
539 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
540 # Non-C LC_CTYPE values break the ctype check.
541 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
542 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
543 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
544 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
546 # confdefs.h avoids OS command line length limits that DEFS can exceed.
547 rm -rf conftest* confdefs.h
548 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
551 # A filename unique to this package, relative to the directory that
552 # configure is in, which we can look for to find out if srcdir is correct.
553 ac_unique_file=build/version
555 # Find the source files, if location was not specified.
556 if test -z "$srcdir"; then
557 ac_srcdir_defaulted=yes
558 # Try the directory containing this script, then its parent.
560 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
561 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
563 if test ! -r $srcdir/$ac_unique_file; then
567 ac_srcdir_defaulted=no
569 if test ! -r $srcdir/$ac_unique_file; then
570 if test "$ac_srcdir_defaulted" = yes; then
571 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
573 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
576 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
578 # Prefer explicitly selected file to automatically selected ones.
579 if test -z "$CONFIG_SITE"; then
580 if test "x$prefix" != xNONE; then
581 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
583 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
586 for ac_site_file in $CONFIG_SITE; do
587 if test -r "$ac_site_file"; then
588 echo "loading site script $ac_site_file"
595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
596 ac_cpp='$CPP $CPPFLAGS'
597 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
598 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
599 cross_compiling=$ac_cv_prog_cc_cross
603 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
604 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
605 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
612 ac_n= ac_c='\c' ac_t=
616 for ac_dir in build $srcdir/build; do
617 if test -f $ac_dir/install-sh; then
619 ac_install_sh="$ac_aux_dir/install-sh -c"
621 elif test -f $ac_dir/install.sh; then
623 ac_install_sh="$ac_aux_dir/install.sh -c"
627 if test -z "$ac_aux_dir"; then
628 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
630 ac_config_guess=$ac_aux_dir/config.guess
631 ac_config_sub=$ac_aux_dir/config.sub
632 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
634 OL_VERSION=`cat $ac_aux_dir/version`
635 if test -z "$OL_VERSION"; then
636 { echo "configure: error: could not determine version" 1>&2; exit 1; }
640 # Do some error checking and defaulting for the host and target type.
642 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
645 # 1. You are not allowed to specify --host, --target, and nonopt at the
647 # 2. Host defaults to nonopt.
648 # 3. If nonopt is not specified, then host defaults to the current host,
649 # as determined by config.guess.
650 # 4. Target and build default to nonopt.
651 # 5. If nonopt is not specified, then target and build default to host.
653 # The aliases save the names the user supplied, while $host etc.
654 # will get canonicalized.
655 case $host---$target---$nonopt in
656 NONE---*---* | *---NONE---* | *---*---NONE) ;;
657 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
661 # Make sure we can run config.sub.
662 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
663 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
666 echo $ac_n "checking host system type""... $ac_c" 1>&6
667 echo "configure:668: checking host system type" >&5
670 case "$host_alias" in
674 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
675 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
677 *) host_alias=$nonopt ;;
681 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
682 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
683 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
684 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
685 echo "$ac_t""$host" 1>&6
687 echo $ac_n "checking target system type""... $ac_c" 1>&6
688 echo "configure:689: checking target system type" >&5
691 case "$target_alias" in
694 NONE) target_alias=$host_alias ;;
695 *) target_alias=$nonopt ;;
699 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
700 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
701 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
702 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
703 echo "$ac_t""$target" 1>&6
705 echo $ac_n "checking build system type""... $ac_c" 1>&6
706 echo "configure:707: checking build system type" >&5
709 case "$build_alias" in
712 NONE) build_alias=$host_alias ;;
713 *) build_alias=$nonopt ;;
717 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
718 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
719 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
720 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
721 echo "$ac_t""$build" 1>&6
723 test "$host_alias" != "$target_alias" &&
724 test "$program_prefix$program_suffix$program_transform_name" = \
726 program_prefix=${target_alias}-
729 # Find a good install program. We prefer a C program (faster),
730 # so one script is as good as another. But avoid the broken or
731 # incompatible versions:
732 # SysV /etc/install, /usr/sbin/install
733 # SunOS /usr/etc/install
736 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
737 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
738 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
739 # ./install, which can be erroneously created by make from ./install.sh.
740 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
741 echo "configure:742: checking for a BSD compatible install" >&5
742 if test -z "$INSTALL"; then
743 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
747 for ac_dir in $PATH; do
748 # Account for people who put trailing slashes in PATH elements.
750 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
752 # OSF1 and SCO ODT 3.0 have their own names for install.
753 # Don't use installbsd from OSF since it installs stuff as root
755 for ac_prog in ginstall scoinst install; do
756 if test -f $ac_dir/$ac_prog; then
757 if test $ac_prog = install &&
758 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
759 # AIX install. It has an incompatible calling convention.
762 ac_cv_path_install="$ac_dir/$ac_prog -c"
773 if test "${ac_cv_path_install+set}" = set; then
774 INSTALL="$ac_cv_path_install"
776 # As a last resort, use the slow shell script. We don't cache a
777 # path for INSTALL within a source directory, because that will
778 # break other packages using the cache if that directory is
779 # removed, or if the path is relative.
780 INSTALL="$ac_install_sh"
783 echo "$ac_t""$INSTALL" 1>&6
785 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
786 # It thinks the first close brace ends the variable substitution.
787 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
789 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
791 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
793 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
794 echo "configure:795: checking whether build environment is sane" >&5
797 echo timestamp > conftestfile
798 # Do `set' in a subshell so we don't clobber the current shell's
799 # arguments. Must try -L first in case configure is actually a
800 # symlink; some systems play weird games with the mod time of symlinks
801 # (eg FreeBSD returns the mod time of the symlink's containing
804 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
805 if test "$*" = "X"; then
807 set X `ls -t $srcdir/configure conftestfile`
809 if test "$*" != "X $srcdir/configure conftestfile" \
810 && test "$*" != "X conftestfile $srcdir/configure"; then
812 # If neither matched, then we have a broken ls. This can happen
813 # if, for instance, CONFIG_SHELL is bash and it inherits a
814 # broken ls alias from the environment. This has actually
815 # happened. Such a system could not be considered "sane".
816 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
817 alias in your environment" 1>&2; exit 1; }
820 test "$2" = conftestfile
826 { echo "configure: error: newly created file is older than distributed files!
827 Check your system clock" 1>&2; exit 1; }
830 echo "$ac_t""yes" 1>&6
831 if test "$program_transform_name" = s,x,x,; then
832 program_transform_name=
834 # Double any \ or $. echo might interpret backslashes.
835 cat <<\EOF_SED > conftestsed
836 s,\\,\\\\,g; s,\$,$$,g
838 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
841 test "$program_prefix" != NONE &&
842 program_transform_name="s,^,${program_prefix},; $program_transform_name"
843 # Use a double $ so make ignores it.
844 test "$program_suffix" != NONE &&
845 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
847 # sed with no file args requires a program.
848 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
850 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
851 echo "configure:852: checking whether ${MAKE-make} sets \${MAKE}" >&5
852 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
853 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
856 cat > conftestmake <<\EOF
858 @echo 'ac_maketemp="${MAKE}"'
860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
861 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
862 if test -n "$ac_maketemp"; then
863 eval ac_cv_prog_make_${ac_make}_set=yes
865 eval ac_cv_prog_make_${ac_make}_set=no
869 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
870 echo "$ac_t""yes" 1>&6
873 echo "$ac_t""no" 1>&6
874 SET_MAKE="MAKE=${MAKE-make}"
882 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
883 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
888 missing_dir=`cd $ac_aux_dir && pwd`
889 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
890 echo "configure:891: checking for working aclocal" >&5
891 # Run test in a subshell; some versions of sh will print an error if
892 # an executable is not found, even if stderr is redirected.
893 # Redirect stdin to placate older versions of autoconf. Sigh.
894 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
896 echo "$ac_t""found" 1>&6
898 ACLOCAL="$missing_dir/missing aclocal"
899 echo "$ac_t""missing" 1>&6
902 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
903 echo "configure:904: checking for working autoconf" >&5
904 # Run test in a subshell; some versions of sh will print an error if
905 # an executable is not found, even if stderr is redirected.
906 # Redirect stdin to placate older versions of autoconf. Sigh.
907 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
909 echo "$ac_t""found" 1>&6
911 AUTOCONF="$missing_dir/missing autoconf"
912 echo "$ac_t""missing" 1>&6
915 echo $ac_n "checking for working automake""... $ac_c" 1>&6
916 echo "configure:917: checking for working automake" >&5
917 # Run test in a subshell; some versions of sh will print an error if
918 # an executable is not found, even if stderr is redirected.
919 # Redirect stdin to placate older versions of autoconf. Sigh.
920 if (automake --version) < /dev/null > /dev/null 2>&1; then
922 echo "$ac_t""found" 1>&6
924 AUTOMAKE="$missing_dir/missing automake"
925 echo "$ac_t""missing" 1>&6
928 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
929 echo "configure:930: checking for working autoheader" >&5
930 # Run test in a subshell; some versions of sh will print an error if
931 # an executable is not found, even if stderr is redirected.
932 # Redirect stdin to placate older versions of autoconf. Sigh.
933 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
934 AUTOHEADER=autoheader
935 echo "$ac_t""found" 1>&6
937 AUTOHEADER="$missing_dir/missing autoheader"
938 echo "$ac_t""missing" 1>&6
941 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
942 echo "configure:943: checking for working makeinfo" >&5
943 # Run test in a subshell; some versions of sh will print an error if
944 # an executable is not found, even if stderr is redirected.
945 # Redirect stdin to placate older versions of autoconf. Sigh.
946 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
948 echo "$ac_t""found" 1>&6
950 MAKEINFO="$missing_dir/missing makeinfo"
951 echo "$ac_t""missing" 1>&6
956 cat >> confdefs.h <<EOF
957 #define OPENLDAP_PACKAGE "$PACKAGE"
960 cat >> confdefs.h <<EOF
961 #define OPENLDAP_VERSION "$VERSION"
967 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
968 echo "configure:969: checking configure arguments" >&5
973 cat >> confdefs.h <<\EOF
974 #define HAVE_MKVERSION 1
978 ldap_subdir="openldap"
980 # Check whether --with-subdir or --without-subdir was given.
981 if test "${with_subdir+set}" = set; then
982 withval="$with_subdir"
984 if test "$withval" = "no"; then
986 elif test "$withval" != "yes"; then
987 ldap_subdir="$withval"
993 # OpenLDAP --enable-debug
994 # Check whether --enable-debug or --disable-debug was given.
995 if test "${enable_debug+set}" = set; then
996 enableval="$enable_debug"
999 for ol_val in auto yes no ; do
1000 if test "$enableval" = "$ol_val" ; then
1004 if test "$ol_arg" = "invalid" ; then
1005 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1007 ol_enable_debug="$ol_arg"
1010 ol_enable_debug="yes"
1012 # end --enable-debug
1013 # OpenLDAP --enable-syslog
1014 # Check whether --enable-syslog or --disable-syslog was given.
1015 if test "${enable_syslog+set}" = set; then
1016 enableval="$enable_syslog"
1019 for ol_val in auto yes no ; do
1020 if test "$enableval" = "$ol_val" ; then
1024 if test "$ol_arg" = "invalid" ; then
1025 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1027 ol_enable_syslog="$ol_arg"
1030 ol_enable_syslog="auto"
1032 # end --enable-syslog
1033 # OpenLDAP --enable-proctitle
1034 # Check whether --enable-proctitle or --disable-proctitle was given.
1035 if test "${enable_proctitle+set}" = set; then
1036 enableval="$enable_proctitle"
1039 for ol_val in auto yes no ; do
1040 if test "$enableval" = "$ol_val" ; then
1044 if test "$ol_arg" = "invalid" ; then
1045 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1047 ol_enable_proctitle="$ol_arg"
1050 ol_enable_proctitle="yes"
1052 # end --enable-proctitle
1053 # OpenLDAP --enable-cache
1054 # Check whether --enable-cache or --disable-cache was given.
1055 if test "${enable_cache+set}" = set; then
1056 enableval="$enable_cache"
1059 for ol_val in auto yes no ; do
1060 if test "$enableval" = "$ol_val" ; then
1064 if test "$ol_arg" = "invalid" ; then
1065 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1067 ol_enable_cache="$ol_arg"
1070 ol_enable_cache="yes"
1072 # end --enable-cache
1073 # OpenLDAP --enable-dns
1074 # Check whether --enable-dns or --disable-dns was given.
1075 if test "${enable_dns+set}" = set; then
1076 enableval="$enable_dns"
1079 for ol_val in auto yes no ; do
1080 if test "$enableval" = "$ol_val" ; then
1084 if test "$ol_arg" = "invalid" ; then
1085 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1087 ol_enable_dns="$ol_arg"
1093 # OpenLDAP --enable-referrals
1094 # Check whether --enable-referrals or --disable-referrals was given.
1095 if test "${enable_referrals+set}" = set; then
1096 enableval="$enable_referrals"
1099 for ol_val in auto yes no ; do
1100 if test "$enableval" = "$ol_val" ; then
1104 if test "$ol_arg" = "invalid" ; then
1105 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1107 ol_enable_referrals="$ol_arg"
1110 ol_enable_referrals="yes"
1112 # end --enable-referrals
1113 # OpenLDAP --enable-cldap
1114 # Check whether --enable-cldap or --disable-cldap was given.
1115 if test "${enable_cldap+set}" = set; then
1116 enableval="$enable_cldap"
1119 for ol_val in auto yes no ; do
1120 if test "$enableval" = "$ol_val" ; then
1124 if test "$ol_arg" = "invalid" ; then
1125 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1127 ol_enable_cldap="$ol_arg"
1130 ol_enable_cldap="no"
1132 # end --enable-cldap
1133 # OpenLDAP --enable-x_compile
1134 # Check whether --enable-x_compile or --disable-x_compile was given.
1135 if test "${enable_x_compile+set}" = set; then
1136 enableval="$enable_x_compile"
1139 for ol_val in yes no ; do
1140 if test "$enableval" = "$ol_val" ; then
1144 if test "$ol_arg" = "invalid" ; then
1145 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1147 ol_enable_x_compile="$ol_arg"
1150 ol_enable_x_compile="no"
1152 # end --enable-x_compile
1154 # OpenLDAP --enable-dmalloc
1155 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1156 if test "${enable_dmalloc+set}" = set; then
1157 enableval="$enable_dmalloc"
1160 for ol_val in auto yes no ; do
1161 if test "$enableval" = "$ol_val" ; then
1165 if test "$ol_arg" = "invalid" ; then
1166 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1168 ol_enable_dmalloc="$ol_arg"
1171 ol_enable_dmalloc="no"
1173 # end --enable-dmalloc
1175 # OpenLDAP --with-kerberos
1176 # Check whether --with-kerberos or --without-kerberos was given.
1177 if test "${with_kerberos+set}" = set; then
1178 withval="$with_kerberos"
1181 for ol_val in auto k5 k4 afs yes no ; do
1182 if test "$withval" = "$ol_val" ; then
1186 if test "$ol_arg" = "invalid" ; then
1187 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1189 ol_with_kerberos="$ol_arg"
1192 ol_with_kerberos="auto"
1194 # end --with-kerberos
1196 # OpenLDAP --with-readline
1197 # Check whether --with-readline or --without-readline was given.
1198 if test "${with_readline+set}" = set; then
1199 withval="$with_readline"
1202 for ol_val in auto yes no ; do
1203 if test "$withval" = "$ol_val" ; then
1207 if test "$ol_arg" = "invalid" ; then
1208 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1210 ol_with_readline="$ol_arg"
1213 ol_with_readline="auto"
1215 # end --with-readline
1217 # OpenLDAP --with-threads
1218 # Check whether --with-threads or --without-threads was given.
1219 if test "${with_threads+set}" = set; then
1220 withval="$with_threads"
1223 for ol_val in auto posix mach lwp yes no manual ; do
1224 if test "$withval" = "$ol_val" ; then
1228 if test "$ol_arg" = "invalid" ; then
1229 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1231 ol_with_threads="$ol_arg"
1234 ol_with_threads="auto"
1236 # end --with-threads
1238 # OpenLDAP --with-tls
1239 # Check whether --with-tls or --without-tls was given.
1240 if test "${with_tls+set}" = set; then
1244 for ol_val in auto ssleay openssl yes no ; do
1245 if test "$withval" = "$ol_val" ; then
1249 if test "$ol_arg" = "invalid" ; then
1250 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1252 ol_with_tls="$ol_arg"
1259 # OpenLDAP --with-yielding_select
1260 # Check whether --with-yielding_select or --without-yielding_select was given.
1261 if test "${with_yielding_select+set}" = set; then
1262 withval="$with_yielding_select"
1265 for ol_val in auto yes no manual ; do
1266 if test "$withval" = "$ol_val" ; then
1270 if test "$ol_arg" = "invalid" ; then
1271 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1273 ol_with_yielding_select="$ol_arg"
1276 ol_with_yielding_select="auto"
1278 # end --with-yielding_select
1282 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1283 if test "${with_xxldapdoptions+set}" = set; then
1284 withval="$with_xxldapdoptions"
1288 # OpenLDAP --enable-ldapd
1289 # Check whether --enable-ldapd or --disable-ldapd was given.
1290 if test "${enable_ldapd+set}" = set; then
1291 enableval="$enable_ldapd"
1294 for ol_val in auto yes no ; do
1295 if test "$enableval" = "$ol_val" ; then
1299 if test "$ol_arg" = "invalid" ; then
1300 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1302 ol_enable_ldapd="$ol_arg"
1305 ol_enable_ldapd="no"
1307 # end --enable-ldapd
1309 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1310 if test "${with_xxslapdoptions+set}" = set; then
1311 withval="$with_xxslapdoptions"
1315 # OpenLDAP --enable-slapd
1316 # Check whether --enable-slapd or --disable-slapd was given.
1317 if test "${enable_slapd+set}" = set; then
1318 enableval="$enable_slapd"
1321 for ol_val in auto yes no ; do
1322 if test "$enableval" = "$ol_val" ; then
1326 if test "$ol_arg" = "invalid" ; then
1327 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1329 ol_enable_slapd="$ol_arg"
1332 ol_enable_slapd="yes"
1334 # end --enable-slapd
1335 # OpenLDAP --enable-cleartext
1336 # Check whether --enable-cleartext or --disable-cleartext was given.
1337 if test "${enable_cleartext+set}" = set; then
1338 enableval="$enable_cleartext"
1341 for ol_val in auto yes no ; do
1342 if test "$enableval" = "$ol_val" ; then
1346 if test "$ol_arg" = "invalid" ; then
1347 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1349 ol_enable_cleartext="$ol_arg"
1352 ol_enable_cleartext="yes"
1354 # end --enable-cleartext
1355 # OpenLDAP --enable-crypt
1356 # Check whether --enable-crypt or --disable-crypt was given.
1357 if test "${enable_crypt+set}" = set; then
1358 enableval="$enable_crypt"
1361 for ol_val in auto yes no ; do
1362 if test "$enableval" = "$ol_val" ; then
1366 if test "$ol_arg" = "invalid" ; then
1367 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1369 ol_enable_crypt="$ol_arg"
1372 ol_enable_crypt="auto"
1374 # end --enable-crypt
1375 # OpenLDAP --enable-modules
1376 # Check whether --enable-modules or --disable-modules was given.
1377 if test "${enable_modules+set}" = set; then
1378 enableval="$enable_modules"
1381 for ol_val in auto yes no ; do
1382 if test "$enableval" = "$ol_val" ; then
1386 if test "$ol_arg" = "invalid" ; then
1387 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1389 ol_enable_modules="$ol_arg"
1392 ol_enable_modules="no"
1394 # end --enable-modules
1395 # OpenLDAP --enable-phonetic
1396 # Check whether --enable-phonetic or --disable-phonetic was given.
1397 if test "${enable_phonetic+set}" = set; then
1398 enableval="$enable_phonetic"
1401 for ol_val in auto yes no ; do
1402 if test "$enableval" = "$ol_val" ; then
1406 if test "$ol_arg" = "invalid" ; then
1407 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1409 ol_enable_phonetic="$ol_arg"
1412 ol_enable_phonetic="no"
1414 # end --enable-phonetic
1415 # OpenLDAP --enable-rlookups
1416 # Check whether --enable-rlookups or --disable-rlookups was given.
1417 if test "${enable_rlookups+set}" = set; then
1418 enableval="$enable_rlookups"
1421 for ol_val in auto yes no ; do
1422 if test "$enableval" = "$ol_val" ; then
1426 if test "$ol_arg" = "invalid" ; then
1427 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1429 ol_enable_rlookups="$ol_arg"
1432 ol_enable_rlookups="auto"
1434 # end --enable-rlookups
1435 # OpenLDAP --enable-wrappers
1436 # Check whether --enable-wrappers or --disable-wrappers was given.
1437 if test "${enable_wrappers+set}" = set; then
1438 enableval="$enable_wrappers"
1441 for ol_val in auto yes no ; do
1442 if test "$enableval" = "$ol_val" ; then
1446 if test "$ol_arg" = "invalid" ; then
1447 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1449 ol_enable_wrappers="$ol_arg"
1452 ol_enable_wrappers="no"
1454 # end --enable-wrappers
1456 # OpenLDAP --enable-bdb2
1457 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1458 if test "${enable_bdb2+set}" = set; then
1459 enableval="$enable_bdb2"
1462 for ol_val in auto yes no ; do
1463 if test "$enableval" = "$ol_val" ; then
1467 if test "$ol_arg" = "invalid" ; then
1468 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1470 ol_enable_bdb2="$ol_arg"
1476 # OpenLDAP --with-bdb2_module
1477 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1478 if test "${with_bdb2_module+set}" = set; then
1479 withval="$with_bdb2_module"
1482 for ol_val in static dynamic ; do
1483 if test "$withval" = "$ol_val" ; then
1487 if test "$ol_arg" = "invalid" ; then
1488 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1490 ol_with_bdb2_module="$ol_arg"
1493 ol_with_bdb2_module="static"
1495 # end --with-bdb2_module
1497 # OpenLDAP --enable-ldap
1498 # Check whether --enable-ldap or --disable-ldap was given.
1499 if test "${enable_ldap+set}" = set; then
1500 enableval="$enable_ldap"
1503 for ol_val in auto yes no ; do
1504 if test "$enableval" = "$ol_val" ; then
1508 if test "$ol_arg" = "invalid" ; then
1509 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1511 ol_enable_ldap="$ol_arg"
1517 # OpenLDAP --with-ldap_module
1518 # Check whether --with-ldap_module or --without-ldap_module was given.
1519 if test "${with_ldap_module+set}" = set; then
1520 withval="$with_ldap_module"
1523 for ol_val in static dynamic ; do
1524 if test "$withval" = "$ol_val" ; then
1528 if test "$ol_arg" = "invalid" ; then
1529 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1531 ol_with_ldap_module="$ol_arg"
1534 ol_with_ldap_module="static"
1536 # end --with-ldap_module
1538 # OpenLDAP --enable-ldbm
1539 # Check whether --enable-ldbm or --disable-ldbm was given.
1540 if test "${enable_ldbm+set}" = set; then
1541 enableval="$enable_ldbm"
1544 for ol_val in auto yes no ; do
1545 if test "$enableval" = "$ol_val" ; then
1549 if test "$ol_arg" = "invalid" ; then
1550 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1552 ol_enable_ldbm="$ol_arg"
1555 ol_enable_ldbm="yes"
1558 # OpenLDAP --with-ldbm_module
1559 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1560 if test "${with_ldbm_module+set}" = set; then
1561 withval="$with_ldbm_module"
1564 for ol_val in static dynamic ; do
1565 if test "$withval" = "$ol_val" ; then
1569 if test "$ol_arg" = "invalid" ; then
1570 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1572 ol_with_ldbm_module="$ol_arg"
1575 ol_with_ldbm_module="static"
1577 # end --with-ldbm_module
1579 # OpenLDAP --with-ldbm_api
1580 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1581 if test "${with_ldbm_api+set}" = set; then
1582 withval="$with_ldbm_api"
1585 for ol_val in auto db2 db mdbm gdbm ndbm manual ; do
1586 if test "$withval" = "$ol_val" ; then
1590 if test "$ol_arg" = "invalid" ; then
1591 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1593 ol_with_ldbm_api="$ol_arg"
1596 ol_with_ldbm_api="auto"
1598 # end --with-ldbm_api
1600 # OpenLDAP --with-ldbm_type
1601 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1602 if test "${with_ldbm_type+set}" = set; then
1603 withval="$with_ldbm_type"
1606 for ol_val in auto btree hash ; do
1607 if test "$withval" = "$ol_val" ; then
1611 if test "$ol_arg" = "invalid" ; then
1612 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1614 ol_with_ldbm_type="$ol_arg"
1617 ol_with_ldbm_type="auto"
1619 # end --with-ldbm_type
1622 # OpenLDAP --enable-passwd
1623 # Check whether --enable-passwd or --disable-passwd was given.
1624 if test "${enable_passwd+set}" = set; then
1625 enableval="$enable_passwd"
1628 for ol_val in auto yes no ; do
1629 if test "$enableval" = "$ol_val" ; then
1633 if test "$ol_arg" = "invalid" ; then
1634 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1636 ol_enable_passwd="$ol_arg"
1639 ol_enable_passwd="no"
1641 # end --enable-passwd
1642 # OpenLDAP --with-passwd_module
1643 # Check whether --with-passwd_module or --without-passwd_module was given.
1644 if test "${with_passwd_module+set}" = set; then
1645 withval="$with_passwd_module"
1648 for ol_val in static dynamic ; do
1649 if test "$withval" = "$ol_val" ; then
1653 if test "$ol_arg" = "invalid" ; then
1654 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1656 ol_with_passwd_module="$ol_arg"
1659 ol_with_passwd_module="static"
1661 # end --with-passwd_module
1663 # OpenLDAP --enable-perl
1664 # Check whether --enable-perl or --disable-perl was given.
1665 if test "${enable_perl+set}" = set; then
1666 enableval="$enable_perl"
1669 for ol_val in auto yes no ; do
1670 if test "$enableval" = "$ol_val" ; then
1674 if test "$ol_arg" = "invalid" ; then
1675 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
1677 ol_enable_perl="$ol_arg"
1683 # OpenLDAP --with-perl_module
1684 # Check whether --with-perl_module or --without-perl_module was given.
1685 if test "${with_perl_module+set}" = set; then
1686 withval="$with_perl_module"
1689 for ol_val in static dynamic ; do
1690 if test "$withval" = "$ol_val" ; then
1694 if test "$ol_arg" = "invalid" ; then
1695 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
1697 ol_with_perl_module="$ol_arg"
1700 ol_with_perl_module="static"
1702 # end --with-perl_module
1704 # OpenLDAP --enable-shell
1705 # Check whether --enable-shell or --disable-shell was given.
1706 if test "${enable_shell+set}" = set; then
1707 enableval="$enable_shell"
1710 for ol_val in auto yes no ; do
1711 if test "$enableval" = "$ol_val" ; then
1715 if test "$ol_arg" = "invalid" ; then
1716 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1718 ol_enable_shell="$ol_arg"
1721 ol_enable_shell="no"
1723 # end --enable-shell
1724 # OpenLDAP --with-shell_module
1725 # Check whether --with-shell_module or --without-shell_module was given.
1726 if test "${with_shell_module+set}" = set; then
1727 withval="$with_shell_module"
1730 for ol_val in static dynamic ; do
1731 if test "$withval" = "$ol_val" ; then
1735 if test "$ol_arg" = "invalid" ; then
1736 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1738 ol_with_shell_module="$ol_arg"
1741 ol_with_shell_module="static"
1743 # end --with-shell_module
1745 # OpenLDAP --enable-tcl
1746 # Check whether --enable-tcl or --disable-tcl was given.
1747 if test "${enable_tcl+set}" = set; then
1748 enableval="$enable_tcl"
1751 for ol_val in auto yes no ; do
1752 if test "$enableval" = "$ol_val" ; then
1756 if test "$ol_arg" = "invalid" ; then
1757 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
1759 ol_enable_tcl="$ol_arg"
1765 # OpenLDAP --with-tcl_module
1766 # Check whether --with-tcl_module or --without-tcl_module was given.
1767 if test "${with_tcl_module+set}" = set; then
1768 withval="$with_tcl_module"
1771 for ol_val in static dynamic ; do
1772 if test "$withval" = "$ol_val" ; then
1776 if test "$ol_arg" = "invalid" ; then
1777 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
1779 ol_with_tcl_module="$ol_arg"
1782 ol_with_tcl_module="static"
1784 # end --with-tcl_module
1787 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
1788 if test "${with_xxslurpdoptions+set}" = set; then
1789 withval="$with_xxslurpdoptions"
1793 # OpenLDAP --enable-slurpd
1794 # Check whether --enable-slurpd or --disable-slurpd was given.
1795 if test "${enable_slurpd+set}" = set; then
1796 enableval="$enable_slurpd"
1799 for ol_val in auto yes no ; do
1800 if test "$enableval" = "$ol_val" ; then
1804 if test "$ol_arg" = "invalid" ; then
1805 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1807 ol_enable_slurpd="$ol_arg"
1810 ol_enable_slurpd="auto"
1812 # end --enable-slurpd
1814 # Check whether --with-xxliboptions or --without-xxliboptions was given.
1815 if test "${with_xxliboptions+set}" = set; then
1816 withval="$with_xxliboptions"
1820 # Check whether --enable-static or --disable-static was given.
1821 if test "${enable_static+set}" = set; then
1822 enableval="$enable_static"
1823 p=${PACKAGE-default}
1824 case "$enableval" in
1825 yes) enable_static=yes ;;
1826 no) enable_static=no ;;
1829 # Look at the argument we got. We use all the common list separators.
1830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1831 for pkg in $enableval; do
1832 if test "X$pkg" = "X$p"; then
1843 # Check whether --enable-shared or --disable-shared was given.
1844 if test "${enable_shared+set}" = set; then
1845 enableval="$enable_shared"
1846 p=${PACKAGE-default}
1847 case "$enableval" in
1848 yes) enable_shared=yes ;;
1849 no) enable_shared=no ;;
1852 # Look at the argument we got. We use all the common list separators.
1853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1854 for pkg in $enableval; do
1855 if test "X$pkg" = "X$p"; then
1868 if test $ol_enable_dns = yes ; then
1869 if test $ol_enable_referrals = no ; then
1870 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
1872 if test $ol_enable_referrals = auto ; then
1873 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
1874 ol_enable_referrals=yes
1878 if test $ol_enable_slapd = no ; then
1879 if test $ol_enable_bdb2 = yes ; then
1880 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
1882 if test $ol_enable_ldap = yes ; then
1883 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
1885 if test $ol_enable_ldbm = yes ; then
1886 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
1888 if test $ol_enable_passwd = yes ; then
1889 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
1891 if test $ol_enable_perl = yes ; then
1892 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
1894 if test $ol_enable_shell = yes ; then
1895 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
1897 if test $ol_enable_tcl = yes ; then
1898 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
1900 if test $ol_enable_modules = yes ; then
1901 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
1903 if test $ol_enable_wrappers = yes ; then
1904 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
1906 if test $ol_enable_phonetic = yes ; then
1907 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
1909 if test $ol_enable_rlookups = yes ; then
1910 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
1912 if test $ol_with_ldbm_api != auto ; then
1913 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
1915 if test $ol_with_ldbm_type != auto ; then
1916 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
1918 if test $ol_with_bdb2_module != static ; then
1919 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
1921 if test $ol_with_ldap_module != static ; then
1922 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
1924 if test $ol_with_ldbm_module != static ; then
1925 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
1927 if test $ol_with_passwd_module != static ; then
1928 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
1930 if test $ol_with_perl_module != static ; then
1931 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
1933 if test $ol_with_shell_module != static ; then
1934 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
1936 if test $ol_with_tcl_module != static ; then
1937 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
1939 if test $ol_enable_slurpd = yes ; then
1940 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1943 # force settings to no
1952 ol_enable_modules=no
1953 ol_enable_phonetic=no
1954 ol_enable_rlookups=no
1955 ol_enable_wrappers=no
1958 ol_with_ldbm_type=no
1960 ol_with_bdb2_module=static
1961 ol_with_ldap_module=static
1962 ol_with_ldbm_module=static
1963 ol_with_passwd_module=static
1964 ol_with_perl_module=static
1965 ol_with_shell_module=static
1966 ol_with_tcl_module=static
1970 elif test $ol_enable_ldbm = no ; then
1972 if test $ol_with_ldbm_api != auto ; then
1973 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
1976 if test $ol_with_ldbm_type != auto ; then
1977 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
1980 if test $ol_with_ldbm_module != static ; then
1981 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
1984 if test $ol_enable_bdb2 = yes ; then
1985 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
1988 if test $ol_enable_modules != yes -a \
1989 $ol_enable_ldap = no -a \
1990 $ol_enable_passwd = no -a \
1991 $ol_enable_perl = no -a \
1992 $ol_enable_shell = no -a \
1993 $ol_enable_tcl = no ; then
1994 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1998 ol_with_ldbm_type=no
1999 ol_with_ldbm_module=static
2001 elif test $ol_enable_bdb2 = yes ; then
2003 if test $ol_with_ldbm_api != auto -a \
2004 $ol_with_ldbm_api != db2 ; then
2005 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2008 ol_with_ldbm_api=db2
2012 if test $ol_enable_bdb2 != no ; then
2013 if test $ol_with_ldbm_api != auto -a \
2014 $ol_with_ldbm_api != db2 ; then
2015 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2020 if test $ol_with_ldbm_api = gdbm -a \
2021 $ol_with_ldbm_type = btree ; then
2022 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2024 if test $ol_with_ldbm_api = mdbm -a \
2025 $ol_with_ldbm_type = btree ; then
2026 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2028 if test $ol_with_ldbm_api = ndbm -a \
2029 $ol_with_ldbm_type = btree ; then
2030 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2034 if test $ol_enable_slurpd = yes ; then
2035 if test $ol_with_threads = no ; then
2036 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2040 echo "$ac_t""done" 1>&6
2065 BUILD_BDB2_DYNAMIC=no
2066 BUILD_LDAP_DYNAMIC=no
2067 BUILD_LDBM_DYNAMIC=no
2068 BUILD_PASSWD_DYNAMIC=no
2069 BUILD_PERL_DYNAMIC=no
2070 BUILD_SHELL_DYNAMIC=no
2071 BUILD_TCL_DYNAMIC=no
2073 SLAPD_MODULES_LDFLAGS=
2074 SLAPD_MODULES_CPPFLAGS=
2077 SLAPD_PERL_CPPFLAGS=
2089 *-*-aix*) if test -z "$CC" ; then
2090 case "$ol_with_threads" in
2091 auto | yes | posix) ol_aix_threads=yes ;;
2097 if test $ol_aix_threads = yes ; then
2098 if test -z "${CC}" ; then
2099 for ac_prog in cc_r xlc_r cc
2101 # Extract the first word of "$ac_prog", so it can be a program name with args.
2102 set dummy $ac_prog; ac_word=$2
2103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_word" >&5
2105 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 if test -n "$CC"; then
2109 ac_cv_prog_CC="$CC" # Let the user override the test.
2111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2113 for ac_dir in $ac_dummy; do
2114 test -z "$ac_dir" && ac_dir=.
2115 if test -f $ac_dir/$ac_word; then
2116 ac_cv_prog_CC="$ac_prog"
2124 if test -n "$CC"; then
2125 echo "$ac_t""$CC" 1>&6
2127 echo "$ac_t""no" 1>&6
2130 test -n "$CC" && break
2134 if test "$CC" = cc ; then
2135 if test $ol_with_threads != auto ; then
2136 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2138 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2144 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2145 ol_with_threads=posix
2146 ol_cv_pthread_create=yes
2150 if test -z "${CC}"; then
2153 # Extract the first word of "$ac_prog", so it can be a program name with args.
2154 set dummy $ac_prog; ac_word=$2
2155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2156 echo "configure:2157: checking for $ac_word" >&5
2157 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2160 if test -n "$CC"; then
2161 ac_cv_prog_CC="$CC" # Let the user override the test.
2163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2165 for ac_dir in $ac_dummy; do
2166 test -z "$ac_dir" && ac_dir=.
2167 if test -f $ac_dir/$ac_word; then
2168 ac_cv_prog_CC="$ac_prog"
2176 if test -n "$CC"; then
2177 echo "$ac_t""$CC" 1>&6
2179 echo "$ac_t""no" 1>&6
2182 test -n "$CC" && break
2188 # Extract the first word of "ranlib", so it can be a program name with args.
2189 set dummy ranlib; ac_word=$2
2190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2191 echo "configure:2192: checking for $ac_word" >&5
2192 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 if test -n "$RANLIB"; then
2196 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2200 for ac_dir in $ac_dummy; do
2201 test -z "$ac_dir" && ac_dir=.
2202 if test -f $ac_dir/$ac_word; then
2203 ac_cv_prog_RANLIB="ranlib"
2208 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2211 RANLIB="$ac_cv_prog_RANLIB"
2212 if test -n "$RANLIB"; then
2213 echo "$ac_t""$RANLIB" 1>&6
2215 echo "$ac_t""no" 1>&6
2218 # Extract the first word of "gcc", so it can be a program name with args.
2219 set dummy gcc; ac_word=$2
2220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2221 echo "configure:2222: checking for $ac_word" >&5
2222 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2230 for ac_dir in $ac_dummy; do
2231 test -z "$ac_dir" && ac_dir=.
2232 if test -f $ac_dir/$ac_word; then
2241 if test -n "$CC"; then
2242 echo "$ac_t""$CC" 1>&6
2244 echo "$ac_t""no" 1>&6
2247 if test -z "$CC"; then
2248 # Extract the first word of "cc", so it can be a program name with args.
2249 set dummy cc; ac_word=$2
2250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2251 echo "configure:2252: checking for $ac_word" >&5
2252 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 if test -n "$CC"; then
2256 ac_cv_prog_CC="$CC" # Let the user override the test.
2258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2261 for ac_dir in $ac_dummy; do
2262 test -z "$ac_dir" && ac_dir=.
2263 if test -f $ac_dir/$ac_word; then
2264 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2265 ac_prog_rejected=yes
2273 if test $ac_prog_rejected = yes; then
2274 # We found a bogon in the path, so make sure we never use it.
2275 set dummy $ac_cv_prog_CC
2277 if test $# -gt 0; then
2278 # We chose a different compiler from the bogus one.
2279 # However, it has the same basename, so the bogon will be chosen
2280 # first if we set CC to just the basename; use the full file name.
2282 set dummy "$ac_dir/$ac_word" "$@"
2290 if test -n "$CC"; then
2291 echo "$ac_t""$CC" 1>&6
2293 echo "$ac_t""no" 1>&6
2296 if test -z "$CC"; then
2297 case "`uname -s`" in
2299 # Extract the first word of "cl", so it can be a program name with args.
2300 set dummy cl; ac_word=$2
2301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2302 echo "configure:2303: checking for $ac_word" >&5
2303 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 if test -n "$CC"; then
2307 ac_cv_prog_CC="$CC" # Let the user override the test.
2309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2311 for ac_dir in $ac_dummy; do
2312 test -z "$ac_dir" && ac_dir=.
2313 if test -f $ac_dir/$ac_word; then
2322 if test -n "$CC"; then
2323 echo "$ac_t""$CC" 1>&6
2325 echo "$ac_t""no" 1>&6
2330 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2333 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2334 echo "configure:2335: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2337 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2338 ac_cpp='$CPP $CPPFLAGS'
2339 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2340 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2341 cross_compiling=$ac_cv_prog_cc_cross
2343 cat > conftest.$ac_ext << EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2350 if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2351 ac_cv_prog_cc_works=yes
2352 # If we can't run a trivial program, we are probably using a cross compiler.
2353 if (./conftest; exit) 2>/dev/null; then
2354 ac_cv_prog_cc_cross=no
2356 ac_cv_prog_cc_cross=yes
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2361 ac_cv_prog_cc_works=no
2365 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2366 ac_cpp='$CPP $CPPFLAGS'
2367 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2368 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2369 cross_compiling=$ac_cv_prog_cc_cross
2371 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2372 if test $ac_cv_prog_cc_works = no; then
2373 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2375 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2376 echo "configure:2377: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2377 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2378 cross_compiling=$ac_cv_prog_cc_cross
2380 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2381 echo "configure:2382: checking whether we are using GNU C" >&5
2382 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 cat > conftest.c <<EOF
2390 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2397 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2399 if test $ac_cv_prog_gcc = yes; then
2405 ac_test_CFLAGS="${CFLAGS+set}"
2406 ac_save_CFLAGS="$CFLAGS"
2408 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2409 echo "configure:2410: checking whether ${CC-cc} accepts -g" >&5
2410 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2411 echo $ac_n "(cached) $ac_c" 1>&6
2413 echo 'void f(){}' > conftest.c
2414 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2423 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2424 if test "$ac_test_CFLAGS" = set; then
2425 CFLAGS="$ac_save_CFLAGS"
2426 elif test $ac_cv_prog_cc_g = yes; then
2427 if test "$GCC" = yes; then
2433 if test "$GCC" = yes; then
2440 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2441 if test "${with_gnu_ld+set}" = set; then
2442 withval="$with_gnu_ld"
2443 test "$withval" = no || with_gnu_ld=yes
2450 if test "$ac_cv_prog_gcc" = yes; then
2451 # Check if gcc -print-prog-name=ld gives a path.
2452 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2453 echo "configure:2454: checking for ld used by GCC" >&5
2454 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2456 # Accept absolute paths.
2458 test -z "$LD" && LD="$ac_prog"
2461 # If it fails, then pretend we aren't using GCC.
2465 # If it is relative, then search for the first ld in PATH.
2469 elif test "$with_gnu_ld" = yes; then
2470 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2471 echo "configure:2472: checking for GNU ld" >&5
2473 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2474 echo "configure:2475: checking for non-GNU ld" >&5
2476 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2479 if test -z "$LD"; then
2480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2481 for ac_dir in $PATH; do
2482 test -z "$ac_dir" && ac_dir=.
2483 if test -f "$ac_dir/$ac_prog"; then
2484 ac_cv_path_LD="$ac_dir/$ac_prog"
2485 # Check to see if the program is GNU ld. I'd rather use --version,
2486 # but apparently some GNU ld's only accept -v.
2487 # Break only if it was the GNU/non-GNU ld that we prefer.
2488 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2489 test "$with_gnu_ld" != no && break
2491 test "$with_gnu_ld" != yes && break
2497 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2502 if test -n "$LD"; then
2503 echo "$ac_t""$LD" 1>&6
2505 echo "$ac_t""no" 1>&6
2507 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2509 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2510 echo "configure:2511: checking if the linker ($LD) is GNU ld" >&5
2511 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2515 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2516 ac_cv_prog_gnu_ld=yes
2518 ac_cv_prog_gnu_ld=no
2522 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2525 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2526 echo "configure:2527: checking for BSD-compatible nm" >&5
2527 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2532 ac_cv_path_NM="$NM" # Let the user override the test with a path.
2535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2536 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2537 test -z "$ac_dir" && ac_dir=.
2538 if test -f $ac_dir/nm; then
2539 # Check to see if the nm accepts a BSD-compat flag.
2540 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2541 # nm: unknown option "B" ignored
2542 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2543 ac_cv_path_NM="$ac_dir/nm -B"
2544 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2545 ac_cv_path_NM="$ac_dir/nm -p"
2547 ac_cv_path_NM="$ac_dir/nm"
2553 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2559 echo "$ac_t""$NM" 1>&6
2562 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2563 echo "configure:2564: checking whether ln -s works" >&5
2564 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2568 if ln -s X conftestdata 2>/dev/null
2571 ac_cv_prog_LN_S="ln -s"
2576 LN_S="$ac_cv_prog_LN_S"
2577 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2578 echo "$ac_t""yes" 1>&6
2580 echo "$ac_t""no" 1>&6
2583 # Always use our own libtool.
2584 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2586 # Check for any special flags to pass to ltconfig.
2588 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2589 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2590 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2591 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2592 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2594 # Some flags need to be propagated to the compiler or linker for good
2598 # Find out which ABI we are using.
2599 echo '#line 2600 "configure"' > conftest.$ac_ext
2600 if { (eval echo configure:2601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2601 case "`/usr/bin/file conftest.o`" in
2617 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2618 CFLAGS="$CFLAGS -belf"
2622 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2623 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2624 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2625 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
2626 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2627 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2630 for ac_prog in gawk mawk nawk awk
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2635 echo "configure:2636: checking for $ac_word" >&5
2636 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2639 if test -n "$AWK"; then
2640 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2644 for ac_dir in $ac_dummy; do
2645 test -z "$ac_dir" && ac_dir=.
2646 if test -f $ac_dir/$ac_word; then
2647 ac_cv_prog_AWK="$ac_prog"
2654 AWK="$ac_cv_prog_AWK"
2655 if test -n "$AWK"; then
2656 echo "$ac_t""$AWK" 1>&6
2658 echo "$ac_t""no" 1>&6
2661 test -n "$AWK" && break
2664 # test for ln hardlink support
2665 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
2666 echo "configure:2667: checking whether ln works" >&5
2667 if eval "test \"`echo '$''{'ol_cv_prog_LN_H'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 rm -f conftest.src conftest.dst
2671 echo "conftest" > conftest.src
2672 if ln conftest.src conftest.dst 2>/dev/null
2674 ol_cv_prog_LN_H="ln"
2676 ol_cv_prog_LN_H="cp"
2678 rm -f conftest.src conftest.dst
2681 LN_H="$ol_cv_prog_LN_H"
2682 if test "$ol_cv_prog_LN_H" = "ln"; then
2683 echo "$ac_t""yes" 1>&6
2685 echo "$ac_t""no" 1>&6
2688 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2689 echo "configure:2690: checking whether ln -s works" >&5
2690 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2694 if ln -s X conftestdata 2>/dev/null
2697 ac_cv_prog_LN_S="ln -s"
2702 LN_S="$ac_cv_prog_LN_S"
2703 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2704 echo "$ac_t""yes" 1>&6
2706 echo "$ac_t""no" 1>&6
2710 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
2714 # Extract the first word of "sendmail", so it can be a program name with args.
2715 set dummy sendmail; ac_word=$2
2716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2717 echo "configure:2718: checking for $ac_word" >&5
2718 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2723 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2726 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2730 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
2731 for ac_dir in $ac_dummy; do
2732 test -z "$ac_dir" && ac_dir=.
2733 if test -f $ac_dir/$ac_word; then
2734 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2739 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
2743 SENDMAIL="$ac_cv_path_SENDMAIL"
2744 if test -n "$SENDMAIL"; then
2745 echo "$ac_t""$SENDMAIL" 1>&6
2747 echo "$ac_t""no" 1>&6
2750 # Extract the first word of "vi", so it can be a program name with args.
2751 set dummy vi; ac_word=$2
2752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2753 echo "configure:2754: checking for $ac_word" >&5
2754 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2759 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
2762 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
2765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2766 ac_dummy="$PATH:/usr/ucb"
2767 for ac_dir in $ac_dummy; do
2768 test -z "$ac_dir" && ac_dir=.
2769 if test -f $ac_dir/$ac_word; then
2770 ac_cv_path_EDITOR="$ac_dir/$ac_word"
2775 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
2779 EDITOR="$ac_cv_path_EDITOR"
2780 if test -n "$EDITOR"; then
2781 echo "$ac_t""$EDITOR" 1>&6
2783 echo "$ac_t""no" 1>&6
2786 # Extract the first word of "finger", so it can be a program name with args.
2787 set dummy finger; ac_word=$2
2788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2789 echo "configure:2790: checking for $ac_word" >&5
2790 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2795 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
2798 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
2801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2802 ac_dummy="$PATH:/usr/ucb"
2803 for ac_dir in $ac_dummy; do
2804 test -z "$ac_dir" && ac_dir=.
2805 if test -f $ac_dir/$ac_word; then
2806 ac_cv_path_FINGER="$ac_dir/$ac_word"
2811 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
2815 FINGER="$ac_cv_path_FINGER"
2816 if test -n "$FINGER"; then
2817 echo "$ac_t""$FINGER" 1>&6
2819 echo "$ac_t""no" 1>&6
2824 if test $ol_enable_modules != no ; then
2825 # Extract the first word of "glib-config", so it can be a program name with args.
2826 set dummy glib-config; ac_word=$2
2827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_word" >&5
2829 if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2832 case "$GLIBCONFIG" in
2834 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a path.
2837 ac_cv_path_GLIBCONFIG="$GLIBCONFIG" # Let the user override the test with a dos path.
2840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2842 for ac_dir in $ac_dummy; do
2843 test -z "$ac_dir" && ac_dir=.
2844 if test -f $ac_dir/$ac_word; then
2845 ac_cv_path_GLIBCONFIG="$ac_dir/$ac_word"
2853 GLIBCONFIG="$ac_cv_path_GLIBCONFIG"
2854 if test -n "$GLIBCONFIG"; then
2855 echo "$ac_t""$GLIBCONFIG" 1>&6
2857 echo "$ac_t""no" 1>&6
2861 if test "no$GLIBCONFIG" = "no" ; then
2862 if test $ol_enable_modules = yes ; then
2863 { echo "configure: error: could not locate glib-config" 1>&2; exit 1; }
2867 SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
2868 SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
2869 SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
2874 ol_with_bdb2_module=static
2875 ol_with_ldap_module=static
2876 ol_with_ldbm_module=static
2877 ol_with_passwd_module=static
2878 ol_with_perl_module=static
2879 ol_with_shell_module=static
2880 ol_with_tcl_module=static
2884 if test $ol_enable_perl != no ; then
2885 # Extract the first word of "perl", so it can be a program name with args.
2886 set dummy perl; ac_word=$2
2887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2888 echo "configure:2889: checking for $ac_word" >&5
2889 if eval "test \"`echo '$''{'ac_cv_path_PERLBIN'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2894 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
2897 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
2900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2902 for ac_dir in $ac_dummy; do
2903 test -z "$ac_dir" && ac_dir=.
2904 if test -f $ac_dir/$ac_word; then
2905 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
2910 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
2914 PERLBIN="$ac_cv_path_PERLBIN"
2915 if test -n "$PERLBIN"; then
2916 echo "$ac_t""$PERLBIN" 1>&6
2918 echo "$ac_t""no" 1>&6
2922 if test "no$PERLBIN" = "no" ; then
2923 if test $ol_enable_perl = yes ; then
2924 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
2928 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
2929 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
2935 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2936 echo "configure:2937: checking how to run the C preprocessor" >&5
2937 # On Suns, sometimes $CPP names a directory.
2938 if test -n "$CPP" && test -d "$CPP"; then
2941 if test -z "$CPP"; then
2942 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 # This must be in double quotes, not single quotes, because CPP may get
2946 # substituted into the Makefile and "${CC-cc}" will confuse make.
2948 # On the NeXT, cc -E runs the code through the compiler's parser,
2949 # not just through cpp.
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2957 { (eval echo configure:2958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2959 if test -z "$ac_err"; then
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2966 CPP="${CC-cc} -E -traditional-cpp"
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2974 { (eval echo configure:2975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2976 if test -z "$ac_err"; then
2980 echo "configure: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2983 CPP="${CC-cc} -nologo -E"
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2991 { (eval echo configure:2992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2993 if test -z "$ac_err"; then
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3007 ac_cv_prog_CPP="$CPP"
3009 CPP="$ac_cv_prog_CPP"
3011 ac_cv_prog_CPP="$CPP"
3013 echo "$ac_t""$CPP" 1>&6
3016 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3017 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3019 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3020 echo "configure: warning: programs compiled here do run here..." 1>&2
3021 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3023 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3024 echo "configure: warning: programs compiled here do not run here..." 1>&2
3025 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3028 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3029 echo "configure:3030: checking for AIX" >&5
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3039 egrep "yes" >/dev/null 2>&1; then
3041 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3042 #define _ALL_SOURCE 1
3047 echo "$ac_t""no" 1>&6
3052 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3053 echo "configure:3054: checking for POSIXized ISC" >&5
3054 if test -d /etc/conf/kconfig.d &&
3055 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3057 echo "$ac_t""yes" 1>&6
3058 ISC=yes # If later tests want to check for ISC.
3059 cat >> confdefs.h <<\EOF
3060 #define _POSIX_SOURCE 1
3063 if test "$GCC" = yes; then
3069 echo "$ac_t""no" 1>&6
3073 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3074 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3075 echo "configure:3076: checking for minix/config.h" >&5
3076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3082 #include <minix/config.h>
3084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3085 { (eval echo configure:3086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3087 if test -z "$ac_err"; then
3089 eval "ac_cv_header_$ac_safe=yes"
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3095 eval "ac_cv_header_$ac_safe=no"
3099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3100 echo "$ac_t""yes" 1>&6
3103 echo "$ac_t""no" 1>&6
3107 if test "$MINIX" = yes; then
3108 cat >> confdefs.h <<\EOF
3109 #define _POSIX_SOURCE 1
3112 cat >> confdefs.h <<\EOF
3113 #define _POSIX_1_SOURCE 2
3116 cat >> confdefs.h <<\EOF
3123 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3124 echo "configure:3125: checking for be_app in -lbe" >&5
3125 ac_lib_var=`echo be'_'be_app | sed 'y%./+-%__p_%'`
3126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 ac_save_LIBS="$LIBS"
3130 LIBS="-lbe -lroot -lnet $LIBS"
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 /* Override any gcc2 internal prototype to avoid an error. */
3135 /* We use char because int might match the return type of a gcc2
3136 builtin and then its argument prototype would still apply. */
3143 if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3145 eval "ac_cv_lib_$ac_lib_var=yes"
3147 echo "configure: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3150 eval "ac_cv_lib_$ac_lib_var=no"
3153 LIBS="$ac_save_LIBS"
3156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3157 echo "$ac_t""yes" 1>&6
3158 LIBS="$LIBS -lbe -lroot -lnet"
3160 echo "$ac_t""no" 1>&6
3165 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3166 echo "configure:3167: checking for Cygwin environment" >&5
3167 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3177 #define __CYGWIN__ __CYGWIN32__
3182 if { (eval echo configure:3183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3195 echo "$ac_t""$ac_cv_cygwin" 1>&6
3197 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3198 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3199 echo "configure:3200: checking for mingw32 environment" >&5
3200 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 cat > conftest.$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3211 if { (eval echo configure:3212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3215 echo "configure: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3224 echo "$ac_t""$ac_cv_mingw32" 1>&6
3226 test "$ac_cv_mingw32" = yes && MINGW32=yes
3229 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3230 echo "configure:3231: checking for executable suffix" >&5
3231 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3238 echo 'int main () { return 0; }' > conftest.$ac_ext
3240 if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3241 for file in conftest.*; do
3243 *.c | *.o | *.obj) ;;
3244 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3248 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3251 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3256 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3257 echo "$ac_t""${ac_cv_exeext}" 1>&6
3260 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3261 echo "configure:3262: checking for object suffix" >&5
3262 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3266 echo 'int i = 1;' > conftest.$ac_ext
3267 if { (eval echo configure:3268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3268 for ac_file in conftest.*; do
3271 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3275 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3280 echo "$ac_t""$ac_cv_objext" 1>&6
3281 OBJEXT=$ac_cv_objext
3282 ac_objext=$ac_cv_objext
3285 cat >> confdefs.h <<EOF
3286 #define EXEEXT "${EXEEXT}"
3293 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3294 echo "configure:3295: checking for ${CC-cc} option to accept ANSI C" >&5
3295 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 am_cv_prog_cc_stdc=no
3300 # Don't try gcc -ansi; that turns off useful extensions and
3301 # breaks some systems' header files.
3302 # AIX -qlanglvl=ansi
3303 # Ultrix and OSF/1 -std1
3304 # HP-UX -Aa -D_HPUX_SOURCE
3305 # SVR4 -Xc -D__EXTENSIONS__
3306 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3308 CC="$ac_save_CC $ac_arg"
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3314 #include <sys/types.h>
3315 #include <sys/stat.h>
3316 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3317 struct buf { int x; };
3318 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3319 static char *e (p, i)
3325 static char *f (char * (*g) (char **, int), char **p, ...)
3330 s = g (p, va_arg (v,int));
3334 int test (int i, double x);
3335 struct s1 {int (*f) (int a);};
3336 struct s2 {int (*f) (double a);};
3337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3343 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3347 if { (eval echo configure:3348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3349 am_cv_prog_cc_stdc="$ac_arg"; break
3351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3360 if test -z "$am_cv_prog_cc_stdc"; then
3361 echo "$ac_t""none needed" 1>&6
3363 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3365 case "x$am_cv_prog_cc_stdc" in
3367 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3370 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3371 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3375 # test for make depend flag
3378 if test -z "${MKDEP}"; then
3380 if test -z "${MKDEP_FLAGS}"; then
3381 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3382 echo "configure:3383: checking for ${OL_MKDEP} depend flag" >&5
3383 if eval "test \"`echo '$''{'ol_cv_mkdep'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3388 for flag in "-M" "-xM"; do
3389 cat > conftest.c <<EOF
3392 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3393 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3395 if test ! -f conftest."${ac_object}" ; then
3397 OL_MKDEP_FLAGS="$flag"
3406 echo "$ac_t""$ol_cv_mkdep" 1>&6
3409 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3414 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3419 if test "${ol_cv_mkdep}" = no ; then
3420 # this will soon become an error
3421 echo "configure: warning: do not know how to generate dependencies" 1>&2
3426 echo $ac_n "checking for socket""... $ac_c" 1>&6
3427 echo "configure:3428: checking for socket" >&5
3428 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 /* System header to define __stub macros and hopefully few prototypes,
3435 which can conflict with char socket(); below. */
3437 /* Override any gcc2 internal prototype to avoid an error. */
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3444 /* The GNU C library defines this for functions which it implements
3445 to always fail with ENOSYS. Some functions are actually named
3446 something starting with __ and the normal name is an alias. */
3447 #if defined (__stub_socket) || defined (__stub___socket)
3455 if { (eval echo configure:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3457 eval "ac_cv_func_socket=yes"
3459 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3462 eval "ac_cv_func_socket=no"
3467 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3471 echo "$ac_t""no" 1>&6
3473 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3474 echo "configure:3475: checking for main in -lsocket" >&5
3475 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 ac_save_LIBS="$LIBS"
3480 LIBS="-lsocket $LIBS"
3481 cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3489 if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3491 eval "ac_cv_lib_$ac_lib_var=yes"
3493 echo "configure: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3496 eval "ac_cv_lib_$ac_lib_var=no"
3499 LIBS="$ac_save_LIBS"
3502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3503 echo "$ac_t""yes" 1>&6
3504 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3505 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3506 cat >> confdefs.h <<EOF
3507 #define $ac_tr_lib 1
3510 LIBS="-lsocket $LIBS"
3513 echo "$ac_t""no" 1>&6
3516 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
3517 echo "configure:3518: checking for main in -lnet" >&5
3518 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
3519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3522 ac_save_LIBS="$LIBS"
3524 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3532 if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3534 eval "ac_cv_lib_$ac_lib_var=yes"
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3539 eval "ac_cv_lib_$ac_lib_var=no"
3542 LIBS="$ac_save_LIBS"
3545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3547 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3549 cat >> confdefs.h <<EOF
3550 #define $ac_tr_lib 1
3556 echo "$ac_t""no" 1>&6
3559 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3560 echo "configure:3561: checking for socket in -lnet" >&5
3561 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 ac_save_LIBS="$LIBS"
3567 cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3570 /* Override any gcc2 internal prototype to avoid an error. */
3571 /* We use char because int might match the return type of a gcc2
3572 builtin and then its argument prototype would still apply. */
3579 if { (eval echo configure:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3581 eval "ac_cv_lib_$ac_lib_var=yes"
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3586 eval "ac_cv_lib_$ac_lib_var=no"
3589 LIBS="$ac_save_LIBS"
3592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3593 echo "$ac_t""yes" 1>&6
3594 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3595 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3596 cat >> confdefs.h <<EOF
3597 #define $ac_tr_lib 1
3603 echo "$ac_t""no" 1>&6
3606 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
3607 echo "configure:3608: checking for main in -lnsl_s" >&5
3608 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
3609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 ac_save_LIBS="$LIBS"
3613 LIBS="-lnsl_s $LIBS"
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3622 if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3624 eval "ac_cv_lib_$ac_lib_var=yes"
3626 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3629 eval "ac_cv_lib_$ac_lib_var=no"
3632 LIBS="$ac_save_LIBS"
3635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3636 echo "$ac_t""yes" 1>&6
3637 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3638 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3639 cat >> confdefs.h <<EOF
3640 #define $ac_tr_lib 1
3643 LIBS="-lnsl_s $LIBS"
3646 echo "$ac_t""no" 1>&6
3649 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3650 echo "configure:3651: checking for main in -lnsl" >&5
3651 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 ac_save_LIBS="$LIBS"
3657 cat > conftest.$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3665 if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3667 eval "ac_cv_lib_$ac_lib_var=yes"
3669 echo "configure: failed program was:" >&5
3670 cat conftest.$ac_ext >&5
3672 eval "ac_cv_lib_$ac_lib_var=no"
3675 LIBS="$ac_save_LIBS"
3678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3679 echo "$ac_t""yes" 1>&6
3680 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3681 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3682 cat >> confdefs.h <<EOF
3683 #define $ac_tr_lib 1
3689 echo "$ac_t""no" 1>&6
3692 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
3693 echo "configure:3694: checking for socket in -linet" >&5
3694 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
3695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3698 ac_save_LIBS="$LIBS"
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 /* Override any gcc2 internal prototype to avoid an error. */
3704 /* We use char because int might match the return type of a gcc2
3705 builtin and then its argument prototype would still apply. */
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3714 eval "ac_cv_lib_$ac_lib_var=yes"
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3719 eval "ac_cv_lib_$ac_lib_var=no"
3722 LIBS="$ac_save_LIBS"
3725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3726 echo "$ac_t""yes" 1>&6
3727 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3728 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3729 cat >> confdefs.h <<EOF
3730 #define $ac_tr_lib 1
3736 echo "$ac_t""no" 1>&6
3739 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3740 echo "configure:3741: checking for main in -lgen" >&5
3741 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
3745 ac_save_LIBS="$LIBS"
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3755 if { (eval echo configure:3756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3757 eval "ac_cv_lib_$ac_lib_var=yes"
3759 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3762 eval "ac_cv_lib_$ac_lib_var=no"
3765 LIBS="$ac_save_LIBS"
3768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3769 echo "$ac_t""yes" 1>&6
3770 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3771 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3772 cat >> confdefs.h <<EOF
3773 #define $ac_tr_lib 1
3779 echo "$ac_t""no" 1>&6
3786 for ac_func in res_search
3788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3789 echo "configure:3790: checking for $ac_func" >&5
3790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 /* System header to define __stub macros and hopefully few prototypes,
3797 which can conflict with char $ac_func(); below. */
3799 /* Override any gcc2 internal prototype to avoid an error. */
3800 /* We use char because int might match the return type of a gcc2
3801 builtin and then its argument prototype would still apply. */
3806 /* The GNU C library defines this for functions which it implements
3807 to always fail with ENOSYS. Some functions are actually named
3808 something starting with __ and the normal name is an alias. */
3809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3817 if { (eval echo configure:3818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3819 eval "ac_cv_func_$ac_func=yes"
3821 echo "configure: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3824 eval "ac_cv_func_$ac_func=no"
3829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3830 echo "$ac_t""yes" 1>&6
3831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3832 cat >> confdefs.h <<EOF
3833 #define $ac_tr_func 1
3837 echo "$ac_t""no" 1>&6
3841 if test $ac_cv_func_res_search = "no" ; then
3842 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
3843 echo "configure:3844: checking for res_search in -lbind" >&5
3844 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-%__p_%'`
3845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 ac_save_LIBS="$LIBS"
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3853 /* Override any gcc2 internal prototype to avoid an error. */
3854 /* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */
3862 if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3864 eval "ac_cv_lib_$ac_lib_var=yes"
3866 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3869 eval "ac_cv_lib_$ac_lib_var=no"
3872 LIBS="$ac_save_LIBS"
3875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3876 echo "$ac_t""yes" 1>&6
3877 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3878 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3879 cat >> confdefs.h <<EOF
3880 #define $ac_tr_lib 1
3886 echo "$ac_t""no" 1>&6
3889 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
3890 cat >> confdefs.h <<\EOF
3891 #define HAVE_RES_SEARCH 1
3895 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
3896 echo "configure:3897: checking for res_search in -lresolv" >&5
3897 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
3898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3899 echo $ac_n "(cached) $ac_c" 1>&6
3901 ac_save_LIBS="$LIBS"
3902 LIBS="-lresolv $LIBS"
3903 cat > conftest.$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3906 /* Override any gcc2 internal prototype to avoid an error. */
3907 /* We use char because int might match the return type of a gcc2
3908 builtin and then its argument prototype would still apply. */
3915 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3917 eval "ac_cv_lib_$ac_lib_var=yes"
3919 echo "configure: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3922 eval "ac_cv_lib_$ac_lib_var=no"
3925 LIBS="$ac_save_LIBS"
3928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3929 echo "$ac_t""yes" 1>&6
3930 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3931 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3932 cat >> confdefs.h <<EOF
3933 #define $ac_tr_lib 1
3936 LIBS="-lresolv $LIBS"
3939 echo "$ac_t""no" 1>&6
3942 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
3943 cat >> confdefs.h <<\EOF
3944 #define HAVE_RES_SEARCH 1
3951 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
3952 echo "configure:3953: checking for sigset in -lV3" >&5
3953 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
3954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 ac_save_LIBS="$LIBS"
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 /* Override any gcc2 internal prototype to avoid an error. */
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3973 eval "ac_cv_lib_$ac_lib_var=yes"
3975 echo "configure: failed program was:" >&5
3976 cat conftest.$ac_ext >&5
3978 eval "ac_cv_lib_$ac_lib_var=no"
3981 LIBS="$ac_save_LIBS"
3984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3985 echo "$ac_t""yes" 1>&6
3986 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3987 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3988 cat >> confdefs.h <<EOF
3989 #define $ac_tr_lib 1
3995 echo "$ac_t""no" 1>&6
3999 for ac_hdr in regex.h
4001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4003 echo "configure:4004: checking for $ac_hdr" >&5
4004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4013 { (eval echo configure:4014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4015 if test -z "$ac_err"; then
4017 eval "ac_cv_header_$ac_safe=yes"
4020 echo "configure: failed program was:" >&5
4021 cat conftest.$ac_ext >&5
4023 eval "ac_cv_header_$ac_safe=no"
4027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4028 echo "$ac_t""yes" 1>&6
4029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4030 cat >> confdefs.h <<EOF
4031 #define $ac_tr_hdr 1
4035 echo "$ac_t""no" 1>&6
4039 if test "$ac_cv_header_regex_h" != yes ; then
4040 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
4042 echo $ac_n "checking for regfree""... $ac_c" 1>&6
4043 echo "configure:4044: checking for regfree" >&5
4044 if eval "test \"`echo '$''{'ac_cv_func_regfree'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 /* System header to define __stub macros and hopefully few prototypes,
4051 which can conflict with char regfree(); below. */
4053 /* Override any gcc2 internal prototype to avoid an error. */
4054 /* We use char because int might match the return type of a gcc2
4055 builtin and then its argument prototype would still apply. */
4060 /* The GNU C library defines this for functions which it implements
4061 to always fail with ENOSYS. Some functions are actually named
4062 something starting with __ and the normal name is an alias. */
4063 #if defined (__stub_regfree) || defined (__stub___regfree)
4071 if { (eval echo configure:4072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4073 eval "ac_cv_func_regfree=yes"
4075 echo "configure: failed program was:" >&5
4076 cat conftest.$ac_ext >&5
4078 eval "ac_cv_func_regfree=no"
4083 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
4084 echo "$ac_t""yes" 1>&6
4087 echo "$ac_t""no" 1>&6
4088 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
4093 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
4094 echo "configure:4095: checking for compatible POSIX regex" >&5
4095 if eval "test \"`echo '$''{'ol_cv_c_posix_regex'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4099 if test "$cross_compiling" = yes; then
4100 ol_cv_c_posix_regex=cross
4102 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4106 #include <sys/types.h>
4108 static char *pattern, *string;
4116 if(regcomp(&re, pattern, 0)) {
4120 string = "ALL MATCH";
4122 rc = regexec(&re, string, 0, (void*)0, 0);
4129 if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4131 ol_cv_c_posix_regex=yes
4133 echo "configure: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4136 ol_cv_c_posix_regex=no
4143 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
4145 if test "$ol_cv_c_posix_regex" = no ; then
4146 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
4149 echo $ac_n "checking for select""... $ac_c" 1>&6
4150 echo "configure:4151: checking for select" >&5
4151 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
4152 echo $ac_n "(cached) $ac_c" 1>&6
4154 cat > conftest.$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4157 /* System header to define __stub macros and hopefully few prototypes,
4158 which can conflict with char select(); below. */
4160 /* Override any gcc2 internal prototype to avoid an error. */
4161 /* We use char because int might match the return type of a gcc2
4162 builtin and then its argument prototype would still apply. */
4167 /* The GNU C library defines this for functions which it implements
4168 to always fail with ENOSYS. Some functions are actually named
4169 something starting with __ and the normal name is an alias. */
4170 #if defined (__stub_select) || defined (__stub___select)
4178 if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4180 eval "ac_cv_func_select=yes"
4182 echo "configure: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4185 eval "ac_cv_func_select=no"
4190 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
4191 echo "$ac_t""yes" 1>&6
4194 echo "$ac_t""no" 1>&6
4195 { echo "configure: error: select() required." 1>&2; exit 1; }
4199 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
4200 echo "configure:4201: checking types of arguments for select()" >&5
4201 if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4204 if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4207 if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4210 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
4211 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4212 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216 #ifdef HAVE_SYS_TYPES_H
4217 #include <sys/types.h>
4219 #ifdef HAVE_SYS_TIME_H
4220 #include <sys/time.h>
4222 #ifdef HAVE_SYS_SELECT_H
4223 #include <sys/select.h>
4225 #ifdef HAVE_SYS_SOCKET_H
4226 #include <sys/socket.h>
4228 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);
4233 if { (eval echo configure:4234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4235 ac_not_found=no ; break 3
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4252 if test "$ac_not_found" = yes; then
4253 ac_cv_func_select_arg1=int
4254 ac_cv_func_select_arg234='int *'
4255 ac_cv_func_select_arg5='struct timeval *'
4257 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
4258 cat >> confdefs.h <<EOF
4259 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
4262 cat >> confdefs.h <<EOF
4263 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
4266 cat >> confdefs.h <<EOF
4267 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
4274 if test $ol_enable_ldapd != no ; then
4275 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
4277 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
4278 echo "configure:4279: checking for main in -lxtpp" >&5
4279 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
4280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4281 echo $ac_n "(cached) $ac_c" 1>&6
4283 ac_save_LIBS="$LIBS"
4284 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
4285 cat > conftest.$ac_ext <<EOF
4286 #line 4287 "configure"
4287 #include "confdefs.h"
4293 if { (eval echo configure:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4295 eval "ac_cv_lib_$ac_lib_var=yes"
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4300 eval "ac_cv_lib_$ac_lib_var=no"
4303 LIBS="$ac_save_LIBS"
4306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4307 echo "$ac_t""yes" 1>&6
4310 cat >> confdefs.h <<\EOF
4314 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
4317 echo "$ac_t""no" 1>&6
4321 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
4322 echo "configure:4323: checking for main in -ldsap" >&5
4323 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
4324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4327 ac_save_LIBS="$LIBS"
4328 LIBS="-ldsap -lisode $LIBS"
4329 cat > conftest.$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4337 if { (eval echo configure:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4339 eval "ac_cv_lib_$ac_lib_var=yes"
4341 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4344 eval "ac_cv_lib_$ac_lib_var=no"
4347 LIBS="$ac_save_LIBS"
4350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4351 echo "$ac_t""yes" 1>&6
4354 cat >> confdefs.h <<\EOF
4358 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
4361 echo "$ac_t""no" 1>&6
4365 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
4366 echo "configure:4367: checking for main in -lisode" >&5
4367 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
4368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4369 echo $ac_n "(cached) $ac_c" 1>&6
4371 ac_save_LIBS="$LIBS"
4372 LIBS="-lisode $LIBS"
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4381 if { (eval echo configure:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4383 eval "ac_cv_lib_$ac_lib_var=yes"
4385 echo "configure: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4388 eval "ac_cv_lib_$ac_lib_var=no"
4391 LIBS="$ac_save_LIBS"
4394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4395 echo "$ac_t""yes" 1>&6
4398 cat >> confdefs.h <<\EOF
4399 #define HAVE_ISODE 1
4402 LDAPD_LIBS="$LDAPD_LIBS -lisode"
4405 echo "$ac_t""no" 1>&6
4411 if test $ol_link_isode != no; then
4412 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
4413 echo "configure:4414: checking for main in -lpp" >&5
4414 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
4415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4418 ac_save_LIBS="$LIBS"
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4428 if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4430 eval "ac_cv_lib_$ac_lib_var=yes"
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4435 eval "ac_cv_lib_$ac_lib_var=no"
4438 LIBS="$ac_save_LIBS"
4441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4442 echo "$ac_t""yes" 1>&6
4444 cat >> confdefs.h <<\EOF
4448 LDAPD_LIBS="-lpp $LDAPD_LIBS"
4451 echo "$ac_t""no" 1>&6
4456 # Extract the first word of "pepsy", so it can be a program name with args.
4457 set dummy pepsy; ac_word=$2
4458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4459 echo "configure:4460: checking for $ac_word" >&5
4460 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4465 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
4468 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
4471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4473 for ac_dir in $ac_dummy; do
4474 test -z "$ac_dir" && ac_dir=.
4475 if test -f $ac_dir/$ac_word; then
4476 ac_cv_path_PEPSY="$ac_dir/$ac_word"
4484 PEPSY="$ac_cv_path_PEPSY"
4485 if test -n "$PEPSY"; then
4486 echo "$ac_t""$PEPSY" 1>&6
4488 echo "$ac_t""no" 1>&6
4495 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
4496 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
4498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4500 echo "configure:4501: checking for $ac_hdr" >&5
4501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4502 echo $ac_n "(cached) $ac_c" 1>&6
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4510 { (eval echo configure:4511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4512 if test -z "$ac_err"; then
4514 eval "ac_cv_header_$ac_safe=yes"
4517 echo "configure: failed program was:" >&5
4518 cat conftest.$ac_ext >&5
4520 eval "ac_cv_header_$ac_safe=no"
4524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4525 echo "$ac_t""yes" 1>&6
4526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4527 cat >> confdefs.h <<EOF
4528 #define $ac_tr_hdr 1
4532 echo "$ac_t""no" 1>&6
4537 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
4538 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
4539 echo "configure:4540: checking for main in -lkrb4" >&5
4540 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
4541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4542 echo $ac_n "(cached) $ac_c" 1>&6
4544 ac_save_LIBS="$LIBS"
4545 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
4546 cat > conftest.$ac_ext <<EOF
4547 #line 4548 "configure"
4548 #include "confdefs.h"
4554 if { (eval echo configure:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4556 eval "ac_cv_lib_$ac_lib_var=yes"
4558 echo "configure: failed program was:" >&5
4559 cat conftest.$ac_ext >&5
4561 eval "ac_cv_lib_$ac_lib_var=no"
4564 LIBS="$ac_save_LIBS"
4567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4568 echo "$ac_t""yes" 1>&6
4571 echo "$ac_t""no" 1>&6
4576 if test $have_k5 = yes ; then
4577 ol_with_kerberos=found
4578 ol_link_kerberos=yes
4580 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
4582 LIBS="$KRB_LIBS $LIBS"
4584 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
4585 echo "configure:4586: checking for des_debug in Kerberos libraries" >&5
4586 if eval "test \"`echo '$''{'ol_cv_var_des_debug'+set}'`\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4591 LIBS="$KRB_LIBS $LIBS"
4592 cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4596 #include <kerberosIV/krb.h>
4597 #include <kerberosIV/des.h>
4598 extern int des_debug;
4606 if { (eval echo configure:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4608 ol_cv_var_des_debug=yes
4610 echo "configure: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4613 ol_cv_var_des_debug=no
4620 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
4622 if test $ol_cv_var_des_debug = yes ; then
4623 cat >> confdefs.h <<\EOF
4624 #define HAVE_DES_DEBUG 1
4634 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
4635 for ac_hdr in krb.h des.h
4637 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4639 echo "configure:4640: checking for $ac_hdr" >&5
4640 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4649 { (eval echo configure:4650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4651 if test -z "$ac_err"; then
4653 eval "ac_cv_header_$ac_safe=yes"
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4659 eval "ac_cv_header_$ac_safe=no"
4663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4664 echo "$ac_t""yes" 1>&6
4665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4666 cat >> confdefs.h <<EOF
4667 #define $ac_tr_hdr 1
4671 echo "$ac_t""no" 1>&6
4676 if test $ac_cv_header_krb_h = yes ; then
4677 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
4678 echo "configure:4679: checking for main in -lkrb" >&5
4679 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
4680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4683 ac_save_LIBS="$LIBS"
4684 LIBS="-lkrb -ldes $LIBS"
4685 cat > conftest.$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4693 if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4695 eval "ac_cv_lib_$ac_lib_var=yes"
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4700 eval "ac_cv_lib_$ac_lib_var=no"
4703 LIBS="$ac_save_LIBS"
4706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4707 echo "$ac_t""yes" 1>&6
4710 echo "$ac_t""no" 1>&6
4715 if test $have_k4 = yes ; then
4716 ol_with_kerberos=found
4717 ol_link_kerberos=yes
4719 KRB_LIBS="-lkrb -ldes"
4724 if test $ol_link_kerberos = yes ; then
4725 cat >> confdefs.h <<\EOF
4726 #define HAVE_KERBEROS 1
4732 if test $ol_with_tls != no ; then
4734 for ac_hdr in openssl/ssl.h ssl.h
4736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4738 echo "configure:4739: checking for $ac_hdr" >&5
4739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4740 echo $ac_n "(cached) $ac_c" 1>&6
4742 cat > conftest.$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4748 { (eval echo configure:4749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4750 if test -z "$ac_err"; then
4752 eval "ac_cv_header_$ac_safe=yes"
4755 echo "configure: failed program was:" >&5
4756 cat conftest.$ac_ext >&5
4758 eval "ac_cv_header_$ac_safe=no"
4762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4763 echo "$ac_t""yes" 1>&6
4764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4765 cat >> confdefs.h <<EOF
4766 #define $ac_tr_hdr 1
4770 echo "$ac_t""no" 1>&6
4775 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
4776 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
4777 echo "configure:4778: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
4778 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-%__p_%'`
4779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4782 ac_save_LIBS="$LIBS"
4783 LIBS="-lssl -lcrypto $LIBS"
4784 cat > conftest.$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4787 /* Override any gcc2 internal prototype to avoid an error. */
4788 /* We use char because int might match the return type of a gcc2
4789 builtin and then its argument prototype would still apply. */
4790 char SSLeay_add_ssl_algorithms();
4793 SSLeay_add_ssl_algorithms()
4796 if { (eval echo configure:4797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4798 eval "ac_cv_lib_$ac_lib_var=yes"
4800 echo "configure: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4803 eval "ac_cv_lib_$ac_lib_var=no"
4806 LIBS="$ac_save_LIBS"
4809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4810 echo "$ac_t""yes" 1>&6
4814 echo "$ac_t""no" 1>&6
4819 if test $have_ssleay = no ; then
4820 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4821 echo "configure:4822: checking for SSL_library_init in -lssl" >&5
4822 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4826 ac_save_LIBS="$LIBS"
4827 LIBS="-lssl -lcrypto $LIBS"
4828 cat > conftest.$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4831 /* Override any gcc2 internal prototype to avoid an error. */
4832 /* We use char because int might match the return type of a gcc2
4833 builtin and then its argument prototype would still apply. */
4834 char SSL_library_init();
4840 if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4842 eval "ac_cv_lib_$ac_lib_var=yes"
4844 echo "configure: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4847 eval "ac_cv_lib_$ac_lib_var=no"
4850 LIBS="$ac_save_LIBS"
4853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4854 echo "$ac_t""yes" 1>&6
4858 echo "$ac_t""no" 1>&6
4864 if test $have_ssleay = no ; then
4865 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
4866 echo "configure:4867: checking for ssl3_accept in -lssl" >&5
4867 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-%__p_%'`
4868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4871 ac_save_LIBS="$LIBS"
4872 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4876 /* Override any gcc2 internal prototype to avoid an error. */
4877 /* We use char because int might match the return type of a gcc2
4878 builtin and then its argument prototype would still apply. */
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4887 eval "ac_cv_lib_$ac_lib_var=yes"
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4892 eval "ac_cv_lib_$ac_lib_var=no"
4895 LIBS="$ac_save_LIBS"
4898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4899 echo "$ac_t""yes" 1>&6
4903 echo "$ac_t""no" 1>&6
4909 if test $have_ssleay = yes ; then
4913 cat >> confdefs.h <<\EOF
4914 #define HAVE_SSLEAY 1
4918 if test $need_rsaref = yes; then
4919 cat >> confdefs.h <<\EOF
4920 #define HAVE_RSAREF 1
4924 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
4926 TLS_LIBS="-lssl -lcrypto"
4932 if test $ol_link_tls = yes ; then
4933 cat >> confdefs.h <<\EOF
4941 gethostbyname_r gethostbyaddr_r \
4944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4945 echo "configure:4946: checking for $ac_func" >&5
4946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4952 /* System header to define __stub macros and hopefully few prototypes,
4953 which can conflict with char $ac_func(); below. */
4955 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */
4962 /* The GNU C library defines this for functions which it implements
4963 to always fail with ENOSYS. Some functions are actually named
4964 something starting with __ and the normal name is an alias. */
4965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4973 if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4975 eval "ac_cv_func_$ac_func=yes"
4977 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4980 eval "ac_cv_func_$ac_func=no"
4985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4986 echo "$ac_t""yes" 1>&6
4987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4988 cat >> confdefs.h <<EOF
4989 #define $ac_tr_func 1
4993 echo "$ac_t""no" 1>&6
4998 if test "$ac_cv_func_ctime_r" = no ; then
4999 ol_cv_func_ctime_r_nargs=0
5001 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
5002 echo "configure:5003: checking number of arguments of ctime_r" >&5
5003 if eval "test \"`echo '$''{'ol_cv_func_ctime_r_nargs'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5006 cat > conftest.$ac_ext <<EOF
5007 #line 5008 "configure"
5008 #include "confdefs.h"
5011 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
5014 if { (eval echo configure:5015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5016 ol_cv_func_ctime_r_nargs=3
5018 echo "configure: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5026 time_t ti; char *buffer; ctime_r(&ti,buffer);
5029 if { (eval echo configure:5030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5031 ol_cv_func_ctime_r_nargs=2
5033 echo "configure: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5036 ol_cv_func_ctime_r_nargs=0
5043 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
5044 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
5045 cat >> confdefs.h <<EOF
5046 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
5053 if test "$ac_cv_func_gethostbyname_r" = yes ; then
5054 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
5055 echo "configure:5056: checking number of arguments of gethostbyname_r" >&5
5056 if eval "test \"`echo '$''{'ol_cv_func_gethostbyname_r_nargs'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5059 cat > conftest.$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5062 #include <sys/types.h>
5063 #include <sys/socket.h>
5064 #include <netinet/in.h>
5066 #define BUFSIZE (sizeof(struct hostent)+10)
5068 struct hostent hent; char buffer[BUFSIZE];
5069 int bufsize=BUFSIZE;int h_errno;
5070 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
5071 buffer, bufsize, &h_errno);
5074 if { (eval echo configure:5075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5076 ol_cv_func_gethostbyname_r_nargs=5
5078 echo "configure: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5084 #include <sys/types.h>
5085 #include <sys/socket.h>
5086 #include <netinet/in.h>
5088 #define BUFSIZE (sizeof(struct hostent)+10)
5090 struct hostent hent;struct hostent *rhent;
5091 char buffer[BUFSIZE];
5092 int bufsize=BUFSIZE;int h_errno;
5093 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
5097 if { (eval echo configure:5098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5099 ol_cv_func_gethostbyname_r_nargs=6
5101 echo "configure: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
5104 ol_cv_func_gethostbyname_r_nargs=0
5111 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
5112 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
5113 cat >> confdefs.h <<EOF
5114 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
5120 ol_cv_func_gethostbyname_r_nargs=0
5123 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
5124 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
5125 echo "configure:5126: checking number of arguments of gethostbyaddr_r" >&5
5126 if eval "test \"`echo '$''{'ol_cv_func_gethostbyaddr_r_nargs'+set}'`\" = set"; then
5127 echo $ac_n "(cached) $ac_c" 1>&6
5129 cat > conftest.$ac_ext <<EOF
5130 #line 5131 "configure"
5131 #include "confdefs.h"
5132 #include <sys/types.h>
5133 #include <sys/socket.h>
5134 #include <netinet/in.h>
5136 #define BUFSIZE (sizeof(struct hostent)+10)
5138 struct hostent hent; char buffer[BUFSIZE];
5140 size_t alen=sizeof(struct in_addr);
5141 int bufsize=BUFSIZE;int h_errno;
5142 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5143 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
5146 if { (eval echo configure:5147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5148 ol_cv_func_gethostbyaddr_r_nargs=7
5150 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5153 cat > conftest.$ac_ext <<EOF
5154 #line 5155 "configure"
5155 #include "confdefs.h"
5156 #include <sys/types.h>
5157 #include <sys/socket.h>
5158 #include <netinet/in.h>
5160 #define BUFSIZE (sizeof(struct hostent)+10)
5162 struct hostent hent;
5163 struct hostent *rhent; char buffer[BUFSIZE];
5165 size_t alen=sizeof(struct in_addr);
5166 int bufsize=BUFSIZE;int h_errno;
5167 (void)gethostbyaddr_r( (void *)&(add.s_addr),
5168 alen, AF_INET, &hent, buffer, bufsize,
5172 if { (eval echo configure:5173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5174 ol_cv_func_gethostbyaddr_r_nargs=8
5176 echo "configure: failed program was:" >&5
5177 cat conftest.$ac_ext >&5
5179 ol_cv_func_gethostbyaddr_r_nargs=0
5186 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
5187 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
5188 cat >> confdefs.h <<EOF
5189 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
5195 ol_cv_func_gethostbyaddr_r_nargs=0
5198 if test "$ac_cv_func_ctime_r" = yes \
5199 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
5200 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
5201 -a "$ac_cv_func_gethostbyname_r" = yes \
5202 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
5203 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
5204 -a "$ac_cv_func_gethostbyaddr_r" = yes \
5205 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
5206 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
5209 cat >> confdefs.h <<\EOF
5210 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
5216 if test $ol_with_threads = auto -o $ol_with_threads = yes \
5217 -o $ol_with_threads = posix ; then
5219 for ac_hdr in pthread.h sched.h
5221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5223 echo "configure:5224: checking for $ac_hdr" >&5
5224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5227 cat > conftest.$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5233 { (eval echo configure:5234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5235 if test -z "$ac_err"; then
5237 eval "ac_cv_header_$ac_safe=yes"
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5243 eval "ac_cv_header_$ac_safe=no"
5247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5248 echo "$ac_t""yes" 1>&6
5249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5250 cat >> confdefs.h <<EOF
5251 #define $ac_tr_hdr 1
5255 echo "$ac_t""no" 1>&6
5260 if test $ac_cv_header_pthread_h = yes ; then
5261 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
5262 echo "configure:5263: checking POSIX thread version" >&5
5263 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
5264 echo $ac_n "(cached) $ac_c" 1>&6
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5271 # include <pthread.h>
5272 /* this check could be improved */
5273 # ifdef PTHREAD_ONCE_INIT
5274 pthread_version_final
5278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5279 egrep "pthread_version_final" >/dev/null 2>&1; then
5281 ol_pthread_final=yes
5289 cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5293 # include <pthread.h>
5294 /* this check could be improved */
5295 # ifdef pthread_once_init
5296 pthread_version_draft4
5300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5301 egrep "pthread_version_draft4" >/dev/null 2>&1; then
5303 ol_pthread_draft4=yes
5306 ol_pthread_draft4=no
5311 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
5312 ol_cv_pthread_version=final
5313 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
5314 ol_cv_pthread_version=draft4
5316 ol_cv_pthread_version=unknown
5321 echo "$ac_t""$ol_cv_pthread_version" 1>&6
5324 if test $ol_cv_pthread_version = final ; then
5325 cat >> confdefs.h <<\EOF
5326 #define HAVE_PTHREADS_FINAL 1
5329 elif test $ol_cv_pthread_version = draft4 ; then
5330 cat >> confdefs.h <<\EOF
5331 #define HAVE_PTHREADS_D4 1
5335 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
5338 # consider threads found
5339 ol_with_threads=found
5342 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
5343 echo "configure:5344: checking for LinuxThreads pthread.h" >&5
5344 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
5345 echo $ac_n "(cached) $ac_c" 1>&6
5347 cat > conftest.$ac_ext <<EOF
5348 #line 5349 "configure"
5349 #include "confdefs.h"
5350 #include <pthread.h>
5352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5353 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
5355 ol_cv_header_linux_threads=yes
5358 ol_cv_header_linux_threads=no
5365 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
5366 if test $ol_cv_header_linux_threads = yes; then
5367 cat >> confdefs.h <<\EOF
5368 #define HAVE_LINUX_THREADS 1
5375 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
5376 echo "configure:5377: checking for pthread_create in default libraries" >&5
5377 if eval "test \"`echo '$''{'ol_cv_pthread_create'+set}'`\" = set"; then
5378 echo $ac_n "(cached) $ac_c" 1>&6
5381 if test "$cross_compiling" = yes; then
5382 ol_cv_pthread_create=yes
5384 cat > conftest.$ac_ext <<EOF
5385 #line 5386 "configure"
5386 #include "confdefs.h"
5388 #include <pthread.h>
5390 #define NULL (void*)0
5393 static void *task(p)
5396 return (void *) (p == NULL);
5399 int main(argc, argv)
5406 /* make sure pthread_create() isn't just a stub */
5407 #if HAVE_PTHREADS_D4
5408 status = pthread_create(&t, pthread_attr_default, task, NULL);
5410 status = pthread_create(&t, NULL, task, NULL);
5413 if( status ) return status;
5415 /* make sure pthread_detach() isn't just a stub */
5416 #if HAVE_PTHREADS_D4
5417 status = pthread_detach( &t );
5419 status = pthread_detach( t );
5422 if( status ) return status;
5428 if { (eval echo configure:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5430 ol_cv_pthread_create=yes
5432 echo "configure: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5435 ol_cv_pthread_create=no
5442 echo "$ac_t""$ol_cv_pthread_create" 1>&6
5444 if test $ol_cv_pthread_create != no ; then
5445 ol_link_threads=posix
5449 # Pthread try link: -mt (ol_cv_pthread_mt)
5450 if test "$ol_link_threads" = no ; then
5452 echo $ac_n "checking for pthread link with -mt""... $ac_c" 1>&6
5453 echo "configure:5454: checking for pthread link with -mt" >&5
5454 if eval "test \"`echo '$''{'ol_cv_pthread_mt'+set}'`\" = set"; then
5455 echo $ac_n "(cached) $ac_c" 1>&6
5462 cat > conftest.$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5466 #include <pthread.h>
5468 #define NULL (void*)0
5475 #if HAVE_PTHREADS_D4
5476 pthread_create(&t, pthread_attr_default, NULL, NULL);
5477 pthread_detach( &t );
5479 pthread_create(&t, NULL, NULL, NULL);
5480 pthread_detach( t );
5482 #ifdef HAVE_LINUX_THREADS
5483 pthread_kill_other_threads_np();
5488 if { (eval echo configure:5489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5490 ol_cv_pthread_mt=yes
5492 echo "configure: failed program was:" >&5
5493 cat conftest.$ac_ext >&5
5504 echo "$ac_t""$ol_cv_pthread_mt" 1>&6
5506 if test $ol_cv_pthread_mt = yes ; then
5507 ol_link_pthreads="-mt"
5508 ol_link_threads=posix
5512 # Pthread try link: -kthread (ol_cv_pthread_kthread)
5513 if test "$ol_link_threads" = no ; then
5515 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
5516 echo "configure:5517: checking for pthread link with -kthread" >&5
5517 if eval "test \"`echo '$''{'ol_cv_pthread_kthread'+set}'`\" = set"; then
5518 echo $ac_n "(cached) $ac_c" 1>&6
5523 LIBS="-kthread $LIBS"
5525 cat > conftest.$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5529 #include <pthread.h>
5531 #define NULL (void*)0
5538 #if HAVE_PTHREADS_D4
5539 pthread_create(&t, pthread_attr_default, NULL, NULL);
5540 pthread_detach( &t );
5542 pthread_create(&t, NULL, NULL, NULL);
5543 pthread_detach( t );
5545 #ifdef HAVE_LINUX_THREADS
5546 pthread_kill_other_threads_np();
5551 if { (eval echo configure:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5553 ol_cv_pthread_kthread=yes
5555 echo "configure: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5558 ol_cv_pthread_kthread=no
5567 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
5569 if test $ol_cv_pthread_kthread = yes ; then
5570 ol_link_pthreads="-kthread"
5571 ol_link_threads=posix
5575 # Pthread try link: -pthread (ol_cv_pthread_pthread)
5576 if test "$ol_link_threads" = no ; then
5578 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
5579 echo "configure:5580: checking for pthread link with -pthread" >&5
5580 if eval "test \"`echo '$''{'ol_cv_pthread_pthread'+set}'`\" = set"; then
5581 echo $ac_n "(cached) $ac_c" 1>&6
5586 LIBS="-pthread $LIBS"
5588 cat > conftest.$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5592 #include <pthread.h>
5594 #define NULL (void*)0
5601 #if HAVE_PTHREADS_D4
5602 pthread_create(&t, pthread_attr_default, NULL, NULL);
5603 pthread_detach( &t );
5605 pthread_create(&t, NULL, NULL, NULL);
5606 pthread_detach( t );
5608 #ifdef HAVE_LINUX_THREADS
5609 pthread_kill_other_threads_np();
5614 if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5616 ol_cv_pthread_pthread=yes
5618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5621 ol_cv_pthread_pthread=no
5630 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
5632 if test $ol_cv_pthread_pthread = yes ; then
5633 ol_link_pthreads="-pthread"
5634 ol_link_threads=posix
5638 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
5639 if test "$ol_link_threads" = no ; then
5641 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
5642 echo "configure:5643: checking for pthread link with -pthreads" >&5
5643 if eval "test \"`echo '$''{'ol_cv_pthread_pthreads'+set}'`\" = set"; then
5644 echo $ac_n "(cached) $ac_c" 1>&6
5649 LIBS="-pthreads $LIBS"
5651 cat > conftest.$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5655 #include <pthread.h>
5657 #define NULL (void*)0
5664 #if HAVE_PTHREADS_D4
5665 pthread_create(&t, pthread_attr_default, NULL, NULL);
5666 pthread_detach( &t );
5668 pthread_create(&t, NULL, NULL, NULL);
5669 pthread_detach( t );
5671 #ifdef HAVE_LINUX_THREADS
5672 pthread_kill_other_threads_np();
5677 if { (eval echo configure:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5679 ol_cv_pthread_pthreads=yes
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5684 ol_cv_pthread_pthreads=no
5693 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
5695 if test $ol_cv_pthread_pthreads = yes ; then
5696 ol_link_pthreads="-pthreads"
5697 ol_link_threads=posix
5701 # Pthread try link: -thread (ol_cv_pthread_thread)
5702 if test "$ol_link_threads" = no ; then
5704 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
5705 echo "configure:5706: checking for pthread link with -thread" >&5
5706 if eval "test \"`echo '$''{'ol_cv_pthread_thread'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5712 LIBS="-thread $LIBS"
5714 cat > conftest.$ac_ext <<EOF
5715 #line 5716 "configure"
5716 #include "confdefs.h"
5718 #include <pthread.h>
5720 #define NULL (void*)0
5727 #if HAVE_PTHREADS_D4
5728 pthread_create(&t, pthread_attr_default, NULL, NULL);
5729 pthread_detach( &t );
5731 pthread_create(&t, NULL, NULL, NULL);
5732 pthread_detach( t );
5734 #ifdef HAVE_LINUX_THREADS
5735 pthread_kill_other_threads_np();
5740 if { (eval echo configure:5741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5742 ol_cv_pthread_thread=yes
5744 echo "configure: failed program was:" >&5
5745 cat conftest.$ac_ext >&5
5747 ol_cv_pthread_thread=no
5756 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
5758 if test $ol_cv_pthread_thread = yes ; then
5759 ol_link_pthreads="-thread"
5760 ol_link_threads=posix
5765 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
5766 if test "$ol_link_threads" = no ; then
5767 # try -lpthread -lmach -lexc -lc_r
5768 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
5769 echo "configure:5770: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
5770 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc_lc_r'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5776 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
5778 cat > conftest.$ac_ext <<EOF
5779 #line 5780 "configure"
5780 #include "confdefs.h"
5782 #include <pthread.h>
5784 #define NULL (void*)0
5791 #if HAVE_PTHREADS_D4
5792 pthread_create(&t, pthread_attr_default, NULL, NULL);
5793 pthread_detach( &t );
5795 pthread_create(&t, NULL, NULL, NULL);
5796 pthread_detach( t );
5798 #ifdef HAVE_LINUX_THREADS
5799 pthread_kill_other_threads_np();
5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5806 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
5808 echo "configure: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5811 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
5820 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
5822 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
5823 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
5824 ol_link_threads=posix
5828 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
5829 if test "$ol_link_threads" = no ; then
5830 # try -lpthread -lmach -lexc
5831 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
5832 echo "configure:5833: checking for pthread link with -lpthread -lmach -lexc" >&5
5833 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread_lmach_lexc'+set}'`\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5839 LIBS="-lpthread -lmach -lexc $LIBS"
5841 cat > conftest.$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5845 #include <pthread.h>
5847 #define NULL (void*)0
5854 #if HAVE_PTHREADS_D4
5855 pthread_create(&t, pthread_attr_default, NULL, NULL);
5856 pthread_detach( &t );
5858 pthread_create(&t, NULL, NULL, NULL);
5859 pthread_detach( t );
5861 #ifdef HAVE_LINUX_THREADS
5862 pthread_kill_other_threads_np();
5867 if { (eval echo configure:5868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5869 ol_cv_pthread_lpthread_lmach_lexc=yes
5871 echo "configure: failed program was:" >&5
5872 cat conftest.$ac_ext >&5
5874 ol_cv_pthread_lpthread_lmach_lexc=no
5883 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
5885 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
5886 ol_link_pthreads="-lpthread -lmach -lexc"
5887 ol_link_threads=posix
5892 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
5893 if test "$ol_link_threads" = no ; then
5894 # try -lpthread -Wl,-woff,85
5895 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
5896 echo "configure:5897: checking for pthread link with -lpthread -Wl,-woff,85" >&5
5897 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthread_woff'+set}'`\" = set"; then
5898 echo $ac_n "(cached) $ac_c" 1>&6
5903 LIBS="-lpthread -Wl,-woff,85 $LIBS"
5905 cat > conftest.$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5909 #include <pthread.h>
5911 #define NULL (void*)0
5918 #if HAVE_PTHREADS_D4
5919 pthread_create(&t, pthread_attr_default, NULL, NULL);
5920 pthread_detach( &t );
5922 pthread_create(&t, NULL, NULL, NULL);
5923 pthread_detach( t );
5925 #ifdef HAVE_LINUX_THREADS
5926 pthread_kill_other_threads_np();
5931 if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5933 ol_cv_pthread_lib_lpthread_woff=yes
5935 echo "configure: failed program was:" >&5
5936 cat conftest.$ac_ext >&5
5938 ol_cv_pthread_lib_lpthread_woff=no
5947 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
5949 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
5950 ol_link_pthreads="-lpthread -Wl,-woff,85"
5951 ol_link_threads=posix
5956 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
5957 if test "$ol_link_threads" = no ; then
5959 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
5960 echo "configure:5961: checking for pthread link with -lpthread" >&5
5961 if eval "test \"`echo '$''{'ol_cv_pthread_lpthread'+set}'`\" = set"; then
5962 echo $ac_n "(cached) $ac_c" 1>&6
5967 LIBS="-lpthread $LIBS"
5969 cat > conftest.$ac_ext <<EOF
5970 #line 5971 "configure"
5971 #include "confdefs.h"
5973 #include <pthread.h>
5975 #define NULL (void*)0
5982 #if HAVE_PTHREADS_D4
5983 pthread_create(&t, pthread_attr_default, NULL, NULL);
5984 pthread_detach( &t );
5986 pthread_create(&t, NULL, NULL, NULL);
5987 pthread_detach( t );
5989 #ifdef HAVE_LINUX_THREADS
5990 pthread_kill_other_threads_np();
5995 if { (eval echo configure:5996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5997 ol_cv_pthread_lpthread=yes
5999 echo "configure: failed program was:" >&5
6000 cat conftest.$ac_ext >&5
6002 ol_cv_pthread_lpthread=no
6011 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
6013 if test $ol_cv_pthread_lpthread = yes ; then
6014 ol_link_pthreads="-lpthread"
6015 ol_link_threads=posix
6019 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
6020 if test "$ol_link_threads" = no ; then
6022 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
6023 echo "configure:6024: checking for pthread link with -lc_r" >&5
6024 if eval "test \"`echo '$''{'ol_cv_pthread_lc_r'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6032 cat > conftest.$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6036 #include <pthread.h>
6038 #define NULL (void*)0
6045 #if HAVE_PTHREADS_D4
6046 pthread_create(&t, pthread_attr_default, NULL, NULL);
6047 pthread_detach( &t );
6049 pthread_create(&t, NULL, NULL, NULL);
6050 pthread_detach( t );
6052 #ifdef HAVE_LINUX_THREADS
6053 pthread_kill_other_threads_np();
6058 if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6060 ol_cv_pthread_lc_r=yes
6062 echo "configure: failed program was:" >&5
6063 cat conftest.$ac_ext >&5
6065 ol_cv_pthread_lc_r=no
6074 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
6076 if test $ol_cv_pthread_lc_r = yes ; then
6077 ol_link_pthreads="-lc_r"
6078 ol_link_threads=posix
6083 # Pthread try link: -threads (ol_cv_pthread_threads)
6084 if test "$ol_link_threads" = no ; then
6086 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
6087 echo "configure:6088: checking for pthread link with -threads" >&5
6088 if eval "test \"`echo '$''{'ol_cv_pthread_threads'+set}'`\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6094 LIBS="-threads $LIBS"
6096 cat > conftest.$ac_ext <<EOF
6097 #line 6098 "configure"
6098 #include "confdefs.h"
6100 #include <pthread.h>
6102 #define NULL (void*)0
6109 #if HAVE_PTHREADS_D4
6110 pthread_create(&t, pthread_attr_default, NULL, NULL);
6111 pthread_detach( &t );
6113 pthread_create(&t, NULL, NULL, NULL);
6114 pthread_detach( t );
6116 #ifdef HAVE_LINUX_THREADS
6117 pthread_kill_other_threads_np();
6122 if { (eval echo configure:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6124 ol_cv_pthread_threads=yes
6126 echo "configure: failed program was:" >&5
6127 cat conftest.$ac_ext >&5
6129 ol_cv_pthread_threads=no
6138 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
6140 if test $ol_cv_pthread_threads = yes ; then
6141 ol_link_pthreads="-threads"
6142 ol_link_threads=posix
6147 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
6148 if test "$ol_link_threads" = no ; then
6149 # try -lpthreads -lmach -lexc -lc_r
6150 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
6151 echo "configure:6152: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
6152 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc_lc_r'+set}'`\" = set"; then
6153 echo $ac_n "(cached) $ac_c" 1>&6
6158 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
6160 cat > conftest.$ac_ext <<EOF
6161 #line 6162 "configure"
6162 #include "confdefs.h"
6164 #include <pthread.h>
6166 #define NULL (void*)0
6173 #if HAVE_PTHREADS_D4
6174 pthread_create(&t, pthread_attr_default, NULL, NULL);
6175 pthread_detach( &t );
6177 pthread_create(&t, NULL, NULL, NULL);
6178 pthread_detach( t );
6180 #ifdef HAVE_LINUX_THREADS
6181 pthread_kill_other_threads_np();
6186 if { (eval echo configure:6187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6188 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
6190 echo "configure: failed program was:" >&5
6191 cat conftest.$ac_ext >&5
6193 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
6202 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
6204 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
6205 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
6206 ol_link_threads=posix
6210 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
6211 if test "$ol_link_threads" = no ; then
6212 # try -lpthreads -lmach -lexc
6213 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
6214 echo "configure:6215: checking for pthread link with -lpthreads -lmach -lexc" >&5
6215 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lmach_lexc'+set}'`\" = set"; then
6216 echo $ac_n "(cached) $ac_c" 1>&6
6221 LIBS="-lpthreads -lmach -lexc $LIBS"
6223 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6227 #include <pthread.h>
6229 #define NULL (void*)0
6236 #if HAVE_PTHREADS_D4
6237 pthread_create(&t, pthread_attr_default, NULL, NULL);
6238 pthread_detach( &t );
6240 pthread_create(&t, NULL, NULL, NULL);
6241 pthread_detach( t );
6243 #ifdef HAVE_LINUX_THREADS
6244 pthread_kill_other_threads_np();
6249 if { (eval echo configure:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6251 ol_cv_pthread_lpthreads_lmach_lexc=yes
6253 echo "configure: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6256 ol_cv_pthread_lpthreads_lmach_lexc=no
6265 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
6267 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
6268 ol_link_pthreads="-lpthreads -lmach -lexc"
6269 ol_link_threads=posix
6273 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
6274 if test "$ol_link_threads" = no ; then
6275 # try -lpthreads -lexc
6276 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
6277 echo "configure:6278: checking for pthread link with -lpthreads -lexc" >&5
6278 if eval "test \"`echo '$''{'ol_cv_pthread_lpthreads_lexc'+set}'`\" = set"; then
6279 echo $ac_n "(cached) $ac_c" 1>&6
6284 LIBS="-lpthreads -lexc $LIBS"
6286 cat > conftest.$ac_ext <<EOF
6287 #line 6288 "configure"
6288 #include "confdefs.h"
6290 #include <pthread.h>
6292 #define NULL (void*)0
6299 #if HAVE_PTHREADS_D4
6300 pthread_create(&t, pthread_attr_default, NULL, NULL);
6301 pthread_detach( &t );
6303 pthread_create(&t, NULL, NULL, NULL);
6304 pthread_detach( t );
6306 #ifdef HAVE_LINUX_THREADS
6307 pthread_kill_other_threads_np();
6312 if { (eval echo configure:6313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6314 ol_cv_pthread_lpthreads_lexc=yes
6316 echo "configure: failed program was:" >&5
6317 cat conftest.$ac_ext >&5
6319 ol_cv_pthread_lpthreads_lexc=no
6328 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
6330 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
6331 ol_link_pthreads="-lpthreads -lexc"
6332 ol_link_threads=posix
6337 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
6338 if test "$ol_link_threads" = no ; then
6340 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
6341 echo "configure:6342: checking for pthread link with -lpthreads" >&5
6342 if eval "test \"`echo '$''{'ol_cv_pthread_lib_lpthreads'+set}'`\" = set"; then
6343 echo $ac_n "(cached) $ac_c" 1>&6
6348 LIBS="-lpthreads $LIBS"
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6352 "configure"
6352 #include "confdefs.h"
6354 #include <pthread.h>
6356 #define NULL (void*)0
6363 #if HAVE_PTHREADS_D4
6364 pthread_create(&t, pthread_attr_default, NULL, NULL);
6365 pthread_detach( &t );
6367 pthread_create(&t, NULL, NULL, NULL);
6368 pthread_detach( t );
6370 #ifdef HAVE_LINUX_THREADS
6371 pthread_kill_other_threads_np();
6376 if { (eval echo configure:6377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6378 ol_cv_pthread_lib_lpthreads=yes
6380 echo "configure: failed program was:" >&5
6381 cat conftest.$ac_ext >&5
6383 ol_cv_pthread_lib_lpthreads=no
6392 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
6394 if test $ol_cv_pthread_lib_lpthreads = yes ; then
6395 ol_link_pthreads="-lpthreads"
6396 ol_link_threads=posix
6401 if test $ol_link_threads != no ; then
6402 cat >> confdefs.h <<\EOF
6403 #define HAVE_PTHREADS 1
6407 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
6409 save_CPPFLAGS="$CPPFLAGS"
6411 LIBS="$LTHREAD_LIBS $LIBS"
6413 for ac_func in sched_yield pthread_yield
6415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6416 echo "configure:6417: checking for $ac_func" >&5
6417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6420 cat > conftest.$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6423 /* System header to define __stub macros and hopefully few prototypes,
6424 which can conflict with char $ac_func(); below. */
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6433 /* The GNU C library defines this for functions which it implements
6434 to always fail with ENOSYS. Some functions are actually named
6435 something starting with __ and the normal name is an alias. */
6436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6444 if { (eval echo configure:6445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6446 eval "ac_cv_func_$ac_func=yes"
6448 echo "configure: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6451 eval "ac_cv_func_$ac_func=no"
6456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6457 echo "$ac_t""yes" 1>&6
6458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6459 cat >> confdefs.h <<EOF
6460 #define $ac_tr_func 1
6464 echo "$ac_t""no" 1>&6
6469 if test $ac_cv_func_sched_yield = no -a \
6470 $ac_cv_func_pthread_yield = no ; then
6471 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
6472 echo "configure:6473: checking for sched_yield in -lrt" >&5
6473 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6475 echo $ac_n "(cached) $ac_c" 1>&6
6477 ac_save_LIBS="$LIBS"
6479 cat > conftest.$ac_ext <<EOF
6480 #line 6481 "configure"
6481 #include "confdefs.h"
6482 /* Override any gcc2 internal prototype to avoid an error. */
6483 /* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6491 if { (eval echo configure:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6493 eval "ac_cv_lib_$ac_lib_var=yes"
6495 echo "configure: failed program was:" >&5
6496 cat conftest.$ac_ext >&5
6498 eval "ac_cv_lib_$ac_lib_var=no"
6501 LIBS="$ac_save_LIBS"
6504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6505 echo "$ac_t""yes" 1>&6
6506 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
6507 cat >> confdefs.h <<\EOF
6508 #define HAVE_SCHED_YIELD 1
6511 ac_cv_func_sched_yield=yes
6513 echo "$ac_t""no" 1>&6
6514 ac_cv_func_sched_yield=no
6518 if test $ac_cv_func_sched_yield = no -a \
6519 $ac_cv_func_pthread_yield = no ; then
6520 for ac_func in thr_yield
6522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6523 echo "configure:6524: checking for $ac_func" >&5
6524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6527 cat > conftest.$ac_ext <<EOF
6528 #line 6529 "configure"
6529 #include "confdefs.h"
6530 /* System header to define __stub macros and hopefully few prototypes,
6531 which can conflict with char $ac_func(); below. */
6533 /* Override any gcc2 internal prototype to avoid an error. */
6534 /* We use char because int might match the return type of a gcc2
6535 builtin and then its argument prototype would still apply. */
6540 /* The GNU C library defines this for functions which it implements
6541 to always fail with ENOSYS. Some functions are actually named
6542 something starting with __ and the normal name is an alias. */
6543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6551 if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6553 eval "ac_cv_func_$ac_func=yes"
6555 echo "configure: failed program was:" >&5
6556 cat conftest.$ac_ext >&5
6558 eval "ac_cv_func_$ac_func=no"
6563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6564 echo "$ac_t""yes" 1>&6
6565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6566 cat >> confdefs.h <<EOF
6567 #define $ac_tr_func 1
6571 echo "$ac_t""no" 1>&6
6576 if test $ac_cv_func_sched_yield = no -a \
6577 $ac_cv_func_pthread_yield = no -a \
6578 "$ac_cv_func_thr_yield" = no ; then
6579 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
6582 for ac_func in pthread_kill
6584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6585 echo "configure:6586: checking for $ac_func" >&5
6586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char $ac_func(); below. */
6595 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6602 /* The GNU C library defines this for functions which it implements
6603 to always fail with ENOSYS. Some functions are actually named
6604 something starting with __ and the normal name is an alias. */
6605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6613 if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6615 eval "ac_cv_func_$ac_func=yes"
6617 echo "configure: failed program was:" >&5
6618 cat conftest.$ac_ext >&5
6620 eval "ac_cv_func_$ac_func=no"
6625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6626 echo "$ac_t""yes" 1>&6
6627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6628 cat >> confdefs.h <<EOF
6629 #define $ac_tr_func 1
6633 echo "$ac_t""no" 1>&6
6638 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
6639 echo "configure:6640: checking for pthread_detach with <pthread.h>" >&5
6640 if eval "test \"`echo '$''{'ol_cv_func_pthread_detach'+set}'`\" = set"; then
6641 echo $ac_n "(cached) $ac_c" 1>&6
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6648 #include <pthread.h>
6650 #define NULL (void*)0
6654 pthread_detach(NULL);
6657 if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6659 ol_cv_func_pthread_detach=yes
6661 echo "configure: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6664 ol_cv_func_pthread_detach=no
6670 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
6672 if test $ol_cv_func_pthread_detach = no ; then
6673 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
6676 cat >> confdefs.h <<\EOF
6677 #define HAVE_PTHREAD_DETACH 1
6682 pthread_setconcurrency \
6683 pthread_getconcurrency \
6684 thr_setconcurrency \
6685 thr_getconcurrency \
6688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6689 echo "configure:6690: checking for $ac_func" >&5
6690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6691 echo $ac_n "(cached) $ac_c" 1>&6
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6696 /* System header to define __stub macros and hopefully few prototypes,
6697 which can conflict with char $ac_func(); below. */
6699 /* Override any gcc2 internal prototype to avoid an error. */
6700 /* We use char because int might match the return type of a gcc2
6701 builtin and then its argument prototype would still apply. */
6706 /* The GNU C library defines this for functions which it implements
6707 to always fail with ENOSYS. Some functions are actually named
6708 something starting with __ and the normal name is an alias. */
6709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6717 if { (eval echo configure:6718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6719 eval "ac_cv_func_$ac_func=yes"
6721 echo "configure: failed program was:" >&5
6722 cat conftest.$ac_ext >&5
6724 eval "ac_cv_func_$ac_func=no"
6729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6730 echo "$ac_t""yes" 1>&6
6731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6732 cat >> confdefs.h <<EOF
6733 #define $ac_tr_func 1
6737 echo "$ac_t""no" 1>&6
6743 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
6744 echo "configure:6745: checking for pthread_kill_other_threads_np" >&5
6745 if eval "test \"`echo '$''{'ac_cv_func_pthread_kill_other_threads_np'+set}'`\" = set"; then
6746 echo $ac_n "(cached) $ac_c" 1>&6
6748 cat > conftest.$ac_ext <<EOF
6749 #line 6750 "configure"
6750 #include "confdefs.h"
6751 /* System header to define __stub macros and hopefully few prototypes,
6752 which can conflict with char pthread_kill_other_threads_np(); below. */
6754 /* Override any gcc2 internal prototype to avoid an error. */
6755 /* We use char because int might match the return type of a gcc2
6756 builtin and then its argument prototype would still apply. */
6757 char pthread_kill_other_threads_np();
6761 /* The GNU C library defines this for functions which it implements
6762 to always fail with ENOSYS. Some functions are actually named
6763 something starting with __ and the normal name is an alias. */
6764 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
6767 pthread_kill_other_threads_np();
6772 if { (eval echo configure:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6774 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
6776 echo "configure: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6779 eval "ac_cv_func_pthread_kill_other_threads_np=no"
6784 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6788 echo "$ac_t""no" 1>&6
6791 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
6792 echo "configure:6793: checking for LinuxThreads implementation" >&5
6793 if eval "test \"`echo '$''{'ol_cv_sys_linux_threads'+set}'`\" = set"; then
6794 echo $ac_n "(cached) $ac_c" 1>&6
6796 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
6799 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
6804 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
6805 echo "configure:6806: checking for LinuxThreads consistency" >&5
6806 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6810 if test $ol_cv_header_linux_threads = yes -a \
6811 $ol_cv_sys_linux_threads = yes; then
6812 ol_cv_linux_threads=yes
6813 elif test $ol_cv_header_linux_threads = no -a \
6814 $ol_cv_sys_linux_threads = no; then
6815 ol_cv_linux_threads=no
6817 ol_cv_linux_threads=error
6822 echo "$ac_t""$ol_cv_linux_threads" 1>&6
6825 if test $ol_cv_linux_threads = error; then
6826 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
6829 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
6830 echo "configure:6831: checking if pthread_create() works" >&5
6831 if eval "test \"`echo '$''{'ol_cv_pthread_create_works'+set}'`\" = set"; then
6832 echo $ac_n "(cached) $ac_c" 1>&6
6835 if test "$cross_compiling" = yes; then
6836 ol_cv_pthread_create_works=yes
6838 cat > conftest.$ac_ext <<EOF
6839 #line 6840 "configure"
6840 #include "confdefs.h"
6842 #include <pthread.h>
6844 #define NULL (void*)0
6847 static void *task(p)
6850 return (void *) (p == NULL);
6853 int main(argc, argv)
6858 #if HAVE_PTHREADS_D4
6859 exit(pthread_create(&t, pthread_attr_default, task, NULL));
6861 exit(pthread_create(&t, NULL, task, NULL));
6866 if { (eval echo configure:6867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6868 ol_cv_pthread_create_works=yes
6870 echo "configure: failed program was:" >&5
6871 cat conftest.$ac_ext >&5
6873 ol_cv_pthread_create_works=no
6880 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
6882 if test $ol_cv_pthread_create_works = no ; then
6883 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
6886 if test $ol_with_yielding_select = auto ; then
6887 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
6888 echo "configure:6889: checking if select yields when using pthreads" >&5
6889 if eval "test \"`echo '$''{'ol_cv_pthread_select_yields'+set}'`\" = set"; then
6890 echo $ac_n "(cached) $ac_c" 1>&6
6893 if test "$cross_compiling" = yes; then
6895 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
6897 cat > conftest.$ac_ext <<EOF
6898 #line 6899 "configure"
6899 #include "confdefs.h"
6901 #include <sys/types.h>
6902 #include <sys/time.h>
6904 #include <pthread.h>
6906 #define NULL (void*) 0
6909 static int fildes[2];
6911 static void *task(p)
6923 FD_SET(fildes[0], &rfds);
6925 /* we're not interested in any fds */
6926 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
6933 exit(0); /* if we exit here, the select blocked the whole process */
6936 int main(argc, argv)
6942 /* create a pipe to select */
6943 if(pipe(&fildes[0])) {
6948 #ifdef HAVE_PTHREAD_SETCONCURRENCY
6949 (void) pthread_setconcurrency(2);
6951 #ifdef HAVE_THR_SETCONCURRENCY
6952 /* Set Solaris LWP concurrency to 2 */
6953 thr_setconcurrency(2);
6957 #if HAVE_PTHREADS_D4
6958 pthread_create(&t, pthread_attr_default, task, NULL);
6960 pthread_create(&t, NULL, task, NULL);
6963 #if HAVE_SCHED_YIELD
6964 sched_yield(); /* make sure task runs first */
6966 #ifdef HAVE_PTHREAD_YIELD
6967 pthread_yield(); /* make sure task runs first */
6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6976 ol_cv_pthread_select_yields=no
6978 echo "configure: failed program was:" >&5
6979 cat conftest.$ac_ext >&5
6981 ol_cv_pthread_select_yields=yes
6988 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
6990 if test $ol_cv_pthread_select_yields = yes ; then
6991 ol_with_yielding_select=yes
6995 CPPFLAGS="$save_CPPFLAGS"
6998 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
7002 if test $ol_with_threads = posix ; then
7003 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
7007 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7008 -o $ol_with_threads = mach ; then
7010 for ac_hdr in mach/cthreads.h
7012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7014 echo "configure:7015: checking for $ac_hdr" >&5
7015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7016 echo $ac_n "(cached) $ac_c" 1>&6
7018 cat > conftest.$ac_ext <<EOF
7019 #line 7020 "configure"
7020 #include "confdefs.h"
7023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7024 { (eval echo configure:7025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7026 if test -z "$ac_err"; then
7028 eval "ac_cv_header_$ac_safe=yes"
7031 echo "configure: failed program was:" >&5
7032 cat conftest.$ac_ext >&5
7034 eval "ac_cv_header_$ac_safe=no"
7038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7039 echo "$ac_t""yes" 1>&6
7040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7041 cat >> confdefs.h <<EOF
7042 #define $ac_tr_hdr 1
7046 echo "$ac_t""no" 1>&6
7050 if test $ac_cv_header_mach_cthreads_h = yes ; then
7051 ol_with_threads=found
7053 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
7054 echo "configure:7055: checking for cthread_fork" >&5
7055 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
7056 echo $ac_n "(cached) $ac_c" 1>&6
7058 cat > conftest.$ac_ext <<EOF
7059 #line 7060 "configure"
7060 #include "confdefs.h"
7061 /* System header to define __stub macros and hopefully few prototypes,
7062 which can conflict with char cthread_fork(); below. */
7064 /* Override any gcc2 internal prototype to avoid an error. */
7065 /* We use char because int might match the return type of a gcc2
7066 builtin and then its argument prototype would still apply. */
7067 char cthread_fork();
7071 /* The GNU C library defines this for functions which it implements
7072 to always fail with ENOSYS. Some functions are actually named
7073 something starting with __ and the normal name is an alias. */
7074 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
7082 if { (eval echo configure:7083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7084 eval "ac_cv_func_cthread_fork=yes"
7086 echo "configure: failed program was:" >&5
7087 cat conftest.$ac_ext >&5
7089 eval "ac_cv_func_cthread_fork=no"
7094 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
7095 echo "$ac_t""yes" 1>&6
7098 echo "$ac_t""no" 1>&6
7102 if test $ol_link_threads = no ; then
7103 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
7104 echo "configure:7105: checking for cthread_fork with -all_load" >&5
7105 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
7106 echo $ac_n "(cached) $ac_c" 1>&6
7110 LIBS="-all_load $LIBS"
7111 cat > conftest.$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7114 #include <mach/cthreads.h>
7117 cthread_fork((void *)0, (void *)0);
7121 if { (eval echo configure:7122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7123 ol_cv_cthread_all_load=yes
7125 echo "configure: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7128 ol_cv_cthread_all_load=no
7135 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
7137 if test $ol_cv_cthread_all_load = yes ; then
7138 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
7139 ol_link_threads=mach
7143 if test $ol_link_threads != no ; then
7144 : check for cthread specific functionality here
7145 cat >> confdefs.h <<\EOF
7146 #define HAVE_MACH_CTHREADS 1
7150 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
7154 if test $ol_with_threads = mach ; then
7155 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
7159 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7160 -o $ol_with_threads = lwp ; then
7162 for ac_hdr in thread.h synch.h
7164 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7165 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7166 echo "configure:7167: checking for $ac_hdr" >&5
7167 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7168 echo $ac_n "(cached) $ac_c" 1>&6
7170 cat > conftest.$ac_ext <<EOF
7171 #line 7172 "configure"
7172 #include "confdefs.h"
7175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7176 { (eval echo configure:7177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7178 if test -z "$ac_err"; then
7180 eval "ac_cv_header_$ac_safe=yes"
7183 echo "configure: failed program was:" >&5
7184 cat conftest.$ac_ext >&5
7186 eval "ac_cv_header_$ac_safe=no"
7190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7191 echo "$ac_t""yes" 1>&6
7192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7193 cat >> confdefs.h <<EOF
7194 #define $ac_tr_hdr 1
7198 echo "$ac_t""no" 1>&6
7202 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
7203 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
7204 echo "configure:7205: checking for thr_create in -lthread" >&5
7205 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
7206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7207 echo $ac_n "(cached) $ac_c" 1>&6
7209 ac_save_LIBS="$LIBS"
7210 LIBS="-lthread $LIBS"
7211 cat > conftest.$ac_ext <<EOF
7212 #line 7213 "configure"
7213 #include "confdefs.h"
7214 /* Override any gcc2 internal prototype to avoid an error. */
7215 /* We use char because int might match the return type of a gcc2
7216 builtin and then its argument prototype would still apply. */
7223 if { (eval echo configure:7224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7225 eval "ac_cv_lib_$ac_lib_var=yes"
7227 echo "configure: failed program was:" >&5
7228 cat conftest.$ac_ext >&5
7230 eval "ac_cv_lib_$ac_lib_var=no"
7233 LIBS="$ac_save_LIBS"
7236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7237 echo "$ac_t""yes" 1>&6
7240 echo "$ac_t""no" 1>&6
7245 if test $have_thr = yes ; then
7246 cat >> confdefs.h <<\EOF
7250 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
7253 if test $ol_with_yielding_select = auto ; then
7254 ol_with_yielding_select=yes
7258 thr_setconcurrency \
7259 thr_getconcurrency \
7262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7263 echo "configure:7264: checking for $ac_func" >&5
7264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7265 echo $ac_n "(cached) $ac_c" 1>&6
7267 cat > conftest.$ac_ext <<EOF
7268 #line 7269 "configure"
7269 #include "confdefs.h"
7270 /* System header to define __stub macros and hopefully few prototypes,
7271 which can conflict with char $ac_func(); below. */
7273 /* Override any gcc2 internal prototype to avoid an error. */
7274 /* We use char because int might match the return type of a gcc2
7275 builtin and then its argument prototype would still apply. */
7280 /* The GNU C library defines this for functions which it implements
7281 to always fail with ENOSYS. Some functions are actually named
7282 something starting with __ and the normal name is an alias. */
7283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7291 if { (eval echo configure:7292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7293 eval "ac_cv_func_$ac_func=yes"
7295 echo "configure: failed program was:" >&5
7296 cat conftest.$ac_ext >&5
7298 eval "ac_cv_func_$ac_func=no"
7303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7304 echo "$ac_t""yes" 1>&6
7305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7306 cat >> confdefs.h <<EOF
7307 #define $ac_tr_func 1
7311 echo "$ac_t""no" 1>&6
7318 for ac_hdr in lwp/lwp.h
7320 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7322 echo "configure:7323: checking for $ac_hdr" >&5
7323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7324 echo $ac_n "(cached) $ac_c" 1>&6
7326 cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7332 { (eval echo configure:7333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7334 if test -z "$ac_err"; then
7336 eval "ac_cv_header_$ac_safe=yes"
7339 echo "configure: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7342 eval "ac_cv_header_$ac_safe=no"
7346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7347 echo "$ac_t""yes" 1>&6
7348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7349 cat >> confdefs.h <<EOF
7350 #define $ac_tr_hdr 1
7354 echo "$ac_t""no" 1>&6
7358 if test $ac_cv_header_lwp_lwp_h = yes ; then
7359 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
7360 echo "configure:7361: checking for lwp_create in -llwp" >&5
7361 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
7362 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7363 echo $ac_n "(cached) $ac_c" 1>&6
7365 ac_save_LIBS="$LIBS"
7367 cat > conftest.$ac_ext <<EOF
7368 #line 7369 "configure"
7369 #include "confdefs.h"
7370 /* Override any gcc2 internal prototype to avoid an error. */
7371 /* We use char because int might match the return type of a gcc2
7372 builtin and then its argument prototype would still apply. */
7379 if { (eval echo configure:7380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7381 eval "ac_cv_lib_$ac_lib_var=yes"
7383 echo "configure: failed program was:" >&5
7384 cat conftest.$ac_ext >&5
7386 eval "ac_cv_lib_$ac_lib_var=no"
7389 LIBS="$ac_save_LIBS"
7392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7393 echo "$ac_t""yes" 1>&6
7396 echo "$ac_t""no" 1>&6
7401 if test $have_lwp = yes ; then
7402 cat >> confdefs.h <<\EOF
7406 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
7409 if test $ol_with_yielding_select = auto ; then
7410 ol_with_yielding_select=no
7416 if test $ol_with_yielding_select = yes ; then
7417 cat >> confdefs.h <<\EOF
7418 #define HAVE_YIELDING_SELECT 1
7423 if test $ol_with_threads = manual ; then
7426 echo "configure: warning: thread defines and link options must be set manually" 1>&2
7428 for ac_hdr in pthread.h sched.h
7430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7432 echo "configure:7433: checking for $ac_hdr" >&5
7433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7434 echo $ac_n "(cached) $ac_c" 1>&6
7436 cat > conftest.$ac_ext <<EOF
7437 #line 7438 "configure"
7438 #include "confdefs.h"
7441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7442 { (eval echo configure:7443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7444 if test -z "$ac_err"; then
7446 eval "ac_cv_header_$ac_safe=yes"
7449 echo "configure: failed program was:" >&5
7450 cat conftest.$ac_ext >&5
7452 eval "ac_cv_header_$ac_safe=no"
7456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7457 echo "$ac_t""yes" 1>&6
7458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7459 cat >> confdefs.h <<EOF
7460 #define $ac_tr_hdr 1
7464 echo "$ac_t""no" 1>&6
7468 for ac_func in sched_yield pthread_yield
7470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7471 echo "configure:7472: checking for $ac_func" >&5
7472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7473 echo $ac_n "(cached) $ac_c" 1>&6
7475 cat > conftest.$ac_ext <<EOF
7476 #line 7477 "configure"
7477 #include "confdefs.h"
7478 /* System header to define __stub macros and hopefully few prototypes,
7479 which can conflict with char $ac_func(); below. */
7481 /* Override any gcc2 internal prototype to avoid an error. */
7482 /* We use char because int might match the return type of a gcc2
7483 builtin and then its argument prototype would still apply. */
7488 /* The GNU C library defines this for functions which it implements
7489 to always fail with ENOSYS. Some functions are actually named
7490 something starting with __ and the normal name is an alias. */
7491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7499 if { (eval echo configure:7500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7501 eval "ac_cv_func_$ac_func=yes"
7503 echo "configure: failed program was:" >&5
7504 cat conftest.$ac_ext >&5
7506 eval "ac_cv_func_$ac_func=no"
7511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7512 echo "$ac_t""yes" 1>&6
7513 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7514 cat >> confdefs.h <<EOF
7515 #define $ac_tr_func 1
7519 echo "$ac_t""no" 1>&6
7524 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7525 echo "configure:7526: checking for LinuxThreads pthread.h" >&5
7526 if eval "test \"`echo '$''{'ol_cv_header_linux_threads'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7529 cat > conftest.$ac_ext <<EOF
7530 #line 7531 "configure"
7531 #include "confdefs.h"
7532 #include <pthread.h>
7534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7535 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7537 ol_cv_header_linux_threads=yes
7540 ol_cv_header_linux_threads=no
7547 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7548 if test $ol_cv_header_linux_threads = yes; then
7549 cat >> confdefs.h <<\EOF
7550 #define HAVE_LINUX_THREADS 1
7556 for ac_hdr in mach/cthreads.h
7558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7560 echo "configure:7561: checking for $ac_hdr" >&5
7561 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7562 echo $ac_n "(cached) $ac_c" 1>&6
7564 cat > conftest.$ac_ext <<EOF
7565 #line 7566 "configure"
7566 #include "confdefs.h"
7569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7570 { (eval echo configure:7571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7572 if test -z "$ac_err"; then
7574 eval "ac_cv_header_$ac_safe=yes"
7577 echo "configure: failed program was:" >&5
7578 cat conftest.$ac_ext >&5
7580 eval "ac_cv_header_$ac_safe=no"
7584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7585 echo "$ac_t""yes" 1>&6
7586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7587 cat >> confdefs.h <<EOF
7588 #define $ac_tr_hdr 1
7592 echo "$ac_t""no" 1>&6
7596 for ac_hdr in lwp/lwp.h
7598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7600 echo "configure:7601: checking for $ac_hdr" >&5
7601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7602 echo $ac_n "(cached) $ac_c" 1>&6
7604 cat > conftest.$ac_ext <<EOF
7605 #line 7606 "configure"
7606 #include "confdefs.h"
7609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7610 { (eval echo configure:7611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7612 if test -z "$ac_err"; then
7614 eval "ac_cv_header_$ac_safe=yes"
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7620 eval "ac_cv_header_$ac_safe=no"
7624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7625 echo "$ac_t""yes" 1>&6
7626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7627 cat >> confdefs.h <<EOF
7628 #define $ac_tr_hdr 1
7632 echo "$ac_t""no" 1>&6
7636 for ac_hdr in thread.h synch.h
7638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7640 echo "configure:7641: checking for $ac_hdr" >&5
7641 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7642 echo $ac_n "(cached) $ac_c" 1>&6
7644 cat > conftest.$ac_ext <<EOF
7645 #line 7646 "configure"
7646 #include "confdefs.h"
7649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7650 { (eval echo configure:7651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7652 if test -z "$ac_err"; then
7654 eval "ac_cv_header_$ac_safe=yes"
7657 echo "configure: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7660 eval "ac_cv_header_$ac_safe=no"
7664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7665 echo "$ac_t""yes" 1>&6
7666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7667 cat >> confdefs.h <<EOF
7668 #define $ac_tr_hdr 1
7672 echo "$ac_t""no" 1>&6
7678 if test $ol_link_threads != no ; then
7679 cat >> confdefs.h <<\EOF
7683 cat >> confdefs.h <<\EOF
7684 #define _REENTRANT 1
7687 cat >> confdefs.h <<\EOF
7688 #define THREAD_SAFE 1
7691 cat >> confdefs.h <<\EOF
7692 #define _THREAD_SAFE 1
7695 cat >> confdefs.h <<\EOF
7696 #define THREADSAFE 1
7699 cat >> confdefs.h <<\EOF
7700 #define _THREADSAFE 1
7703 cat >> confdefs.h <<\EOF
7704 #define _SGI_MP_SOURCE 1
7708 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
7709 echo "configure:7710: checking for thread specific errno" >&5
7710 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
7711 echo $ac_n "(cached) $ac_c" 1>&6
7714 cat > conftest.$ac_ext <<EOF
7715 #line 7716 "configure"
7716 #include "confdefs.h"
7722 if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7724 ol_cv_errno_thread_specific=yes
7726 echo "configure: failed program was:" >&5
7727 cat conftest.$ac_ext >&5
7729 ol_cv_errno_thread_specific=no
7735 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
7737 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
7738 echo "configure:7739: checking for thread specific h_errno" >&5
7739 if eval "test \"`echo '$''{'ol_cv_h_errno_thread_specific'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7743 cat > conftest.$ac_ext <<EOF
7744 #line 7745 "configure"
7745 #include "confdefs.h"
7751 if { (eval echo configure:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7753 ol_cv_h_errno_thread_specific=yes
7755 echo "configure: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7758 ol_cv_h_errno_thread_specific=no
7764 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
7766 if test $ol_cv_errno_thread_specific != yes \
7767 -o $ol_cv_h_errno_thread_specific != yes ; then
7768 LIBS="$LTHREAD_LIBS $LIBS"
7774 if test $ol_link_threads = no ; then
7775 if test $ol_with_threads = yes ; then
7776 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
7779 if test $ol_with_threads = auto ; then
7780 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
7784 cat >> confdefs.h <<\EOF
7785 #define NO_THREADS 1
7791 if test $ol_link_threads != no ; then
7792 cat >> confdefs.h <<\EOF
7793 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
7800 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
7801 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
7802 echo "configure:7803: checking for DB2 library" >&5
7803 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
7804 echo $ac_n "(cached) $ac_c" 1>&6
7807 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
7808 echo "configure:7809: checking for db_open in -ldb" >&5
7809 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
7810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7811 echo $ac_n "(cached) $ac_c" 1>&6
7813 ac_save_LIBS="$LIBS"
7815 cat > conftest.$ac_ext <<EOF
7816 #line 7817 "configure"
7817 #include "confdefs.h"
7818 /* Override any gcc2 internal prototype to avoid an error. */
7819 /* We use char because int might match the return type of a gcc2
7820 builtin and then its argument prototype would still apply. */
7827 if { (eval echo configure:7828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7829 eval "ac_cv_lib_$ac_lib_var=yes"
7831 echo "configure: failed program was:" >&5
7832 cat conftest.$ac_ext >&5
7834 eval "ac_cv_lib_$ac_lib_var=no"
7837 LIBS="$ac_save_LIBS"
7840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7841 echo "$ac_t""yes" 1>&6
7844 echo "$ac_t""no" 1>&6
7852 echo "$ac_t""$ol_cv_lib_db2" 1>&6
7856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7858 echo "configure:7859: checking for $ac_hdr" >&5
7859 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7860 echo $ac_n "(cached) $ac_c" 1>&6
7862 cat > conftest.$ac_ext <<EOF
7863 #line 7864 "configure"
7864 #include "confdefs.h"
7867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7868 { (eval echo configure:7869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7870 if test -z "$ac_err"; then
7872 eval "ac_cv_header_$ac_safe=yes"
7875 echo "configure: failed program was:" >&5
7876 cat conftest.$ac_ext >&5
7878 eval "ac_cv_header_$ac_safe=no"
7882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7883 echo "$ac_t""yes" 1>&6
7884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7885 cat >> confdefs.h <<EOF
7886 #define $ac_tr_hdr 1
7890 echo "$ac_t""no" 1>&6
7894 if test $ac_cv_header_db_h = yes ; then
7895 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
7896 echo "configure:7897: checking if db.h is DB2" >&5
7897 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
7898 echo $ac_n "(cached) $ac_c" 1>&6
7901 cat > conftest.$ac_ext <<EOF
7902 #line 7903 "configure"
7903 #include "confdefs.h"
7906 /* this check could be improved */
7907 # ifdef DB_VERSION_MAJOR
7908 # if DB_VERSION_MAJOR == 2
7914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7915 egrep "__db_version_2" >/dev/null 2>&1; then
7917 ol_cv_header_db2=yes
7926 echo "$ac_t""$ol_cv_header_db2" 1>&6
7933 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
7934 echo "configure:7935: checking for Berkeley DB2" >&5
7935 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7939 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
7940 ol_cv_berkeley_db2=no
7942 ol_cv_berkeley_db2=yes
7947 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
7948 if test $ol_cv_berkeley_db2 = yes ; then
7949 cat >> confdefs.h <<\EOF
7950 #define HAVE_BERKELEY_DB2 1
7956 if test $ol_cv_berkeley_db2 = yes ; then
7958 ol_with_ldbm_api=db2
7960 if test $ol_with_ldbm_type = hash ; then
7961 cat >> confdefs.h <<\EOF
7962 #define LDBM_USE_DBHASH 1
7966 cat >> confdefs.h <<\EOF
7967 #define LDBM_USE_DBBTREE 1
7972 if test $ol_cv_lib_db2 != yes ; then
7973 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
7979 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
7983 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
7984 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
7985 echo "configure:7986: checking for Berkeley DB library" >&5
7986 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
7987 echo $ac_n "(cached) $ac_c" 1>&6
7990 for ac_hdr in db1/db.h
7992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7994 echo "configure:7995: checking for $ac_hdr" >&5
7995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7996 echo $ac_n "(cached) $ac_c" 1>&6
7998 cat > conftest.$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8004 { (eval echo configure:8005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8006 if test -z "$ac_err"; then
8008 eval "ac_cv_header_$ac_safe=yes"
8011 echo "configure: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8014 eval "ac_cv_header_$ac_safe=no"
8018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8019 echo "$ac_t""yes" 1>&6
8020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8021 cat >> confdefs.h <<EOF
8022 #define $ac_tr_hdr 1
8026 echo "$ac_t""no" 1>&6
8031 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
8032 echo "configure:8033: checking for dbopen" >&5
8033 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
8034 echo $ac_n "(cached) $ac_c" 1>&6
8036 cat > conftest.$ac_ext <<EOF
8037 #line 8038 "configure"
8038 #include "confdefs.h"
8039 /* System header to define __stub macros and hopefully few prototypes,
8040 which can conflict with char dbopen(); below. */
8042 /* Override any gcc2 internal prototype to avoid an error. */
8043 /* We use char because int might match the return type of a gcc2
8044 builtin and then its argument prototype would still apply. */
8049 /* The GNU C library defines this for functions which it implements
8050 to always fail with ENOSYS. Some functions are actually named
8051 something starting with __ and the normal name is an alias. */
8052 #if defined (__stub_dbopen) || defined (__stub___dbopen)
8060 if { (eval echo configure:8061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8062 eval "ac_cv_func_dbopen=yes"
8064 echo "configure: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8067 eval "ac_cv_func_dbopen=no"
8072 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
8073 echo "$ac_t""yes" 1>&6
8076 echo "$ac_t""no" 1>&6
8078 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
8079 echo "configure:8080: checking for dbopen in -ldb1" >&5
8080 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
8081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8082 echo $ac_n "(cached) $ac_c" 1>&6
8084 ac_save_LIBS="$LIBS"
8086 cat > conftest.$ac_ext <<EOF
8087 #line 8088 "configure"
8088 #include "confdefs.h"
8089 /* Override any gcc2 internal prototype to avoid an error. */
8090 /* We use char because int might match the return type of a gcc2
8091 builtin and then its argument prototype would still apply. */
8098 if { (eval echo configure:8099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8100 eval "ac_cv_lib_$ac_lib_var=yes"
8102 echo "configure: failed program was:" >&5
8103 cat conftest.$ac_ext >&5
8105 eval "ac_cv_lib_$ac_lib_var=no"
8108 LIBS="$ac_save_LIBS"
8111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8112 echo "$ac_t""yes" 1>&6
8115 echo "$ac_t""no" 1>&6
8117 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
8118 echo "configure:8119: checking for dbopen in -ldb" >&5
8119 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
8120 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8121 echo $ac_n "(cached) $ac_c" 1>&6
8123 ac_save_LIBS="$LIBS"
8125 cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8128 /* Override any gcc2 internal prototype to avoid an error. */
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8137 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139 eval "ac_cv_lib_$ac_lib_var=yes"
8141 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8144 eval "ac_cv_lib_$ac_lib_var=no"
8147 LIBS="$ac_save_LIBS"
8150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8151 echo "$ac_t""yes" 1>&6
8154 echo "$ac_t""no" 1>&6
8168 echo "$ac_t""$ol_cv_lib_db" 1>&6
8171 for ac_hdr in db_185.h
8173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8175 echo "configure:8176: checking for $ac_hdr" >&5
8176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8177 echo $ac_n "(cached) $ac_c" 1>&6
8179 cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8185 { (eval echo configure:8186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8187 if test -z "$ac_err"; then
8189 eval "ac_cv_header_$ac_safe=yes"
8192 echo "configure: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8195 eval "ac_cv_header_$ac_safe=no"
8199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8200 echo "$ac_t""yes" 1>&6
8201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8202 cat >> confdefs.h <<EOF
8203 #define $ac_tr_hdr 1
8207 echo "$ac_t""no" 1>&6
8211 if test "$ol_cv_header_db2" = yes ; then
8213 ol_cv_header_db=$ac_cv_header_db_185_h
8215 ol_cv_header_db=$ac_cv_header_db_h
8220 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
8221 echo "configure:8222: checking for Berkeley DB" >&5
8222 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
8223 echo $ac_n "(cached) $ac_c" 1>&6
8226 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
8227 ol_cv_berkeley_db=no
8229 ol_cv_berkeley_db=yes
8234 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
8235 if test $ol_cv_berkeley_db = yes ; then
8236 cat >> confdefs.h <<\EOF
8237 #define HAVE_BERKELEY_DB 1
8243 if test $ol_cv_berkeley_db = yes ; then
8247 if test $ol_with_ldbm_type = hash ; then
8248 cat >> confdefs.h <<\EOF
8249 #define LDBM_USE_DBHASH 1
8253 cat >> confdefs.h <<\EOF
8254 #define LDBM_USE_DBBTREE 1
8259 if test $ol_cv_lib_db != yes ; then
8260 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
8265 if test $ol_with_ldbm_api = manual ; then
8268 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
8270 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
8272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8274 echo "configure:8275: checking for $ac_hdr" >&5
8275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8276 echo $ac_n "(cached) $ac_c" 1>&6
8278 cat > conftest.$ac_ext <<EOF
8279 #line 8280 "configure"
8280 #include "confdefs.h"
8283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8284 { (eval echo configure:8285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8286 if test -z "$ac_err"; then
8288 eval "ac_cv_header_$ac_safe=yes"
8291 echo "configure: failed program was:" >&5
8292 cat conftest.$ac_ext >&5
8294 eval "ac_cv_header_$ac_safe=no"
8298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8299 echo "$ac_t""yes" 1>&6
8300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8301 cat >> confdefs.h <<EOF
8302 #define $ac_tr_hdr 1
8306 echo "$ac_t""no" 1>&6
8312 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
8313 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
8314 ol_with_ldbm_api=none
8317 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
8318 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
8319 echo "configure:8320: checking for MDBM library" >&5
8320 if eval "test \"`echo '$''{'ol_cv_lib_mdbm'+set}'`\" = set"; then
8321 echo $ac_n "(cached) $ac_c" 1>&6
8324 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
8325 echo "configure:8326: checking for mdbm_set_chain" >&5
8326 if eval "test \"`echo '$''{'ac_cv_func_mdbm_set_chain'+set}'`\" = set"; then
8327 echo $ac_n "(cached) $ac_c" 1>&6
8329 cat > conftest.$ac_ext <<EOF
8330 #line 8331 "configure"
8331 #include "confdefs.h"
8332 /* System header to define __stub macros and hopefully few prototypes,
8333 which can conflict with char mdbm_set_chain(); below. */
8335 /* Override any gcc2 internal prototype to avoid an error. */
8336 /* We use char because int might match the return type of a gcc2
8337 builtin and then its argument prototype would still apply. */
8338 char mdbm_set_chain();
8342 /* The GNU C library defines this for functions which it implements
8343 to always fail with ENOSYS. Some functions are actually named
8344 something starting with __ and the normal name is an alias. */
8345 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
8353 if { (eval echo configure:8354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8355 eval "ac_cv_func_mdbm_set_chain=yes"
8357 echo "configure: failed program was:" >&5
8358 cat conftest.$ac_ext >&5
8360 eval "ac_cv_func_mdbm_set_chain=no"
8365 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
8366 echo "$ac_t""yes" 1>&6
8369 echo "$ac_t""no" 1>&6
8371 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
8372 echo "configure:8373: checking for mdbm_set_chain in -lmdbm" >&5
8373 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-%__p_%'`
8374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8375 echo $ac_n "(cached) $ac_c" 1>&6
8377 ac_save_LIBS="$LIBS"
8379 cat > conftest.$ac_ext <<EOF
8380 #line 8381 "configure"
8381 #include "confdefs.h"
8382 /* Override any gcc2 internal prototype to avoid an error. */
8383 /* We use char because int might match the return type of a gcc2
8384 builtin and then its argument prototype would still apply. */
8385 char mdbm_set_chain();
8391 if { (eval echo configure:8392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8393 eval "ac_cv_lib_$ac_lib_var=yes"
8395 echo "configure: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8398 eval "ac_cv_lib_$ac_lib_var=no"
8401 LIBS="$ac_save_LIBS"
8404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8405 echo "$ac_t""yes" 1>&6
8406 ol_cv_lib_mdbm=-lmdbm
8408 echo "$ac_t""no" 1>&6
8419 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
8422 for ac_hdr in mdbm.h
8424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8426 echo "configure:8427: checking for $ac_hdr" >&5
8427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8428 echo $ac_n "(cached) $ac_c" 1>&6
8430 cat > conftest.$ac_ext <<EOF
8431 #line 8432 "configure"
8432 #include "confdefs.h"
8435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8436 { (eval echo configure:8437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8438 if test -z "$ac_err"; then
8440 eval "ac_cv_header_$ac_safe=yes"
8443 echo "configure: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8446 eval "ac_cv_header_$ac_safe=no"
8450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8451 echo "$ac_t""yes" 1>&6
8452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8453 cat >> confdefs.h <<EOF
8454 #define $ac_tr_hdr 1
8458 echo "$ac_t""no" 1>&6
8462 echo $ac_n "checking for db""... $ac_c" 1>&6
8463 echo "configure:8464: checking for db" >&5
8464 if eval "test \"`echo '$''{'ol_cv_mdbm'+set}'`\" = set"; then
8465 echo $ac_n "(cached) $ac_c" 1>&6
8468 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
8476 echo "$ac_t""$ol_cv_mdbm" 1>&6
8477 if test $ol_cv_mdbm = yes ; then
8478 cat >> confdefs.h <<\EOF
8485 if test $ol_cv_mdbm = yes ; then
8487 ol_with_ldbm_api=mdbm
8488 if test $ol_cv_lib_mdbm != yes ; then
8489 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
8494 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
8495 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
8496 echo "configure:8497: checking for GDBM library" >&5
8497 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
8498 echo $ac_n "(cached) $ac_c" 1>&6
8501 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
8502 echo "configure:8503: checking for gdbm_open" >&5
8503 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
8504 echo $ac_n "(cached) $ac_c" 1>&6
8506 cat > conftest.$ac_ext <<EOF
8507 #line 8508 "configure"
8508 #include "confdefs.h"
8509 /* System header to define __stub macros and hopefully few prototypes,
8510 which can conflict with char gdbm_open(); below. */
8512 /* Override any gcc2 internal prototype to avoid an error. */
8513 /* We use char because int might match the return type of a gcc2
8514 builtin and then its argument prototype would still apply. */
8519 /* The GNU C library defines this for functions which it implements
8520 to always fail with ENOSYS. Some functions are actually named
8521 something starting with __ and the normal name is an alias. */
8522 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
8530 if { (eval echo configure:8531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8532 eval "ac_cv_func_gdbm_open=yes"
8534 echo "configure: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8537 eval "ac_cv_func_gdbm_open=no"
8542 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
8543 echo "$ac_t""yes" 1>&6
8546 echo "$ac_t""no" 1>&6
8548 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
8549 echo "configure:8550: checking for gdbm_open in -lgdbm" >&5
8550 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
8551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8552 echo $ac_n "(cached) $ac_c" 1>&6
8554 ac_save_LIBS="$LIBS"
8556 cat > conftest.$ac_ext <<EOF
8557 #line 8558 "configure"
8558 #include "confdefs.h"
8559 /* Override any gcc2 internal prototype to avoid an error. */
8560 /* We use char because int might match the return type of a gcc2
8561 builtin and then its argument prototype would still apply. */
8568 if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8570 eval "ac_cv_lib_$ac_lib_var=yes"
8572 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5
8575 eval "ac_cv_lib_$ac_lib_var=no"
8578 LIBS="$ac_save_LIBS"
8581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8582 echo "$ac_t""yes" 1>&6
8583 ol_cv_lib_gdbm=-lgdbm
8585 echo "$ac_t""no" 1>&6
8596 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
8599 for ac_hdr in gdbm.h
8601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8603 echo "configure:8604: checking for $ac_hdr" >&5
8604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8605 echo $ac_n "(cached) $ac_c" 1>&6
8607 cat > conftest.$ac_ext <<EOF
8608 #line 8609 "configure"
8609 #include "confdefs.h"
8612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8613 { (eval echo configure:8614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8615 if test -z "$ac_err"; then
8617 eval "ac_cv_header_$ac_safe=yes"
8620 echo "configure: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8623 eval "ac_cv_header_$ac_safe=no"
8627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8628 echo "$ac_t""yes" 1>&6
8629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8630 cat >> confdefs.h <<EOF
8631 #define $ac_tr_hdr 1
8635 echo "$ac_t""no" 1>&6
8639 echo $ac_n "checking for db""... $ac_c" 1>&6
8640 echo "configure:8641: checking for db" >&5
8641 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
8642 echo $ac_n "(cached) $ac_c" 1>&6
8645 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
8653 echo "$ac_t""$ol_cv_gdbm" 1>&6
8654 if test $ol_cv_gdbm = yes ; then
8655 cat >> confdefs.h <<\EOF
8662 if test $ol_cv_gdbm = yes ; then
8664 ol_with_ldbm_api=gdbm
8666 if test $ol_cv_lib_gdbm != yes ; then
8667 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
8672 if test $ol_with_ldbm_api = auto ; then
8673 echo "configure: warning: skipping automatic checking for NDBM, must be manually enabled." 1>&2
8674 elif test $ol_with_ldbm_api = ndbm ; then
8675 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
8676 echo "configure:8677: checking for NDBM library" >&5
8677 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
8678 echo $ac_n "(cached) $ac_c" 1>&6
8681 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
8682 echo "configure:8683: checking for dbm_open" >&5
8683 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
8686 cat > conftest.$ac_ext <<EOF
8687 #line 8688 "configure"
8688 #include "confdefs.h"
8689 /* System header to define __stub macros and hopefully few prototypes,
8690 which can conflict with char dbm_open(); below. */
8692 /* Override any gcc2 internal prototype to avoid an error. */
8693 /* We use char because int might match the return type of a gcc2
8694 builtin and then its argument prototype would still apply. */
8699 /* The GNU C library defines this for functions which it implements
8700 to always fail with ENOSYS. Some functions are actually named
8701 something starting with __ and the normal name is an alias. */
8702 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
8710 if { (eval echo configure:8711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8712 eval "ac_cv_func_dbm_open=yes"
8714 echo "configure: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8717 eval "ac_cv_func_dbm_open=no"
8722 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
8723 echo "$ac_t""yes" 1>&6
8726 echo "$ac_t""no" 1>&6
8728 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
8729 echo "configure:8730: checking for dbm_open in -lndbm" >&5
8730 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
8731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8732 echo $ac_n "(cached) $ac_c" 1>&6
8734 ac_save_LIBS="$LIBS"
8736 cat > conftest.$ac_ext <<EOF
8737 #line 8738 "configure"
8738 #include "confdefs.h"
8739 /* Override any gcc2 internal prototype to avoid an error. */
8740 /* We use char because int might match the return type of a gcc2
8741 builtin and then its argument prototype would still apply. */
8748 if { (eval echo configure:8749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8750 eval "ac_cv_lib_$ac_lib_var=yes"
8752 echo "configure: failed program was:" >&5
8753 cat conftest.$ac_ext >&5
8755 eval "ac_cv_lib_$ac_lib_var=no"
8758 LIBS="$ac_save_LIBS"
8761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8762 echo "$ac_t""yes" 1>&6
8763 ol_cv_lib_ndbm=-lndbm
8765 echo "$ac_t""no" 1>&6
8767 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
8768 echo "configure:8769: checking for dbm_open in -ldbm" >&5
8769 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
8770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8771 echo $ac_n "(cached) $ac_c" 1>&6
8773 ac_save_LIBS="$LIBS"
8775 cat > conftest.$ac_ext <<EOF
8776 #line 8777 "configure"
8777 #include "confdefs.h"
8778 /* Override any gcc2 internal prototype to avoid an error. */
8779 /* We use char because int might match the return type of a gcc2
8780 builtin and then its argument prototype would still apply. */
8787 if { (eval echo configure:8788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8789 eval "ac_cv_lib_$ac_lib_var=yes"
8791 echo "configure: failed program was:" >&5
8792 cat conftest.$ac_ext >&5
8794 eval "ac_cv_lib_$ac_lib_var=no"
8797 LIBS="$ac_save_LIBS"
8800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8801 echo "$ac_t""yes" 1>&6
8802 ol_cv_lib_ndbm=-ldbm
8804 echo "$ac_t""no" 1>&6
8817 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
8820 for ac_hdr in ndbm.h
8822 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8823 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8824 echo "configure:8825: checking for $ac_hdr" >&5
8825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8826 echo $ac_n "(cached) $ac_c" 1>&6
8828 cat > conftest.$ac_ext <<EOF
8829 #line 8830 "configure"
8830 #include "confdefs.h"
8833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8834 { (eval echo configure:8835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8836 if test -z "$ac_err"; then
8838 eval "ac_cv_header_$ac_safe=yes"
8841 echo "configure: failed program was:" >&5
8842 cat conftest.$ac_ext >&5
8844 eval "ac_cv_header_$ac_safe=no"
8848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8849 echo "$ac_t""yes" 1>&6
8850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8851 cat >> confdefs.h <<EOF
8852 #define $ac_tr_hdr 1
8856 echo "$ac_t""no" 1>&6
8860 echo $ac_n "checking for db""... $ac_c" 1>&6
8861 echo "configure:8862: checking for db" >&5
8862 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
8863 echo $ac_n "(cached) $ac_c" 1>&6
8866 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
8874 echo "$ac_t""$ol_cv_ndbm" 1>&6
8875 if test $ol_cv_ndbm = yes ; then
8876 cat >> confdefs.h <<\EOF
8883 if test $ol_cv_ndbm = yes ; then
8885 ol_with_ldbm_api=ndbm
8887 if test $ol_cv_lib_ndbm != yes ; then
8888 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
8893 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
8894 echo "configure: warning: could not find suitable LDBM backend" 1>&2
8895 if test $ol_enable_ldbm = yes ; then
8896 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
8899 echo "configure: warning: disabling LDBM" 1>&2
8903 if test $ol_enable_wrappers != no ; then
8904 for ac_hdr in tcpd.h
8906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8908 echo "configure:8909: checking for $ac_hdr" >&5
8909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8910 echo $ac_n "(cached) $ac_c" 1>&6
8912 cat > conftest.$ac_ext <<EOF
8913 #line 8914 "configure"
8914 #include "confdefs.h"
8917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8918 { (eval echo configure:8919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8920 if test -z "$ac_err"; then
8922 eval "ac_cv_header_$ac_safe=yes"
8925 echo "configure: failed program was:" >&5
8926 cat conftest.$ac_ext >&5
8928 eval "ac_cv_header_$ac_safe=no"
8932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8933 echo "$ac_t""yes" 1>&6
8934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8935 cat >> confdefs.h <<EOF
8936 #define $ac_tr_hdr 1
8940 echo "$ac_t""no" 1>&6
8945 if test $ac_cv_header_tcpd_h != yes ; then
8948 echo $ac_n "checking for main in -lwrap""... $ac_c" 1>&6
8949 echo "configure:8950: checking for main in -lwrap" >&5
8950 ac_lib_var=`echo wrap'_'main | sed 'y%./+-%__p_%'`
8951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8954 ac_save_LIBS="$LIBS"
8956 cat > conftest.$ac_ext <<EOF
8957 #line 8958 "configure"
8958 #include "confdefs.h"
8964 if { (eval echo configure:8965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8966 eval "ac_cv_lib_$ac_lib_var=yes"
8968 echo "configure: failed program was:" >&5
8969 cat conftest.$ac_ext >&5
8971 eval "ac_cv_lib_$ac_lib_var=no"
8974 LIBS="$ac_save_LIBS"
8977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8978 echo "$ac_t""yes" 1>&6
8981 echo "$ac_t""no" 1>&6
8987 if test $have_wrappers = yes ; then
8988 cat >> confdefs.h <<\EOF
8992 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
8994 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8995 echo "configure:8996: checking for main in -lnsl" >&5
8996 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
8997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8998 echo $ac_n "(cached) $ac_c" 1>&6
9000 ac_save_LIBS="$LIBS"
9002 cat > conftest.$ac_ext <<EOF
9003 #line 9004 "configure"
9004 #include "confdefs.h"
9010 if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9012 eval "ac_cv_lib_$ac_lib_var=yes"
9014 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5
9017 eval "ac_cv_lib_$ac_lib_var=no"
9020 LIBS="$ac_save_LIBS"
9023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9024 echo "$ac_t""yes" 1>&6
9025 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9027 cat >> confdefs.h <<EOF
9028 #define $ac_tr_lib 1
9034 echo "$ac_t""no" 1>&6
9038 echo "configure: warning: could not find -lwrap" 1>&2
9039 if test $ol_enable_wrappers = yes ; then
9040 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
9043 echo "configure: warning: disabling wrappers support" 1>&2
9044 ol_enable_wrappers=no
9048 if test $ol_enable_syslog != no ; then
9049 echo $ac_n "checking for openlog""... $ac_c" 1>&6
9050 echo "configure:9051: checking for openlog" >&5
9051 if eval "test \"`echo '$''{'ac_cv_func_openlog'+set}'`\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9057 /* System header to define __stub macros and hopefully few prototypes,
9058 which can conflict with char openlog(); below. */
9060 /* Override any gcc2 internal prototype to avoid an error. */
9061 /* We use char because int might match the return type of a gcc2
9062 builtin and then its argument prototype would still apply. */
9067 /* The GNU C library defines this for functions which it implements
9068 to always fail with ENOSYS. Some functions are actually named
9069 something starting with __ and the normal name is an alias. */
9070 #if defined (__stub_openlog) || defined (__stub___openlog)
9078 if { (eval echo configure:9079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9080 eval "ac_cv_func_openlog=yes"
9082 echo "configure: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9085 eval "ac_cv_func_openlog=no"
9090 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
9091 echo "$ac_t""yes" 1>&6
9094 echo "$ac_t""no" 1>&6
9097 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
9098 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
9100 ol_enable_syslog=$ac_cv_func_openlog
9103 if test $ol_enable_dmalloc != no ; then
9104 for ac_hdr in dmalloc.h
9106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9108 echo "configure:9109: checking for $ac_hdr" >&5
9109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9110 echo $ac_n "(cached) $ac_c" 1>&6
9112 cat > conftest.$ac_ext <<EOF
9113 #line 9114 "configure"
9114 #include "confdefs.h"
9117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9118 { (eval echo configure:9119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9120 if test -z "$ac_err"; then
9122 eval "ac_cv_header_$ac_safe=yes"
9125 echo "configure: failed program was:" >&5
9126 cat conftest.$ac_ext >&5
9128 eval "ac_cv_header_$ac_safe=no"
9132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9133 echo "$ac_t""yes" 1>&6
9134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9135 cat >> confdefs.h <<EOF
9136 #define $ac_tr_hdr 1
9140 echo "$ac_t""no" 1>&6
9144 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
9145 echo "configure:9146: checking for dmalloc_shutdown in -ldmalloc" >&5
9146 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
9147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9148 echo $ac_n "(cached) $ac_c" 1>&6
9150 ac_save_LIBS="$LIBS"
9151 LIBS="-ldmalloc $LIBS"
9152 cat > conftest.$ac_ext <<EOF
9153 #line 9154 "configure"
9154 #include "confdefs.h"
9155 /* Override any gcc2 internal prototype to avoid an error. */
9156 /* We use char because int might match the return type of a gcc2
9157 builtin and then its argument prototype would still apply. */
9158 char dmalloc_shutdown();
9164 if { (eval echo configure:9165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9166 eval "ac_cv_lib_$ac_lib_var=yes"
9168 echo "configure: failed program was:" >&5
9169 cat conftest.$ac_ext >&5
9171 eval "ac_cv_lib_$ac_lib_var=no"
9174 LIBS="$ac_save_LIBS"
9177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9178 echo "$ac_t""yes" 1>&6
9179 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9180 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9181 cat >> confdefs.h <<EOF
9182 #define $ac_tr_lib 1
9185 LIBS="-ldmalloc $LIBS"
9188 echo "$ac_t""no" 1>&6
9193 if test $ol_enable_tcl != no ; then
9196 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9198 echo "configure:9199: checking for $ac_hdr" >&5
9199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9200 echo $ac_n "(cached) $ac_c" 1>&6
9202 cat > conftest.$ac_ext <<EOF
9203 #line 9204 "configure"
9204 #include "confdefs.h"
9207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9208 { (eval echo configure:9209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9210 if test -z "$ac_err"; then
9212 eval "ac_cv_header_$ac_safe=yes"
9215 echo "configure: failed program was:" >&5
9216 cat conftest.$ac_ext >&5
9218 eval "ac_cv_header_$ac_safe=no"
9222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9223 echo "$ac_t""yes" 1>&6
9224 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9225 cat >> confdefs.h <<EOF
9226 #define $ac_tr_hdr 1
9230 echo "$ac_t""no" 1>&6
9235 if test $ac_cv_header_tcl_h != yes ; then
9238 echo $ac_n "checking for main in -ltcl""... $ac_c" 1>&6
9239 echo "configure:9240: checking for main in -ltcl" >&5
9240 ac_lib_var=`echo tcl'_'main | sed 'y%./+-%__p_%'`
9241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9242 echo $ac_n "(cached) $ac_c" 1>&6
9244 ac_save_LIBS="$LIBS"
9246 cat > conftest.$ac_ext <<EOF
9247 #line 9248 "configure"
9248 #include "confdefs.h"
9254 if { (eval echo configure:9255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9256 eval "ac_cv_lib_$ac_lib_var=yes"
9258 echo "configure: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9261 eval "ac_cv_lib_$ac_lib_var=no"
9264 LIBS="$ac_save_LIBS"
9267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9268 echo "$ac_t""yes" 1>&6
9269 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl"
9271 echo "$ac_t""no" 1>&6
9276 if test $have_tcl != yes; then
9277 echo $ac_n "checking for main in -ltcl7.6""... $ac_c" 1>&6
9278 echo "configure:9279: checking for main in -ltcl7.6" >&5
9279 ac_lib_var=`echo tcl7.6'_'main | sed 'y%./+-%__p_%'`
9280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9281 echo $ac_n "(cached) $ac_c" 1>&6
9283 ac_save_LIBS="$LIBS"
9284 LIBS="-ltcl7.6 $LIBS"
9285 cat > conftest.$ac_ext <<EOF
9286 #line 9287 "configure"
9287 #include "confdefs.h"
9293 if { (eval echo configure:9294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9295 eval "ac_cv_lib_$ac_lib_var=yes"
9297 echo "configure: failed program was:" >&5
9298 cat conftest.$ac_ext >&5
9300 eval "ac_cv_lib_$ac_lib_var=no"
9303 LIBS="$ac_save_LIBS"
9306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9307 echo "$ac_t""yes" 1>&6
9308 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl7.6"
9310 echo "$ac_t""no" 1>&6
9316 if test $have_tcl != yes; then
9317 echo $ac_n "checking for main in -ltcl8.0""... $ac_c" 1>&6
9318 echo "configure:9319: checking for main in -ltcl8.0" >&5
9319 ac_lib_var=`echo tcl8.0'_'main | sed 'y%./+-%__p_%'`
9320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9323 ac_save_LIBS="$LIBS"
9324 LIBS="-ltcl8.0 $LIBS"
9325 cat > conftest.$ac_ext <<EOF
9326 #line 9327 "configure"
9327 #include "confdefs.h"
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9335 eval "ac_cv_lib_$ac_lib_var=yes"
9337 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9340 eval "ac_cv_lib_$ac_lib_var=no"
9343 LIBS="$ac_save_LIBS"
9346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9347 echo "$ac_t""yes" 1>&6
9348 have_tcl=yes; SLAPD_LIBS="$SLAPD_LIBS -ltcl8.0"
9350 echo "$ac_t""no" 1>&6
9357 if test $have_tcl != yes ; then
9358 echo "configure: warning: could not find -ltcl" 1>&2
9359 if test $ol_enable_tcl = yes ; then
9360 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
9367 # ud needs termcap (should insert check here)
9369 for ac_hdr in termcap.h ncurses.h
9371 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9372 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9373 echo "configure:9374: checking for $ac_hdr" >&5
9374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
9377 cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9383 { (eval echo configure:9384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9385 if test -z "$ac_err"; then
9387 eval "ac_cv_header_$ac_safe=yes"
9390 echo "configure: failed program was:" >&5
9391 cat conftest.$ac_ext >&5
9393 eval "ac_cv_header_$ac_safe=no"
9397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9398 echo "$ac_t""yes" 1>&6
9399 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9400 cat >> confdefs.h <<EOF
9401 #define $ac_tr_hdr 1
9405 echo "$ac_t""no" 1>&6
9410 if test $ol_link_termcap = no ; then
9411 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
9412 echo "configure:9413: checking for tputs in -ltermcap" >&5
9413 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
9414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9415 echo $ac_n "(cached) $ac_c" 1>&6
9417 ac_save_LIBS="$LIBS"
9418 LIBS="-ltermcap $LIBS"
9419 cat > conftest.$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9422 /* Override any gcc2 internal prototype to avoid an error. */
9423 /* We use char because int might match the return type of a gcc2
9424 builtin and then its argument prototype would still apply. */
9431 if { (eval echo configure:9432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9433 eval "ac_cv_lib_$ac_lib_var=yes"
9435 echo "configure: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9438 eval "ac_cv_lib_$ac_lib_var=no"
9441 LIBS="$ac_save_LIBS"
9444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9445 echo "$ac_t""yes" 1>&6
9448 echo "$ac_t""no" 1>&6
9452 if test $have_termcap = yes ; then
9453 cat >> confdefs.h <<\EOF
9454 #define HAVE_TERMCAP 1
9458 TERMCAP_LIBS=-ltermcap
9462 if test $ol_link_termcap = no ; then
9463 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
9464 echo "configure:9465: checking for initscr in -lncurses" >&5
9465 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
9466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9467 echo $ac_n "(cached) $ac_c" 1>&6
9469 ac_save_LIBS="$LIBS"
9470 LIBS="-lncurses $LIBS"
9471 cat > conftest.$ac_ext <<EOF
9472 #line 9473 "configure"
9473 #include "confdefs.h"
9474 /* Override any gcc2 internal prototype to avoid an error. */
9475 /* We use char because int might match the return type of a gcc2
9476 builtin and then its argument prototype would still apply. */
9483 if { (eval echo configure:9484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9485 eval "ac_cv_lib_$ac_lib_var=yes"
9487 echo "configure: failed program was:" >&5
9488 cat conftest.$ac_ext >&5
9490 eval "ac_cv_lib_$ac_lib_var=no"
9493 LIBS="$ac_save_LIBS"
9496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9497 echo "$ac_t""yes" 1>&6
9500 echo "$ac_t""no" 1>&6
9504 if test $have_ncurses = yes ; then
9505 cat >> confdefs.h <<\EOF
9506 #define HAVE_NCURSES 1
9510 TERMCAP_LIBS=-lncurses
9514 if test $ol_link_termcap = no ; then
9515 cat >> confdefs.h <<\EOF
9516 #define NO_TERMCAP 1
9523 if test $ol_with_readline != no ; then
9524 for ac_hdr in readline/readline.h readline/history.h
9526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9528 echo "configure:9529: checking for $ac_hdr" >&5
9529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9530 echo $ac_n "(cached) $ac_c" 1>&6
9532 cat > conftest.$ac_ext <<EOF
9533 #line 9534 "configure"
9534 #include "confdefs.h"
9537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9538 { (eval echo configure:9539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9540 if test -z "$ac_err"; then
9542 eval "ac_cv_header_$ac_safe=yes"
9545 echo "configure: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9548 eval "ac_cv_header_$ac_safe=no"
9552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9553 echo "$ac_t""yes" 1>&6
9554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9555 cat >> confdefs.h <<EOF
9556 #define $ac_tr_hdr 1
9560 echo "$ac_t""no" 1>&6
9565 if test $ac_cv_header_readline_readline_h = yes ; then
9567 LIBS="$TERMCAP_LIBS $LIBS"
9568 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
9569 echo "configure:9570: checking for readline in -lreadline" >&5
9570 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
9571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9572 echo $ac_n "(cached) $ac_c" 1>&6
9574 ac_save_LIBS="$LIBS"
9575 LIBS="-lreadline $LIBS"
9576 cat > conftest.$ac_ext <<EOF
9577 #line 9578 "configure"
9578 #include "confdefs.h"
9579 /* Override any gcc2 internal prototype to avoid an error. */
9580 /* We use char because int might match the return type of a gcc2
9581 builtin and then its argument prototype would still apply. */
9588 if { (eval echo configure:9589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9590 eval "ac_cv_lib_$ac_lib_var=yes"
9592 echo "configure: failed program was:" >&5
9593 cat conftest.$ac_ext >&5
9595 eval "ac_cv_lib_$ac_lib_var=no"
9598 LIBS="$ac_save_LIBS"
9601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9602 echo "$ac_t""yes" 1>&6
9605 echo "$ac_t""no" 1>&6
9611 if test $have_readline = yes ; then
9612 ol_with_readline=found
9613 ol_link_readline=yes
9615 READLINE_LIBS="-lreadline"
9620 if test $ol_link_readline = yes ; then
9621 cat >> confdefs.h <<\EOF
9622 #define HAVE_READLINE 1
9628 # FreeBSD (and others) have crypt(3) in -lcrypt
9629 if test $ol_enable_crypt != no ; then
9630 echo $ac_n "checking for crypt""... $ac_c" 1>&6
9631 echo "configure:9632: checking for crypt" >&5
9632 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
9633 echo $ac_n "(cached) $ac_c" 1>&6
9635 cat > conftest.$ac_ext <<EOF
9636 #line 9637 "configure"
9637 #include "confdefs.h"
9638 /* System header to define __stub macros and hopefully few prototypes,
9639 which can conflict with char crypt(); below. */
9641 /* Override any gcc2 internal prototype to avoid an error. */
9642 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9648 /* The GNU C library defines this for functions which it implements
9649 to always fail with ENOSYS. Some functions are actually named
9650 something starting with __ and the normal name is an alias. */
9651 #if defined (__stub_crypt) || defined (__stub___crypt)
9659 if { (eval echo configure:9660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9661 eval "ac_cv_func_crypt=yes"
9663 echo "configure: failed program was:" >&5
9664 cat conftest.$ac_ext >&5
9666 eval "ac_cv_func_crypt=no"
9671 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
9672 echo "$ac_t""yes" 1>&6
9675 echo "$ac_t""no" 1>&6
9677 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9678 echo "configure:9679: checking for crypt in -lcrypt" >&5
9679 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9681 echo $ac_n "(cached) $ac_c" 1>&6
9683 ac_save_LIBS="$LIBS"
9684 LIBS="-lcrypt $LIBS"
9685 cat > conftest.$ac_ext <<EOF
9686 #line 9687 "configure"
9687 #include "confdefs.h"
9688 /* Override any gcc2 internal prototype to avoid an error. */
9689 /* We use char because int might match the return type of a gcc2
9690 builtin and then its argument prototype would still apply. */
9697 if { (eval echo configure:9698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9699 eval "ac_cv_lib_$ac_lib_var=yes"
9701 echo "configure: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9704 eval "ac_cv_lib_$ac_lib_var=no"
9707 LIBS="$ac_save_LIBS"
9710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9711 echo "$ac_t""yes" 1>&6
9712 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
9715 echo "$ac_t""no" 1>&6
9722 if test $have_crypt = yes ; then
9723 cat >> confdefs.h <<\EOF
9724 #define HAVE_CRYPT 1
9728 echo "configure: warning: could not find crypt" 1>&2
9729 if test $ol_enable_crypt = yes ; then
9730 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
9733 echo "configure: warning: disabling crypt support" 1>&2
9738 # FreeBSD (and others) have setproctitle(3) in -lutil
9739 if test $ol_enable_proctitle != no ; then
9740 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
9741 echo "configure:9742: checking for setproctitle" >&5
9742 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
9743 echo $ac_n "(cached) $ac_c" 1>&6
9745 cat > conftest.$ac_ext <<EOF
9746 #line 9747 "configure"
9747 #include "confdefs.h"
9748 /* System header to define __stub macros and hopefully few prototypes,
9749 which can conflict with char setproctitle(); below. */
9751 /* Override any gcc2 internal prototype to avoid an error. */
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9754 char setproctitle();
9758 /* The GNU C library defines this for functions which it implements
9759 to always fail with ENOSYS. Some functions are actually named
9760 something starting with __ and the normal name is an alias. */
9761 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
9769 if { (eval echo configure:9770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9771 eval "ac_cv_func_setproctitle=yes"
9773 echo "configure: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9776 eval "ac_cv_func_setproctitle=no"
9781 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
9782 echo "$ac_t""yes" 1>&6
9783 have_setproctitle=yes
9785 echo "$ac_t""no" 1>&6
9787 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
9788 echo "configure:9789: checking for setproctitle in -lutil" >&5
9789 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
9790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
9793 ac_save_LIBS="$LIBS"
9795 cat > conftest.$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 /* Override any gcc2 internal prototype to avoid an error. */
9799 /* We use char because int might match the return type of a gcc2
9800 builtin and then its argument prototype would still apply. */
9801 char setproctitle();
9807 if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9809 eval "ac_cv_lib_$ac_lib_var=yes"
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9814 eval "ac_cv_lib_$ac_lib_var=no"
9817 LIBS="$ac_save_LIBS"
9820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9821 echo "$ac_t""yes" 1>&6
9822 have_setproctitle=yes
9823 LUTIL_LIBS="$LUTIL_LIBS -lutil"
9825 echo "$ac_t""no" 1>&6
9826 have_setproctitle=no
9827 LIBOBJS="$LIBOBJS setproctitle.o"
9833 if test $have_setproctitle = yes ; then
9834 cat >> confdefs.h <<\EOF
9835 #define HAVE_SETPROCTITLE 1
9842 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
9843 echo "configure:9844: checking for EBCDIC" >&5
9844 if eval "test \"`echo '$''{'ol_cv_cpp_ebcdic'+set}'`\" = set"; then
9845 echo $ac_n "(cached) $ac_c" 1>&6
9848 cat > conftest.$ac_ext <<EOF
9849 #line 9850 "configure"
9850 #include "confdefs.h"
9853 #include <__ASCII__/generate_error.h>
9857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9858 { (eval echo configure:9859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9860 if test -z "$ac_err"; then
9862 ol_cv_cpp_ebcdic=yes
9865 echo "configure: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9873 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
9874 if test $ol_cv_cpp_ebcdic = yes ; then
9875 cat >> confdefs.h <<\EOF
9876 #define HAVE_EBCDIC 1
9881 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9882 echo "configure:9883: checking for ANSI C header files" >&5
9883 if eval "test \"`echo '$''{'ol_cv_header_stdc'+set}'`\" = set"; then
9884 echo $ac_n "(cached) $ac_c" 1>&6
9886 cat > conftest.$ac_ext <<EOF
9887 #line 9888 "configure"
9888 #include "confdefs.h"
9894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9895 { (eval echo configure:9896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9897 if test -z "$ac_err"; then
9899 ol_cv_header_stdc=yes
9902 echo "configure: failed program was:" >&5
9903 cat conftest.$ac_ext >&5
9905 ol_cv_header_stdc=no
9909 if test $ol_cv_header_stdc = yes; then
9910 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9911 cat > conftest.$ac_ext <<EOF
9912 #line 9913 "configure"
9913 #include "confdefs.h"
9916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9917 egrep "memchr" >/dev/null 2>&1; then
9921 ol_cv_header_stdc=no
9927 if test $ol_cv_header_stdc = yes; then
9928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9929 cat > conftest.$ac_ext <<EOF
9930 #line 9931 "configure"
9931 #include "confdefs.h"
9934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9935 egrep "free" >/dev/null 2>&1; then
9939 ol_cv_header_stdc=no
9945 if test $ol_cv_header_stdc = yes; then
9946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9947 if test "$cross_compiling" = yes; then
9950 cat > conftest.$ac_ext <<EOF
9951 #line 9952 "configure"
9952 #include "confdefs.h"
9955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9958 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9959 || ('j' <= (c) && (c) <= 'r') \
9960 || ('s' <= (c) && (c) <= 'z'))
9961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9964 int main () { int i; for (i = 0; i < 256; i++)
9965 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9969 if { (eval echo configure:9970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9973 echo "configure: failed program was:" >&5
9974 cat conftest.$ac_ext >&5
9976 ol_cv_header_stdc=no
9984 echo "$ac_t""$ol_cv_header_stdc" 1>&6
9985 if test $ol_cv_header_stdc = yes; then
9986 cat >> confdefs.h <<\EOF
9987 #define STDC_HEADERS 1
9991 ac_cv_header_stdc=disable
9994 if test $ol_cv_header_stdc != yes; then
9995 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
9999 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
10001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10002 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
10003 echo "configure:10004: checking for $ac_hdr that defines DIR" >&5
10004 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
10005 echo $ac_n "(cached) $ac_c" 1>&6
10007 cat > conftest.$ac_ext <<EOF
10008 #line 10009 "configure"
10009 #include "confdefs.h"
10010 #include <sys/types.h>
10016 if { (eval echo configure:10017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10018 eval "ac_cv_header_dirent_$ac_safe=yes"
10020 echo "configure: failed program was:" >&5
10021 cat conftest.$ac_ext >&5
10023 eval "ac_cv_header_dirent_$ac_safe=no"
10027 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
10028 echo "$ac_t""yes" 1>&6
10029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10030 cat >> confdefs.h <<EOF
10031 #define $ac_tr_hdr 1
10033 ac_header_dirent=$ac_hdr; break
10035 echo "$ac_t""no" 1>&6
10038 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10039 if test $ac_header_dirent = dirent.h; then
10040 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
10041 echo "configure:10042: checking for opendir in -ldir" >&5
10042 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
10043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10044 echo $ac_n "(cached) $ac_c" 1>&6
10046 ac_save_LIBS="$LIBS"
10048 cat > conftest.$ac_ext <<EOF
10049 #line 10050 "configure"
10050 #include "confdefs.h"
10051 /* Override any gcc2 internal prototype to avoid an error. */
10052 /* We use char because int might match the return type of a gcc2
10053 builtin and then its argument prototype would still apply. */
10060 if { (eval echo configure:10061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10062 eval "ac_cv_lib_$ac_lib_var=yes"
10064 echo "configure: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10067 eval "ac_cv_lib_$ac_lib_var=no"
10070 LIBS="$ac_save_LIBS"
10073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10074 echo "$ac_t""yes" 1>&6
10077 echo "$ac_t""no" 1>&6
10081 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
10082 echo "configure:10083: checking for opendir in -lx" >&5
10083 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
10084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10085 echo $ac_n "(cached) $ac_c" 1>&6
10087 ac_save_LIBS="$LIBS"
10089 cat > conftest.$ac_ext <<EOF
10090 #line 10091 "configure"
10091 #include "confdefs.h"
10092 /* Override any gcc2 internal prototype to avoid an error. */
10093 /* We use char because int might match the return type of a gcc2
10094 builtin and then its argument prototype would still apply. */
10101 if { (eval echo configure:10102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10103 eval "ac_cv_lib_$ac_lib_var=yes"
10105 echo "configure: failed program was:" >&5
10106 cat conftest.$ac_ext >&5
10108 eval "ac_cv_lib_$ac_lib_var=no"
10111 LIBS="$ac_save_LIBS"
10114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10115 echo "$ac_t""yes" 1>&6
10118 echo "$ac_t""no" 1>&6
10123 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
10124 echo "configure:10125: checking for sys/wait.h that is POSIX.1 compatible" >&5
10125 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
10126 echo $ac_n "(cached) $ac_c" 1>&6
10128 cat > conftest.$ac_ext <<EOF
10129 #line 10130 "configure"
10130 #include "confdefs.h"
10131 #include <sys/types.h>
10132 #include <sys/wait.h>
10133 #ifndef WEXITSTATUS
10134 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10137 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10142 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10145 if { (eval echo configure:10146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10147 ac_cv_header_sys_wait_h=yes
10149 echo "configure: failed program was:" >&5
10150 cat conftest.$ac_ext >&5
10152 ac_cv_header_sys_wait_h=no
10157 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
10158 if test $ac_cv_header_sys_wait_h = yes; then
10159 cat >> confdefs.h <<\EOF
10160 #define HAVE_SYS_WAIT_H 1
10165 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
10166 echo "configure:10167: checking POSIX termios" >&5
10167 if eval "test \"`echo '$''{'am_cv_sys_posix_termios'+set}'`\" = set"; then
10168 echo $ac_n "(cached) $ac_c" 1>&6
10170 cat > conftest.$ac_ext <<EOF
10171 #line 10172 "configure"
10172 #include "confdefs.h"
10173 #include <sys/types.h>
10174 #include <unistd.h>
10175 #include <termios.h>
10177 /* SunOS 4.0.3 has termios.h but not the library calls. */
10181 if { (eval echo configure:10182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10183 am_cv_sys_posix_termios=yes
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10188 am_cv_sys_posix_termios=no
10193 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
10196 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
10197 echo "configure:10198: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
10198 if eval "test \"`echo '$''{'am_cv_sys_tiocgwinsz_needs_sys_ioctl_h'+set}'`\" = set"; then
10199 echo $ac_n "(cached) $ac_c" 1>&6
10201 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
10203 gwinsz_in_termios_h=no
10204 if test $am_cv_sys_posix_termios = yes; then
10205 cat > conftest.$ac_ext <<EOF
10206 #line 10207 "configure"
10207 #include "confdefs.h"
10208 #include <sys/types.h>
10209 # include <termios.h>
10215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10216 egrep "yes" >/dev/null 2>&1; then
10218 gwinsz_in_termios_h=yes
10224 if test $gwinsz_in_termios_h = no; then
10225 cat > conftest.$ac_ext <<EOF
10226 #line 10227 "configure"
10227 #include "confdefs.h"
10228 #include <sys/types.h>
10229 # include <sys/ioctl.h>
10235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10236 egrep "yes" >/dev/null 2>&1; then
10238 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
10246 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
10247 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
10248 cat >> confdefs.h <<\EOF
10249 #define GWINSZ_IN_SYS_IOCTL 1
10254 if test $am_cv_sys_posix_termios = yes ; then
10255 cat >> confdefs.h <<\EOF
10256 #define HAVE_POSIX_TERMIOS 1
10302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10304 echo "configure:10305: checking for $ac_hdr" >&5
10305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10306 echo $ac_n "(cached) $ac_c" 1>&6
10308 cat > conftest.$ac_ext <<EOF
10309 #line 10310 "configure"
10310 #include "confdefs.h"
10313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10314 { (eval echo configure:10315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10316 if test -z "$ac_err"; then
10318 eval "ac_cv_header_$ac_safe=yes"
10321 echo "configure: failed program was:" >&5
10322 cat conftest.$ac_ext >&5
10324 eval "ac_cv_header_$ac_safe=no"
10328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10329 echo "$ac_t""yes" 1>&6
10330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10331 cat >> confdefs.h <<EOF
10332 #define $ac_tr_hdr 1
10336 echo "$ac_t""no" 1>&6
10341 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
10342 echo "configure:10343: checking for uid_t in sys/types.h" >&5
10343 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
10344 echo $ac_n "(cached) $ac_c" 1>&6
10346 cat > conftest.$ac_ext <<EOF
10347 #line 10348 "configure"
10348 #include "confdefs.h"
10349 #include <sys/types.h>
10351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10352 egrep "uid_t" >/dev/null 2>&1; then
10354 ac_cv_type_uid_t=yes
10357 ac_cv_type_uid_t=no
10363 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
10364 if test $ac_cv_type_uid_t = no; then
10365 cat >> confdefs.h <<\EOF
10369 cat >> confdefs.h <<\EOF
10375 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
10376 echo "configure:10377: checking type of array argument to getgroups" >&5
10377 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
10378 echo $ac_n "(cached) $ac_c" 1>&6
10380 if test "$cross_compiling" = yes; then
10381 ac_cv_type_getgroups=cross
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10387 /* Thanks to Mike Rendell for this test. */
10388 #include <sys/types.h>
10391 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10394 gid_t gidset[NGID];
10396 union { gid_t gval; long lval; } val;
10399 for (i = 0; i < NGID; i++)
10400 gidset[i] = val.gval;
10401 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10403 /* Exit non-zero if getgroups seems to require an array of ints. This
10404 happens when gid_t is short but getgroups modifies an array of ints. */
10405 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10409 if { (eval echo configure:10410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10411 ac_cv_type_getgroups=gid_t
10413 echo "configure: failed program was:" >&5
10414 cat conftest.$ac_ext >&5
10416 ac_cv_type_getgroups=int
10421 if test $ac_cv_type_getgroups = cross; then
10422 cat > conftest.$ac_ext <<EOF
10423 #line 10424 "configure"
10424 #include "confdefs.h"
10425 #include <unistd.h>
10427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10428 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10430 ac_cv_type_getgroups=gid_t
10433 ac_cv_type_getgroups=int
10440 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
10441 cat >> confdefs.h <<EOF
10442 #define GETGROUPS_T $ac_cv_type_getgroups
10445 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10446 echo "configure:10447: checking for ANSI C header files" >&5
10447 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10448 echo $ac_n "(cached) $ac_c" 1>&6
10450 cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10453 #include <stdlib.h>
10454 #include <stdarg.h>
10455 #include <string.h>
10458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10459 { (eval echo configure:10460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10461 if test -z "$ac_err"; then
10463 ac_cv_header_stdc=yes
10466 echo "configure: failed program was:" >&5
10467 cat conftest.$ac_ext >&5
10469 ac_cv_header_stdc=no
10473 if test $ac_cv_header_stdc = yes; then
10474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10475 cat > conftest.$ac_ext <<EOF
10476 #line 10477 "configure"
10477 #include "confdefs.h"
10478 #include <string.h>
10480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10481 egrep "memchr" >/dev/null 2>&1; then
10485 ac_cv_header_stdc=no
10491 if test $ac_cv_header_stdc = yes; then
10492 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10493 cat > conftest.$ac_ext <<EOF
10494 #line 10495 "configure"
10495 #include "confdefs.h"
10496 #include <stdlib.h>
10498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10499 egrep "free" >/dev/null 2>&1; then
10503 ac_cv_header_stdc=no
10509 if test $ac_cv_header_stdc = yes; then
10510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10511 if test "$cross_compiling" = yes; then
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10518 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10519 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10521 int main () { int i; for (i = 0; i < 256; i++)
10522 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10526 if { (eval echo configure:10527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10530 echo "configure: failed program was:" >&5
10531 cat conftest.$ac_ext >&5
10533 ac_cv_header_stdc=no
10541 echo "$ac_t""$ac_cv_header_stdc" 1>&6
10542 if test $ac_cv_header_stdc = yes; then
10543 cat >> confdefs.h <<\EOF
10544 #define STDC_HEADERS 1
10549 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10550 echo "configure:10551: checking for mode_t" >&5
10551 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
10552 echo $ac_n "(cached) $ac_c" 1>&6
10554 cat > conftest.$ac_ext <<EOF
10555 #line 10556 "configure"
10556 #include "confdefs.h"
10557 #include <sys/types.h>
10559 #include <stdlib.h>
10560 #include <stddef.h>
10563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10564 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10566 ac_cv_type_mode_t=yes
10569 ac_cv_type_mode_t=no
10574 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
10575 if test $ac_cv_type_mode_t = no; then
10576 cat >> confdefs.h <<\EOF
10582 echo $ac_n "checking for off_t""... $ac_c" 1>&6
10583 echo "configure:10584: checking for off_t" >&5
10584 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
10585 echo $ac_n "(cached) $ac_c" 1>&6
10587 cat > conftest.$ac_ext <<EOF
10588 #line 10589 "configure"
10589 #include "confdefs.h"
10590 #include <sys/types.h>
10592 #include <stdlib.h>
10593 #include <stddef.h>
10596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10597 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10599 ac_cv_type_off_t=yes
10602 ac_cv_type_off_t=no
10607 echo "$ac_t""$ac_cv_type_off_t" 1>&6
10608 if test $ac_cv_type_off_t = no; then
10609 cat >> confdefs.h <<\EOF
10615 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
10616 echo "configure:10617: checking for pid_t" >&5
10617 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
10618 echo $ac_n "(cached) $ac_c" 1>&6
10620 cat > conftest.$ac_ext <<EOF
10621 #line 10622 "configure"
10622 #include "confdefs.h"
10623 #include <sys/types.h>
10625 #include <stdlib.h>
10626 #include <stddef.h>
10629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10630 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10632 ac_cv_type_pid_t=yes
10635 ac_cv_type_pid_t=no
10640 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
10641 if test $ac_cv_type_pid_t = no; then
10642 cat >> confdefs.h <<\EOF
10648 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
10649 echo "configure:10650: checking for ptrdiff_t" >&5
10650 if eval "test \"`echo '$''{'am_cv_type_ptrdiff_t'+set}'`\" = set"; then
10651 echo $ac_n "(cached) $ac_c" 1>&6
10653 cat > conftest.$ac_ext <<EOF
10654 #line 10655 "configure"
10655 #include "confdefs.h"
10656 #include <stddef.h>
10661 if { (eval echo configure:10662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10663 am_cv_type_ptrdiff_t=yes
10665 echo "configure: failed program was:" >&5
10666 cat conftest.$ac_ext >&5
10668 am_cv_type_ptrdiff_t=no
10673 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
10674 if test $am_cv_type_ptrdiff_t = yes; then
10675 cat >> confdefs.h <<\EOF
10676 #define HAVE_PTRDIFF_T 1
10681 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
10682 echo "configure:10683: checking return type of signal handlers" >&5
10683 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
10684 echo $ac_n "(cached) $ac_c" 1>&6
10686 cat > conftest.$ac_ext <<EOF
10687 #line 10688 "configure"
10688 #include "confdefs.h"
10689 #include <sys/types.h>
10690 #include <signal.h>
10695 extern "C" void (*signal (int, void (*)(int)))(int);
10697 void (*signal ()) ();
10704 if { (eval echo configure:10705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10706 ac_cv_type_signal=void
10708 echo "configure: failed program was:" >&5
10709 cat conftest.$ac_ext >&5
10711 ac_cv_type_signal=int
10716 echo "$ac_t""$ac_cv_type_signal" 1>&6
10717 cat >> confdefs.h <<EOF
10718 #define RETSIGTYPE $ac_cv_type_signal
10722 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
10723 echo "configure:10724: checking for sig_atomic_t" >&5
10724 if eval "test \"`echo '$''{'ol_cv_type_sig_atomic_t'+set}'`\" = set"; then
10725 echo $ac_n "(cached) $ac_c" 1>&6
10727 cat > conftest.$ac_ext <<EOF
10728 #line 10729 "configure"
10729 #include "confdefs.h"
10730 #include <signal.h>
10732 sig_atomic_t atomic;
10735 if { (eval echo configure:10736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10737 ol_cv_type_sig_atomic_t=yes
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10742 ol_cv_type_sig_atomic_t=no
10747 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
10748 if test $ol_cv_type_sig_atomic_t = no; then
10749 cat >> confdefs.h <<\EOF
10750 #define sig_atomic_t int
10755 echo $ac_n "checking for size_t""... $ac_c" 1>&6
10756 echo "configure:10757: checking for size_t" >&5
10757 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
10758 echo $ac_n "(cached) $ac_c" 1>&6
10760 cat > conftest.$ac_ext <<EOF
10761 #line 10762 "configure"
10762 #include "confdefs.h"
10763 #include <sys/types.h>
10765 #include <stdlib.h>
10766 #include <stddef.h>
10769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10770 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
10772 ac_cv_type_size_t=yes
10775 ac_cv_type_size_t=no
10780 echo "$ac_t""$ac_cv_type_size_t" 1>&6
10781 if test $ac_cv_type_size_t = no; then
10782 cat >> confdefs.h <<\EOF
10783 #define size_t unsigned
10788 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
10789 echo "configure:10790: checking for socklen_t" >&5
10790 if eval "test \"`echo '$''{'ol_cv_type_socklen_t'+set}'`\" = set"; then
10791 echo $ac_n "(cached) $ac_c" 1>&6
10793 cat > conftest.$ac_ext <<EOF
10794 #line 10795 "configure"
10795 #include "confdefs.h"
10797 #ifdef HAVE_SYS_TYPES_H
10798 #include <sys/types.h>
10800 #ifdef HAVE_SYS_SOCKET_H
10801 #include <sys/socket.h>
10808 if { (eval echo configure:10809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10810 ol_cv_type_socklen_t=yes
10812 echo "configure: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10815 ol_cv_type_socklen_t=no
10820 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
10821 if test $ol_cv_type_socklen_t = no; then
10822 cat >> confdefs.h <<\EOF
10823 #define socklen_t int
10828 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
10829 echo "configure:10830: checking for st_blksize in struct stat" >&5
10830 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
10831 echo $ac_n "(cached) $ac_c" 1>&6
10833 cat > conftest.$ac_ext <<EOF
10834 #line 10835 "configure"
10835 #include "confdefs.h"
10836 #include <sys/types.h>
10837 #include <sys/stat.h>
10839 struct stat s; s.st_blksize;
10842 if { (eval echo configure:10843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10844 ac_cv_struct_st_blksize=yes
10846 echo "configure: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10849 ac_cv_struct_st_blksize=no
10854 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
10855 if test $ac_cv_struct_st_blksize = yes; then
10856 cat >> confdefs.h <<\EOF
10857 #define HAVE_ST_BLKSIZE 1
10862 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
10863 echo "configure:10864: checking whether time.h and sys/time.h may both be included" >&5
10864 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
10865 echo $ac_n "(cached) $ac_c" 1>&6
10867 cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10870 #include <sys/types.h>
10871 #include <sys/time.h>
10877 if { (eval echo configure:10878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10879 ac_cv_header_time=yes
10881 echo "configure: failed program was:" >&5
10882 cat conftest.$ac_ext >&5
10884 ac_cv_header_time=no
10889 echo "$ac_t""$ac_cv_header_time" 1>&6
10890 if test $ac_cv_header_time = yes; then
10891 cat >> confdefs.h <<\EOF
10892 #define TIME_WITH_SYS_TIME 1
10897 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
10898 echo "configure:10899: checking whether struct tm is in sys/time.h or time.h" >&5
10899 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
10900 echo $ac_n "(cached) $ac_c" 1>&6
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10905 #include <sys/types.h>
10908 struct tm *tp; tp->tm_sec;
10911 if { (eval echo configure:10912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10913 ac_cv_struct_tm=time.h
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10918 ac_cv_struct_tm=sys/time.h
10923 echo "$ac_t""$ac_cv_struct_tm" 1>&6
10924 if test $ac_cv_struct_tm = sys/time.h; then
10925 cat >> confdefs.h <<\EOF
10926 #define TM_IN_SYS_TIME 1
10931 # test for pw_gecos in struct passwd
10932 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
10933 echo "configure:10934: checking struct passwd for pw_gecos" >&5
10934 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_gecos'+set}'`\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
10938 cat > conftest.$ac_ext <<EOF
10939 #line 10940 "configure"
10940 #include "confdefs.h"
10945 pwd.pw_gecos = pwd.pw_name;
10949 if { (eval echo configure:10950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10951 ol_cv_struct_passwd_pw_gecos=yes
10953 echo "configure: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10956 ol_cv_struct_passwd_pw_gecos=no
10961 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
10962 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
10963 cat >> confdefs.h <<\EOF
10964 #define HAVE_PW_GECOS 1
10969 # test for pw_passwd in struct passwd
10970 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
10971 echo "configure:10972: checking struct passwd for pw_passwd" >&5
10972 if eval "test \"`echo '$''{'ol_cv_struct_passwd_pw_passwd'+set}'`\" = set"; then
10973 echo $ac_n "(cached) $ac_c" 1>&6
10976 cat > conftest.$ac_ext <<EOF
10977 #line 10978 "configure"
10978 #include "confdefs.h"
10983 pwd.pw_passwd = pwd.pw_name;
10987 if { (eval echo configure:10988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10989 ol_cv_struct_passwd_pw_passwd=yes
10991 echo "configure: failed program was:" >&5
10992 cat conftest.$ac_ext >&5
10994 ol_cv_struct_passwd_pw_passwd=no
10999 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
11000 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
11001 cat >> confdefs.h <<\EOF
11002 #define HAVE_PW_PASSWD 1
11009 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
11010 echo "configure:11011: checking if toupper() requires islower()" >&5
11011 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
11012 echo $ac_n "(cached) $ac_c" 1>&6
11015 if test "$cross_compiling" = yes; then
11016 ol_cv_c_upper_lower=safe
11018 cat > conftest.$ac_ext <<EOF
11019 #line 11020 "configure"
11020 #include "confdefs.h"
11025 if ('C' == toupper('C'))
11031 if { (eval echo configure:11032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11033 ol_cv_c_upper_lower=no
11035 echo "configure: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11038 ol_cv_c_upper_lower=yes
11045 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
11046 if test $ol_cv_c_upper_lower != no ; then
11047 cat >> confdefs.h <<\EOF
11048 #define C_UPPER_LOWER 1
11053 echo $ac_n "checking for working const""... $ac_c" 1>&6
11054 echo "configure:11055: checking for working const" >&5
11055 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11056 echo $ac_n "(cached) $ac_c" 1>&6
11058 cat > conftest.$ac_ext <<EOF
11059 #line 11060 "configure"
11060 #include "confdefs.h"
11064 /* Ultrix mips cc rejects this. */
11065 typedef int charset[2]; const charset x;
11066 /* SunOS 4.1.1 cc rejects this. */
11067 char const *const *ccp;
11069 /* NEC SVR4.0.2 mips cc rejects this. */
11070 struct point {int x, y;};
11071 static struct point const zero = {0,0};
11072 /* AIX XL C 1.02.0.0 rejects this.
11073 It does not let you subtract one const X* pointer from another in an arm
11074 of an if-expression whose if-part is not a constant expression */
11075 const char *g = "string";
11076 ccp = &g + (g ? g-g : 0);
11077 /* HPUX 7.0 cc rejects these. */
11080 ccp = (char const *const *) p;
11081 { /* SCO 3.2v4 cc rejects this. */
11083 char const *s = 0 ? (char *) 0 : (char const *) 0;
11087 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11088 int x[] = {25, 17};
11089 const int *foo = &x[0];
11092 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11093 typedef const int *iptr;
11097 { /* AIX XL C 1.02.0.0 rejects this saying
11098 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11099 struct s { int j; const int *ap[3]; };
11100 struct s *b; b->j = 5;
11102 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11103 const int foo = 10;
11108 if { (eval echo configure:11109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11112 echo "configure: failed program was:" >&5
11113 cat conftest.$ac_ext >&5
11120 echo "$ac_t""$ac_cv_c_const" 1>&6
11121 if test $ac_cv_c_const = no; then
11122 cat >> confdefs.h <<\EOF
11128 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
11129 echo "configure:11130: checking if compiler understands volatile" >&5
11130 if eval "test \"`echo '$''{'ol_cv_c_volatile'+set}'`\" = set"; then
11131 echo $ac_n "(cached) $ac_c" 1>&6
11133 cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11138 volatile int a; int * volatile b = x ? &y : &z;
11139 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
11143 if { (eval echo configure:11144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11145 ol_cv_c_volatile=yes
11147 echo "configure: failed program was:" >&5
11148 cat conftest.$ac_ext >&5
11150 ol_cv_c_volatile=no
11155 echo "$ac_t""$ol_cv_c_volatile" 1>&6
11156 if test $ol_cv_c_volatile = yes; then
11159 cat >> confdefs.h <<\EOF
11166 if test $cross_compiling = yes ; then
11167 cat >> confdefs.h <<\EOF
11168 #define CROSS_COMPILING 1
11172 cat >> confdefs.h <<\EOF
11173 #define LBER_INT_T long
11176 cat >> confdefs.h <<\EOF
11177 #define LBER_TAG_T long
11180 cat >> confdefs.h <<\EOF
11181 #define LBER_SOCKET_T int
11186 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11187 echo "configure:11188: checking whether byte ordering is bigendian" >&5
11188 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11189 echo $ac_n "(cached) $ac_c" 1>&6
11191 ac_cv_c_bigendian=unknown
11192 # See if sys/param.h defines the BYTE_ORDER macro.
11193 cat > conftest.$ac_ext <<EOF
11194 #line 11195 "configure"
11195 #include "confdefs.h"
11196 #include <sys/types.h>
11197 #include <sys/param.h>
11200 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11201 bogus endian macros
11205 if { (eval echo configure:11206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11207 # It does; now see whether it defined to BIG_ENDIAN or not.
11208 cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 #include <sys/types.h>
11212 #include <sys/param.h>
11215 #if BYTE_ORDER != BIG_ENDIAN
11220 if { (eval echo configure:11221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11222 ac_cv_c_bigendian=yes
11224 echo "configure: failed program was:" >&5
11225 cat conftest.$ac_ext >&5
11227 ac_cv_c_bigendian=no
11231 echo "configure: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11235 if test $ac_cv_c_bigendian = unknown; then
11236 if test "$cross_compiling" = yes; then
11237 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11239 cat > conftest.$ac_ext <<EOF
11240 #line 11241 "configure"
11241 #include "confdefs.h"
11243 /* Are we little or big endian? From Harbison&Steele. */
11247 char c[sizeof (long)];
11250 exit (u.c[sizeof (long) - 1] == 1);
11253 if { (eval echo configure:11254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11255 ac_cv_c_bigendian=no
11257 echo "configure: failed program was:" >&5
11258 cat conftest.$ac_ext >&5
11260 ac_cv_c_bigendian=yes
11268 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11269 if test $ac_cv_c_bigendian = yes; then
11270 cat >> confdefs.h <<\EOF
11271 #define WORDS_BIGENDIAN 1
11276 echo $ac_n "checking size of short""... $ac_c" 1>&6
11277 echo "configure:11278: checking size of short" >&5
11278 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11279 echo $ac_n "(cached) $ac_c" 1>&6
11281 if test "$cross_compiling" = yes; then
11282 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11284 cat > conftest.$ac_ext <<EOF
11285 #line 11286 "configure"
11286 #include "confdefs.h"
11290 FILE *f=fopen("conftestval", "w");
11292 fprintf(f, "%d\n", sizeof(short));
11296 if { (eval echo configure:11297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11298 ac_cv_sizeof_short=`cat conftestval`
11300 echo "configure: failed program was:" >&5
11301 cat conftest.$ac_ext >&5
11303 ac_cv_sizeof_short=0
11309 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11310 cat >> confdefs.h <<EOF
11311 #define SIZEOF_SHORT $ac_cv_sizeof_short
11315 echo $ac_n "checking size of int""... $ac_c" 1>&6
11316 echo "configure:11317: checking size of int" >&5
11317 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11318 echo $ac_n "(cached) $ac_c" 1>&6
11320 if test "$cross_compiling" = yes; then
11321 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11323 cat > conftest.$ac_ext <<EOF
11324 #line 11325 "configure"
11325 #include "confdefs.h"
11329 FILE *f=fopen("conftestval", "w");
11331 fprintf(f, "%d\n", sizeof(int));
11335 if { (eval echo configure:11336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11337 ac_cv_sizeof_int=`cat conftestval`
11339 echo "configure: failed program was:" >&5
11340 cat conftest.$ac_ext >&5
11348 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11349 cat >> confdefs.h <<EOF
11350 #define SIZEOF_INT $ac_cv_sizeof_int
11354 echo $ac_n "checking size of long""... $ac_c" 1>&6
11355 echo "configure:11356: checking size of long" >&5
11356 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11357 echo $ac_n "(cached) $ac_c" 1>&6
11359 if test "$cross_compiling" = yes; then
11360 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11362 cat > conftest.$ac_ext <<EOF
11363 #line 11364 "configure"
11364 #include "confdefs.h"
11368 FILE *f=fopen("conftestval", "w");
11370 fprintf(f, "%d\n", sizeof(long));
11374 if { (eval echo configure:11375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11376 ac_cv_sizeof_long=`cat conftestval`
11378 echo "configure: failed program was:" >&5
11379 cat conftest.$ac_ext >&5
11381 ac_cv_sizeof_long=0
11387 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11388 cat >> confdefs.h <<EOF
11389 #define SIZEOF_LONG $ac_cv_sizeof_long
11394 if test "$ac_cv_sizeof_int" -lt 4 ; then
11395 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
11397 cat >> confdefs.h <<\EOF
11398 #define LBER_INT_T long
11401 cat >> confdefs.h <<\EOF
11402 #define LBER_TAG_T long
11405 cat >> confdefs.h <<\EOF
11406 #define LBER_SOCKET_T int
11410 cat >> confdefs.h <<\EOF
11411 #define LBER_INT_T int
11414 cat >> confdefs.h <<\EOF
11415 #define LBER_TAG_T long
11418 cat >> confdefs.h <<\EOF
11419 #define LBER_SOCKET_T int
11425 cat >> confdefs.h <<\EOF
11426 #define LBER_LEN_T long
11430 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
11431 echo "configure:11432: checking for 8-bit clean memcmp" >&5
11432 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
11433 echo $ac_n "(cached) $ac_c" 1>&6
11435 if test "$cross_compiling" = yes; then
11436 ac_cv_func_memcmp_clean=no
11438 cat > conftest.$ac_ext <<EOF
11439 #line 11440 "configure"
11440 #include "confdefs.h"
11444 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11445 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
11449 if { (eval echo configure:11450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11451 ac_cv_func_memcmp_clean=yes
11453 echo "configure: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11456 ac_cv_func_memcmp_clean=no
11463 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
11464 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
11466 echo $ac_n "checking for strftime""... $ac_c" 1>&6
11467 echo "configure:11468: checking for strftime" >&5
11468 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
11469 echo $ac_n "(cached) $ac_c" 1>&6
11471 cat > conftest.$ac_ext <<EOF
11472 #line 11473 "configure"
11473 #include "confdefs.h"
11474 /* System header to define __stub macros and hopefully few prototypes,
11475 which can conflict with char strftime(); below. */
11476 #include <assert.h>
11477 /* Override any gcc2 internal prototype to avoid an error. */
11478 /* We use char because int might match the return type of a gcc2
11479 builtin and then its argument prototype would still apply. */
11484 /* The GNU C library defines this for functions which it implements
11485 to always fail with ENOSYS. Some functions are actually named
11486 something starting with __ and the normal name is an alias. */
11487 #if defined (__stub_strftime) || defined (__stub___strftime)
11495 if { (eval echo configure:11496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11497 eval "ac_cv_func_strftime=yes"
11499 echo "configure: failed program was:" >&5
11500 cat conftest.$ac_ext >&5
11502 eval "ac_cv_func_strftime=no"
11507 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
11508 echo "$ac_t""yes" 1>&6
11509 cat >> confdefs.h <<\EOF
11510 #define HAVE_STRFTIME 1
11514 echo "$ac_t""no" 1>&6
11515 # strftime is in -lintl on SCO UNIX.
11516 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
11517 echo "configure:11518: checking for strftime in -lintl" >&5
11518 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
11519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11520 echo $ac_n "(cached) $ac_c" 1>&6
11522 ac_save_LIBS="$LIBS"
11523 LIBS="-lintl $LIBS"
11524 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure"
11526 #include "confdefs.h"
11527 /* Override any gcc2 internal prototype to avoid an error. */
11528 /* We use char because int might match the return type of a gcc2
11529 builtin and then its argument prototype would still apply. */
11536 if { (eval echo configure:11537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11538 eval "ac_cv_lib_$ac_lib_var=yes"
11540 echo "configure: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11543 eval "ac_cv_lib_$ac_lib_var=no"
11546 LIBS="$ac_save_LIBS"
11549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11550 echo "$ac_t""yes" 1>&6
11551 cat >> confdefs.h <<\EOF
11552 #define HAVE_STRFTIME 1
11555 LIBS="-lintl $LIBS"
11557 echo "$ac_t""no" 1>&6
11563 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
11564 echo "configure:11565: checking for vprintf" >&5
11565 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
11566 echo $ac_n "(cached) $ac_c" 1>&6
11568 cat > conftest.$ac_ext <<EOF
11569 #line 11570 "configure"
11570 #include "confdefs.h"
11571 /* System header to define __stub macros and hopefully few prototypes,
11572 which can conflict with char vprintf(); below. */
11573 #include <assert.h>
11574 /* Override any gcc2 internal prototype to avoid an error. */
11575 /* We use char because int might match the return type of a gcc2
11576 builtin and then its argument prototype would still apply. */
11581 /* The GNU C library defines this for functions which it implements
11582 to always fail with ENOSYS. Some functions are actually named
11583 something starting with __ and the normal name is an alias. */
11584 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11592 if { (eval echo configure:11593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11594 eval "ac_cv_func_vprintf=yes"
11596 echo "configure: failed program was:" >&5
11597 cat conftest.$ac_ext >&5
11599 eval "ac_cv_func_vprintf=no"
11604 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
11605 echo "$ac_t""yes" 1>&6
11606 cat >> confdefs.h <<\EOF
11607 #define HAVE_VPRINTF 1
11611 echo "$ac_t""no" 1>&6
11614 if test "$ac_cv_func_vprintf" != yes; then
11615 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
11616 echo "configure:11617: checking for _doprnt" >&5
11617 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
11618 echo $ac_n "(cached) $ac_c" 1>&6
11620 cat > conftest.$ac_ext <<EOF
11621 #line 11622 "configure"
11622 #include "confdefs.h"
11623 /* System header to define __stub macros and hopefully few prototypes,
11624 which can conflict with char _doprnt(); below. */
11625 #include <assert.h>
11626 /* Override any gcc2 internal prototype to avoid an error. */
11627 /* We use char because int might match the return type of a gcc2
11628 builtin and then its argument prototype would still apply. */
11633 /* The GNU C library defines this for functions which it implements
11634 to always fail with ENOSYS. Some functions are actually named
11635 something starting with __ and the normal name is an alias. */
11636 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11644 if { (eval echo configure:11645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11646 eval "ac_cv_func__doprnt=yes"
11648 echo "configure: failed program was:" >&5
11649 cat conftest.$ac_ext >&5
11651 eval "ac_cv_func__doprnt=no"
11656 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
11657 echo "$ac_t""yes" 1>&6
11658 cat >> confdefs.h <<\EOF
11659 #define HAVE_DOPRNT 1
11663 echo "$ac_t""no" 1>&6
11669 if test $ac_cv_func_vprintf = yes ; then
11670 for ac_func in vsnprintf vsprintf
11672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11673 echo "configure:11674: checking for $ac_func" >&5
11674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11675 echo $ac_n "(cached) $ac_c" 1>&6
11677 cat > conftest.$ac_ext <<EOF
11678 #line 11679 "configure"
11679 #include "confdefs.h"
11680 /* System header to define __stub macros and hopefully few prototypes,
11681 which can conflict with char $ac_func(); below. */
11682 #include <assert.h>
11683 /* Override any gcc2 internal prototype to avoid an error. */
11684 /* We use char because int might match the return type of a gcc2
11685 builtin and then its argument prototype would still apply. */
11690 /* The GNU C library defines this for functions which it implements
11691 to always fail with ENOSYS. Some functions are actually named
11692 something starting with __ and the normal name is an alias. */
11693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11701 if { (eval echo configure:11702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11703 eval "ac_cv_func_$ac_func=yes"
11705 echo "configure: failed program was:" >&5
11706 cat conftest.$ac_ext >&5
11708 eval "ac_cv_func_$ac_func=no"
11713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11714 echo "$ac_t""yes" 1>&6
11715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11716 cat >> confdefs.h <<EOF
11717 #define $ac_tr_func 1
11721 echo "$ac_t""no" 1>&6
11775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11776 echo "configure:11777: checking for $ac_func" >&5
11777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11778 echo $ac_n "(cached) $ac_c" 1>&6
11780 cat > conftest.$ac_ext <<EOF
11781 #line 11782 "configure"
11782 #include "confdefs.h"
11783 /* System header to define __stub macros and hopefully few prototypes,
11784 which can conflict with char $ac_func(); below. */
11785 #include <assert.h>
11786 /* Override any gcc2 internal prototype to avoid an error. */
11787 /* We use char because int might match the return type of a gcc2
11788 builtin and then its argument prototype would still apply. */
11793 /* The GNU C library defines this for functions which it implements
11794 to always fail with ENOSYS. Some functions are actually named
11795 something starting with __ and the normal name is an alias. */
11796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11804 if { (eval echo configure:11805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11806 eval "ac_cv_func_$ac_func=yes"
11808 echo "configure: failed program was:" >&5
11809 cat conftest.$ac_ext >&5
11811 eval "ac_cv_func_$ac_func=no"
11816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11817 echo "$ac_t""yes" 1>&6
11818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11819 cat >> confdefs.h <<EOF
11820 #define $ac_tr_func 1
11824 echo "$ac_t""no" 1>&6
11829 for ac_func in getopt tempnam
11831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11832 echo "configure:11833: checking for $ac_func" >&5
11833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11834 echo $ac_n "(cached) $ac_c" 1>&6
11836 cat > conftest.$ac_ext <<EOF
11837 #line 11838 "configure"
11838 #include "confdefs.h"
11839 /* System header to define __stub macros and hopefully few prototypes,
11840 which can conflict with char $ac_func(); below. */
11841 #include <assert.h>
11842 /* Override any gcc2 internal prototype to avoid an error. */
11843 /* We use char because int might match the return type of a gcc2
11844 builtin and then its argument prototype would still apply. */
11849 /* The GNU C library defines this for functions which it implements
11850 to always fail with ENOSYS. Some functions are actually named
11851 something starting with __ and the normal name is an alias. */
11852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11860 if { (eval echo configure:11861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11862 eval "ac_cv_func_$ac_func=yes"
11864 echo "configure: failed program was:" >&5
11865 cat conftest.$ac_ext >&5
11867 eval "ac_cv_func_$ac_func=no"
11872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11873 echo "$ac_t""yes" 1>&6
11874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11875 cat >> confdefs.h <<EOF
11876 #define $ac_tr_func 1
11880 echo "$ac_t""no" 1>&6
11881 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
11887 # Check Configuration
11889 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
11890 echo "configure:11891: checking declaration of sys_errlist" >&5
11891 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
11892 echo $ac_n "(cached) $ac_c" 1>&6
11895 cat > conftest.$ac_ext <<EOF
11896 #line 11897 "configure"
11897 #include "confdefs.h"
11900 #include <sys/types.h>
11903 char *c = (char *) *sys_errlist
11906 if { (eval echo configure:11907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11908 ol_cv_dcl_sys_errlist=yes
11910 echo "configure: failed program was:" >&5
11911 cat conftest.$ac_ext >&5
11913 ol_cv_dcl_sys_errlist=no
11918 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
11919 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
11920 if test $ol_cv_dcl_sys_errlist = no ; then
11921 cat >> confdefs.h <<\EOF
11922 #define DECL_SYS_ERRLIST 1
11925 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
11926 echo "configure:11927: checking existence of sys_errlist" >&5
11927 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
11928 echo $ac_n "(cached) $ac_c" 1>&6
11931 cat > conftest.$ac_ext <<EOF
11932 #line 11933 "configure"
11933 #include "confdefs.h"
11936 char *c = (char *) *sys_errlist
11939 if { (eval echo configure:11940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11941 ol_cv_have_sys_errlist=yes
11943 echo "configure: failed program was:" >&5
11944 cat conftest.$ac_ext >&5
11946 ol_cv_have_sys_errlist=no
11951 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
11952 if test $ol_cv_have_sys_errlist = yes ; then
11953 cat >> confdefs.h <<\EOF
11954 #define HAVE_SYS_ERRLIST 1
11962 if test "$ol_enable_debug" != no ; then
11963 cat >> confdefs.h <<\EOF
11964 #define LDAP_DEBUG 1
11968 if test "$ol_enable_syslog" = yes ; then
11969 cat >> confdefs.h <<\EOF
11970 #define LDAP_SYSLOG 1
11974 if test "$ol_enable_libui" = yes ; then
11975 cat >> confdefs.h <<\EOF
11976 #define LDAP_LIBUI 1
11980 if test "$ol_enable_cache" = no ; then
11981 cat >> confdefs.h <<\EOF
11982 #define LDAP_NOCACHE 1
11986 if test "$ol_enable_dns" != no ; then
11987 cat >> confdefs.h <<\EOF
11988 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
11992 if test "$ol_enable_proctitle" != no ; then
11993 cat >> confdefs.h <<\EOF
11994 #define LDAP_PROCTITLE 1
11998 if test "$ol_enable_referrals" != no ; then
11999 cat >> confdefs.h <<\EOF
12000 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
12004 if test "$ol_enable_cldap" != no ; then
12005 cat >> confdefs.h <<\EOF
12006 #define LDAP_CONNECTIONLESS 1
12011 if test "$ol_enable_crypt" != no ; then
12012 cat >> confdefs.h <<\EOF
12013 #define SLAPD_CRYPT 1
12017 if test "$ol_enable_cleartext" != no ; then
12018 cat >> confdefs.h <<\EOF
12019 #define SLAPD_CLEARTEXT 1
12023 if test "$ol_enable_phonetic" != no ; then
12024 cat >> confdefs.h <<\EOF
12025 #define SLAPD_PHONETIC 1
12029 if test "$ol_enable_rlookups" != no ; then
12030 cat >> confdefs.h <<\EOF
12031 #define SLAPD_RLOOKUPS 1
12036 if test "$ol_link_modules" != no ; then
12037 cat >> confdefs.h <<\EOF
12038 #define SLAPD_MODULES 1
12044 if test "$ol_link_bdb2" != no ; then
12045 cat >> confdefs.h <<\EOF
12046 #define SLAPD_BDB2 1
12051 if test "$ol_with_bdb2_module" != static ; then
12052 cat >> confdefs.h <<\EOF
12053 #define SLAPD_BDB2_DYNAMIC 1
12056 BUILD_BDB2_DYNAMIC=yes
12060 if test "$ol_enable_ldap" != no ; then
12061 cat >> confdefs.h <<\EOF
12062 #define SLAPD_LDAP 1
12067 if test "$ol_with_ldap_module" != static ; then
12068 cat >> confdefs.h <<\EOF
12069 #define SLAPD_LDAP_DYNAMIC 1
12072 BUILD_LDAP_DYNAMIC=yes
12076 if test "$ol_link_ldbm" != no ; then
12077 cat >> confdefs.h <<\EOF
12078 #define SLAPD_LDBM 1
12083 if test "$ol_with_ldbm_module" != static ; then
12084 cat >> confdefs.h <<\EOF
12085 #define SLAPD_LDBM_DYNAMIC 1
12088 BUILD_LDBM_DYNAMIC=yes
12092 if test "$ol_enable_passwd" != no ; then
12093 cat >> confdefs.h <<\EOF
12094 #define SLAPD_PASSWD 1
12099 if test "$ol_with_passwd_module" != static ; then
12100 cat >> confdefs.h <<\EOF
12101 #define SLAPD_PASSWD_DYNAMIC 1
12104 BUILD_PASSWD_DYNAMIC=yes
12108 if test "$ol_link_perl" != no ; then
12109 cat >> confdefs.h <<\EOF
12110 #define SLAPD_PERL 1
12115 if test "$ol_with_perl_module" != static ; then
12116 cat >> confdefs.h <<\EOF
12117 #define SLAPD_PERL_DYNAMIC 1
12120 BUILD_PERL_DYNAMIC=yes
12124 if test "$ol_enable_shell" != no ; then
12125 cat >> confdefs.h <<\EOF
12126 #define SLAPD_SHELL 1
12131 if test "$ol_with_shell_module" != static ; then
12132 cat >> confdefs.h <<\EOF
12133 #define SLAPD_SHELL_DYNAMIC 1
12136 BUILD_SHELL_DYNAMIC=yes
12140 if test "$ol_enable_tcl" != no ; then
12141 cat >> confdefs.h <<\EOF
12142 #define SLAPD_TCL 1
12147 if test "$ol_with_tcl_module" != static; then
12148 cat >> confdefs.h <<\EOF
12149 #define SLAPD_TCL_DYNAMIC 1
12152 BUILD_TCL_DYNAMIC=yes
12156 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
12157 $BUILD_SLAPD = yes ; then
12161 if test "$ol_link_isode" != no ; then
12206 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12208 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12209 # Let make expand exec_prefix.
12210 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12212 # Any assignment to VPATH causes Sun make to only execute
12213 # the first set of double-colon rules, so remove it if not needed.
12214 # If there is a colon in the path, we need to keep it.
12215 if test "x$srcdir" = x.; then
12216 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12219 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12221 DEFS=-DHAVE_CONFIG_H
12223 # Without the "./", some shells look in PATH for config.status.
12224 : ${CONFIG_STATUS=./config.status}
12226 echo creating $CONFIG_STATUS
12227 rm -f $CONFIG_STATUS
12228 cat > $CONFIG_STATUS <<EOF
12230 # Generated automatically by configure.
12231 # Run this file to recreate the current configuration.
12232 # This directory was configured as follows,
12233 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12235 # $0 $ac_configure_args
12237 # Compiler output produced by configure, useful for debugging
12238 # configure, is in ./config.log if it exists.
12240 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12243 case "\$ac_option" in
12244 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12245 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12246 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12247 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12248 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12250 -help | --help | --hel | --he | --h)
12251 echo "\$ac_cs_usage"; exit 0 ;;
12252 *) echo "\$ac_cs_usage"; exit 1 ;;
12256 ac_given_srcdir=$srcdir
12257 ac_given_INSTALL="$INSTALL"
12259 trap 'rm -fr `echo "\
12260 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12261 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12262 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12263 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12264 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12265 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12266 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12267 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12268 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12269 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12270 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12271 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12272 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12273 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12274 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12275 include/Makefile:build/top.mk:include/Makefile.in \
12276 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12277 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12278 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12279 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12280 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12281 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12282 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12283 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12284 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12285 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12286 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12287 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12288 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12289 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12290 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12291 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12292 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12293 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12294 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12295 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12296 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12297 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12298 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12299 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12300 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12301 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12302 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12304 cat >> $CONFIG_STATUS <<EOF
12306 # Protect against being on the right side of a sed subst in config.status.
12307 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12308 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12312 s%@CFLAGS@%$CFLAGS%g
12313 s%@CPPFLAGS@%$CPPFLAGS%g
12314 s%@CXXFLAGS@%$CXXFLAGS%g
12315 s%@FFLAGS@%$FFLAGS%g
12317 s%@LDFLAGS@%$LDFLAGS%g
12319 s%@exec_prefix@%$exec_prefix%g
12320 s%@prefix@%$prefix%g
12321 s%@program_transform_name@%$program_transform_name%g
12322 s%@bindir@%$bindir%g
12323 s%@sbindir@%$sbindir%g
12324 s%@libexecdir@%$libexecdir%g
12325 s%@datadir@%$datadir%g
12326 s%@sysconfdir@%$sysconfdir%g
12327 s%@sharedstatedir@%$sharedstatedir%g
12328 s%@localstatedir@%$localstatedir%g
12329 s%@libdir@%$libdir%g
12330 s%@includedir@%$includedir%g
12331 s%@oldincludedir@%$oldincludedir%g
12332 s%@infodir@%$infodir%g
12333 s%@mandir@%$mandir%g
12335 s%@host_alias@%$host_alias%g
12336 s%@host_cpu@%$host_cpu%g
12337 s%@host_vendor@%$host_vendor%g
12338 s%@host_os@%$host_os%g
12339 s%@target@%$target%g
12340 s%@target_alias@%$target_alias%g
12341 s%@target_cpu@%$target_cpu%g
12342 s%@target_vendor@%$target_vendor%g
12343 s%@target_os@%$target_os%g
12345 s%@build_alias@%$build_alias%g
12346 s%@build_cpu@%$build_cpu%g
12347 s%@build_vendor@%$build_vendor%g
12348 s%@build_os@%$build_os%g
12349 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12350 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12351 s%@INSTALL_DATA@%$INSTALL_DATA%g
12352 s%@PACKAGE@%$PACKAGE%g
12353 s%@VERSION@%$VERSION%g
12354 s%@ACLOCAL@%$ACLOCAL%g
12355 s%@AUTOCONF@%$AUTOCONF%g
12356 s%@AUTOMAKE@%$AUTOMAKE%g
12357 s%@AUTOHEADER@%$AUTOHEADER%g
12358 s%@MAKEINFO@%$MAKEINFO%g
12359 s%@SET_MAKE@%$SET_MAKE%g
12360 s%@top_builddir@%$top_builddir%g
12361 s%@ldap_subdir@%$ldap_subdir%g
12363 s%@RANLIB@%$RANLIB%g
12367 s%@LIBTOOL@%$LIBTOOL%g
12370 s%@SENDMAIL@%$SENDMAIL%g
12371 s%@EDITOR@%$EDITOR%g
12372 s%@FINGER@%$FINGER%g
12373 s%@GLIBCONFIG@%$GLIBCONFIG%g
12374 s%@PERLBIN@%$PERLBIN%g
12376 s%@EXEEXT@%$EXEEXT%g
12377 s%@OBJEXT@%$OBJEXT%g
12378 s%@OL_MKDEP@%$OL_MKDEP%g
12379 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
12381 s%@LIBOBJS@%$LIBOBJS%g
12382 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
12383 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
12384 s%@BUILD_BDB2@%$BUILD_BDB2%g
12385 s%@BUILD_LDAP@%$BUILD_LDAP%g
12386 s%@BUILD_LDBM@%$BUILD_LDBM%g
12387 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
12388 s%@BUILD_PERL@%$BUILD_PERL%g
12389 s%@BUILD_SHELL@%$BUILD_SHELL%g
12390 s%@BUILD_TCL@%$BUILD_TCL%g
12391 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
12392 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
12393 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
12394 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
12395 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
12396 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
12397 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
12398 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
12399 s%@LDAP_LIBS@%$LDAP_LIBS%g
12400 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
12401 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
12402 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
12403 s%@LDBM_LIBS@%$LDBM_LIBS%g
12404 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
12405 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
12406 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
12407 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
12408 s%@SLAPD_PERL_CPPFLAGS@%$SLAPD_PERL_CPPFLAGS%g
12409 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
12410 s%@KRB_LIBS@%$KRB_LIBS%g
12411 s%@READLINE_LIBS@%$READLINE_LIBS%g
12412 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
12413 s%@TLS_LIBS@%$TLS_LIBS%g
12418 cat >> $CONFIG_STATUS <<\EOF
12420 # Split the substitutions into bite-sized pieces for seds with
12421 # small command number limits, like on Digital OSF/1 and HP-UX.
12422 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12423 ac_file=1 # Number of current file.
12424 ac_beg=1 # First line for current file.
12425 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12428 while $ac_more_lines; do
12429 if test $ac_beg -gt 1; then
12430 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12432 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12434 if test ! -s conftest.s$ac_file; then
12435 ac_more_lines=false
12436 rm -f conftest.s$ac_file
12438 if test -z "$ac_sed_cmds"; then
12439 ac_sed_cmds="sed -f conftest.s$ac_file"
12441 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12443 ac_file=`expr $ac_file + 1`
12445 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12448 if test -z "$ac_sed_cmds"; then
12453 cat >> $CONFIG_STATUS <<EOF
12455 CONFIG_FILES=\${CONFIG_FILES-"\
12456 Makefile:build/top.mk:Makefile.in:build/dir.mk \
12457 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
12458 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
12459 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
12460 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
12461 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
12462 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
12463 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
12464 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
12465 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
12466 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
12467 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
12468 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
12469 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
12470 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
12471 include/Makefile:build/top.mk:include/Makefile.in \
12472 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
12473 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
12474 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
12475 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
12476 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
12477 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
12478 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
12479 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
12480 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
12481 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
12482 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
12483 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/srv.mk \
12484 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/srv.mk \
12485 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
12486 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
12487 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
12488 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
12489 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/srv.mk \
12490 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
12491 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
12492 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
12493 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
12494 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
12495 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
12496 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
12497 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
12500 cat >> $CONFIG_STATUS <<\EOF
12501 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12502 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12504 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12505 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12506 *) ac_file_in="${ac_file}.in" ;;
12509 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12511 # Remove last slash and all that follows it. Not all systems have dirname.
12512 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12513 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12514 # The file is in a subdirectory.
12515 test ! -d "$ac_dir" && mkdir "$ac_dir"
12516 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12517 # A "../" for each directory in $ac_dir_suffix.
12518 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12520 ac_dir_suffix= ac_dots=
12523 case "$ac_given_srcdir" in
12525 if test -z "$ac_dots"; then top_srcdir=.
12526 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12527 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12528 *) # Relative path.
12529 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12530 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12533 case "$ac_given_INSTALL" in
12534 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12535 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12538 echo creating "$ac_file"
12540 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12542 *Makefile*) ac_comsub="1i\\
12543 # $configure_input" ;;
12547 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12549 s%@configure_input@%$configure_input%g
12550 s%@srcdir@%$srcdir%g
12551 s%@top_srcdir@%$top_srcdir%g
12552 s%@INSTALL@%$INSTALL%g
12553 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12557 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12558 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12560 # ac_d sets the value in "#define NAME VALUE" lines.
12561 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12562 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12565 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12566 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12567 ac_uB='\([ ]\)%\1#\2define\3'
12570 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12571 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12572 ac_eB='$%\1#\2define\3'
12576 if test "${CONFIG_HEADERS+set}" != set; then
12578 cat >> $CONFIG_STATUS <<EOF
12579 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
12581 cat >> $CONFIG_STATUS <<\EOF
12583 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12584 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12586 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12587 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12588 *) ac_file_in="${ac_file}.in" ;;
12591 echo creating $ac_file
12593 rm -f conftest.frag conftest.in conftest.out
12594 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12595 cat $ac_file_inputs > conftest.in
12599 # Transform confdefs.h into a sed script conftest.vals that substitutes
12600 # the proper values into config.h.in to produce config.h. And first:
12601 # Protect against being on the right side of a sed subst in config.status.
12602 # Protect against being in an unquoted here document in config.status.
12603 rm -f conftest.vals
12604 cat > conftest.hdr <<\EOF
12607 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12611 sed -n -f conftest.hdr confdefs.h > conftest.vals
12614 # This sed command replaces #undef with comments. This is necessary, for
12615 # example, in the case of _POSIX_SOURCE, which is predefined and required
12616 # on some systems where configure will not decide to define it.
12617 cat >> conftest.vals <<\EOF
12618 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12621 # Break up conftest.vals because some shells have a limit on
12622 # the size of here documents, and old seds have small limits too.
12624 rm -f conftest.tail
12627 ac_lines=`grep -c . conftest.vals`
12628 # grep -c gives empty output for an empty file on some AIX systems.
12629 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12630 # Write a limited-size here document to conftest.frag.
12631 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12632 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12634 sed -f conftest.frag conftest.in > conftest.out
12636 mv conftest.out conftest.in
12637 ' >> $CONFIG_STATUS
12638 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12639 rm -f conftest.vals
12640 mv conftest.tail conftest.vals
12642 rm -f conftest.vals
12644 cat >> $CONFIG_STATUS <<\EOF
12645 rm -f conftest.frag conftest.h
12646 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12647 cat conftest.in >> conftest.h
12649 if cmp -s $ac_file conftest.h 2>/dev/null; then
12650 echo "$ac_file is unchanged"
12653 # Remove last slash and all that follows it. Not all systems have dirname.
12654 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12655 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12656 # The file is in a subdirectory.
12657 test ! -d "$ac_dir" && mkdir "$ac_dir"
12660 mv conftest.h $ac_file
12665 cat >> $CONFIG_STATUS <<EOF
12668 cat >> $CONFIG_STATUS <<\EOF
12671 echo Please \"make depend\" to build dependencies
12675 chmod +x $CONFIG_STATUS
12676 rm -fr confdefs* $ac_clean_files
12677 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1